> <
http://wxpython.org/Phoenix/docs/html/KeyEvent.html>
>
>
> It looks like on my platform (GTK) GetRawKeyCode returns the "cooked"
> keycode, excellent :) Many thanks!
Unless your application is only going to be running in English locales
with English speakers/writers with English keyboards then you probably
do not want to rely on that working.
The actual contents of the "raw" attributes of the event is undefined by
wx and is more or less a platform-specific value. And to make things
even more complex, with some keyboards or software-based input methods
there may actually be multiple key events before one "cooked" char event
is sent for the composed value. For English speakers, think about how
there are 2 key down events to get the char event for a capital 'A', one
for shift and one for 'a'. Now add 2 or more additional key down and up
events (with key codes that look like other ascii letters) before
finally getting one char event for some unicode glyph.
If you really need the cooked char the best thing to do is to wait for
the char event.
--
Robin Dunn
Software Craftsman
http://wxPython.org