# 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(): window = 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 right_o.move(160,0) # moving 160 pixels to the right left_o.draw(window) # drawing left oval right_o.draw(window) # drawing right oval window.getMouse() window.close() main()