Progress bar value is not updating in tk
Do I have to run the update_idletasks method for every widget in the GUI? -- Jeffrey Barish I'm confused about how to use the update_idletasks method.
In myprogram, I have a handler for a button in which execution will linger.
However,if I cover the GUI with some other window and then expose it again, the GUI does not refresh until the handler finishes (except for the Message Bar). Or isit impossible to get the GUI to refresh in this situation?
Ifigured out that if I run update_idletasks on that Message Bar, then the Message Bar will update the display as I update the message.
update_idletasks gives it a chance to handle other events. Typically a long-running task should be run as a separate background thread (or even a separate process).
The difficulty is that background threads cannot safely interact with GUI elements, so how does the thread communicate?
HTH -- - Eric Brunel I'm confused about how to use the update_idletasks method.
There is apparently no simple way of updating the display of newly created toplevel's on Windows without returning full control to the GUI (at least with tk/Tkinter) I never saw the problem you describe (some windows refreshing, some not), but I mainly develop on Linux, which may show a different behaviour than the platform you're working on (which BTW you don't mention...). However, that is not the behavior that I am seeing.