can someone point me to an example of how to use wxKeyEvent?
demo/GridEnterHandler.py, as well as others...
specifically, i want to capture when user has pressed 'Ctrl-S'
i've tried using the following macros (defined in my top frame
__init__()):
There's your problem. Only the window with the keyboard focus gets the
CHAR, KEY_DOWN, KEY_UP events, and your frame will never have the focus.
(BTW, you shouldn't use CHAR_HOOK as it's inconsistent and is only there for
legacy reasons.)
does EVT_CHAR macro only work from a wxWindow or Panel? if so, how do i
capture 'Ctrl-S' key press event from top frame?
Use an accelerator table and then hook the event handler to the fram with
EVT_MENU.
----- Original Message -----
From: "Andrew Yinger" <ayinger1@pacbell.net>
To: <wxpython-users@lists.wxwindows.org>
Sent: Monday, October 22, 2001 12:12 AM
Subject: [wxPython] wxKeyEvent
can someone point me to an example of how to use wxKeyEvent?
specifically, i want to capture when user has pressed 'Ctrl-S'
i've tried using the following macros (defined in my top frame