Please enable JavaScript to use CodeHS

Utah Introducción a Python 1 y 2

Lesson 5.8 Interacción clicable

Description

En esta lección, los alumnos aprenderán a permitir que el usuario interactúe con sus programas utilizando el ratón. Aprenderán a permitir la interacción cuando el usuario haga clic en Tracy o en cualquier parte del lienzo, así como a utilizar eficazmente las variables dentro de los programas en los que se puede hacer clic.


Objective

Students will be able to:

  • use the onclick function inside their programs
  • use the getscreen function to allow the user to click anywhere on the canvas to trigger an event
  • use and manipulate variables inside programs that use the onclick function