MCPcopy
hub / github.com/PyQt5/PyQt / onStart

Method onStart

QThread/SuspendThread.py:66–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected