Esempio n. 1
0
 def onKey(self, key):
     if key == "ALT":
         self.onCancel()
         return True
     if menuOnKey(self, key):
         return True
     return PopupBase.onKey(self, key)
Esempio n. 2
0
 def onKey(self, key):
     if key == 'ALT':
         self.onCancel()
         return True
     if menuOnKey(self, key):
         return True
     return PopupBase.onKey(self, key)
Esempio n. 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
Esempio n. 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
Esempio n. 5
0
 def _fireCmd(self, cmd, *arg):
     return PopupBase._fireCmd(self, cmd, *arg)
Esempio n. 6
0
 def _invokeCmd(self, cmd, *arg):
     return PopupBase._invokeCmd(self, cmd, *arg)
Esempio n. 7
0
 def _fireCmd(self, cmd, *arg):
     return PopupBase._fireCmd(self, cmd, *arg)
Esempio n. 8
0
 def _invokeCmd(self, cmd, *arg):
     return PopupBase._invokeCmd(self, cmd, *arg)