- wx.EVT_MENU(self, idOPEN, self.OnMenuOpen)
- wx.EVT_MENU(self, idSAVE, self.OnMenuSave)
- wx.EVT_MENU(self, idSAVEAS, self.OnMenuSaveAs)
- wx.EVT_MENU(self, idCLEAR, self.OnMenuClear)
- wx.EVT_MENU(self, idEXIT, self.OnMenuExit)
- wx.EVT_MENU(self, idABOUT, self.OnMenuAbout)
+ self.Bind(wx.EVT_MENU, self.OnMenuOpen, id=idOPEN)
+ self.Bind(wx.EVT_MENU, self.OnMenuSave, id=idSAVE)
+ self.Bind(wx.EVT_MENU, self.OnMenuSaveAs, id=idSAVEAS)
+ self.Bind(wx.EVT_MENU, self.OnMenuClear, id=idCLEAR)
+ self.Bind(wx.EVT_MENU, self.OnMenuExit, id=idEXIT)
+ self.Bind(wx.EVT_MENU, self.OnMenuAbout, id=idABOUT)