MCPcopy Index your code
hub / github.com/PyQt5/PyQt / initAnimation

Method initAnimation

QPropertyAnimation/RlatticeEffect.py:95–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 self.circleColor = QColor(156, 217, 249)
94
95 def initAnimation(self):
96 # 属性动画
97 if not hasattr(self, "xanimation"):
98 self.xanimation = QPropertyAnimation(
99 self, b"x", self, easingCurve=QEasingCurve.InOutSine
100 )
101 self.xanimation.valueChanged.connect(self.valueChanged.emit)
102 self.yanimation = QPropertyAnimation(
103 self, b"y", self, easingCurve=QEasingCurve.InOutSine
104 )
105 self.yanimation.valueChanged.connect(self.valueChanged.emit)
106 self.yanimation.finished.connect(self.updateAnimation)
107 self.updateAnimation()
108
109 def updateAnimation(self):
110 self.xanimation.stop()

Callers 1

animateMethod · 0.45

Calls 1

updateAnimationMethod · 0.95

Tested by

no test coverage detected