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.
20 lines
415 B
20 lines
415 B
#Projet n°1 Tkinter
|
|
import tkinter as tk
|
|
|
|
#Fonction
|
|
def Recup():
|
|
print(value.get())
|
|
|
|
#Creation de la Fentre nommé 'Calcul de Note'
|
|
fenetre = tk.Tk()
|
|
fenetre.title("Calcul De Note")
|
|
|
|
# entrée
|
|
value = tk.StringVar()
|
|
value.set("Entre ta Note !!")
|
|
entree = tk.Entry(fenetre, textvariable=value, width=30)
|
|
entree.grid()
|
|
|
|
tk.Button(fenetre,text='Valider', command=Recup, borderwidth=1).grid()
|
|
|
|
fenetre.mainloop()
|