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

4.1. Imports

Here are the module imports for this script. First is the standard Python math module.

huey
import math

We'll need the os.path module to do file name manipulation.

huey
import os

All the Tkinter GUI package is added directly to the global namespace. The tkFont module is necessary to select fonts. The Dialog module makes it easy to create pop-up menus.

huey
from Tkinter import *
import tkFont
from Dialog import Dialog

ScrolledList is a compound widget, a combination of a Listbox and a vertical Scrollbar. For its documentation, see ScrolledList: A Tkinter scrollable list widget.

huey
from scrolledlist import ScrolledList

The other compound widget described elsewhere is FontSelect: a group of controls for selecting and displaying fonts. For documentation, see FontSelect: A Tkinter widget to select fonts.

huey
from fontselect import FontSelect