diff --git a/pendue.py b/pendue.py index a3373df..3ed415e 100644 --- a/pendue.py +++ b/pendue.py @@ -122,7 +122,7 @@ class JeuPendu: bg=COULEUR_BOUTON, fg="white", activebackground=COULEUR_BOUTON_SURVOL, - command=lambda l=lettre.lower(): self.deviner_lettre(l) + command=lambda l=lettre.lower(): self.guess_letter(l) ) bouton.grid(row=i // 9, column=i % 9, padx=3, pady=3) self.boutons_lettres[lettre.lower()] = bouton