-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser_interface.py
74 lines (62 loc) · 3.78 KB
/
user_interface.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Prints the main menu screen
def print_menu_screen():
print('************************************************************\n'
'* *\n'
'* WGUPS Distribution Hub *\n'
'* *\n'
'************************************************************\n'
'* *\n'
'* 1) Update Time *\n'
'* *\n'
'* 2) Check Status of All Packages *\n'
'* *\n'
'* 3) Check Specific Package Status *\n'
'* *\n'
'* *\n'
'* *\n'
'* 0) QUIT *\n'
'* *\n'
'************************************************************')
return
def update_time():
print('************************************************************\n'
'* *\n'
'* Update Time *\n'
'* *\n'
'************************************************************\n')
return input('Enter a time between 8:00 AM and 11:59 PM (Enter 0 to Return to Main Menu: ')
def check_all_packages_status():
print('************************************************************\n'
'* *\n'
'* All Packages Status *\n'
'* *\n'
'************************************************************\n')
def check_specific_status():
print('************************************************************\n'
'* *\n'
'* Package Search *\n'
'* *\n'
'************************************************************\n')
return input("Enter the Package ID to Check its Status (Enter 0 to Return to Menu): ")
# Waits for user input before continuing
def navigation_prompt():
print('************************************************************\n'
'* *\n'
'* Press Enter Key To Continue *\n'
'* *\n'
'************************************************************')
input()
wipe_screen()
return
# Clears the screen
def wipe_screen():
print('\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n')
return
# prints quit message
def quit_message():
print('************************************************************\n'
'* *\n'
'* THANK YOU, GOODBYE! *\n'
'* *\n'
'************************************************************')
return