MCPcopy Create free account
hub / github.com/PyQt5/PyQt / mousePressEvent

Method mousePressEvent

Test/ButtomZoom.py:59–66  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

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
69class Window(QWidget):

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected