I want to change the background color over time (E.g. red-> 0.5 seconds later-> blue,like animation)
I tried like this. but didn't I wanted, and it immediately came out black.
I put the main loop in front, but it didn't work until. what should I do?
import tkinter
window=tkinter.Tk()
window.title("COLOR")
window.geometry("640x400+100+100")
window.resizable(False, False)
window.configure(bg="red")
window.after(50)
window.configure(bg="blue")
window.after(50)
window.configure(bg="green")
window.after(50)
window.configure(bg="black")
window.after(50)
window.mainloop()