From fa413a4733d446a053952bcebfa46347377249f8 Mon Sep 17 00:00:00 2001 From: "enzo.vandepoele" Date: Mon, 23 May 2022 08:43:22 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9pot=20:=20Modif=20temporaire?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KNN_Mark1.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/KNN_Mark1.py b/KNN_Mark1.py index a89bd77..7530784 100644 --- a/KNN_Mark1.py +++ b/KNN_Mark1.py @@ -132,22 +132,18 @@ def PuissanceMoyenne(lst,distance): def recup1(): k = value1.get() - label5.configure(text=k) return k def recup2(): date = value2.get() - label6.configure(text=date) return date def recup3(): temp_moy = value3.get() - label7.configure(text=temp_moy) return temp_moy def recup4(): temp_ref = value4.get() - label8.configure(text=temp_ref) return temp_ref #def calc_conso(): @@ -186,9 +182,9 @@ entree3.grid() label4.grid(pady=10) entree4.grid() -label9= Label(fenetre, text="Conso", bg="yellow") +label9 = Label(fenetre, text="Conso", bg="yellow") -bouton1 = Button(canvas1, text="Tester", command=lancer(value1.get, value2.get, value3.get, value4.get, moyenne_liste()), width=15, height=2, bg="cyan").grid(pady=10) +bouton1 = Button(canvas1, text="Tester", command=lancer(recup1(), recup2(), recup3(), recup4(), moyenne_liste()), width=15, height=2, bg="cyan").grid(pady=10) canvas1.grid() label9.grid(pady=10)