wxpython can't capture EVT_KEY_DOWN enent
问题 I can't capture EVT_KEY_DOWN event. But can capture EVT_KEY_UP. Python version : 2.7.3 wxPython version : 2.8.12.1 (gtk2-unicode) system info: Mint 14 Nadia , Linux 3.5.0-17-generic(x86_64) Following is my code #!/usr/bin/env python import sys, os import wx class WinFrame(wx.Frame): def __init__(self, parent, title): super(WinFrame, self).__init__(parent, title=title, size=(400,400)) self.panel = wx.Panel(self,-1, size=(400,400)) self.panel.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) self.panel