示例#1
0
    def __init__(self, node, parent=None):
        ScalableLabel.__init__(self, parent)
        NodeWidget.__init__(self, node)

        self.setMouseTracking(True)

        self._mouse_ini_pos = None
        self._select_rect = QRect()

        self.notify(node, ("input_modified", 0))
示例#2
0
    def paintEvent(self, event):
        ScalableLabel.paintEvent(self, event)

        if self._select_rect is not None:
            painter = QPainter(self)
            pen = QPen(QColor(255, 255, 255))
            pen.setDashPattern([5, 5])
            painter.setPen(pen)
            painter.drawRect(self._select_rect)
            pen.setColor(QColor(0, 0, 0))
            pen.setDashOffset(5.)
            painter.setPen(pen)
            painter.drawRect(self._select_rect)
            painter.end()
	def __init__ (self, parent = None) :
		ScalableLabel.__init__(self,parent)
		self.setMouseTracking(True)

		self._last_mouse_pos = None
    def __init__(self, parent=None):
        ScalableLabel.__init__(self, parent)
        self.setMouseTracking(True)

        self._last_mouse_pos = None