MCPcopy Index your code
hub / github.com/PyQt5/PyQt / onStart

Method onStart

QThread/moveToThread.py:55–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 self._worker.valueChanged.connect(self.progressBar.setValue)
54
55 def onStart(self):
56 if not self._thread.isRunning():
57 print('main id', QThread.currentThread())
58 self._thread.start() # 启动线程
59
60 def closeEvent(self, event):
61 if self._thread.isRunning():

Callers

nothing calls this directly

Calls 2

isRunningMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected