Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started