Question: 3. Implement a GUI widget class Star that containsa 100x100 Canvas widget. Your widget should behave as follows: When the mouse is placed at a

3. Implement a GUI widget class Star that containsa 100x100 Canvas widget. Your widget should behave as follows: When the mouse is placed at a point (x.y) on the canvas and the left mouse button is clicked, a line segment from point (x, y) to point (50, 50) should be drawn. If one were to click at many arbitrary canvas points, your canvas would look something like this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
