Chapter six introduces event-driven programming. In an event-driven program, the program goes to an event queue to find the next event and then calls some code to process that event. Graphical User Interface (GUI) programs operate like this. Chapter six introduces event-driven programming using Tkinter, a graphical user interface library for Python programmers.
A widget is a GUI element that can be placed on the user interface of a windowing program. Tkinter includes support for many widgets including buttons, text boxes, frames, and labels. Layout is another important aspect of GUI programs. This chapter provides examples on how to use these widgets and layout directives. It provides a demonstration of the ideas through the development of a reminder application.