(self, *args, **kwargs)
| 20 | class ZoomButton(QPushButton): |
| 21 | |
| 22 | def __init__(self, *args, **kwargs): |
| 23 | super(ZoomButton, self).__init__(*args, **kwargs) |
| 24 | self._animation = QPropertyAnimation( |
| 25 | self, b'geometry', self, duration=200) |
| 26 | |
| 27 | def updatePos(self): |
| 28 | # 记录自己的固定的geometry值 |