Next / Previous / Contents / Shipman's homepage

4.1. Imports

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

import math

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

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.

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.

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.

from fontselect import FontSelect