Si votre email correspond à un compte, vous recevrez un lien de réinitialisation.
J'ai testé :from Tkinter import *class Callback:def __init__(selffunctionargument):self.function = functionself.argument = argumentdef __call__(self):self.function(self.argument)def show(arg):print Je suis le bouton %s %argroot = Tk()for x in range(10):Button(roottext='Bouton %s' %xcommand=lambda x=x:show(x)).pack()root.mainloop()Mais ça ne marche pas, y a t-il une erreur dans le code ?merciBen si, à l'indentation près ça marche
J'ai testé : from Tkinter import * class Callback: def __init__(selffunctionargument): self.function = function self.argument = argument def __call__(self): self.function(self.argument) def show(arg): print Je suis le bouton %s %arg root = Tk() for x in range(10): Button(roottext='Bouton %s' %xcommand=lambda x=x:show(x)).pack() root.mainloop() Mais ça ne marche pas, y a t-il une erreur dans le code ? merci Ben si, à l'indentation près ça marche