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, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Shafts are machine elements that are used to a) carry axial loads b) direct shear loads c) transmit power d) rotate at constant speed e) none of the above circular and square shafts subjected to the same torque under the same circum behave a) the same way b) almost the same way
Answers: 2
question
Engineering, 04.07.2019 18:10
Which from the following instrument is commonly used to detect the high pitch butzing sound in bearings? [clo4] a)-digital ultrasonic meter b)-infrared camera c)-spectroscopic d)-vibrometer
Answers: 2
question
Engineering, 04.07.2019 18:20
Determine the damped natural frequencies and the steady state response of a decoupled damped forced two degrees of freedom system. 10รค1 + 2q1 20q1 10 cos t; 10q2 +4q2 + 40q2 10 cos t
Answers: 3
You know the right answer?
Drawing program your assignment is to write a python program that extends the interactive sketching...
Questions
question
Biology, 17.10.2019 00:30
question
Mathematics, 17.10.2019 00:30
question
Social Studies, 17.10.2019 00:30
question
Mathematics, 17.10.2019 00:30
question
Mathematics, 17.10.2019 00:30
Questions on the website: 13722362