Mar-04-2021, 02:05 PM
You should not have sleep commands in a GUI application. They prevent mainloop from running and stop window updates.
Instead of this:
Instead of this:
print("The game will now terminate") time.sleep(3) window_4.destroy()try this
print("The game will now terminate") root.after(3000, quit)You have 9 nearly identical functions. Can you think of a way to make 1 function work for all 9 buttons?