def showMenuByKey(self, ev): if self.list.get_count() == 0: return if ev.GetKeyCode() == wx.WXK_WINDOWS_MENU: self.PopupMenu(menus.dmPanelMenu(self), self.list.list.GetPosition())
def showMenu(self, ev): if self.list.get_count() == 0: return self.PopupMenu(menus.dmPanelMenu(self), ev.GetPosition())