Bonsoir,
j'ai un souci avec ma fonction, ce code fonctionne bien en dehors mais ne fonctionne pas dans la fonction...
une idée ?Code:
1
2
3
4
5
6
7 def logo1(): if connexion() == True: img2 = ImageTk.PhotoImage(file="connexion_ok.ico") else: img2 = ImageTk.PhotoImage(file="connexion_ko.ico") logo_reseau = tk.Label(Frame01, image=img2) logo_reseau.pack(side=RIGHT)