diff --git a/main.py b/main.py index 65e478a..886f10e 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,9 @@ def reseau(): lstReseau = [' ']*4 for i in range(4): lstReseau[i] =str(lstIP[i])&int(lstMasque[i]) - adr_reseau_f = ".".join(lstReseau) + +def adr_reseau_f(): + reseau_f= ".".join(lstReseau) @@ -38,7 +40,7 @@ Entree1=tk.Entry(fenetre, textvariable=value, width=20) Entree1.grid() bouton =tk.Button(text="valider", command=recup,) bouton.grid() -label_rsultat =tk.Label(fenetre, text="Adresse réseau: adr_reseau_f") - +label_rsultat =tk.Label(fenetre, text="Adresse réseau , adr_reseau_f()") +label_rsultat.grid() fenetre.mainloop() \ No newline at end of file