-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquote.py
More file actions
executable file
·58 lines (51 loc) · 1.37 KB
/
quote.py
File metadata and controls
executable file
·58 lines (51 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import random
import customtkinter as ctk
quote_msg = ['See you later, alligator!',
'After a while, crocodile.',
'Stay out of trouble.',
'I’m out of here.',
'Yamete, onii-chan~. UwU',
'Okay...bye, fry guy!',
'Peace out!',
'Peace out, bitch!',
'Gotta get going.',
'Out to the door, dinosaur.',
'Don\'t forget to come back!',
'Smell ya later!',
'In a while, crocodile.',
'Adios, amigo.',
'Begone!',
'Arrivederci.',
'Never look back!',
'So long, sucker!',
'Au revoir!',
'Later, skater!',
'That\'ll do pig. That\'ll do.',
'Happy trails!',
'Smell ya later!',
'See you soon, baboon!',
'Bye Felicia!',
'Sayonara!',
'Ciao!',
'Well.... bye.',
'Delete your browser history!',
'See you, Space Cowboy!',
'Change da world. My final message. Goodbye.',
'Find out on the next episode of Dragonball Z...',
'Choose wisely!']
def getQuote():
try:
quote = random.choice(quote_msg)
label_result.configure(text=f"Quote: '{quote}'")
except:
label_result.configure(text="Not quotes")
ctk.set_appearance_mode("dark-green")
app = ctk.CTk()
app.geometry("500x300")
app.title("App quotes")
my_font = ctk.CTkFont(family="Times New Roman", size=20, weight="bold")
label_result = ctk.CTkLabel(app, text="Quote:", font=my_font)
label_result.pack(pady=20)
btn = ctk.CTkButton(app, text="Get a quote", font=my_font, command=getQuote)
btn.pack(pady=20)
app.mainloop()