From 81af21871aca98be5780d8661120fe816bbbb848 Mon Sep 17 00:00:00 2001 From: VANDEPOELE Enzo Date: Mon, 30 May 2022 08:30:54 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Test=5Ftk.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test_tk.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Test_tk.py b/Test_tk.py index abb872c..2049e46 100644 --- a/Test_tk.py +++ b/Test_tk.py @@ -12,17 +12,17 @@ entree1 = Entry(fenetre, textvariable=value1, bg = "gray") label2 = Label(fenetre, text="Veuillez entrez la date (format 'aaaa-mm-jj'):",font = ('calibri', 10, 'bold', 'underline'),bg ='#fd9f9f',foreground="#4c75e3") value2 = IntVar() -entree2 = Entry(fenetre, textvariable=value2) +entree2 = Entry(fenetre, textvariable=value2, bg = "gray") label3 = Label(fenetre, text="Veuillez entrez la température moyenne (en °C):",font = ('calibri', 10, 'bold', 'underline'),bg ='#fd9f9f',foreground="#4c75e3") value3 = IntVar() -entree3 = Entry(fenetre, textvariable=value3,) +entree3 = Entry(fenetre, textvariable=value3, bg = "gray") label4 = Label(fenetre, text="Veuillez entrez la température de référence (en °C) :",font = ('calibri', 10, 'bold', 'underline'),bg ='#fd9f9f',foreground="#4c75e3") value4 = IntVar() -entree4 = Entry(fenetre, textvariable=value4) +entree4 = Entry(fenetre, textvariable=value4, bg = "gray") label1.grid(pady=10) entree1.grid() @@ -38,7 +38,7 @@ entree4.grid() label9= Label(fenetre, text="Conso", bg="#7a817f") -bouton1 = Button(canvas1, text="Tester",height=2,width=10 ,bg="#4e93de", font = +bouton1 = Button(canvas1, text="Tester", command=fenetre.destroy,height=2,width=10 ,bg="#4e93de", font = ('calibri', 12, 'bold', 'underline')).grid() canvas1.grid(pady = 15) @@ -48,4 +48,4 @@ fenetre.title("IHM KNN") fenetre.iconbitmap('icon.ico') fenetre['bg'] = '#fd9f9f' fenetre.geometry('300x350') -fenetre.mainloop() \ No newline at end of file +fenetre.mainloop() From cde686a87a7b6f57753bec19125d85f1ede9def6 Mon Sep 17 00:00:00 2001 From: VANDEPOELE Enzo Date: Mon, 30 May 2022 08:31:35 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Test=5Ftk.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test_tk.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Test_tk.py b/Test_tk.py index 2049e46..27deefe 100644 --- a/Test_tk.py +++ b/Test_tk.py @@ -7,22 +7,22 @@ canvas1 = Canvas(fenetre) label1 = Label(fenetre, text="Choisissez le nombre de voisins (k) :",font = ('calibri', 10, 'bold', 'underline'),bg ='#fd9f9f',foreground="#4c75e3") value1 = IntVar() -entree1 = Entry(fenetre, textvariable=value1, bg = "gray") +entree1 = Entry(fenetre, textvariable=value1) label2 = Label(fenetre, text="Veuillez entrez la date (format 'aaaa-mm-jj'):",font = ('calibri', 10, 'bold', 'underline'),bg ='#fd9f9f',foreground="#4c75e3") value2 = IntVar() -entree2 = Entry(fenetre, textvariable=value2, bg = "gray") +entree2 = Entry(fenetre, textvariable=value2) label3 = Label(fenetre, text="Veuillez entrez la température moyenne (en °C):",font = ('calibri', 10, 'bold', 'underline'),bg ='#fd9f9f',foreground="#4c75e3") value3 = IntVar() -entree3 = Entry(fenetre, textvariable=value3, bg = "gray") +entree3 = Entry(fenetre, textvariable=value3) label4 = Label(fenetre, text="Veuillez entrez la température de référence (en °C) :",font = ('calibri', 10, 'bold', 'underline'),bg ='#fd9f9f',foreground="#4c75e3") value4 = IntVar() -entree4 = Entry(fenetre, textvariable=value4, bg = "gray") +entree4 = Entry(fenetre, textvariable=value4) label1.grid(pady=10) entree1.grid()