-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMenulib.py
79 lines (76 loc) · 2.78 KB
/
Menulib.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
75
76
77
78
79
#PYTHN MODULE: MENULIB
import Book
import Member
import Issue
def Menubook():
while True:
Book.clrscreen()
print("\t\t\t Book Record Management\n")
print("==========================================================")
print("1. Add Book Record")
print("2. Search Book Record")
print("3. Delete Book Record")
print("4. Update Book Record")
print("5. Return to Main Menu")
print("==========================================================")
choice = int(input("Enter Choice between 1 to 5 -------> : "))
if choice == 1:
Book.insertData()
elif choice == 2:
Book.SearchBookRec()
elif choice == 3:
Book.deleteBook()
elif choice == 4:
Book.UpdateBook()
elif choice == 5:
return
else:
print("Wrong Choice.....Enter Your Choice again")
x = input("Enter any key to continue")
def MenuMember():
while True:
Book.clrscreen()
print("\t\t\t Member Record Management\n")
print("==========================================================")
print("1. Add Member Record")
print("2. Search Member Record")
print("3. Delete Member Record")
print("4. Update Member Record")
print("5. Return to Main Menu")
print("==========================================================")
choice = int(input("Enter Choice between 1 to 5 ------> : "))
if choice == 1:
Member.insertMember()
elif choice == 2:
Member.SearchMember()
elif choice == 3:
Member.deleteMember()
elif choice == 4:
Member.UpdateMember()
elif choice == 5:
return
else:
print("Wrong Choice.....Enter Your Choice again")
x = input("Enter any key to continue")
def MenuIssueReturn():
while True:
Book.clrscreen()
print("\t\t\t Member Record Management\n")
print("==========================================================")
print("1. Issue Book")
print("2. Search Issue Book Record")
print("3. Return Issued Book")
print("4. Return to Main Menu")
print("==========================================================")
choice = int(input("Enter Choice between 1 to 4 ------> : "))
if choice == 1:
Issue.issueBook()
elif choice == 2:
Issue.SearchIssuedBooks()
elif choice == 3:
Issue.returnBook()
elif choice == 4:
return
else:
print("Wrong Choice.....Enter Your Choice again")
x = input("Enter any key to continue")