whats the prefered (and stable) way to build menus and its event-handling ?
look at the source-comments
#some code within a wxFrame
menuBar = wxMenuBar()
self.SetMenuBar( menuBar )
menu = wxMenu()
menu.Append(ID_FILE_NEW_INSTANCE,"&New", "Start New Instance")
menu.Append(ID_FILE_OPEN, "&Open Device List", "Open Device List")
menu.Append(ID_FILE_SAVE, "&Save Device List", "Save Device List")
###### CALL EVT_MENU before menuBar.Append(...) ???
EVT_MENU(self, ID_FILE_NEW_INSTANCE, self.OnFileNewInstance)
EVT_MENU(self, ID_FILE_OPEN, self.OnFileOpen)
EVT_MENU(self, ID_FILE_SAVE, self.OnFileSave)
###### or is it better to call menuBar.Append before EVT_MENU takes place
???
menuBar.Append(menu, "&File")
thanks for your answer