je suis debutant la question est la suivante

comment je peux associer une fonction à un button .
Merci bien