How can I force ttk to update the screen? I'm running a long loop and would like to display some interim results, but ttk waits until it finishes the loop to update the screen.
I tried inserting sleep and after calls in the loop, but that didn't help.
update_idletasks() appears to be the answer. For example adding
relevant_widget.update_idletasks()
in the loop works.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.