# file: ovals.py # This program tries to draw two ovals of the same size at # two different places. # from graphics import * # importing graphics library def main(): window1=GraphWin("Drawing two ovals",640,480) left_o=Oval(Point(50,50),Point(90,70)) # creating an object Oval left_o.setOutline("orange") # set border color to orange left_o.setFill("yellow") # set fill color to yellow right_o=left_o.clone() # right_o is exact, but separate copy of left_o right_o.move(160,0) # moving 160 pixels to the right left_o.draw(window1) # drawing left oval right_o.draw(window1) # drawing right oval T = Text(Point(320,450),"Click anywhere to terminate the program.") T.draw(window1) # drawing the text window1.getMouse() # waiting for a mouse click window1.close() # closing graphics window main()