line line(ptpoint( )line draw(wina line object is constructed with two points as parameters in this case we use the previously named pointptand specify another point directly technically the line object is segment between the the two points warningin python ( is tuplenot point to make pointyou must use the full constructorpoint( pointsnot tuplesmust be used in the constructors for all graphics objects rectangle is also specified by two points the points must be diagonally opposite corners press returnrect rectangle(point( )ptrect draw(winin this simple systema rectangle is restricted to have horizontal and vertical sides polygonintroduced in the next sectionis used for all more general straight-sided shapes you can move objects around in graphwin shortly this will be handy for animation the parameters to the move method are the amount to shift the and coordinates see if you can guess the result before you press returnline move( did you remember that the coordinate increases down the screentake your last look at the graphics windowand make sure that all the steps make sense then destroy the window win with the graphwin method close press returnwin close(the example program graphintro py starts with the same graphics code as graphintosteps pybut without the need for pressing returns an addition have made to zelle' package is the ability to print string value of graphics objects for debugging purposes if some graphics object isn' visible because it is underneath something else of off the screentemporarily adding this sort of output might be good reality check at the end of graphintro pyi added print lines to illustrate the debugging possibilitiesprint('cir:'cirprint('line:'lineprint('rect:'rectyou can load graphintro py into idlerun itand add further lines to experiment if you like of course you will not see their effect until you run the whole programunfortunately the graphics do not work when entered directly into the shell sample graphics programs in graphintro pya prompt to end the graphics program appeared in the shell windowrequiring you to pay attention to two windows instead consider very simple example programface pywhere all the action takes place in the graphics window the only interaction is to click the mouse to close the graphics window objects and methods