|
@ -2,8 +2,8 @@ from tkinter import * |
|
|
|
|
|
|
|
|
fenetre = Tk() |
|
|
fenetre = Tk() |
|
|
|
|
|
|
|
|
def coucou(): |
|
|
def affiche_puissance(): |
|
|
|
|
|
#global |
|
|
pass |
|
|
pass |
|
|
|
|
|
|
|
|
"""label entry nbr k""" |
|
|
"""label entry nbr k""" |
|
@ -51,7 +51,7 @@ entre_temp_ref.grid(row=3, column=2) |
|
|
"""""" |
|
|
"""""" |
|
|
|
|
|
|
|
|
"""bouton test""" |
|
|
"""bouton test""" |
|
|
boutonv = Button(text="valider", command=coucou) |
|
|
boutonv = Button(text="valider", command=affiche_puissance) |
|
|
boutonv.grid(row = 4, column=1) |
|
|
boutonv.grid(row = 4, column=1) |
|
|
"""""" |
|
|
"""""" |
|
|
|
|
|
|
|
@ -59,8 +59,11 @@ boutonv.grid(row = 4, column=1) |
|
|
conso_prevue = StringVar() |
|
|
conso_prevue = StringVar() |
|
|
conso_prevue.set("20") |
|
|
conso_prevue.set("20") |
|
|
|
|
|
|
|
|
|
|
|
label_titre_conso_prevue = Label(fenetre, text = "consommation moyenne:") |
|
|
|
|
|
label_titre_conso_prevue.grid(row=5, column= 1) |
|
|
|
|
|
|
|
|
label_conso_prevue = Label(fenetre, textvariable = conso_prevue) |
|
|
label_conso_prevue = Label(fenetre, textvariable = conso_prevue) |
|
|
label_conso_prevue.grid(row=5, column= 1) |
|
|
label_conso_prevue.grid(row=6, column= 1) |
|
|
"""""" |
|
|
"""""" |
|
|
|
|
|
|
|
|
fenetre.mainloop() |
|
|
fenetre.mainloop() |
|
|