-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
60 lines (41 loc) · 1.73 KB
/
app.py
File metadata and controls
60 lines (41 loc) · 1.73 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
import methods
import Products
import Couriers
import Orders
import os
import time
def main():
os.system('cls')
welcome_text = '''
__________________________________________________
| *** *** |
| Welcome To Your Friendly Cafe App |
|__________________________________________________|
'''
print(welcome_text)
time.sleep(2)
os.system('cls')
main_text= ''' ______________________________________
| |
| Main Menu Options |
|______________________________________|
[ 0 ] Exit
[ 1 ] Products Menu Options
[ 2 ] Couriers Menu Options
[ 3 ] Orders Menu Options
[ 4 ] Customers
Please enter your choice: '''
while True:
user_input = input(main_text )
if user_input == '0':
methods.close_db(methods.connect_to_db())
quit()
elif user_input == '1':
Products.display_product_menu()
elif user_input == '2':
Couriers.display_courier_menu( )
elif user_input == '3':
Orders.display_orders_menu()
elif user_input == '4':
methods.convert_csv_db('Customers')
main()