python 3.5 coding with graphics using a rectangle

Anonymous
timer Asked: Apr 4th, 2016

Question description

Requirements:

 All communication with the user must occur within the graphics window (not the Python shell window).

 A graphics window of size 500 x 500 pixels needs to be created with a coordinate system of (0,0) to (5,5) and an appropriate title and background color.

 Prompt user to click on two points (opposite corners) from which to form a rectangle. The prompt must be centered in the lower portion of the window. Be sure to display the first point as the user clicks on it.

 Draw the rectangle filled with a color of your choice.

 Re-using the prompt tell the user to click in the window to end the program. This must be in

bold font, red in color.

 After the user clicks, close the graphics window before ending your program.


Tutor Answer

(Top Tutor) Studypool Tutor
School: Boston College
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors