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

Method run

QPushButton/BottomLineProgress.py:42–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 self.totalValue = randint(100, 200) # 模拟最大
41
42 def run(self):
43 for i in range(self.totalValue + 1):
44 if self.isInterruptionRequested():
45 break
46 self.valueChanged.emit(i / self.totalValue)
47 QThread.msleep(randint(50, 100))
48
49
50class PushButtonLine(QPushButton):

Callers

nothing calls this directly

Calls 1

randintFunction · 0.85

Tested by

no test coverage detected