Change: update() -> update_idletasks()

Reading about the differences between update() and update_idletasks() in Tkinter
I considered to usw update_idletasks()