From c569eb453c40220a077c50930f8bb951d5388a65 Mon Sep 17 00:00:00 2001 From: MICHELAT Corentin Date: Thu, 26 Mar 2026 16:38:51 +0100 Subject: [PATCH] =?UTF-8?q?affiche=20bien=20mais=20pas=20le=20r=C3=A9sulta?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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