예제 #1
0
 def __init__(self, parent=None):
     QQuickPaintedItem.__init__(self, parent)
     self._circles = []
     self._timer = QTimer()
     QObject.connect(self._timer, SIGNAL('timeout()'), self,
                     SLOT('requestSpecialUpdate()'))
     self._speedRatio = 1.0
     self._timerInterval = 25 * self._speedRatio
     self._label = ''
    def __init__(self, parent=None):
        QQuickPaintedItem.__init__(self, parent)

        self._visualizer = PlumbingVisualizer(parent=self)

        # Configures item for tracking the mouse and handling mouse events
        self.setAcceptedMouseButtons(Qt.LeftButton)
        self.setAcceptHoverEvents(True)

        self.heightChanged.connect(self._visualizer.setRescaleNeeded)
        self.widthChanged.connect(self._visualizer.setRescaleNeeded)

        self.paint = self._visualizer.paint
예제 #3
0
 def __init__(self, parent=None):
     QQuickPaintedItem.__init__(self, parent)
     self._oroborusFlag = True
     self._cycleFlag = True
     self._radius = 100
     self._borderOffset = 15
     self._digitsList = []
     self._scale = 0
     self._posX = 0
     self._posY = 0
     self._speedRatio = 1.0
     self._timerInterval = 25 * self._speedRatio
     self._animationIndex = 0
     self._timer = QTimer()
     QObject.connect(self._timer, SIGNAL('timeout()'), self,
                     SLOT('requestSpecialUpdate()'))
     self._dotColor = QColor(Qt.green)
     self._lineWidth = 1
     self._lineColor = QColor(Qt.black)
예제 #4
0
 def __init__(self, parent=None):
     QQuickPaintedItem.__init__(self, parent)
     self._color = QColor()
     self._fromAngle = 0
     self._angleSpan = 0
예제 #5
0
 def __init__(self, parent = None):
     QQuickPaintedItem.__init__(self, parent)
     self._name = u''
예제 #6
0
 def __init__(self, parent = None):
     QQuickPaintedItem.__init__(self, parent)
     self._name = u''
     self._color = QColor()
예제 #7
0
 def __init__(self, parent = None):
     QQuickPaintedItem.__init__(self, parent)
     self._color = None
예제 #8
0
 def __init__(self, parent = None):
     QQuickPaintedItem.__init__(self, parent)
     self._color = QColor()
     self._fromAngle = 0
     self._angleSpan = 0
예제 #9
0
 def __init__(self, parent=None):
     QQuickPaintedItem.__init__(self, parent)
     self.myColor = QColor()