Пример #1
0
 def onKey(self, key):
     if key == "ALT":
         self.onCancel()
         return True
     if menuOnKey(self, key):
         return True
     return PopupBase.onKey(self, key)
Пример #2
0
 def onKey(self, key):
     if key == 'ALT':
         self.onCancel()
         return True
     if menuOnKey(self, key):
         return True
     return PopupBase.onKey(self, key)
Пример #3
0
    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
Пример #4
0
    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
Пример #5
0
 def _fireCmd(self, cmd, *arg):
     return PopupBase._fireCmd(self, cmd, *arg)
Пример #6
0
 def _invokeCmd(self, cmd, *arg):
     return PopupBase._invokeCmd(self, cmd, *arg)
Пример #7
0
 def _fireCmd(self, cmd, *arg):
     return PopupBase._fireCmd(self, cmd, *arg)
Пример #8
0
 def _invokeCmd(self, cmd, *arg):
     return PopupBase._invokeCmd(self, cmd, *arg)