Next / Previous / Contents / Shipman's homepage

5. Prologue to the pageturner.py module

The balance of this document describes the actual code of the pageturner.py module, which defines the PageTurner widget.

First there is a brief opening comment, the usual Python documentation string for the module:

pageturner.py
"""pageturner.py: Tkinter widget for viewing a sequence of content pages
  Do not edit this file.  It is extracted automatically from the
  documentation:
    http://www.nmt.edu/~shipman/soft/pageturner/
"""

Next is the obligatory importation of the Tkinter module.

pageturner.py
#================================================================
# Imports
#----------------------------------------------------------------

from Tkinter import *