| Canvases |
|
|
Canvases are named after artists' canvases. They are meant to be a blank subwindow on which you can put almost anything. The things you put on a canvas are called items. Items can be any of the Tk widgets as well as some geometric figures: lines, curves, rectangles, ovals, and polygons. Canvases can be set up so that users can drag some of their items around with a mouse. There is a mechanism for generating a postscript image of a canvas but it does not reproduce other widgets that that have been loaded into the canvas. This chapter develops a rather complicated script which permits you to experiment with the geometric figures that canvas widgets support. The third section describes how to use the script. Later in the twelfth section, you will find three three exercises devoted solely to the implementation of this script.
|
Author's Home Page |
|
Order from Amazon. |