Exemple #1
0
 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())
Exemple #2
0
 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())
Exemple #3
0
 def showMenu(self, ev):
  if self.list.get_count() == 0: return
  self.PopupMenu(menus.dmPanelMenu(self), ev.GetPosition())
Exemple #4
0
 def showMenu(self, ev):
     if self.list.get_count() == 0: return
     self.PopupMenu(menus.dmPanelMenu(self), ev.GetPosition())