Also - trying just a plain EVT_RIGHT_DOWN in FixedSplitTree doesn't see the
right mouse click either.
This is 2.4.0.7 under windows.
S.
···
-----Original Message-----
From: Sean Slattery [mailto:Sean.Slattery@aprsmartlogik.com]
Sent: Monday, April 28, 2003 11:11 AM
To: 'wxPython-users@lists.wxwindows.org'
Subject: [wxPython-users] wxPopupTransientWindowI'd like to be able to make one of these disappear on right
click as well as
left click, but I can't seem to trap an EVT_RIGHT_DOWN event.
I thought I
could push the following event handler onto my subclass of
wxPopupTransientWindow:class TestEventHandler(wxEvtHandler):
def __init__(self):
wxEvtHandler.__init__(self)
EVT_RIGHT_DOWN(self, self.onRightDown)def onRightDown(self, event):
print "RIGHT DOWN in TestEventHandler"
event.Skip()But it doesn't see any right down event. For completeness,
the start of my
subclass is:class FixedSplitTreePopup(wxPopupTransientWindow):
def __init__(self, parent, position, size):
wxPopupTransientWindow.__init__(self, parent, wxSIMPLE_BORDER)self.panel = wxPanel(self, -1)
# Overridable function to fill the window with whatever
sz = self.FillPanel()self.panel.SetSize((sz.width + 20, sz.height + 20))
self.SetSize(self.panel.GetSize())
self.Position(position, size)
self.Popup()self.PushEventHandler(TestEventHandler())
Anyone gotten this to work before?
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org