Next / Previous / Contents / Shipman's homepage

5. The module

Here we begin the literate exposition of the actual code. First is a prologue directing the reader back to this documentation.
""" FontSelect, a font selector widget for Tkinter.

  Do not edit this file directly.  It is mechanically extracted
  from the documentation:

5.1. Imported modules
# - - - - -   I m p o r t s

The Tkinter module is imported using the shorter name tk.
import Tkinter as tk

The tkFont module provides font-related functions.
import tkFont

The Dialog module provides facilities for popup dialog boxes.
import Dialog

We also use a ScrolledList widget, described elsewhere, to hold the list of families and its associated scrollbar. See ScrolledList: A Tkinter scrollable list widget.
import scrolledlist