The tkinter module is the most commonly used graphics library in Python. The turtle and the Zelle graphics library are extensions of tkinter. The tkinter module is based upon the Unix graphics took kit known as “tk”. The “tk” was first released in 1991 and has grown to become a cross platform framework for creating Graphical User Interfaces (GUI).

Objectives

Upon completion of this chapter’s exercises, you should be able to:

  • Define the term Graphical User Interface.
  • Describe the concept of the mainloop.
  • Create a simple GUI with labels, text entry fields, and buttons.
  • Construct functions to handle button click events and to process form data.
  • Design forms with the layout methods of pack and grid.
  • Display common dialogs.
Download PDF of Chapter