Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Systems For Physicians And Medical Professionals How To Use And Access Databases

Authors: Harley Bjelland

1st Edition

1878487442, 9781878487445

More Books

Students also viewed these Databases questions

Question

=+21.18. Use (21.28) to find the generating function of (20.39).

Answered: 1 week ago