Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING PYTHON IDLE 3.4: #1 --> Download and save the module graphics.py from: http://mcsp.wartburg.edu/zelle/python/ KEY: It is important that the graphics.py file is in the

USING PYTHON IDLE 3.4:

#1 --> Download and save the module graphics.py from: http://mcsp.wartburg.edu/zelle/python/ KEY: It is important that the graphics.py file is in the same folder as your Python program

image text in transcribed

image text in transcribed

Output should look something like this:

image text in transcribed

Really need help with the coding part! A bit confuse about this, HELP PLEASE! :(

TODO #2: Create a Graphics Window named 'Win' In order to draw shapes we need to first create a graphics window (or palette) to display them. Enter the commands necessary to create a 500 x 500 graphics windows named "Win TODO #3: Create and Draw a Circle object Circles are defined using a Point object and a radius. A Point object is defined by providing X and Y coordinates. Add the commands to your labprep6.py file to define a Point object, a Circle object and draw a red Circle at the coordinates x 200, y 200 with a radius of 30. TODO #4: Create and Draw a Rectangle object Rectangles are defined using two Point objects as the corners of the shape. Add the commands to your labprep6.py file to define 2 Point objects and draw a blue Rectangle with the corners at x, y coordinates (350,350) (400,400). TODO #5: Wait for Mouse Click, then Display Coordinates We can wait for the user to click in the window with the getMouse0 method. Add the commands to your labprep6.py file to detect up to 3 mouse clicks in the Graphics window "Win and display their x, y coordinates in the IDLE interactive terminal. HINT: You might use a statement like: print ("You clicked at x, y)

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

What is Centrifugation?

Answered: 1 week ago

Question

To find integral of ?a 2 - x 2

Answered: 1 week ago

Question

To find integral of e 3x sin4x

Answered: 1 week ago

Question

To find the integral of 3x/(x - 1)(x - 2)(x - 3)

Answered: 1 week ago

Question

What are Fatty acids?

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago