How to Install Zelle’s Graphics Library
Rose-Hulman Institute of Technology –
Computer Science & Software Engineering
Overview
Follow these directions to download the graphics library for John Zelle’s
Python Programming: an Introduction to Computer Science
and configure it on Windows.
Installing Zelle’s Graphics Library
-
Check that Python has been installed on your laptop by looking for the directory
C:\Program Files\Python25.
If Python is not installed, then follow these instructions to install it.
-
Download the graphics modules and documentation in
this zip file.
-
Extract the zip file using whatever tool you use for that on your laptop.
-
Move the file
zellegraphics.py
to the directory
C:\Program Files\Python25\Lib\site-packages
Potential “gotchas” (1) That is Lib not libs in the path. (2) if you installed Python in a different location than Program Files\Python25 you’ll need to find your Python25\Lib\site-packages folder.
-
Also included is a file containing documentation for the graphics library. This file is called
zellegraphics.pdf. Move that file to a place where it will be easy to find. We suggest
My Documents → Courses → CSSE 120.
-
To verify your installation:
-
Launch IDLE by clicking
Start → All Programs → Python 2.5 → IDLE (Python GUI)
-
At the prompt type:
from zellegraphics import *
-
If you do not get an error message, then the installation was successful.