Professional Documents
Culture Documents
Login Page For Financial Calculation (Login Page For Emi and Sip Calculation)
Login Page For Financial Calculation (Login Page For Emi and Sip Calculation)
Login Page For Financial Calculation (Login Page For Emi and Sip Calculation)
BY
SUMIT VITTHAL SHINDE (181041043)
SHAIKH ABDUL WAHID (181041041)
PRAKASH PRABHAKAR SATVI (181041039)
(Accredited by NAAC)
A. C. Patil College of
Engineering, Kharghar,
CERTIFICATE
LOGIN PAGE FOR FINANCIAL CALCULATION
by
Guide
(Mrs. S. P. Bansu)
INTRODUCTION:
Python GUI – tkinter
Python offers multiple options for developing GUI (Graphical User Interface). Out of
all the GUI methods, tkinter is the most commonly used method. It is a standard
Python interface to the Tk GUI toolkit shipped with Python. Python with tkinter is the
fastest and easiest way to create the GUI applications. Creating a GUI using tkinter
is an easy task.
Importing tkinter is same as importing any other module in the Python code. Note
that the name of the module in Python 2.x is ‘Tkinter’ and in Python 3.x it is ‘tkinter’.
mainloop(): There is a method known by the name mainloop() is used when your
application is ready to run. mainloop() is an infinite loop used to run the application,
wait for an event to occur and process the event as long as the window is not closed.
tkinter also offers access to the geometric configuration of the widgets which can
organize the widgets in the parent windows. There are mainly three geometry
manager classes class.
1. pack() method:It organizes the widgets in blocks before placing in the parent
widget.
2. grid() method:It organizes the widgets in grid (table-like structure) before
placing in the parent widget.
3. place() method:It organizes the widgets by placing them on specific positions
directed by the programmer.
w=Button(master, option=value)
master is the parameter used to represent the parent window.
There are number of options which are used to change the format of the Buttons.
Number of options can be passed as parameters separated by commas. Some of
them are listed below.
activebackground: to set the background color when button is under the
cursor.
activeforeground: to set the foreground color when button is under the
cursor.
bg: to set he normal background color.
command: to call a function.
font: to set the font on the button label.
image: to set the image on the button.
width: to set the width of the button.
height: to set the height of the button.
Entry:It is used to input the single line text entry from the user.. For multi-line text
input, Text widget is used.
The general syntax is:
w=Entry(master, option=value)
master is the parameter used to represent the parent window.
There are number of options which are used to change the format of the widget.
Number of options can be passed as parameters separated by commas. Some of
them are listed below.
bd: to set the border width in pixels.
bg: to set the normal background color.
cursor: to set the cursor used.
command: to call a function.
highlightcolor: to set the color shown in the focus highlight.
width: to set the width of the button.
height: to set the height of the button.
Frame: It acts as a container to hold the widgets. It is used for grouping and
organizing the widgets. The general syntax is:
w = Frame(master, option=value)
master is the parameter used to represent the parent window.
Label: It refers to the display box where you can put any text or image which can be
updated any time as per the code.
The general syntax is:
w=Label(master, option=value)
master is the parameter used to represent the parent window.
Message: It refers to the multi-line and non-editable text. It works same as that of
Label.
The general syntax is:
w = Message(master, option=value)
master is the parameter used to represent the parent window.
TopLevel: This widget is directly controlled by the window manager. It don’t need
any parent window to work on.The general syntax is:
w = TopLevel(master, option=value)
Once all the credentials are entered correctly, you can see the phpMyAdmin home
page in your browser. When you are in phpMyAdmin page, the center section is the
default General Settings and Appearance Settings and in the right side, you can
see Database server and Web server information.
All the list of databases can be seen on the left-hand side of the screen. You can select the
database, you want to work with out of the list. Once it is expanded, all the tables in the
selected database can be viewed.
For sorting the result set in a query in an ascending or descending order, you can use
the Sort dropdown. You can also enter the criteria for the search query.
The Ins and Del check boxes or Add/Delete criteria rows options are provided to add or
delete text rows for any search conditions. The logical operators And or the Or can also be
used to define relations between the fields in the Modify section. After entering all the
relevant conditions, you need to click on Update Query button for doing the SQL operation.
Next step is to select all the tables from Use Tables section used in the query and then click
on Submit Query.
MODULE USE:
Tkinter and pymysql
Tkinter for GUI purpose
Pymysql for DATA BASE Management (phpMyAdmin software use)
INPUT PROGRAM:
# _____________________________LOGIN PAGE________________________
class Login:
def __init__(self, root):
self.root = root
self.root.title("LOGIN PAGE")
self.root.geometry("1350x700+0+0")
#-----------ALl VARIABLE------------
self.username_var=StringVar()
self.password_var=StringVar()
self.email_var=StringVar()
self.phone_var=StringVar()
# assining variable
self.user = StringVar()
self.password = StringVar()
def Check_login(self):
login=False
con = pymysql.connect(host="localhost", user="root", password="Sumit@123",
database="stm")
cur = con.cursor()
cur.execute('select Username , Password from login')
if(login==False):
messagebox.showinfo('InCorrect Login','YOU HAVE ENTER WRONG USERNAME
OR PASSWORD \n Please Check Once Again!!! ')
con.commit()
con.close()
def sip(self):
# _________________SIP CALCULATOR__________________________
top2 = Toplevel()
# title of the window
top2.title("SIP CALCULATOR")
# geometry of the window
top2.geometry("1350x700+0+0")
e1 = IntVar()
e2 = IntVar()
e3 = IntVar()
# noinspection PyMethodParameters
def Sip_calculator():
# principal amount
investment = int(e1.get())
print(e1.get())
print(e2.get())
print(e3.get())
# Rate of Return
annualRate = int(e3.get())
monthlyRate = annualRate / 12 / 100 # Rate of interest
# Time period
years = int(e2.get())
months = years * 12
print(futureValue)
def emi(self):
# _____________________EMI CALCULATOR_____________________
top = Toplevel()
# title of the window
top.title("EMI CALCULATOR")
# geometry of the window
top.geometry("1350x700+0+0")
E1 = IntVar()
E2 = IntVar()
E3 = IntVar()
def EMI_calculator():
Principal = int(E1.get())
Rate = int(E3.get())
MonthlyRate = Rate / (12 * 100)
Years = int(E2.get())
Months = Years * 12
def logfun(self):
print(self.user.get(), self.password.get())
display = messagebox.showinfo("Info", "Welcome " +
self.username_var.get())
top1 = Toplevel()
top1.title("Choose the Option")
top1.geometry("1350x700+0+0")
def reset(self):
self.user.set("")
self.password.set("")
self.username_var.set("")
self.password_var.set("")
self.email_var.set("")
self.phone_var.set("")
def exit_fun(self):
option = messagebox.askyesno("Exit", "Do you really want to exit?")
if option == 1:
self.root.destroy()
else:
return
def sign_up(self):
top3=Toplevel()
top3.title("Sign Up")
top3.geometry("1350x700+0+0")
def Enter_data(self):
con=pymysql.connect(host="localhost",user="root",password="Sumit@123",database="st
m")
cur=con.cursor()
cur.execute('insert into login values(%s,%s,%s,%s)',
(self.username_var.get(),
self.password_var.get(),
self.email_var.get(),
self.phone_var.get()
))
con.commit()
con.close()
self.reset()
root = Tk()
ob = Login(root)
root.mainloop()
OUTPUT:
A: SIGN IN PAGE
B: LOGIN PAGE
E: Option Page
F: EMI CALCULATOR
REFERENCE :
Video link
https://www.youtube.com/watch?v=MmQcls0MveM
https://www.youtube.com/watch?
v=YXPyB4XeYLA&list=PLGqwrdoe132sK_ElCuA36GivE5KaTVSNq&index=2&t=14558s
https://stackoverflow.com/questions/46736319/phpmyadmin-error-mysqli-real-connect-hy000-
1045-access-denied-for-user-p
https://stackoverflow.com/questions/25174183/warning-mysqli-connect-hy000-1045-access-
denied-for-user-usernameloca
https://www.youtube.com/watch?v=kea-2yFFrl0
CONCLUSION:
In these project Login page for Financial Calculation we had create a system which will help
User to know his Corpus Amount After a particular period of Time and a Fix Rate .
Through our project we are making Customer Aware about it Financial Education.
Through Login Id Customer Can easly access his/her data.
If he don’t have a Login Id he Can Sign In and Create his Username and Password that he
want.
For these we have use module tkinter and pymysql. Tkinter is use for GUI purpose and
pymysql is use for Data base Management Purpose