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

Method __init__

QProgressBar/SimpleStyle.py:58–63  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

56class ProgressBar(QProgressBar):
57
58 def __init__(self, *args, **kwargs):
59 super(ProgressBar, self).__init__(*args, **kwargs)
60 self.setValue(0)
61 if self.minimum() != self.maximum():
62 self.timer = QTimer(self, timeout=self.onTimeout)
63 self.timer.start(randint(1, 3) * 1000)
64
65 def onTimeout(self):
66 if self.value() >= 100:

Callers

nothing calls this directly

Calls 4

randintFunction · 0.85
setValueMethod · 0.80
__init__Method · 0.45
startMethod · 0.45

Tested by

no test coverage detected