示例#1
0
 def __init__(self, component):
     PyGUIBase.__init__(self, component)
     VisualStateComponent.__init__(self, component, Slider.visualStateString)
     component.script = self
     self.isHorizontal = True
     self.minValue = 0.0
     self.maxValue = 1.0
     self.stepSize = 0.1
     self._value = 0.0
     self.thumbPressed = False
     self.sliderDisabled = False
     self.component.focus = True
     self.component.mouseButtonFocus = True
     self.component.crossFocus = True
     self.component.moveFocus = True
     self.onValueChanged = lambda : None
示例#2
0
 def __init__(self, component):
     PyGUIBase.__init__(self, component)
     VisualStateComponent.__init__(self, component, Slider.visualStateString)
     component.script = self
     self.isHorizontal = True
     self.minValue = 0.0
     self.maxValue = 1.0
     self.stepSize = 0.1
     self._value = 0.0
     self.thumbPressed = False
     self.sliderDisabled = False
     self.component.focus = True
     self.component.mouseButtonFocus = True
     self.component.crossFocus = True
     self.component.moveFocus = True
     self.onValueChanged = lambda : None
示例#3
0
 def __init__(self, component):
     PyGUIBase.__init__(self, component)
     VisualStateComponent.__init__(self, component, Button.visualStateString)
     component.script = self
     self.component.focus = True
     self.component.mouseButtonFocus = True
     self.component.moveFocus = True
     self.component.crossFocus = True
     self.buttonStyle = Button.PRESSBUTTON_STYLE
     self.buttonPressed = False
     self.buttonActive = False
     self.buttonDisabled = False
     self.groupName = ''
     self.groupDepth = 1
     self.hovering = False
     self.onClick = lambda : None
     self.onActivate = lambda : None
     self.onDeactivate = lambda : None
示例#4
0
 def __init__(self, component):
     PyGUIBase.__init__(self, component)
     VisualStateComponent.__init__(self, component, Button.visualStateString)
     component.script = self
     self.component.focus = True
     self.component.mouseButtonFocus = True
     self.component.moveFocus = True
     self.component.crossFocus = True
     self.buttonStyle = Button.PRESSBUTTON_STYLE
     self.buttonPressed = False
     self.buttonActive = False
     self.buttonDisabled = False
     self.groupName = ''
     self.groupDepth = 1
     self.hovering = False
     self.onClick = lambda : None
     self.onActivate = lambda : None
     self.onDeactivate = lambda : None