Browse Source

retour note -> Entry

master
BIZET Xuan 3 weeks ago
parent
commit
712d9ac0ba
  1. 5
      projet tkinter.py

5
projet tkinter.py

@ -9,12 +9,15 @@ def Recup():
def Moyenne(): def Moyenne():
moy = sum(note)/len(note) moy = sum(note)/len(note)
value.set("La Moyenne des notes est : " + str(moy))
print(moy) print(moy)
def Mnote(): def Mnote():
value.set("La Meilleur note est : " + str(max(note)))
print(max(note)) print(max(note))
def Pnote(): def Pnote():
value.set("La pire note est : " + str(min(note)))
print(min(note)) print(min(note))
@ -24,7 +27,7 @@ fenetre.title("Calcul De Note")
# entrée # entrée
value = tk.StringVar() value = tk.StringVar()
value.set("Entre ta Note !!") value.set("Entre tes Notes !!")
entree = tk.Entry(fenetre, textvariable=value, width=30) entree = tk.Entry(fenetre, textvariable=value, width=30)
entree.grid(column=0, row=1) entree.grid(column=0, row=1)

Loading…
Cancel
Save