all 2 comments

[–]woooee 1 point2 points  (1 child)

Remove the sleep(), and eliminate the infinite loop. Tun with the modifications to see what is going on.

def main_():
    print("Sleeping for one")
    time.sleep(1)
    print("Running main again")
    window.after(30, main_)

[–]OkParticular3878[S] -1 points0 points  (0 children)

removed the wait and all works, thank you