Why Tkinter Function Inserts Text At Text Widget Only After The Function Is Finished?
I have a question to make.If i have a function inserting an item from a list in a text widget and then doing something with that item,it first finishes processing all the items and
Solution 1:
The text widget (and all widgets) are only refreshed when the event loop is entered. While your code is in a loop, no paint events are processed. The simplest solution is to call update_idletasks
to update the screen -- refreshing the screen is considered an "idle" task.
For a little more information, see the answers to the question How do widgets update in Tkinter?
Post a Comment for "Why Tkinter Function Inserts Text At Text Widget Only After The Function Is Finished?"