Exemple #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
Exemple #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
Exemple #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
Exemple #4
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