forked from Derrick-Sherrill/DerrickSherrill.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTruthordare.py
38 lines (30 loc) · 798 Bytes
/
Truthordare.py
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
import tkinter as tk
from random import *
import datetime
now = datetime.datetime.now()
seed(now)
dares = ["Watch another video",
"Subscribe to the channel",
"Like this video",]
truths = ["Was this tutorial easy to follow?",
"Did you learn something new about Python?",
"Why aren't you subscribed to the channel?",]
def dare():
dareoutput = choice(dares)
print(dareoutput)
def truth():
truthoutput = choice(truths)
print(truthoutput)
root = tk.Tk()
frame = tk.Frame(root)
frame.pack()
button = tk.Button(frame,
text="Truth",
fg="red",
command=truth)
button.pack(side=tk.LEFT)
DareButton = tk.Button(frame,
text="Dare",
command=dare)
DareButton.pack(side=tk.LEFT)
root.mainloop()