""" Some tests of the Snail class. DO NOT PUT YOUR SOLUTION TO THE LAB IN THIS FILE. """ from graphics import * from snail import * def main(): window = GraphWin("sample", 500, 500) snail1 = Snail(Point(250, 250), 50) snail1.setFill("blue") snail1.draw(window) #click to continue window.getMouse() snail1.setFill("yellow") snail1.move(50, 0) #click to continue window.getMouse() snail2 = snail1.clone() snail2.setFill("blue") snail2.move(-200, 0) snail2.draw(window) #click to continue window.getMouse() # get the circle representing the pupil of the eye in the # front of the snail (the lower down one further to the right) pupil1 = snail1.front_eye() print "The center of snail1's eye was located at:" print "(%d, %d)" % (pupil1.getCenter().getX(), pupil1.getCenter().getY()) pupil2 = snail2.front_eye() print "The center of snail2's eye was located at:" print "(%d, %d)" % (pupil2.getCenter().getX(), pupil2.getCenter().getY()) main()