MCPcopy Create free account
hub / github.com/pyqtgraph/pyqtgraph / start

Method start

pyqtgraph/ThreadsafeTimer.py:24–31  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

22
23
24 def start(self, timeout):
25 isGuiThread = QtCore.QThread.currentThread() == QtCore.QCoreApplication.instance().thread()
26 if isGuiThread:
27 #print "start timer", self, "from gui thread"
28 self.timer.start(int(timeout))
29 else:
30 #print "start timer", self, "from remote thread"
31 self.sigTimerStartRequested.emit(timeout)
32
33 def stop(self):
34 isGuiThread = QtCore.QThread.currentThread() == QtCore.QCoreApplication.instance().thread()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected