MCPcopy Index your code
hub / github.com/PyQt5/PyQt / doClose

Method doClose

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

Source from the content-addressed store, hash-verified

47 self.animation.start()
48
49 def doClose(self):
50 self.animation.stop()
51 self.animation.finished.connect(self.close) # 动画完成则关闭窗口
52 # 透明度范围从1逐渐减少到0
53 self.animation.setStartValue(1)
54 self.animation.setEndValue(0)
55 self.animation.start()
56
57
58if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected