graphics.py

A small teaching library by John Zelle, built on tkinter, for drawing shapes, text and entry boxes in a window.

In more detail

It is not part of the standard library: the file graphics.py must sit in the same folder as your program, or elsewhere on the module search path. Every program follows one shape: create a GraphWin, create shapes, draw them, wait for a click, close the window.

Example

from graphics import *
win = GraphWin("Demo", 300, 200)

Related terms

Taught in

References