wxPython - Running built in event prior to custom bound event

Posted by jhaukur on Stack Overflow See other posts from Stack Overflow or by jhaukur
Published on 2009-08-13T11:12:47Z Indexed on 2010/03/17 18:11 UTC
Read the original article Hit count: 567

Filed under:
|
|

I'm trying to figure out how I can specify that the mouse_down event in wxPython (StyledTextCtrl) is first handled by the built in event listener, which changes the caret position, and then handled by my own custom event handler.

To bind the custom event handler I use wx.EVT_LEFT_DOWN(self.styCtrl, self.OnMouseClick)

def OnMouseClick(self, evt): evt.Skip() foo()

I want the built in event handler to fire and complete prior to foo().

© Stack Overflow or respective owner

Related posts about wxpython

Related posts about events