| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 
 |  
from Tkinter import *
 
fen= Tk()
fen.title('Logiciel de saisie de donnees')
 
def entrer():
    for w in fen.winfo_children():
        w.destroy()
    fen.pack_propagate(0)#si tu veux que la fenetre ne se redimentionne pas
    lab3 = Label(fen, fg='black', text= "Saisie des donnees", font=("arial", 10, "bold italic"))
    lab3.pack(side=TOP)
 
lab2 = Label(fen,width=10,height=5, fg='red', text= "Bienvenue", font=("arial", 50, "bold italic"))
lab2.pack()
 
bouton= Button(fen,width=3,height=3, text= "Quit", command=fen.quit )
bouton.pack(side=RIGHT)
 
bouton2= Button(fen, text= "Entrer", command=entrer)
bouton2.pack(side=LEFT)
 
fen.mainloop() | 
Partager