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

Method onTimerOut

QTableWidget/TableWidget.py:95–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93 self.count = 0
94
95 def onTimerOut(self): # 重写timerEvent
96 self.count += 1
97 if self.count >= 100: # value >= 100时,停止计时器
98 self.timer.stop()
99 print("结束")
100 # self.progressBar.setValue(self.step)
101 else:
102 print(self.count)
103 self.progressBar.setValue(self.count)
104 # return
105 # self.step += 1
106
107
108if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected