As suggested I made a simple example to show my problem. The problem is
that key events are not captured on my Linux system. (Ubuntu). Windows
and Apple OS X work fine. Seems like it must be a simple fix because
this is so basic. For the example below, key presses are ignored and I
never get into the OnKeyDown routine. Sorry in advance if this is an
obvious problem. I'm still scratching my head.
import wx
class vptFrame(wx.Frame):
def __init__(self, parent=None, id=-1):
As suggested I made a simple example to show my problem. The problem is
that key events are not captured on my Linux system. (Ubuntu). Windows
and Apple OS X work fine. Seems like it must be a simple fix because
this is so basic. For the example below, key presses are ignored and I
never get into the OnKeyDown routine. Sorry in advance if this is an
obvious problem. I'm still scratching my head.
Key and Char events are only sent to the widget that has the focus, and frames can't have the focus on wxGTK. Put some other widget in the frame and explicitly give it the focus with SetFocus.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!