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

Method onStart

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

isRunningMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected