(self)
| 322 | self.counter_button.label = f"Clicked {self.counter} times" |
| 323 | |
| 324 | def timer_callback(self): |
| 325 | self.timer = None |
| 326 | if self.running: |
| 327 | self.progress_bar.fraction += 0.01 |
| 328 | if self.progress_bar.fraction < 1: |
| 329 | self.timer = threading.Timer(0.05, self.timer_callback) |
| 330 | self.timer.start() |
| 331 | |
| 332 | def start_stop(self): |
| 333 | if self.running: |