-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.py
32 lines (31 loc) · 771 Bytes
/
menu.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
from printTheatre import printTheatre
from sell import sell
from reset import reset
from stats import stats
def menu(pos):
instruction = """Select:
(1) Display Seating Chart
(2) Sell one or more tickets
(3) Display statistics
(4) Reset program
(X) Exit program
"""
select = raw_input(instruction)
options = ["1","2","3","4","X"]
if select == "1":
printTheatre(pos)
menu(pos)
elif select == "2":
sell(pos)
menu(pos)
elif select == "3":
stats(pos)
menu(pos)
elif select == "4":
reset(pos)
menu(pos)
elif select.lower() == "x":
print("Have a bedraggled day ruffian :<")
elif select not in options:
print("Enter a number from 1 to 4 fool")
menu(pos)