Exemple #1
0
 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())
Exemple #2
0
 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())
Exemple #3
0
 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())
Exemple #4
0
 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())