def __init__(self, parent): """Constructor""" wx.Panel.__init__(self, parent) self.Bind(wx.EVT_KEY_DOWN, self.onKey)