Re: [問題] wxPython - Event

看板Python作者 (...)時間15年前 (2010/08/06 18:35), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
自問自答。 class MyApp(wx.App): def FilterEvent(self, event): # Override if event.GetEventType() == wx.wxEVT_KEY_DOWN: windows = event.GetEventObject() print event, windows.__class__.__name__ #return True # drop this event return -1 app = MyApp(0) app.SetCallFilterEvent() -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.244.116.49
文章代碼(AID): #1CM-M0Xv (Python)
文章代碼(AID): #1CM-M0Xv (Python)