Update ARE-DYNAMIC.py

This commit is contained in:
ConstancePoulain 2017-04-18 20:51:07 +02:00 committed by GitHub
parent 035564efdf
commit 88adf8eb12
1 changed files with 3 additions and 7 deletions

View File

@ -102,10 +102,6 @@ def saisir_les_pourcentages():
per3 = IntVar() per3 = IntVar()
Entry(fenetre, textvariable=per3, width=3).grid(row=12, column=1) Entry(fenetre, textvariable=per3, width=3).grid(row=12, column=1)
Label(fenetre, text ="% stratégie4:").grid(row=13, column=0)
per4 = IntVar()
Entry(fenetre, textvariable=per4, width=3).grid(row=13, column=1)
global ListePourcents global ListePourcents
ListePourcents = [per0.get(), per1.get(), per2.get(), per3.get(), per4.get()] ListePourcents = [per0.get(), per1.get(), per2.get(), per3.get(), per4.get()]
@ -522,7 +518,7 @@ def affichage_combobox():
""" """
global Strat global Strat
Label(fenetre, text="Stratégie n°").grid(row=5, column=0, sticky=E) Label(fenetre, text="Stratégie n°").grid(row=5, column=0, sticky=E)
Combobox(fenetre, textvariable=Strat, values=(0, 1, 2, 3, 4, 5), width=3).grid(row=5, column=1, sticky=W) Combobox(fenetre, textvariable=Strat, values=(0, 1, 2, 3), width=3).grid(row=5, column=1, sticky=W)
def Interface(): def Interface():
""" """
@ -547,10 +543,10 @@ def Interface():
Label(fenetre, text="Choisir le type de la matrice initiale:").grid(row=4, columnspan = 2) Label(fenetre, text="Choisir le type de la matrice initiale:").grid(row=4, columnspan = 2)
Radiobutton(fenetre, text="Type 0", variable=Var_choix, value=0, command=affichage_combobox).grid(row=5, sticky=W) Radiobutton(fenetre, text="Type 0", variable=Var_choix, value=0).grid(row=5, sticky=W)
Radiobutton(fenetre, text="Type 1", variable=Var_choix, value=1, command=affichage_combobox).grid(row=6, sticky=W) Radiobutton(fenetre, text="Type 1", variable=Var_choix, value=1, command=affichage_combobox).grid(row=6, sticky=W)
Radiobutton(fenetre, text="Type 2", variable=Var_choix, value=2, command=affichage_combobox).grid(row=7, sticky=W) Radiobutton(fenetre, text="Type 2", variable=Var_choix, value=2, command=affichage_combobox).grid(row=7, sticky=W)
Radiobutton(fenetre, text="Type 3", variable=Var_choix, value=3).grid(row=8, sticky=W) Radiobutton(fenetre, text="Type 3", variable=Var_choix, value=3command=affichage_combobox).grid(row=8, sticky=W)
Radiobutton(fenetre, text="Type 4", variable=Var_choix, value=4, command=saisir_les_pourcentages).grid(row=9, sticky=W) Radiobutton(fenetre, text="Type 4", variable=Var_choix, value=4, command=saisir_les_pourcentages).grid(row=9, sticky=W)
Button(fenetre, text="Infos", command=affichage_fenetre_infos).grid(row=7, column=1, sticky=W) Button(fenetre, text="Infos", command=affichage_fenetre_infos).grid(row=7, column=1, sticky=W)
Label(fenetre, text="Saisir le nombre d'itérations:").grid(row = 15, columnspan=1) Label(fenetre, text="Saisir le nombre d'itérations:").grid(row = 15, columnspan=1)