-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMenu.py
More file actions
54 lines (50 loc) · 1.77 KB
/
MainMenu.py
File metadata and controls
54 lines (50 loc) · 1.77 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
import Operations
class MainMenu:
def __init__(self):
self.operations = Operations
def Adminmenu() :
while True:
print("\t\t\t Admin Menu \n")
print("==============================================================")
print("1. Book Management")
print("2. User Management")
print("3. Admin management")
print("4. User Feedback and Ratings Table")
print("5. Logout ")
print("===============================================================")
choice=int(input("Enter any options: "))
if choice==1:
Operations.BookManagement()
elif choice==2:
Operations.UserManagement()
elif choice==3:
Operations.AdminManagement()
elif choice==4:
Operations.FeedbackTable()
elif choice==5:
print("Thanks for visiting our Library:))")
print("Logged out of the system")
break
else:
print("Wrong Choice......Enter Your Choice again")
continue
def Usermenu() :
while True:
print("\t\t\t User Menu \n")
print("==============================================================")
print("1. Book Centre")
print("2. Feedback and Ratings")
print("3. Logout ")
print("===============================================================")
choice=int(input("Enter any options: "))
if choice==1:
Operations.BookCentre()
elif choice==2:
Operations.Feedback()
elif choice==3:
print("Thanks for visiting our Library:))")
print("Logged out of the system")
break
else:
print("Wrong Choice......Enter Your Choice again")
continue