I want to "bind" a customized message handler to handle the keyboard message
(left/right arrow button down) sent from a wx.TextCtrl. Seems following code
does not work.I dont know why. Any one can tell me how to do that? Thanks in
advance.
...
def OnChar(self, event):
if event.GetKeyCode() == wx.WXK_DOWN:
print 'its a key down'
else:
# Event skipped so goes to textctrl as normal
event.Skip()
I want to "bind" a customized message handler to handle the keyboard message (left/right arrow button down) sent from a wx.TextCtrl. Seems following code does not work.I dont know why. Any one can tell me how to do that? Thanks in advance.