MCPcopy Create free account
hub / github.com/PyQt5/PyQt / onSuspendThread

Method onSuspendThread

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

Source from the content-addressed store, hash-verified

71 self.stopButton.setEnabled(True)
72
73 def onSuspendThread(self):
74 if self._thread.handle == -1:
75 return print('handle is wrong')
76 ret = SuspendThread(self._thread.handle)
77 print('挂起线程', self._thread.handle, ret)
78 self.suspendButton.setEnabled(False)
79 self.resumeButton.setEnabled(True)
80
81 def onResumeThread(self):
82 if self._thread.handle == -1:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected