Lecture notes for the Introduction to Computer Science I by James Tam Return to the course web page

Example Programs: QuickDraw

Description

Program name

A program that shows at a minimum the two statements that you must have in any of your Python programs which using QuickDraw

min.py

Drawing basic primitive shapes: determining their location (x, y coordinates) and physical properties (size)

shapes.py
Changing the default color that is currently used by QuickDraw, the default color will be used to color shapes color.py
Passing parameters in conjunction with a program that uses QuickDraw quickdraw_functions.py
Identical to the previous program except that it also illustrates the use of a named constant quickdraw_constants.py
A program that can receive information from QuickDraw (e.g., a mouse click events) by setting up a two way/bi-direction pipe. mouse_events.py