1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| from tkinter import *
Bravo=Tk()
Bravo.geometry("1024x200")
Bravo.title("Vous avez réussi")
Bravo.config(bg='black')
B1=Label(Bravo,text="Bravo!\nVotre mot le plus long existe bien.",font="arial 32 bold",fg='lightblue',bg='black')
B1.grid(row=0,column=0)
B2=Button(Bravo,text="Réessayer",command=clean1,fg='lightblue',bg='black')
B2.grid(row=1,column=0,sticky=E)
B3=Button(Bravo,text="Quitter",command=quit1,fg='lightblue',bg='black')
B3.grid(row=1,column=1,sticky=W)
photo = PhotoImage(file="top.gif")
B4=Label(Bravo, Image=photo)
B4.grid(row=0,column=1)
Bravo.mainloop() |
Partager