Project File Jenil
Project File Jenil
Project File
Certificate of completion
This is to certify that Jenil Mangroliya and Harshil
Tejani, student of Class XII, Monarch International
School(CBSE Affiliated no.430441), has completed the project
file during the academic year2023-2024 towards
fulfilment of credit for the Computer Science
practical evaluation of CBSE and submitted
satisfactory report, as compiled in the following
pages, under my supervision.
Signature Signature
Principal Signature
ACKNOWLEDGMENT
1. AIM 4
2. Source Code 5
3. Output 7
4. Conclusion 9
5. Bibliography 10
3|Pag e
AIM
The aim of this project is to create a Login Form
using python. The Login Form project will be build
using python modules like Tkinter.
4|Pag e
Source Code:
from tkinter import *
#defining login function
def login():
#getting form data
uname=username.get()
pwd=password.get()
#applying empty validation
if uname=='' or pwd=='':
message.set("fill the empty field!!!")
else:
if uname=="[email protected]" and pwd=="abc123":
message.set("Login success")
else:
message.set("Wrong username or password!!!")
#defining loginform function
def Loginform():
global login_screen
login_screen = Tk()
#Setting title of screen
login_screen.title("Login Form")
#setting height and width of screen
login_screen.geometry("300x250")
#declaring variable
global message;
global username
global password
username = StringVar()
5|Pag e
password = StringVar()
message=StringVar()
#Creating layout of login form
Label(login_screen,width="300", text="Please enter details
below", bg="orange",fg="white").pack()
#Username Label
Label(login_screen, text="Username * ").place(x=20,y=40)
#Username textbox
Entry(login_screen, textvariable=username).place(x=90,y=42)
#Password Label
Label(login_screen, text="Password * ").place(x=20,y=80)
#Password textbox
Entry(login_screen, textvariable=password
,show="*").place(x=90,y=82)
#Label for displaying login status[success/failed]
Label(login_screen,
text="",textvariable=message).place(x=95,y=100)
#Login button
Button(login_screen, text="Login", width=10, height=1,
bg="orange",command=login).place(x=105,y=130)
login_screen.mainloop()
#calling function Loginform
Loginform()
6|Pag e
Output:
7|Pag e
8|Pag e
Conclusion
Even though login forms for websites and apps are as old
as the hills, people still experience problems with
handling them properly. Many things can scare them
away: too many options, fancy input fields, confusing
design, suspicious elements, to name a few. Therefore, it
is your task to convert a login form into a UI unit that
provides a comfortable user experience.
9|Pag e
Bibliography
Greeksforgreeks.org
Mykvs.in
Python basic functions, Tkinter and other libraries
reference(https://www.w3schools.com/python/)
Information regarding Registration and login
systems(https://en.wikipedia.org/wiki/Registered_user )
THE
END
10 | P a g e