(self, event)
| 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 | |
| 88 | if __name__ == '__main__': |
nothing calls this directly
no outgoing calls
no test coverage detected