|
|
|
@ -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() |