(self, *args, **kwargs)
| 24 | class Window(QWidget): |
| 25 | |
| 26 | def __init__(self, *args, **kwargs): |
| 27 | super(Window, self).__init__(*args, **kwargs) |
| 28 | layout = QVBoxLayout(self) |
| 29 | layout.addWidget(QPushButton('test', self)) |
| 30 | self.tmpHwnd = None |
| 31 | # 启动定时器检测记事本的位置大小和是否关闭 |
| 32 | self.checkTimer = QTimer(self, timeout=self.checkWindow) |
| 33 | self.checkTimer.start(10) # 10毫秒比较流畅 |
| 34 | |
| 35 | def checkWindow(self): |
| 36 | # 查找 |