MCPcopy
hub / github.com/PyQt5/PyQt / initAnimation

Method initAnimation

QPropertyAnimation/MenuAnimation.py:42–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 QApplication.instance().aboutQt()
41
42 def initAnimation(self):
43 # 按钮动画
44 self._animation = QPropertyAnimation(
45 self._contextMenu, b'geometry', self,
46 easingCurve=QEasingCurve.Linear, duration=300)
47 # easingCurve 修改该变量可以实现不同的效果
48
49 def initMenu(self):
50 self._contextMenu = QMenu(self)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected