def __init__(self, startFrame, frames): QGraphicsRectItem.__init__(self) self.setRect(startFrame * frameWidth, 0, frames * frameWidth, trackHeight) self.setBrush(self.fill) self.pen.setWidth(2) self.setPen(self.pen)
def __init__(self,element): QGraphicsRectItem.__init__(self) self.setFlag(QGraphicsItem.ItemIsMovable,True) self.setFlag(QGraphicsItem.ItemIsSelectable,True) self.setRect(50,50,50,50) self.setAcceptTouchEvents(True) self.setActive(True) self.setEnabled(True) self.GraphicsElement=element
def __init__(self, x, y, w, h): QGraphicsRectItem.__init__(self, x, y, w, h)