[wxPython-users] Capturing keydown events

Robin Dunn robin at alldunn.com
Fri Sep 21 11:47:23 PDT 2007


Orest Kozyar wrote:

> I've tried subclassing FigureCanvasWxAgg and defining key_press_event (which
> doesn't seem to work) and overriding _onKeyDown (which still does not
> capture the keys I need).  Something weird seems to be happening to these
> keys, and was wondering if anyone could help me?
> 
> I am able to detect the EVT_KEY_UP for these three keys.  Just not the key
> down ones.  

Try using the wx.WANTS_CHARS style on the canvas too.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list