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

Method onTimeout

QProgressBar/SimpleStyle.py:65–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 self.timer.start(randint(1, 3) * 1000)
64
65 def onTimeout(self):
66 if self.value() >= 100:
67 self.timer.stop()
68 self.timer.deleteLater()
69 del self.timer
70 return
71 self.setValue(self.value() + 1)
72
73
74class Window(QWidget):

Callers

nothing calls this directly

Calls 4

valueMethod · 0.80
deleteLaterMethod · 0.80
setValueMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected