(self)
| 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) |