示例#1
0
 def __init__(self, parent=None):
     StackPanel.__init__(self, parent)
     self.tabStop = False
     self.orientation = 'Horizontal'
     self.lastFocus = None
     self.bind('Child Visible Change',
               self.__onChildVisibleChange,
               postevent=False)
示例#2
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
示例#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)
     self.orientation = 'Horizontal'
     self.autosize = True
示例#5
0
 def __init__(self, parent=None):
     StackPanel.__init__(self, parent)
     self.orientation = 'Horizontal'
     self.bgColor = color.lightgray
     self.clip = False
     self.press = False
示例#6
0
 def __init__(self, parent=None):
     StackPanel.__init__(self, parent)
     GroupBase.__init__(self)
     self.autosize = True
示例#7
0
 def __init__(self, parent=None):
     StackPanel.__init__(self, parent)
     self.orientation = 'Horizontal'
     self.autosize = True
示例#8
0
 def __init__(self, parent = None):
     StackPanel.__init__(self, parent, autofix = False)
     self.orientation = 'Horizontal'
示例#9
0
 def __init__(self, parent = None):
     StackPanel.__init__(self, parent)
     self.tabStop = False
     self.orientation = 'Horizontal'
     self.lastFocus = None
     self.bind('Child Visible Change', self.__onChildVisibleChange, postevent = False)
示例#10
0
 def __init__(self, parent=None):
     StackPanel.__init__(self, parent, autofix=False)
     self.orientation = 'Horizontal'
示例#11
0
 def __init__(self, parent=None):
     StackPanel.__init__(self, parent)
     self.orientation = "Horizontal"
     self.bgColor = color.lightgray
     self.clip = False
     self.press = False
示例#12
0
 def __init__(self, parent=None):
     StackPanel.__init__(self, parent)
     GroupBase.__init__(self)
     self.autosize = True