Projet KNN
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.6 KiB

from tkinter import *
fenetre = Tk()
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")
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")
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")
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")
label1.grid(pady=10)
entree1.grid()
label2.grid(pady=10)
entree2.grid()
label3.grid(pady=10)
entree3.grid()
label4.grid(pady=10)
entree4.grid()
label9= Label(fenetre, text="Conso", bg="#7a817f")
bouton1 = Button(canvas1, text="Tester", command=fenetre.destroy,height=2,width=10 ,bg="#4e93de", font =
('calibri', 12, 'bold', 'underline')).grid()
canvas1.grid(pady = 15)
label9.grid()
fenetre.title("IHM KNN")
fenetre.iconbitmap('icon.ico')
fenetre['bg'] = '#fd9f9f'
fenetre.geometry('300x350')
fenetre.mainloop()