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

Method showEvent

QtWinExtras/TaskbarProgress.py:40–45  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

38 self.setup_ui()
39
40 def showEvent(self, event):
41 super(Window, self).showEvent(event)
42 if not self.taskButton.window():
43 # 必须等窗口显示后设置才有效,或者通过软件流程在适当的时候设置也可以
44 self.taskButton.setWindow(self.windowHandle())
45 self.taskProgress.show()
46
47 def closeEvent(self, event):
48 self.timerProgress.stop()

Callers

nothing calls this directly

Calls 1

showMethod · 0.45

Tested by

no test coverage detected