DrawingWindows are used for displaying graphical information to the user. For example, the code in ps3, ps12 and p13 all make use of the DrawingWindow feature. You can open as many DrawingWindows as you want. Open one with something like:

window = DrawingWindow(400,400,0,10,0,20,"MyWindow")

This will make a new window with a drawable area of 400x400, and set the coordinate frame of the window to run from x=0 to x=10 and y=0 to y=20. It will also title the window MyWindow. There are several methods one can now use to draw on the window: All of these methods return an integer specifying the internal id of the item drawn on the window. This is useful for deleting certain things without clearing the whole window. for example, if you draw a line segment and want to delete it later, use code like the following:

id = window.drawLineSeg(0,0,10,10)
...
window.delete(id)

If what you want is to clear the whole window, call clear:

window.clear()