Question: Python, I need to make the red circle in this gui move randomly each time the user opens the program, How can I put the

Python, I need to make the red circle in this gui move randomly each time the user opens the program, How can I put the target2.draw(win) to move randomly each time on the screen.

Python, I need to make the red circle in this gui move

from animation import * from graphics import * from button import Button def main(): # create animation window win - GraphWin ("Tiro al blanco", 640, 480, autoflush=False) win.getCoords(-10, -10, 210, 155) Line (Point (-10,0), Point (210,0)).draw(win) win.setBackground("blue") #targeti - Oval (Point (150, 60), Point (100, 90)) target2 - Oval (Point(140, 65), Point (110, 85)) target2.setFill('red') target2.draw(win) #targeti.draw(win)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!