Python Mini Project PDF
Python Mini Project PDF
LIBRARY BOOK
MANAGEMENT
SYSTEM
Submitted By :
Shrivanshu Singh
PROBLEM STATEMENT
COMPONENTS:
LIMITATIONS
This project has a few quirks, like not being able to
recognize a book by just typing in the author's name.
Also, it's a no-go to check the profit or loss of all books in
one go, be it monthly or yearly.
Additionally, this program lacks the superpower to
assign a unique ID to each book for easy peasy
searching.
Adding to the mix, nope, you can't check out multiple
books simultaneously from the Management System.
CURRENT STATUS OF
PROJECT
Currently this project can do a lot of things like :-
1. Storing data of any book permanently in the management
system .
2. Any person can easily search any book that he/she wants
to purchase.
3. We can know the complete details of any book through
this program.
4. We can also see the record of a particular book by this
program.
5.
6. Also we can see profit/loss of any book while returning by
entering the date of return.
I am currently working on a function with which admin can
check profit/loss of any book
individually per month and any year.
BIBLIOGRAPHY
1.https://www.tutorialspoint.com/python
2. https://docs.python.org/3/tutorial
3.www.programiz.com/python-programming
4.https://en.wikibooks.org/wiki/A_Beginner's_Python
_Tutorial 5. Quora.com
5. Sthurlow.com sthurlow.com/python/
SOURCE CODE (PYTHON
PROGRAMMING)
from tkinter import *
root=Tk()
def login():
root2=Toplevel(root)
l=Label(root2,text="User name").grid(row=2,column=1,pady=5)
e=Entry(root2,width=15).grid(row=2,column=2)
l1=Label(root2,text="Password").grid(row=3,column=1,pady=5)
e=Entry(root2,show="*",width=15).grid(row=3,column=2,pady=5)
b3=Button(root2,text="Login",command=choice).grid(row=5,column=2,padx=50)
b4=Button(root2,text="New User",command=newuser).grid(row=5,column=3)
def newuser():
root3=Toplevel(root)
l2=Label(root3,text="Name").grid(row=1,column=1,pady=5)
e2=Entry(root3,width=15).grid(row=1,column=2,pady=5)
l5=Label(root3,text="Gender").grid(row=2,column=1,pady=5)
var = IntVar()
l3=Label(root3,text="Mobile No").grid(row=3,column=1,pady=5)
e4=Entry(root3,width=15).grid(row=3,column=2,pady=5)
l4=Label(root3,text="Email Id").grid(row=4,column=1,pady=5)
e5=Entry(root3,width=15).grid(row=4,column=2,pady=5)
b5=Button(root3,text="Submit",command=choice).grid(row=5,column=2,padx=5)
def choice():
root6=Toplevel(root)
b5=Button(root6,text="Submit Book",command=subbook).grid(row=1,column=1,padx=5)
root5=Toplevel(root)
result2Str= StringVar()
result6Str=StringVar()
result2Str.set("In Rs ")
result6Str.set("")
l=Label(root5,text="User name").grid(row=2,column=1,pady=5)
e=Entry(root5,width=15).grid(row=2,column=2)
resultLabel = Label(root5,textvariable=result2Str).grid(row=5,column=2)
resultLabel = Label(root5,textvariable=result6Str).grid(row=7,column=2)
def price(self):
s=str(variable.get())
if(s=="c" or s=="c++"):
result2Str.set("In Rs.1000")
elif(s=="Dbms"):
result2Str.set("In Rs.750")
else:
result2Str.set("In rs.500")
variable=StringVar(root5)
variable.set("C")
w=OptionMenu(root5,variable,"Data
structures","Dbms","Python","c++","c",command=price).grid(row=3,column=2)
def sub():
result6Str.set("Submissional Successfull")
b1=Button(root5,text="Submit",command=sub).grid(row=6,column=2,padx=50)
def reqbook():
root6=Toplevel(root)
result3Str=StringVar()
result4Str=StringVar()
result3Str.set("")
result4Str.set("")
l=Label(root6,text="User name").grid(row=2,column=1,pady=5)
e=Entry(root6,width=15).grid(row=2,column=2)
result3Label = Label(root6,textvariable=result3Str).grid(row=4,column=2)
result4Label = Label(root6,textvariable=result4Str).grid(row=7,column=2)
def price(self):
s=str(variable.get())
if(s=="c" or s=="c++"):
result3Str.set("In Rs.1000")
elif(s=="Dbms"):
result3Str.set("In Rs.750")
else:
variable=StringVar(root6)
result3Str.set("In rs.500")
w=OptionMenu(root6,variable,"Data structures","Dbms","Python","c++","c",command=price).grid(row=3,column=2)
variable.set("c")
def order():
result4Str.set("Ordered Successfully")
b1=Button(root6,text="Order",command=order).grid(row=5,column=2,padx=50)
b=Button(root,text="Login",command=login).grid(row=0,column=1,pady=20)
b1=Button(root,text="New User",command=newuser).grid(row=0,column=3,padx=50)
b2=Button(root,text="Available Books",command=reqbook).grid(row=0,column=5)
root=mainloop()