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

Method show

Demo/WindowNotify.py:103–109  ·  view source on GitHub ↗
(self, title="", content="", timeout=5000)

Source from the content-addressed store, hash-verified

101 self._timer = QTimer(self, timeout=self.closeAnimation)
102
103 def show(self, title="", content="", timeout=5000):
104 self._timer.stop() # 停止定时器,防止第二个弹出窗弹出时之前的定时器出问题
105 self.hide() # 先隐藏
106 self.move(self._startPos) # 初始化位置到右下角
107 super(WindowNotify, self).show()
108 self.setTitle(title).setContent(content).setTimeout(timeout)
109 return self
110
111 def showAnimation(self):
112 print("showAnimation isShow = True")

Callers 1

WindowNotify.pyFile · 0.45

Calls 5

setTitleMethod · 0.95
moveMethod · 0.80
setTimeoutMethod · 0.80
setContentMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected