Timer not firing

(split from another topic)

I have same issue, but the Timer component is added in the design view already. The code just doesn’t work. It would be great that you could help

def __init__(self, **properties):
    # Set Form properties and Data Bindings.
    self.init_components(**properties)
     
    # Any code you write here will run when the form opens.
  def timer_1_tick(self, **event_args):
    """This method is called every [interval] seconds. Does not trigger if [interval] is 0."""
    self.label_1.text = "fired"

Make sure you have set the interval in the IDE for the timer, and that you have associated the “timer_1_tick” event handler with the event (again, this is in the IDE towards the bottom) :

image

4 Likes

Thanks, it works.
I was under an impression that when there is the code, nothing else is required in the design view, but it is not the case then.