subject
Engineering, 27.11.2019 05:31 bob8939

Drawing program your assignment is to write a python program that extends the interactive sketching program that you did for homework problem 4 and 5. this time, however, the program will have additional features that you might find in a commercial drawing program. drawing tool selection is done from a menu of tools displayed along one side of the screen. each tool menu button should include a small "icon" to identify its function. you are free to design these icons as you wish, but they should clearly indicate the tool functions. the following tools should be available: pencil -- pencil line simply draws using the mouse when the left mouse button is depressed. line -- straight line draws a "rubber-band" straight line with starting point at the position where the mouse left button is pressed, and ending point at the current mouse position as long as the button is held down. when the button is released, the line is permanently drawn. box -- outlined rectangle draws an outlined rectangle, with one corner at the position where the mouse left button is pressed, and diagonally opposite corner at the current mouse position as long as the button is held down. when the button is released, the outline of the rectangle is permanently drawn. rectangle -- filled rectangle draws an outlined rectangle, with one corner at the position where the mouse left button is pressed, and diagonally opposite corner at the current mouse position as long as the button is held down. when the button is released, the filled rectangle is permanently drawn. circle -- draws an outlined circle, with its center at the position where the mouse left button is pressed, and its radius determined by the current mouse position as long as the button is held down. when the button is released, the outline of the circle is permanently drawn.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Explain the difference laminar and turbulent flow. explain it with the shear stress and the velocity profiles.
Answers: 1
question
Engineering, 03.07.2019 14:10
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
question
Engineering, 04.07.2019 18:10
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
question
Engineering, 04.07.2019 18:10
Ariver flows from north to south at 8 km/h. a boat is to cross this river from west to east at a speed of 20 km/h (speed of the boat with respect to the earth/ground). at what angle (in degrees) must the boat be pointed upstream such that it will proceed directly across the river (hint: find the speed of the boat with respect to water/river)? a 288 b. 21.8 c. 326 d. 30.2
Answers: 3
You know the right answer?
Drawing program your assignment is to write a python program that extends the interactive sketching...
Questions
question
Mathematics, 21.10.2020 20:01
question
Mathematics, 21.10.2020 20:01
question
Mathematics, 21.10.2020 20:01
question
World Languages, 21.10.2020 20:01
question
Mathematics, 21.10.2020 20:01
Questions on the website: 13722359