May 2018
Beginner to intermediate
452 pages
11h 26m
English
Whenever you interact with a Tkinter UI—whether it's clicking a button, typing in a field, or raising a window, for example—the response is not executed immediately in-place. Instead, these actions are placed in a to-do list, called an event queue, to be handled later while your code execution continues. While these actions seem instant to users, test code cannot count on a requested action being completed before the next line of code.
To solve this problem, we can use these special widget methods that allow us to manage the event queue: