- EVT_MENU(self, 1001, self.OnGameNew)
- EVT_MENU(self, 1002, self.OnGameEnd)
- EVT_MENU(self, 1003, self.OnGameReset)
- EVT_MENU(self, 1004, self.OnGameDemo)
- EVT_MENU(self, 1005, self.OnWindowClose)
- EVT_MENU(self, 1011, self.OnDictFile)
- EVT_MENU_RANGE(self, 1020, 1020+len(urls)/2, self.OnDictURL)
- EVT_MENU(self, 1080, self.OnDictURLSel)
- EVT_MENU(self, 1013, self.OnDictDump)
- EVT_MENU(self, 1090, self.OnHelpAbout)
- EVT_CHAR(self.wnd, self.OnChar)
+ self.Bind(wx.EVT_MENU, self.OnGameNew, id=1001)
+ self.Bind(wx.EVT_MENU, self.OnGameEnd, id=1002)
+ self.Bind(wx.EVT_MENU, self.OnGameReset, id=1003)
+ self.Bind(wx.EVT_MENU, self.OnGameDemo, id=1004)
+ self.Bind(wx.EVT_MENU, self.OnWindowClose, id=1005)
+ self.Bind(wx.EVT_MENU, self.OnDictFile, id=1011)
+ self.Bind(wx.EVT_MENU, self.OnDictURL, id=1020, id2=1020+len(urls)/2)
+ self.Bind(wx.EVT_MENU, self.OnDictURLSel, id=1080)
+ self.Bind(wx.EVT_MENU, self.OnDictDump, id=1013)
+ self.Bind(wx.EVT_MENU, self.OnHelpAbout, id=1090)
+ self.wnd.Bind(wx.EVT_CHAR, self.OnChar)