MCPcopy
hub / github.com/PyQt5/PyQt / showAnimation

Method showAnimation

Demo/WindowNotify.py:111–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 return self
110
111 def showAnimation(self):
112 print("showAnimation isShow = True")
113 # 显示动画
114 self.isShow = True
115 self.animation.stop() # 先停止之前的动画,重新开始
116 self.animation.setStartValue(self.pos())
117 self.animation.setEndValue(self._endPos)
118 self.animation.start()
119 # 弹出5秒后,如果没有焦点则弹回去
120 self._timer.start(self._timeout)
121
122 # QTimer.singleShot(self._timeout, self.closeAnimation)
123

Callers 1

WindowNotify.pyFile · 0.45

Calls 2

stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected