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

Method doShow

QPropertyAnimation/FadeInOut.py:37–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 self.doShow()
36
37 def doShow(self):
38 try:
39 # 尝试先取消动画完成后关闭窗口的信号
40 self.animation.finished.disconnect(self.close)
41 except:
42 pass
43 self.animation.stop()
44 # 透明度范围从0逐渐增加到1
45 self.animation.setStartValue(0)
46 self.animation.setEndValue(1)
47 self.animation.start()
48
49 def doClose(self):
50 self.animation.stop()

Callers 1

__init__Method · 0.95

Calls 2

stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected