cross platform event problem

Quoting Phillip Watts <phillip.watts@anvilcom.com>:

Try binding the event directly to the event generator, the textctrl.

I think your problem might be cause by the fact that wx.KeyEvent is not a
wx.CommandEvent and it doesn't propagate in the hierarchy of controls.

Peter

But there are LOTS of textctrls in my app. Surely I don't need to bind to
everyone individually. There must must be a way to see keyboard events
universally. There sure is tkinter.

If an event isn't handled by your bound events, or by the widget, then
it will be sent to the application object. So you can bind a handler
there to see unhandled key events.

And why does it work under X11 and not XP?

Because the frame has the focus at the time it appears to be working
for you, but this is just an implementation detail of frames on GTK.
They are not able to have the focus on the other platforms.

ยทยทยท

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