# File: ChapterAnimation/move0.py # Red Ball moves on the screen from graphics import * def main(): win = GraphWin( "Moving Red Ball R=25" , 500,500 ) ball = Circle( Point(100,100), 15 ) ball.setFill( "red" ) ball.draw( win ) deltaX, deltaY = 100,250 #vector for move #wait for click to move message=Text(Point(400,400),"click to move") message.draw(win) win.getMouse() ball.undraw() #undraw old object ball.move( deltaX, deltaY ) ball.draw( win ) main()