예제 #1
0
 def __init__(self, component, isHorizontal = True):
     PyGUIBase.__init__(self, component)
     DraggableComponent.__init__(self, isHorizontal, not isHorizontal, True)
     self.component.focus = True
     self.component.mouseButtonFocus = True
     self.component.moveFocus = True
     self.component.crossFocus = True
     self.onDragging = self._onDragging
예제 #2
0
 def __init__(self, component, isHorizontal = True):
     PyGUIBase.__init__(self, component)
     DraggableComponent.__init__(self, isHorizontal, not isHorizontal, True)
     self.component.focus = True
     self.component.mouseButtonFocus = True
     self.component.moveFocus = True
     self.component.crossFocus = True
     self.onDragging = self._onDragging
예제 #3
0
 def __init__(self,
              component,
              horzDrag=True,
              vertDrag=True,
              restrictToParent=True):
     Window.__init__(self, component)
     DraggableComponent.__init__(self, horzDrag, vertDrag, restrictToParent)
     component.script = self
     self.onBeginDrag = self._onBeginDrag
예제 #4
0
 def handleMouseButtonEvent(self, comp, event):
     PyGUIBase.handleMouseButtonEvent(self, comp, event)
     slider = self.component.parent.script
     if event.key == Keys.KEY_LEFTMOUSE:
         if event.isKeyDown() and not slider.thumbPressed:
             slider.thumbPressed = True
         elif not event.isKeyDown() and slider.thumbPressed:
             slider.thumbPressed = False
     slider._updateVisualState(hover=True)
     return DraggableComponent.handleMouseButtonEvent(self, comp, event)
예제 #5
0
 def handleMouseButtonEvent(self, comp, event):
     PyGUIBase.handleMouseButtonEvent(self, comp, event)
     slider = self.component.parent.script
     if event.key == Keys.KEY_LEFTMOUSE:
         if event.isKeyDown() and not slider.thumbPressed:
             slider.thumbPressed = True
         elif not event.isKeyDown() and slider.thumbPressed:
             slider.thumbPressed = False
     slider._updateVisualState(hover=True)
     return DraggableComponent.handleMouseButtonEvent(self, comp, event)
예제 #6
0
 def onLoad(self, dataSection):
     DraggableComponent.onLoad(self, dataSection)
     Window.onLoad(self, dataSection)
예제 #7
0
 def handleMouseButtonEvent(self, comp, event):
     return DraggableComponent.handleMouseButtonEvent(self, comp, event)
예제 #8
0
 def onLoad(self, dataSection):
     DraggableComponent.onLoad(self, dataSection)
     Window.onLoad(self, dataSection)
예제 #9
0
 def handleMouseButtonEvent(self, comp, event):
     return DraggableComponent.handleMouseButtonEvent(self, comp, event)
예제 #10
0
 def __init__(self, component, horzDrag = True, vertDrag = True, restrictToParent = True):
     Window.__init__(self, component)
     DraggableComponent.__init__(self, horzDrag, vertDrag, restrictToParent)
     component.script = self
     self.onBeginDrag = self._onBeginDrag