Continue your Python code tutorial. If you finished your final project add to the complexity of your code or help another student.
Click Event
Click the image below to learn more.
Actions must be indented 4 spaces. Codesters inserts the green bar to show the indent.
The event handler appears at the end. The event handler is not indented.
example handler: sprite.event_click(click)
When you RUN your program any errors will be identified. Look for the line number and the error will be highlighted. See image below.
Before your click event, enter the text click on me. See code below. This notifies the user when to click with their mouse.
Log in to Codesters.
Log In
Sign In with Google
No comments:
Post a Comment