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

Method leaveEvent

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

Source from the content-addressed store, hash-verified

48 self._animation.start()
49
50 def leaveEvent(self, event):
51 super(ZoomButton, self).leaveEvent(event)
52 self._animation.stop() # 停止动画
53 # 修改动画的开始值
54 self._animation.setStartValue(self._rect)
55 # 修改动画的终止值
56 self._animation.setEndValue(self._geometry)
57 self._animation.start()
58
59 def mousePressEvent(self, event):
60 self._animation.stop() # 停止动画

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected