def showMenuByKey(self, ev): if self.list.get_count() == 0: return if ev.GetKeyCode() == wx.WXK_WINDOWS_MENU: if self.name_buffer == "sent": self.PopupMenu(menus.sentPanelMenu(self), self.list.list.GetPosition()) else: self.PopupMenu(menus.basePanelMenu(self), self.list.list.GetPosition())
def showMenu(self, ev): if self.list.get_count() == 0: return if self.name_buffer == "sent": self.PopupMenu(menus.sentPanelMenu(self), ev.GetPosition()) else: self.PopupMenu(menus.basePanelMenu(self), ev.GetPosition())