-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject4-Graphical Interface.py
More file actions
32 lines (22 loc) · 1.08 KB
/
project4-Graphical Interface.py
File metadata and controls
32 lines (22 loc) · 1.08 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
#!C:\Users\a2219\AppData\Local\Programs\Python\Python35-32\ python
import tkinter
import rps2
import hangman
import pokerdice
root = tkinter.Tk()
root.title('3-in-1 Game Collection')
mainframe = tkinter.Frame(root, height=250, width=500, bg='gray')
mainframe.pack_propagate(0)
mainframe.pack(padx=2, pady=2)
intro = tkinter.Label(mainframe, text='Welcome. Please select one of the following games to play.', bg='gray')
intro.pack(side='top', pady=15)
rps_button = tkinter.Button(mainframe, text='Rock Paper Scissors', command=rps2.gui,
bg='black', fg='white')
rps_button.pack(side='top', pady=10)
hangman_button = tkinter.Button(mainframe, text='Hangman', command=hangman.game, bg='black', fg='white')
hangman_button.pack(side='top', pady=10)
pd_button = tkinter.Button(mainframe, text='Poker Dice', command=pokerdice.game, bg='black', fg='white')
pd_button.pack(side='top', pady=10)
exit_button = tkinter.Button(mainframe, text='Exit', command=root.destroy, fg='red', bg='black')
exit_button.pack(side='top', pady=10)
root.mainloop()