forked from kate-somi/python-memory-game
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutro.py
More file actions
23 lines (21 loc) · 666 Bytes
/
outro.py
File metadata and controls
23 lines (21 loc) · 666 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from tkinter import *
from tkinter.font import Font
def show_victory(old_root):
old_root.destroy()
victory_screen = Tk()
victory_screen.title("Règles")
victory_screen.geometry("+300+100")
victory_screen.resizable(0, 0)
victory_screen.bind("<Escape>", lambda event: exit())
victory_screen.bind("<Button-1>", lambda event: exit())
victory_screen.bind("<Return>", lambda event: exit())
font = Font(victory_screen, size=25)
text = Label(
text="BRAVO\nVOUS AVEZ GAGNÉ",
font=font,
width="32",
anchor="center",
bg="misty rose",
)
text.pack(side=TOP)
victory_screen.mainloop()