(self, event)
| 57 | self._animation.start() |
| 58 | |
| 59 | def mousePressEvent(self, event): |
| 60 | self._animation.stop() # 停止动画 |
| 61 | # 修改动画的开始值 |
| 62 | self._animation.setStartValue(self._rect) |
| 63 | # 修改动画的终止值 |
| 64 | self._animation.setEndValue(self._geometry) |
| 65 | self._animation.start() |
| 66 | super(ZoomButton, self).mousePressEvent(event) |
| 67 | |
| 68 | |
| 69 | class Window(QWidget): |