def show(self): self.scale(0.0, 0.0) self.animation.setPosAt(0.0, QPointF(self.matrix.dx()+self.boundingRect().width()/8, self.matrix.dy()+self.boundingRect().height()/8)) self.animation.setPosAt(1.0, QPointF(self.matrix.dx(), self.matrix.dy())) self.animation.setScaleAt(0.0, 0.25, 0.25) self.animation.setScaleAt(1.0, 0.5, 0.5) self.timeline.start() QGraphicsSvgItem.show(self)
def show(self): self.scale(0.0, 0.0) self.animation.setPosAt( 0.0, QPointF(self.matrix.dx() + self.boundingRect().width() / 8, self.matrix.dy() + self.boundingRect().height() / 8)) self.animation.setPosAt(1.0, QPointF(self.matrix.dx(), self.matrix.dy())) self.animation.setScaleAt(0.0, 0.25, 0.25) self.animation.setScaleAt(1.0, 0.5, 0.5) self.timeline.start() QGraphicsSvgItem.show(self)