-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTk stuff.py
More file actions
60 lines (53 loc) · 2.07 KB
/
Tk stuff.py
File metadata and controls
60 lines (53 loc) · 2.07 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
59
60
#importing tkinter and its message bos library
from tkinter import*
from tkinter import messagebox
#not sure what to say but its neccessary tho
root =Tk()
#gives that tk window its size you can change it e.g ("1366x768")
root.geometry("1x1")
#showwarning shows that warning sign and has a only ok
#showaskquestion self explanatory and the yes and no sends back 1 and 0 respectively
start = messagebox.showwarning("", "Your pc has been hacked, LOL")
Label(root, text=start)
second = messagebox.showwarning("","However i have a question for you")
Label(root, text=second)
will_you = messagebox.askquestion("", "Will you be my valentine?")
if will_you == 1:
yes = messagebox.showinfo("", "It's a date then")
Label(root, text=yes)
else:
please = messagebox.askquestion("", "please")
Label(root, text=please)
if please == 1:
#this parts closes the window
root.destroy()
else:
please = messagebox.askquestion("", "please")
Label(root, text=please)
if please == 1:
root.destroy()
else:
please = messagebox.askquestion("", "please")
Label(root, text=please)
if please == 1:
root.destroy()
else:
please = messagebox.askquestion("", "please")
Label(root, text=please)
if please == 1:
root.destroy()
else:
please = messagebox.askquestion("", "please")
Label(root, text=please)
if please == 1:
root.destroy()
else:
please = messagebox.askquestion("", "please")
Label(root, text=please)
if please == 1:
root.destroy()
else:
please = messagebox.showerror("", "Fuck You!")
Label(root, text=please)
root.destroy()
root.mainloop()