예제 #1
0
 def __init__(self, parent=None, size=6.0):
     super(BackdropSizer, self).__init__(parent)
     self.setFlag(self.ItemIsSelectable, True)
     self.setFlag(self.ItemIsMovable, True)
     self.setFlag(self.ItemSendsScenePositionChanges, True)
     self.setCursor(QtGui.QCursor(QtCore.Qt.SizeFDiagCursor))
     self.setToolTip('double-click auto resize')
     self._size = size
예제 #2
0
    def __init__(self, parent, controller=None, size=6.0):
        self._size = size

        super().__init__(parent)
        self.setZValue(Z_VAL_NODE_WIDGET)
        self.setFlag(self.ItemIsSelectable, True)
        self.setFlag(self.ItemIsMovable, True)
        self.setFlag(self.ItemSendsScenePositionChanges, True)
        self.setCursor(QtGui.QCursor(QtCore.Qt.SizeFDiagCursor))
        self.setToolTip('double-click auto resize')
        self.controller = controller