Enter the event loop until all pending idle callbacks have been called. This updates the display of windows, for example after geometry changes, but does not process events caused by the user.
tkinter/Misc.update_idletasks
Misc.update_idletasks