Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

from tkinter import *

from book1 import *


from members import *

root = Tk()
root.geometry("1024x720")

a_label =Label(text = " Library Mangement ",


bg = "cyan",
font=("arial",20,"bold"),
fg='black',
borderwidth=15,relief=SOLID)
a_label.pack()

def quit1():
root.quit()

def book_details():
root = Tk()

f2 = Frame(root, bg='cyan', borderwidth=10, relief=RAISED)


f2.pack(side=LEFT)

add_book = Button(f2, text='1.Add a book.', font=('arial', 20 ,'bold'),


command=addbook)
add_book.pack()
book_ed = Button(f2, text='2.Edit a Book', font=('arial', 20 ,'bold'),
command=editbook)
book_ed.pack()
book_sea = Button(f2, text='3.Search a Book', font=('arial', 20 ,'bold'),
command=searchbook)
book_sea.pack()
book_del = Button(f2, text='4. Delete a Book', font=('arial', 20 ,'bold'),
command=deletebook)
book_del.pack()
root.mainloop()

def member_details():
root = Tk()
f3 = Frame(root, bg = 'cyan', borderwidth=10,relief=GROOVE)
f3.pack()
insert_mem = Button(f3, text = '1.Add member.',font=('arial', 20 ,'bold'))
insert_mem.pack()
delete_mem = Button(f3, text = '2.Delete A member.',font = ('arial',
20 ,'bold'))
delete_mem.pack()
search_mem = Button(f3, text= '3. Search Member.',font = ('arial', 20 ,'bold'))
search_mem.pack()
root.mainloop()

def book_details2():
book_details()

def matters():
root =Tk()
f4 = Frame(root, bg = 'cyan', borderwidth=10,relief=GROOVE)
f4.pack()
issue_book = Button(f4, text ='1.Insert a number.', font=('arial', 20 ,
'bold'))
issue_book.pack()
return_book= Button(f4, text ='2.Delete A member.', font = ('arial', 20 ,
'bold'))
return_book.pack()

f1 = Frame(root, bg='cyan', borderwidth=8, relief=GROOVE)


f1.pack(side=LEFT)
b1 = Button(f1, text='1.Book Details.', font=('comicsansms', 20,
'bold'),command=book_details2)
b1.pack()

b2= Button(f1, text='2. Member Details', font=('comicsansms', 20,


'bold'),command=member_details)
b2.pack()

b3 = Button(f1, text='3.Matters', font=('comicsansms', 20, 'bold'))


b3.pack()

b4 = Button(f1, text='4.Report.', font=('comicsansms', 20, 'bold'))


b4.pack()

b5 = Button(f1, text='5. Exit',command=quit1, font=('comicsansms', 20, 'bold'),)


b5.pack()

root.mainloop()

You might also like