Example #1
0
 def __init__(self, parent = None):
     QDeclarativeItem.__init__(self, parent)
     self._name = u''
     self._slices = []
     self._sum = 0
Example #2
0
 def __init__(self, parent = None):
     QDeclarativeItem.__init__(self, parent)
     # need to disable this flag to draw inside a QDeclarativeItem
     self.setFlag(QGraphicsItem.ItemHasNoContents, False)
     self._value = 0
     self.valueChanged.connect(self.needUpdate)
 def __init__(self, parent = None):
     QDeclarativeItem.__init__(self, parent)
     #self.movingPath = DictListModel([{"1": 2}])
     self.movingPath = [1, 2, 3]