+ # only do this part the first time
+ if not hasattr(self, "popupID1"):
+ self.popupID1 = wxNewId()
+ self.popupID2 = wxNewId()
+ self.popupID3 = wxNewId()
+ self.popupID4 = wxNewId()
+ self.popupID5 = wxNewId()
+ EVT_MENU(self, self.popupID1, self.OnPopupOne)
+ EVT_MENU(self, self.popupID2, self.OnPopupTwo)
+ EVT_MENU(self, self.popupID3, self.OnPopupThree)
+ EVT_MENU(self, self.popupID4, self.OnPopupFour)
+ EVT_MENU(self, self.popupID5, self.OnPopupFive)
+
+ # make a menu
+ menu = wxMenu()