Timer component questions

That was the whole message :upside_down_face:

If you need a bit more here’s some pseudo code

self.total_time = 60 # num seconds from code 
self.timer.interval = 1 # the timer will tick every 1 second
# make sure you’ve set the timer tick event in design view

def timer_tick(self, **event_args):
  if self.total_time <= 0:
    self.timer.interval = 0
  print(self.total_time)
  self.total_time -= 1

1 Like