def onKey(self, key): if key == "ALT": self.onCancel() return True if menuOnKey(self, key): return True return PopupBase.onKey(self, key)
def onKey(self, key): if key == 'ALT': self.onCancel() return True if menuOnKey(self, key): return True return PopupBase.onKey(self, key)
def __init__(self, parent=None): StackPanel.__init__(self, parent) PopupBase.__init__(self) self.clip = False self.visible = False self.autosize = True self.autofit = True self.expandImg = '' self.upImg = '' self.downImg = '' self.expandMargin = 26, 1, 2, 2 self.bind('Mouse Down', self.onMouseDown) self.bind('Mouse RDown', self.onMouseDown) self.bindCmd('Menu Return', self.modalRet) self.bind('Mouse Wheel', self.scroll) self.highLit = 'Empty' self.autoDirty(['sightRect', 'highLit']) self.subMenuIndent = 20 self.subMenuOffsetIdx = 0 # command routing self.cmdPath = None
def __init__(self, parent=None): StackPanel.__init__(self, parent) PopupBase.__init__(self) self.clip = False self.visible = False self.autosize = True self.autofit = True self.expandImg = "" self.upImg = "" self.downImg = "" self.expandMargin = 26, 1, 2, 2 self.bind("Mouse Down", self.onMouseDown) self.bind("Mouse RDown", self.onMouseDown) self.bindCmd("Menu Return", self.modalRet) self.bind("Mouse Wheel", self.scroll) self.highLit = "Empty" self.autoDirty(["sightRect", "highLit"]) self.subMenuIndent = 20 self.subMenuOffsetIdx = 0 # command routing self.cmdPath = None
def _fireCmd(self, cmd, *arg): return PopupBase._fireCmd(self, cmd, *arg)
def _invokeCmd(self, cmd, *arg): return PopupBase._invokeCmd(self, cmd, *arg)