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

Method showEvent

QtWinExtras/ThumbnailToolBar.py:81–85  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

79 self.toolBtnControl.setIcon(self.style().standardIcon(QStyle.SP_MediaPlay))
80
81 def showEvent(self, event):
82 super(Window, self).showEvent(event)
83 if not self.toolBar.window():
84 # 必须等窗口显示后设置才有效,或者通过软件流程在适当的时候设置也可以
85 self.toolBar.setWindow(self.windowHandle())
86
87
88if __name__ == '__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected