Next / Previous / Contents / TCC Help System / NM Tech homepage

5. Prologue to the pageturner.py module

The balance of this document describes the actual code of the pageturner.py 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 its
  documentation file.  See:
    http://www.nmt.edu/tcc/help/lang/python/examples/pageturner/
"""

Next is the obligatory importation of the Tkinter module.

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

from Tkinter import *