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

Project of Computer Science: Sport Management System

Uploaded by

Down To Hacker
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Project of Computer Science: Sport Management System

Uploaded by

Down To Hacker
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

EEN FIELD PUBLIC SCHOOL

GR

PROJECT OF COMPUTER
SCIENCE

TOPIC- SPORT
MANAGEMENT SYSTEM

1
HOTEL MANAGEMENT SYSTEM

SUBMITTED BY

STUDENT : LUCKY JOSHI


NAME
:
PROJECT TITLE SPORT MANAGEMENT SYSTEM
:
NAME OF THE GREEN FIELD PUBLIC SCHOOL
SCHOOL

DATE: SIGNATURE

2
CERTIFICATE
This is to certify that the project report titled SPORT

Management System is a bonafide work done by

LUCKY JOSHI of Class 12th (SCIENCE), Session

2024-25 is in the partial fulfillment of CBSE

examination 2024 has been carried out under my direct

supervision and guidance.

Mr. Gopal Bhatt

(Computer Science Teacher)

3
ACKNOWLEDGMENT:
I am glad that I was able to complete this project and
understand many things. Through preparation of this
computer science project was an immense learning
experience and I inculcated many personal qualities
during this process.

I would like to thank to my teachers Mr. Gopal Bhatt Sir


who supported me all the time, cleared my doubts and
to my parents who also played a big role in finalization of
my project file. I am taking this opportunity to
acknowledge their support and I wish that they keep
supporting me like this in the future.

Once again, I would like to thank my classmates and my


friends also for their encouragement and help in
designing and making my project creative. I am in debt
of all these. Only because of them I was able to create
my project and make it good and enjoyable experience.

4
S_ Contents Page No Teacher Sign.
No
1 Manual System
2 Proposed system
3 ANALYSIS

4 DESIGN

5 DATA FLOW DIAGRAMS

5 CODING
6 IMPLEMENTATION &
RESULTS
7 TABLES DESCRIPTION
8 Conclusion

5
MANUAL SYSTEM

Manual system means a system which does it's work


itself not by help of any technology in which paper work
has some special place.

All conventional methods are in more use instead of new


technologies. And now as everybody knows that
computer graphs at its extent means the more you can
use computer system the
more you can make your work easier.

And if in this case system is not computerized then it has


to face a lot of problems because every task gets complex
and time consumable.

● Costly
● Difficult in searching the records
● Maintenance problem
● Time consuming
● Tedious

6
PROPOSED SYSTEM

Proposed system is a system which is computerized in


every
manner. Computerized system is not just adding
machines but they are capable of doing much complex,
tedious and cumbersome tasks.

Processing of data by hand is satisfactory only when the


amount of data to be processed is small and also the
manual processing is slow, monotonous & often subject
to error.

Above explanation is clearly telling us that existing


system contains a lot of deficiencies which can be
removed only by following proposed system.

Now a days, computer graph is at its extent.


Computerization contains, a lot of benefits so that
everyone chasing and following computerized items,
Now, question arises what kind of help this project or
computerized system can give to remove all
disadvantages of this existing system.

7
Introduction of Project
Sport Management System is a software system where
the management of entire sport is computerized. The
sport management system is designed using Python
for front end and SQL Server as the secured backend
database.

In this project the details are maintained like sport


details, add student , add teacher and student data
process of adding data for the student etc .all are
computerized and the management is done without any
difficulty.

The reports can be viewed completely and the head of the


management daily or weekly or monthly can review it.
For company auditing it will be more useful. This
Proposed System will be interactive, faster and user-
friendly for the end users. Using the sport management
system, the following activities can be performed.

● Login
● Add student
● Add teacher
● Review data

8
3 ANALYSIS

INTRODUCTION - In this stage we study the exact


requirement of user and then to developed program
according them. Analysis phase has two stages they are
Requirement analysis and specification the aim of this is to
understand the requirement of user and document them
properly. This phase consist of two distinct activities.
❖ Requirement gathering analysis.
❖ And requirement specification or SRS
documentation

Software Requirement:
❖Windows 7 or Above Operating system
❖Python IDE (in front end)
❖MYSQL (in back end)

Hardware Requirement:
❖RAM :- 2 GB or more
❖I3 Processor
❖2 GB Hard Disk
❖Printer
❖Scanner

9
OBJECTIVE OF THE PROJECT
The aim of this project is to design a sport management system for
running a sport hub. The system should be as flexible as possible
so that it can be used for different sport club. You have to find out
which procedures sport have and based on that information, you
should create a system which makes it efficient.

LIMITATION OF THE PROJECT


Manually keeping records is very time consuming data Is Not
Always Reliable As It Is Hand Written And Some Human Errors
Might Have Occurred Example Wrong Telephone Number
Among Other.

10
Data Flow Diagrams

The data flow diagrams is a hierarchical graphical


model of a system that show the different processing
activities or functions that the system perfumes and the
data interchange among those function. This technique
is so popular because the fact of DFD is very simple
formalism it is to understand and use. A DFD model
uses a very limited number of primitive symbols to
represent the function performed by a system and the
data flow among these function.
SYMBOLS USED FOR DFD’s

There is essentially five different type of symbols used


for constructing DFDS. These primitive symbol are
depicted in figure and explained as follows:

11
Figure of symbols

External entity Process Data store

Data flow Output

Function symbol: A function is represented using a circle this symbol is


called a process or a bubble. It is used for process on data.

External entity symbol: An external entity such as a librarian, a library


member, etc. is represented by a rectangle.

Data flow symbol: A directed arc (or an arrow) is used as data flow
symbol. It symbol represent the concoction between two processes or
external entity.

Data store symbol: The data store symbol represented by two parallel
lines. It is used to show data store.

Output symbol: the output symbol is shown in figure. It is used for hard
copy to produce.

12
Data flow diagram of the system

SELECT USER
,
FORM

CREATE
NEW USER
SIGN IN

LOGIN

ADD TEACHER ADD SEARCH


STUDENT DATA

Add sport
Add sport

13
FRONT END DESIGNING USING
PYTHON

Python is a popular programming language. It was created by


Guido van Rossum, and released in 1991.

It is used for:

● web development (server-side),


● software development,
● mathematics,
● system scripting.

What can Python do?


Python can be used on a server to create web applications.

Python can be used alongside software to create workflows.

Python can connect to database systems. It can also read and


modify files.

Python can be used to handle big data and perform complex


mathematics.

Python can be used for rapid prototyping, or for production-


ready software development.

14
REASONS FOR CHOOSING PYTHON AS
THE FRONT END TOOL

Python works on different platforms (Windows, Mac, Linux,


Raspberry Pi, etc).

Python has a simple syntax similar to the English language.

Python has syntax that allows developers to write programs with


fewer lines than some other programming languages.

Python runs on an interpreter system, meaning that code can be


executed as soon as it is written. This means that prototyping can
be very quick.

Python can be treated in a procedural way, an object-oriented


way or a functional way.

15
START PROJECT
This Window is used to Select User either Registered or New User.
When User Press 1 it will show login window, if user press 2 then it will show
new user window and if user press 3 it will close the project.

NEW USER REGISTATION


This Is The Form On Which User Will Enter New User Name That Must Be
Unique And Enter A Password For Login. After Fill User Name And Password, User
Will Click On Click To Save Button And Click On Log In Button For Further Action.

16
ADDING DATA ON SIGN UP WINDOW

Input all the details on the registration form to make your login id to procced further
Click on submit to save your data

If you not fill all the details it show error :

17
Login Form:-
This Is A First Splash Form Or HOME PAGE, Which Asks For A Password
For Further Applications In This Home Page We Load The Software For Start. This Is
The First Screen Through Which Users Can Log In To The System. User Name And
Password. As He Click The Login Button The Main Form Will Be Displayed, Then
Progress Bar Value Goes From 0 To 100, After 100 Welcome Screen Will Display.

18
WELCOME SCREEN

Main Form Is A Base Of A Project. It Is The First Interface Of User

So We Will Make It Simple Or Easy. We Will Give It The GUI Interface

To Make It Easy. In The Main Form There Is Seven Labels And Every

Label Have There Own Work. The Main Form Will Be Canted With The

All Forms With The Help Of Coding. Mail Form Several Menus And

Submenus From Where User Select Several Options.


Now the main app is open now we can proceed further

ADD TEACHER

Now you can add the detail of the teacher for participation sport there are some fields

to fill such as ,teacher code ,teacher name, teacher subject, sport . Then add sport or

add teacher then your data will be saved.

If you not add the data it will so error


Now you can add the detail of student for participation on sport there are some
fields to fill such as , student code, student name, student subject ,sport then
submit the detail.

If you not fill the data it will show error


Now the add update data you can access on both student window and teacher
window
Now you can search the whole data of student in the app you have to input only
user code then you can saw all the data you have given in the add student
interface .
CODING
FROM TKINTER IMPORT*
FROM TKINTER IMPORT TTK
IMPORT MYSQL.CONNECTOR AS C;
FROM TKINTER IMPORT MESSAGEBOX
CON=C.CONNECT(HOST="LOCALHOST",PASSWORD="261988",USER="ROOT",DAT
ABASE="SPORT_HUB")
CUR=CON.CURSOR()
WIN=TK()
WIN.GEOMETRY("2500X2000")
WIN.CONFIG(BG="SKY BLUE")

IMG2=PHOTOIMAGE(FILE="NEMER.PNG")
LABEL(WIN,IMAGE=IMG2).PLACE(X=750,Y=100)
LABEL(WIN,TEXT="GET READY TO DIVE INTO THE ACTION WITH OUR
ELECTRIFYING COVERAGE OF TODAYS TOP SPORTSEVENTS—WHERE EVERY
PLAY, EVERY MOVE, AND EVERY SECOND
COUNTS!",FONT=("SCRIPT",30,"BOLD"),BG="SKY
BLUE",FG="WHITE").PLACE(X=0,Y=625)

LABEL(WIN,TEXT="MOVE, AND EVERY SECOND


COUNTS!",FONT=("SCRIPT",30,"BOLD"),BG="SKY
BLUE",FG="WHITE").PLACE(X=500,Y=675)
LABEL(WIN,TEXT="LET'S PLAY
INDIA",FONT=("IMPACT",35,"BOLD"),BG="WHITE",FG="PINK").PLACE(X=600,Y=730
)
DEF CLOSE():
IF MESSAGEBOX.ASKYESNO("SELECT","YES/NO")==TRUE:
WIN.DESTROY()
DEF SIGNUP():
WIN2=TOPLEVEL()
WIN2.GEOMETRY("2500X2000")
V1=STRINGVAR()
V2=STRINGVAR()
V3=STRINGVAR()
V4=STRINGVAR()
V5=STRINGVAR()
LABEL(WIN2,TEXT="SIGNUP WINDOW",FONT=("BOLD
30"),BG="PINK").PACK(FILL="BOTH")
LABEL(WIN2,TEXT="NAME",FONT=("BOLD
20"),BG="TEAL",WIDTH=15).PLACE(X=10,Y=100)
LABEL(WIN2,TEXT="USER NAME",FONT=("BOLD

24
20"),BG="TEAL",WIDTH=15).PLACE(X=10,Y=200)
LABEL(WIN2,TEXT="GENDER",FONT=("BOLD
20"),BG="TEAL",WIDTH=15).PLACE(X=10,Y=300)
LABEL(WIN2,TEXT="MOBILE NUMBER",FONT=("BOLD
20"),BG="TEAL",WIDTH=15).PLACE(X=10,Y=400)
LABEL(WIN2,TEXT="PASSWORD",FONT=("BOLD
20"),BG="TEAL",WIDTH=15).PLACE(X=10,Y=500)

T1=ENTRY(WIN2,FONT=("BOLD 20"),TEXTVARIABLE=V1)
T1.PLACE(X=350,Y=100)
T1.FOCUS_SET()
T2=ENTRY(WIN2,FONT=("BOLD 20"),TEXTVARIABLE=V2)
T2.PLACE(X=350,Y=200)
T3=ENTRY(WIN2,FONT=("BOLD 20"),TEXTVARIABLE=V3)
T3.PLACE(X=350,Y=300)
T4=ENTRY(WIN2,FONT=("BOLD 20"),TEXTVARIABLE=V4)
T4.PLACE(X=350,Y=400)
T5=ENTRY(WIN2,SHOW="*",FONT=("BOLD 20"))
T5.PLACE(X=350,Y=500)
DEF RESET():
T1.DELETE(0,END)
T2.DELETE(0,END)
T3.DELETE(0,END)
T4.DELETE(0,END)
T5.DELETE(0,END)
DEF SUBMIT():
L=[]
A=T1.GET()
B=T2.GET()
C=T3.GET()
D=T4.GET()
E=T5.GET()
L=[A,B,C,D,E]
IF A==''OR B==''OR C==''OR D==''OR E==''OR L=='':
MESSAGEBOX.SHOWERROR("ERROR","BLOCK ARE
EMPTY",PARENT=WIN2)
ELSE:
Q="INSERT INTO SIGNUP VALUES(%S,%S,%S,%S,%S)"
CUR.EXECUTE(Q,L)
CON.COMMIT()
MESSAGEBOX.SHOWINFO("SUCCESS","DATA HAS BEEN SAVED")

BUTTON(WIN2,TEXT="SUBMIT",FONT=("IMPACT 20"),WIDTH=15,BG="SKY

25
BLUE",COMMAND=SUBMIT).PLACE(X=50,Y=600)
BUTTON(WIN2,TEXT="CLOSE",FONT=("IMPACT 20"),WIDTH=15,BG="SKY
BLUE",COMMAND=WIN2.DESTROY).PLACE(X=400,Y=600)
BUTTON(WIN2,TEXT="RESET",FONT=("IMPACT
20"),COMMAND=RESET,BG="SKY BLUE").PLACE(X=750,Y=600)
WIN2.MAINLOOP()
DEF SIGNIN():

DEF APP():
WIN4=TOPLEVEL()
WIN4.GEOMETRY("1500X1000")
WIN4.TITLE ("APP WINDOW")
WIN4.CONFIG(BG="PINK")
LABEL(WIN4,TEXT="WELCOME",FONT=("IMPACT 50"),BG="SKY
BLUE",FG="WHITE").PACK(FILL="BOTH")
DEF F1():
WIN5=TOPLEVEL()
WIN5.GEOMETRY("1500X1000")
WIN5.TITLE ("APP WINDOW")
WIN5.CONFIG(BG="PINK")
LABEL(WIN5,TEXT="WELCOME",FONT=("IMPACT 50"),BG="SKY
BLUE",FG="WHITE").PACK(FILL="BOTH")
LABEL(WIN5,TEXT="TEACHER CODE",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=120)
IMG9=PHOTOIMAGE(FILE="ADDD.PNG")
LABEL(WIN5,IMAGE=IMG9).PLACE(X=1000,Y=100)

#VARIABLES
V1=STRINGVAR()
V2=STRINGVAR()
V3=STRINGVAR()
V4=STRINGVAR()

E1=ENTRY(WIN5,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V1)
E1.PLACE(X=450,Y=120)
E1.FOCUS_SET()

LABEL(WIN5,TEXT="TEACHER NAME",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=220)
E2=ENTRY(WIN5,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V2)
E2.PLACE(X=450,Y=220)

26
LABEL(WIN5,TEXT="TEACHER SUBJECT",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=320)
E3=ENTRY(WIN5,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V3)
E3.PLACE(X=450,Y=320)

LABEL(WIN5,TEXT="CONDUCTIVITY FOR
SPORTS",WIDTH=20,FONT=("BOLD 20")).PLACE(X=10,Y=420)

L=["CRICKET","FOOTBALL","BATMINTON","HOCKEY","TENNIS","CARROM","CHES
S"]
E4=TTK.COMBOBOX(WIN5,VALUES=L,FONT=("BOLD
20"),STATE="READONLY",TEXTVARIABLE=V4)
E4.PLACE(X=450,Y=420)
E4.SET("-------SELECT SPORTS-------")
DEF F4():
T1=V1.GET()
T2=V2.GET()
T3=V3.GET()
T4=V4.GET()
L1=[]
L2=[T1,T2,T3,T4]
Q="SELECT T_CODE FROM TEACHER"
CUR.EXECUTE(Q)
FOR I IN CUR:
L1.APPEND(I[0])
IF T1=='' OR T2=='' OR T3=='' OR T4=='':
MESSAGEBOX.SHOWERROR("ERROR","FILL BOXES",PARENT=WIN5)
ELSE:
IF T1 NOT IN STR(L1):
Q1="INSERT INTO TEACHER VALUES(%S,%S,%S,%S)"
CUR.EXECUTE(Q1,L2)
CON.COMMIT()
MESSAGEBOX.SHOWINFO("SUCCED","DATA SAVED",PARENT=WIN5)
WIN5.DESTROY()

BUTTON(WIN5,TEXT="ADD TEACHER",FONT=("IMPACT
20"),WIDTH=15,BG="SKY BLUE",COMMAND=F4).PLACE(X=450,Y=550)
DEF F9():
WIN9=TOPLEVEL()
WIN9.GEOMETRY("1500X1000")
WIN9.TITLE ("APP WINDOW")

27
WIN9.CONFIG(BG="PINK")
LABEL(WIN9,TEXT="WELCOME",FONT=("IMPACT 50"),BG="SKY
BLUE",FG="WHITE").PACK(FILL="BOTH")
V1=STRINGVAR()
V2=STRINGVAR()
V3=STRINGVAR()
V4=STRINGVAR()

LABEL(WIN9,TEXT="TEACHER CODE",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=120)
E1=ENTRY(WIN9,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V1)
E1.PLACE(X=450,Y=120)
E1.FOCUS_SET()

LABEL(WIN9,TEXT="TEACHER NAME",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=220)
E2=ENTRY(WIN9,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V2)
E2.PLACE(X=450,Y=220)

LABEL(WIN9,TEXT="TEACHER SUBJECT",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=320)
E3=ENTRY(WIN9,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V3)
E3.PLACE(X=450,Y=320)

LABEL(WIN9,TEXT="SPORTS",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=420)

L=["CRICKET","FOOTBALL","BATMINTON","HOCKEY","TENNIS","CARROM","CHES
S"]
E4=TTK.COMBOBOX(WIN9,VALUES=L,FONT=("BOLD
20"),STATE="READONLY",TEXTVARIABLE=V4)
E4.PLACE(X=450,Y=420)
DEF F10():
T1=V1.GET()
T2=V2.GET()
T3=V3.GET()
T4=V4.GET()
L1=[]
L2=[T1,T2,T3,T4]
Q="SELECT T_CODE FROM ADD_TEACHER"
CUR.EXECUTE(Q)

28
FOR I IN CUR:
L1.APPEND(I[0])
IF T1=='' OR T2=='' OR T3=='' OR T4=='':
MESSAGEBOX.SHOWERROR("ERROR","FILL BOXES",PARENT=WIN9)
ELSE:
IF T1 NOT IN STR(L1):
Q2="INSERT INTO ADD_TEACHER VALUES(%S,%S,%S,%S)"
CUR.EXECUTE(Q2,L2)
CON.COMMIT()
MESSAGEBOX.SHOWINFO("SUCCED","DATA
SAVED",PARENT=WIN9)
WIN9.DESTROY()
WIN9.MAINLOOP()
BUTTON(WIN9,TEXT="ADD TEACHER",FONT=("IMPACT
20"),WIDTH=15,BG="SKY BLUE",COMMAND=F10).PLACE(X=450,Y=550)

BUTTON(WIN5,TEXT="ADD SPORT",FONT=("IMPACT
20"),WIDTH=10,BG="SKY BLUE",COMMAND=F9).PLACE(X=850,Y=420)
BUTTON(WIN5,TEXT="CLOSE",FONT=("IMPACT 20"),WIDTH=10,BG="SKY
BLUE",COMMAND=WIN5.DESTROY).PLACE(X=750,Y=550)

WIN5.MAINLOOP()

DEF F2():
WIN6=TOPLEVEL()
WIN6.GEOMETRY("1500X1000")
WIN6.TITLE ("APP WINDOW")
WIN6.CONFIG(BG="PINK")

V1=STRINGVAR()
V2=STRINGVAR()
V3=STRINGVAR()
V4=STRINGVAR()

LABEL(WIN6,TEXT="WELCOME",FONT=("IMPACT 50"),BG="SKY
BLUE",FG="WHITE").PACK(FILL="BOTH")
LABEL(WIN6,TEXT="STUDENT CODE",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=120)
E1=ENTRY(WIN6,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V1)
E1.PLACE(X=450,Y=120)
E1.FOCUS_SET()

29
LABEL(WIN6,TEXT="STUDENT NAME",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=220)
E2=ENTRY(WIN6,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V2)
E2.PLACE(X=450,Y=220)

LABEL(WIN6,TEXT="STUDENT SUBJECT",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=320)
E3=ENTRY(WIN6,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V3)
E3.PLACE(X=450,Y=320)

LABEL(WIN6,TEXT="SPORTS",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=420)

L=["CRICKET","FOOTBALL","BATMINTON","HOCKEY","TENNIS","CARROM","CHES
S"]
E4=TTK.COMBOBOX(WIN6,VALUES=L,FONT=("BOLD
20"),STATE="READONLY",TEXTVARIABLE=V4)
E4.PLACE(X=450,Y=420)
DEF F6():
T1=V1.GET()
T2=V2.GET()
T3=V3.GET()
T4=V4.GET()
L1=[]
L2=[T1,T2,T3,T4]
Q="SELECT S_CODE FROM STUDENT"
CUR.EXECUTE(Q)
FOR I IN CUR:
L1.APPEND(I[0])
IF T1=='' OR T2=='' OR T3=='' OR T4=='':
MESSAGEBOX.SHOWERROR("ERROR","FILL BOXES",PARENT=WIN6)
ELSE:
IF T1 NOT IN STR(L1):
Q1="INSERT INTO STUDENT VALUES(%S,%S,%S,%S)"
CUR.EXECUTE(Q1,L2)
CON.COMMIT()
MESSAGEBOX.SHOWINFO("SUCCED","DATA SAVED",PARENT=WIN6)
WIN6.DESTROY()

BUTTON(WIN6,TEXT="ADD STUDENT",FONT=("IMPACT
20"),WIDTH=15,BG="SKY BLUE",COMMAND=F6).PLACE(X=450,Y=550)
DEF ADD_SPORT():

30
WIN8=TOPLEVEL()
WIN8.GEOMETRY("1500X1000")
WIN8.TITLE ("APP WINDOW")
WIN8.CONFIG(BG="PINK")
LABEL(WIN8,TEXT="WELCOME",FONT=("IMPACT 50"),BG="SKY
BLUE",FG="WHITE").PACK(FILL="BOTH")
V1=STRINGVAR()
V2=STRINGVAR()
V3=STRINGVAR()
V4=STRINGVAR()

LABEL(WIN8,TEXT="STUDENT CODE",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=120)
E1=ENTRY(WIN8,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V1)
E1.PLACE(X=450,Y=120)
E1.FOCUS_SET()

LABEL(WIN8,TEXT="STUDENT NAME",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=220)
E2=ENTRY(WIN8,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V2)
E2.PLACE(X=450,Y=220)

LABEL(WIN8,TEXT="STUDENT SUBJECT",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=320)
E3=ENTRY(WIN8,WIDTH=20,FONT=("BOLD 20"),TEXTVARIABLE=V3)
E3.PLACE(X=450,Y=320)

LABEL(WIN8,TEXT="SPORTS",WIDTH=20,FONT=("BOLD
20")).PLACE(X=10,Y=420)

L=["CRICKET","FOOTBALL","BATMINTON","HOCKEY","TENNIS","CARROM","CHES
S"]
E4=TTK.COMBOBOX(WIN8,VALUES=L,FONT=("BOLD
20"),STATE="READONLY",TEXTVARIABLE=V4)
E4.PLACE(X=450,Y=420)

DEF F7():
T1=V1.GET()
T2=V2.GET()
T3=V3.GET()
T4=V4.GET()

31
L1=[]
L2=[T1,T2,T3,T4]
Q="SELECT S_CODE FROM ADD_SPORT"
CUR.EXECUTE(Q)
FOR I IN CUR:
L1.APPEND(I[0])
IF T1=='' OR T2=='' OR T3=='' OR T4=='':
MESSAGEBOX.SHOWERROR("ERROR","FILL BOXES",PARENT=WIN8)
ELSE:
IF T1 NOT IN STR(L1):
Q1="INSERT INTO ADD_SPORT VALUES(%S,%S,%S,%S)"
CUR.EXECUTE(Q1,L2)
CON.COMMIT()
MESSAGEBOX.SHOWINFO("SUCCED","DATA
SAVED",PARENT=WIN8)
WIN8.DESTROY()
BUTTON(WIN8,TEXT="ADD STUDENT",FONT=("IMPACT
20"),WIDTH=15,BG="SKY BLUE",COMMAND=F7).PLACE(X=450,Y=550)
BUTTON(WIN6,TEXT="ADD_SPORT",FONT=("IMPACT
20"),WIDTH=10,BG="SKY BLUE",COMMAND=ADD_SPORT).PLACE(X=850,Y=420)
BUTTON(WIN6,TEXT="CLOSE",FONT=("IMPACT 20"),WIDTH=10,BG="SKY
BLUE",COMMAND=WIN6.DESTROY).PLACE(X=750,Y=550)

DEF F3():
WIN11=TOPLEVEL()
#FOR LOGIN
WIN11.GEOMETRY("1500X2000")
WIN11.CONFIG(BG="PINK")
WIN11.TITLE("SPORT DETAILS")
LABEL(WIN11,TEXT="USER NAME",FONT=("ARIAL BLACK",
20),BG="TEAL").PLACE(X=50,Y=100)

C7=STRINGVAR()

T1=ENTRY(WIN11,FONT=("BOLD 20"),TEXTVARIABLE=C7)

T1.PLACE(X=350,Y=100)

DEF CHECK_DETAILS():

32
E7=C7.GET()

Q="SELECT S_CODE FROM STUDENT"


L=[]
C=0
CUR.EXECUTE(Q)
FOR I IN CUR:
L.APPEND(I)
IF E7=='' :
MESSAGEBOX.SHOWERROR("ERROR","FILL SOME
DATA",PARENT=WIN11)
ELSE:
FOR I IN L:
IF I[0]==E7:
C=C+1
IF C!=0:
MESSAGEBOX.SHOWINFO("SUCEED","USER
FOUND",PARENT=WIN11)
WIN12=TOPLEVEL()
WIN12.GEOMETRY("1500X1500")
L="WELCOME "+E7
L1=[E7]
LABEL(WIN12,TEXT=L,FONT=("BOLD
40"),BG="PINK",FG="BROWN").PACK(FILL='BOTH')
Q="SELECT * FROM STUDENT WHERE S_CODE=%S"
CUR.EXECUTE(Q,L1)
L4=[]
FOR K IN CUR:
L4.APPEND(K)
LABEL(WIN12,TEXT="S_CODE:",FONT=("ALGERIAN",
20),BG="SNOW",FG="BROWN").PLACE(X=50,Y=100)
LABEL(WIN12,TEXT="S_NAME:",FONT=("ALGERIAN",
20),BG="SNOW",FG="BROWN").PLACE(X=50,Y=150)
LABEL(WIN12,TEXT="S_SUBJECT:",FONT=("ALGERIAN",
20),BG="SNOW",FG="BROWN").PLACE(X=50,Y=200)
LABEL(WIN12,TEXT="SPORT:",FONT=("ALGERIAN",
20),BG="SNOW",FG="BROWN").PLACE(X=50,Y=250)
LABEL(WIN12,TEXT=L4[0][0],FONT=("ALGERIAN",
20),BG="SNOW",FG="BROWN").PLACE(X=400,Y=100)
LABEL(WIN12,TEXT=L4[0][1],FONT=("ALGERIAN",
20),BG="SNOW",FG="BROWN").PLACE(X=400,Y=150)
LABEL(WIN12,TEXT=L4[0][2],FONT=("ALGERIAN",
20),BG="SNOW",FG="BROWN").PLACE(X=400,Y=200)

33
LABEL(WIN12,TEXT=L4[0][3],FONT=("ALGERIAN",
20),BG="SNOW",FG="BROWN").PLACE(X=400,Y=250)
RESET()
WIN11.DESTROY()
WIN12.MAINLOOP()
ELSE:
MESSAGEBOX.SHOWERROR("ERROR","USER NOT
FOUND",PARENT=WIN11)

DEF RESET():
T1.DELETE(0,END)

T1.FOCUS_SET()
BUTTON(WIN11,TEXT="RESET",FONT=("BOLD
20"),COMMAND=RESET).PLACE(X=50,Y=200)
B5=BUTTON(WIN11,TEXT="CLOSE",FONT=("BOLD 20
"),BG="RED",COMMAND=WIN11.DESTROY)
BUTTON(WIN11,TEXT="SUBMIT",FONT=("BOLD 20
"),BG="SEAGREEN",COMMAND=CHECK_DETAILS).PLACE(X=200,Y=200)
B5.PLACE(X=400,Y=200)
LABEL(WIN11,TEXT="STUDENT DETAILS",FONT=("BOLD
40"),BG="PINK",FG="SKY BLUE").PLACE(X=500,Y=10)
WIN11.MAINLOOP()

BUTTON(WIN4,TEXT="TEACHER",FONT=("BOLD 30"),WIDTH=15,BG="SKY
BLUE",COMMAND=F1).PLACE(X=50,Y=150)

BUTTON(WIN4,TEXT="STUDENT",FONT=("BOLD 30"),WIDTH=15,BG="SKY
BLUE",COMMAND=F2).PLACE(X=50,Y=250)
BUTTON(WIN4,TEXT="SEARCH",FONT=("BOLD
30"),WIDTH=15,BG="TEAL",COMMAND=F3).PLACE(X=50,Y=350)
BUTTON(WIN4,TEXT="CLOSE",FONT=("BOLD
30"),WIDTH=15,BG="GREY",COMMAND=WIN4.DESTROY).PLACE(X=50,Y=450)
IMG3=PHOTOIMAGE(FILE="WELCOME.PNG")
LABEL(WIN4,IMAGE=IMG3).PLACE(X=750,Y=100)
WIN4.MAINLOOP()
WIN6.MAINLOOP()

34
DEF SUBMIT():
USERNAME=V1.GET()
PASSWORD=V2.GET()
L1=[]
L2=[]
Q1="SELECT USERNAME FROM SIGNUP"
CUR.EXECUTE(Q1)
FOR I IN CUR:
L1.APPEND(I)
Q2="SELECT PASSWORD FROM SIGNUP"
CUR.EXECUTE(Q2)
FOR J IN CUR:
L2.APPEND(J)
A=LEN(L1)
B=FALSE
FOR I IN RANGE(0,A):
IF USERNAME IN L1[I] AND PASSWORD IN L2[I]:
MESSAGEBOX.SHOWINFO("SUCCESS","USER FOUND",PARENT=WIN3)
APP()
B=TRUE
BREAK
IF B==FALSE:
MESSAGEBOX.SHOWERROR("ERROR","USER NOT FOUND")

WIN3=TOPLEVEL()
WIN3.GEOMETRY("1500X1000")
WIN3.TITLE ("LOGIN WINDOW")
WIN3.CONFIG(BG="PINK")
LABEL(WIN3,TEXT="USER NAME:",FONT=("IMPACT 30"),BG="SKY
BLUE",FG="TEAL").PLACE(X=75,Y=150)
LABEL(WIN3,TEXT="PASSWORD:",FONT=("IMPACT 30"),BG="SKY
BLUE",FG="TEAL").PLACE(X=75,Y=300)
LABEL(WIN3,TEXT="WELCOME USER PLEASE INPUT YOUR
DETAIL",FONT=("IMPACT 50"),BG="PINK",FG="TEAL").PACK(FILL="BOTH")

DEF RESET():
T1.DELETE(0,END)
T2.DELETE(0,END)
T1.FOCUS_SET()
V1=STRINGVAR()
V2=STRINGVAR()

35
T1=ENTRY(WIN3,FONT=("ITALIC 20"),TEXTVARIABLE=V1)
T1.PLACE(X=350,Y=150)
T1.FOCUS_SET()
T2=ENTRY(WIN3,FONT=("ITALIC 20"),SHOW="*",TEXTVARIABLE=V2)
T2.PLACE(X=350,Y=300)
BUTTON(WIN3,TEXT="RESET",FONT=("ITALIC 20"),COMMAND=
RESET).PLACE(X=350,Y=400)
BUTTON(WIN3,TEXT="BACK",FONT=("ITALIC
20"),COMMAND=WIN3.DESTROY).PLACE(X=500,Y=400)
BUTTON(WIN3,TEXT="SUBMIT",FONT=("ITALIC
20"),COMMAND=SUBMIT).PLACE(X=650,Y=400)
WIN3.MAINLOOP()
LABEL(WIN,TEXT="WELCOME",FONT=("IMPACT 50"),BG="SKY
BLUE",FG="WHITE").PACK(FILL="BOTH")
BUTTON(WIN,TEXT="SIGN UP",FONT=("BOLD
30"),WIDTH=15,BG="PINK",COMMAND=SIGNUP).PLACE(X=50,Y=150)
BUTTON(WIN,TEXT="SIGN IN",FONT=("BOLD
30"),WIDTH=15,BG="PINK",COMMAND=SIGNIN).PLACE(X=50,Y=250)
BUTTON(WIN,TEXT="CLOSE",FONT=("BOLD
30"),WIDTH=15,BG="PINK",COMMAND=CLOSE).PLACE(X=50,Y=350)

WIN.MAINLOOP()

36
CONCLUSION
Sport Management System software developed for a
company has been designed to achieve maximum
efficiency and reduce the time taken to handle the
sport Management activity. It is designed to replace
an existing manual record system thereby reducing
time taken for calculations and for storing data.

37
BIBLIOGRAPHY

To develop this project many references were used:

1. Computer Science with Python by Sumita Arora,


Dhanpat Rai Publications.

2. https://www.google.com

3. https://www.python.org.in

4. https://www.mysql.org

38
39

You might also like