(self)
| 64 | self._thread.valueChanged.connect(self.progressBar.setValue) |
| 65 | |
| 66 | def onStart(self): |
| 67 | print('main id', int(QThread.currentThreadId())) |
| 68 | self._thread.start() # 启动线程 |
| 69 | self.startButton.setEnabled(False) |
| 70 | self.suspendButton.setEnabled(True) |
| 71 | self.stopButton.setEnabled(True) |
| 72 | |
| 73 | def onSuspendThread(self): |
| 74 | if self._thread.handle == -1: |