I used Mike Driscoll's example of a fake menu to get some
id's for the accelerator table, which apparently must use
to get frame level keyboard events.
All that's needed is an ID, (wx.NewId()) and to use the same ID in the accelerator table and in the Bind statement.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
All that's needed is an ID, (wx.NewId()) and to use the same ID in the
accelerator table and in the Bind statement.
It is the panel! I tried it with a naked frame in my experiments before.
I never thought that a wx.Panel could have any influence. The code below
works as long as the line with the wx.Panel isn't commented out (wxGTK):