event.Skip()


class App(wx.App):
    """Application class."""

def OnInit(self):
    self.frame = Test()
self.frame.Show()
self.SetTopWindow(self.frame)
self.frame.SetFocus()
return True
if __name__ == '__main__':
    app = App()
app.MainLoop()
Escape key to Close WxPython GUI