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

Method enterEvent

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

Source from the content-addressed store, hash-verified

39 self.updatePos()
40
41 def enterEvent(self, event):
42 super(ZoomButton, self).enterEvent(event)
43 self._animation.stop() # 停止动画
44 # 修改动画的开始值
45 self._animation.setStartValue(self._geometry)
46 # 修改动画的终止值
47 self._animation.setEndValue(self._rect)
48 self._animation.start()
49
50 def leaveEvent(self, event):
51 super(ZoomButton, self).leaveEvent(event)

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected