Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# labels springLabel = Label ( ' Spring ' , 1 0 , 3 2 0 , fill = 'lightPink', size = 3 0 ,
# labels
springLabel LabelSpring fill'lightPink', size align'left'
summerLabel LabelSummer fill'forestGreen', size align'left'
fallLabel LabelFall fill'darkOrange', size align'right'
winterLabel LabelWinter fill'white', size align'right'
leaves Star fill'forestGreen', roundness
# tree trunk and limbs
Polygon fill'saddleBrown'
Polygon fill'saddleBrown'
Polygon fill'saddleBrown'
Polygon fill'saddleBrown'
Polygon fill'saddleBrown'
ground Polygon
visibleFalse
def onMousePressmouseX mouseY:
# If a label is clicked, make the color of the leaves match the color of
# that label. Change the leaves and ground visibility when needed.
### HINT: Use a shape method to check what label you clicked.
### Place Your Code Here ###
pass
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started