Lines Matching refs:shortcut
515 label, shortcut, callback, kind = menu.items[i]
563 def additem(self, label, shortcut=None, callback=None, kind=None): argument
565 self.items.append((label, shortcut, callback, kind))
571 if shortcut and type(shortcut) == type(()):
572 modifiers, char = shortcut[:2]
575 if len(shortcut) > 2:
576 self.menu.SetMenuItemKeyGlyph(item, shortcut[2])
577 elif shortcut:
578 self.menu.SetItemCmd(item, ord(shortcut))
587 def addcheck(self, label, shortcut=None, callback=None): argument
588 return self.additem(label, shortcut, callback, 'check')
590 def addradio(self, label, shortcut=None, callback=None): argument
591 return self.additem(label, shortcut, callback, 'radio')
606 title, shortcut, callback, mtype = self.items[item-1]
665 def __init__(self, menu, title, shortcut=None, callback=None, kind=None): argument
666 self.item = menu.additem(title, shortcut, callback)
700 def __init__(self, menu, title, shortcut=None, callback=None): argument
701 MenuItem.__init__(self, menu, title, shortcut, callback, 'radio')
704 def __init__(self, menu, title, shortcut=None, callback=None): argument
705 MenuItem.__init__(self, menu, title, shortcut, callback, 'check')