VOOZH about

URL: https://www.geeksforgeeks.org/python/student-results-management-system-using-tkinter/

⇱ Student Results Management System Using Tkinter - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Student Results Management System Using Tkinter

Last Updated : 23 Jul, 2025

In this tutorial, we will create a simple exam result management system using Tkinter for the GUI and SQLite for the database. We will start by creating two files in the project directory: a Python file for the code (mainprogram.py) and a database file (studentrecords.db). Let's discuss the code for the system.

Student Results Management System Using Tkinter

Let's see the steps to create a Student Results Management System using Tkinter:

Importing the libraries

Creating the Database

We'll create an SQLite database called studentrecords.db and a table named StudentData to store student information.

Building the GUI

Now, let's start building the GUI using Tkinter.

Adding Student Records

We will create a function clicksubmit() to handle the submission of new student records.

Deleting a Record

Next, we'll create functions to delete a specific student record or clear the entire database.

Viewing Student Records

Finally, let's add functionality to display student marks sorted by subject.

Running the Application

Finally, we need to run the Tkinter main loop to display our GUI.

This is the complete code for the system

Complete Code

Output

Optionally we may add an icon for the application (.ico file) . Below is a screenshot of the home screen of the application.

👁 temp1

Conclusion

In this article, we discussed about building a simple exam result management system using Tkinter for the GUI and SQLite for the database. This system allows you to add student records, delete specific records, clear the entire database, and display student marks sorted by subject. Further functionalities including adding graphs , exporting data to a file etc. can be added to enhance the application.

Comment