0% found this document useful (0 votes)
29 views

Project File Jenil

This document describes a student project to create a login form using Python and the Tkinter module. The login form allows a user to enter a username and password, and will display "Login Success" if the correct credentials are entered or "Wrong username or password" if incorrect. The project includes the aim, source code, output screenshots, and conclusion.

Uploaded by

mangroliyajenil0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Project File Jenil

This document describes a student project to create a login form using Python and the Tkinter module. The login form allows a user to enter a username and password, and will display "Login Success" if the correct credentials are entered or "Wrong username or password" if incorrect. The project includes the aim, source code, output screenshots, and conclusion.

Uploaded by

mangroliyajenil0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Computer Science

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.

External Examiner's Internal Examiner's

Signature Signature

Principal Signature
ACKNOWLEDGMENT

We would like to express our special thanks and


gratitude to our computer science teacher “Mrs.
Shruti Patel” for her invaluable guidance and
support in completing our project file.

Then we would like to thank our parents and friends


who have helped us with theirvaluable suggestions
and their guidance has been helpful in various
phases of the completion of the project.
INDEX

SR.NO CONTENT PAGE NO

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.

In this project, the user has to write correct user id


and password, if the user writes correct user id and
password Login Success will be displayed or if the
details are wrong Wrong username or password
will be displayed.
(default username [[email protected]] and password[abc123])

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

You might also like