Python / Tkinter: Turn on / off screen updates like wxPython Freeze / Thaw?

Does Tkinter provide the ability to temporarily turn off screen updates (when performing a large number of actions on the screen), and then enable screen updates when user interface updates are completed? Many graphical interfaces have this feature. wxPython provides Freeze and Thaw methods for this function. Windows Win32api also supports this through LockWindowUpdate (hWnd | 0). Googling on "tkinter freeze thaw" and "tkinter lockwindowupdate" emtpy appeared.

+1
source share
1 answer

No, Tkinter has no such thing. However, the screen is refreshed only through an event loop, so if all of your “large amount of screen activity” occurs in a single method, none of these actions will be displayed until your method completes and the event loop repeats entered (or you explicitly call .update_idletasks())

+1
source

Source: https://habr.com/ru/post/1532336/


All Articles