FREE E LEARNING PLATFORM
HOMEEXCEPTIONSOOPSJVMINTRO
×

Python Syllabus

AKTU Python Syllabus

Unit I Introduction

Introduction to Python History of Python Features of Python Applications of Python Python Installation Python IDE Python Program Life Cycle First Python Program Blocks & Indentation Comments Keywords Identifiers Variables Input & Output Data Types Numeric Data Types Type Conversion Python Operators

Unit II Control Statements

if Statement if...else Statement Nested if elif Statement for Loop range() Function while Loop Nested Loops break Statement continue Statement pass Statement else with Loop

Unit III Complex Data Types

Strings String Operations String Methods String Built-in Functions Lists List Slicing List Methods List Built-in Functions Tuples Tuple Methods Dictionaries Dictionary Methods Dictionary Built-in Functions Python Built-in Functions Python Functions User Defined Functions Lambda Functions Recursive Functions

Unit IV File Handling

Introduction to File Handling open() read() readline() readlines() write() writelines() File Pointer seek() tell() File Modes

Unit V Packages & GUI

Modules Packages NumPy Pandas Matplotlib Tkinter Introduction Tkinter Widgets Button Widget Label Widget Entry Widget Frame Widget Menu Widget Event Handling Programming with IDE Tkinter Mini Project

Python Programs

100+ Solved Programs Pattern Programs File Programs Tkinter Programs

AKTU Questions

Unit I Questions Unit II Questions Unit III Questions Unit IV Questions Unit V Questions Viva Questions Python MCQs

Previous Papers

AKTU 2026 (Solved) AKTU 2025 (Solved) AKTU 2024 (Solved) AKTU 2023 (Solved) AKTU 2022 (Solved)
 

Tkinter Mini Project in Python

Tkinter Mini Project using Python

Student Record Management System using Tkinter

Tkinter is Python's standard Graphical User Interface (GUI) library that allows developers to build desktop applications with windows, buttons, labels, text boxes, menus and many other GUI components. In this tutorial, we shall develop a simple Student Record Management System. This project demonstrates how Python and Tkinter can be used to create professional desktop applications without using any third-party library.


Learning Objectives

After completing this project you will learn:

  • Creating GUI applications using Tkinter
  • Creating Labels and Entry Widgets
  • Using Buttons
  • Reading User Input
  • Displaying Output
  • Event Handling
  • Using Grid Layout Manager
  • Developing Beginner GUI Applications
Tkinter Project Overview

Software Requirements

Software Requirement
Python Python 3.x
Tkinter Built-in Library
Editor IDLE / VS Code / PyCharm
Operating System Windows / Linux / macOS

Mini Project Features

  • Simple GUI Window
  • Student Name Entry
  • Roll Number Entry
  • Branch Entry
  • Percentage Entry
  • Submit Button
  • Display Student Information
  • Easy to Understand Source Code

Project Flow

  1. Create the Main Window
  2. Create Labels
  3. Create Entry Boxes
  4. Create Submit Button
  5. Read User Input
  6. Display Student Details
Student Record GUI Layout

Project Description

This project stores basic information of a student including Name, Roll Number, Branch and Percentage. Whenever the user clicks the Submit button, the entered information is displayed inside the application window. This mini project demonstrates the practical implementation of Labels, Entry widgets, Buttons, String Variables and Event Handling in Tkinter.


Complete Python Program

The following Python program creates a simple Student Record Management System using Tkinter.



from tkinter import *

window = Tk()

window.title("Student Record Management System")

window.geometry("700x500")

window.configure(bg="white")



Step 1 : Import Tkinter Library

The first step is to import the Tkinter library. Python provides Tkinter as a built-in module, so no additional installation is required.

from tkinter import *

Step 2 : Create the Main Window

The Tk() function creates the main application window. We also set the window title, size and background color.

window = Tk()

window.title("Student Record Management System")

window.geometry("700x500")

window.configure(bg="white")

Step 3 : Create Heading

The heading makes the application more attractive and user friendly.

heading = Label(
    window,
    text="Student Record Management System",
    font=("Arial",20,"bold"),
    bg="navy",
    fg="white",
    pady=10
)

heading.pack(fill=X)

Step 4 : Create Labels

Now create labels for all student details.

nameLabel = Label(
    window,
    text="Student Name",
    font=("Arial",12)
)

rollLabel = Label(
    window,
    text="Roll Number",
    font=("Arial",12)
)

branchLabel = Label(
    window,
    text="Branch",
    font=("Arial",12)
)

percentageLabel = Label(
    window,
    text="Percentage",
    font=("Arial",12)
)

Step 5 : Create Entry Widgets

Entry widgets are used to receive input from the user.

nameEntry = Entry(
    window,
    width=35,
    font=("Arial",12)
)

rollEntry = Entry(
    window,
    width=35,
    font=("Arial",12)
)

branchEntry = Entry(
    window,
    width=35,
    font=("Arial",12)
)

percentageEntry = Entry(
    window,
    width=35,
    font=("Arial",12)
)

Step 6 : Arrange Widgets using Grid Layout

The grid() layout manager arranges the widgets in rows and columns.

nameLabel.grid(row=1,column=0,padx=20,pady=15,sticky=W)
nameEntry.grid(row=1,column=1,padx=20,pady=15)

rollLabel.grid(row=2,column=0,padx=20,pady=15,sticky=W)
rollEntry.grid(row=2,column=1,padx=20,pady=15)

branchLabel.grid(row=3,column=0,padx=20,pady=15,sticky=W)
branchEntry.grid(row=3,column=1,padx=20,pady=15)

percentageLabel.grid(row=4,column=0,padx=20,pady=15,sticky=W)
percentageEntry.grid(row=4,column=1,padx=20,pady=15)

Tkinter Student Entry Form

Explanation

The program now creates the complete user interface consisting of Labels and Entry widgets. However, no processing takes place yet. The next step is to create a Submit button and define the function that reads the values entered by the user.



Step 7 : Create the Submit Function

The submit() function reads all the values entered by the user and displays them inside the application window.

def submit():

    name = nameEntry.get()

    roll = rollEntry.get()

    branch = branchEntry.get()

    percentage = percentageEntry.get()

    resultLabel.config(

        text="Student Name : " + name +
        "\nRoll Number : " + roll +
        "\nBranch : " + branch +
        "\nPercentage : " + percentage + "%"

    )

Step 8 : Create the Submit Button

Whenever the user clicks the Submit button, the submit() function is executed.

submitButton = Button(

    window,

    text="Submit",

    font=("Arial",12,"bold"),

    bg="green",

    fg="white",

    width=15,

    command=submit

)

submitButton.grid(

    row=5,

    column=1,

    pady=20

)

Step 9 : Create the Output Label

The output label displays the complete student information.

resultLabel = Label(

    window,

    text="",

    font=("Arial",12),

    fg="blue",

    justify=LEFT

)

resultLabel.grid(

    row=6,

    column=0,

    columnspan=2,

    padx=20,

    pady=20,

    sticky=W

)

Step 10 : Run the Application

The following statement starts the Tkinter event loop.

window.mainloop()

Tkinter Student Record Output

Sample Output

Field Value
Student Name Rahul Kumar
Roll Number 220101001
Branch Computer Science
Percentage 88%

How the Program Works

  • The GUI window is created.
  • The user enters all student details.
  • The Submit button is clicked.
  • The submit() function reads all Entry widgets.
  • The details are displayed using the Label widget.


Complete Python Source Code

The following program combines all the previous steps into one complete Tkinter Mini Project. You can copy and execute this program directly in IDLE, VS Code or PyCharm.

from tkinter import *

def submit():

    name = nameEntry.get()

    roll = rollEntry.get()

    branch = branchEntry.get()

    percentage = percentageEntry.get()

    resultLabel.config(

        text="Student Name : " + name +
        "\nRoll Number : " + roll +
        "\nBranch : " + branch +
        "\nPercentage : " + percentage + "%"

    )

def clear():

    nameEntry.delete(0,END)

    rollEntry.delete(0,END)

    branchEntry.delete(0,END)

    percentageEntry.delete(0,END)

    resultLabel.config(text="")

window = Tk()

window.title("Student Record Management System")

window.geometry("700x520")

window.configure(bg="white")

Label(window,

text="Student Record Management System",

font=("Arial",20,"bold"),

bg="navy",

fg="white",

pady=10).pack(fill=X)

nameLabel=Label(window,text="Student Name",font=("Arial",12))
rollLabel=Label(window,text="Roll Number",font=("Arial",12))
branchLabel=Label(window,text="Branch",font=("Arial",12))
percentageLabel=Label(window,text="Percentage",font=("Arial",12))

nameEntry=Entry(window,width=35,font=("Arial",12))
rollEntry=Entry(window,width=35,font=("Arial",12))
branchEntry=Entry(window,width=35,font=("Arial",12))
percentageEntry=Entry(window,width=35,font=("Arial",12))

nameLabel.grid(row=1,column=0,padx=20,pady=15,sticky=W)
nameEntry.grid(row=1,column=1,padx=20,pady=15)

rollLabel.grid(row=2,column=0,padx=20,pady=15,sticky=W)
rollEntry.grid(row=2,column=1,padx=20,pady=15)

branchLabel.grid(row=3,column=0,padx=20,pady=15,sticky=W)
branchEntry.grid(row=3,column=1,padx=20,pady=15)

percentageLabel.grid(row=4,column=0,padx=20,pady=15,sticky=W)
percentageEntry.grid(row=4,column=1,padx=20,pady=15)

Button(window,

text="Submit",

bg="green",

fg="white",

width=15,

command=submit).grid(row=5,column=1,pady=10)

Button(window,

text="Clear",

bg="orange",

fg="white",

width=15,

command=clear).grid(row=5,column=2,padx=10)

resultLabel=Label(

window,

text="",

font=("Arial",12),

fg="blue",

justify=LEFT

)

resultLabel.grid(

row=6,

column=0,

columnspan=3,

padx=20,

pady=20,

sticky=W

)

window.mainloop()

Advantages of this Mini Project

  • Easy to understand for beginners.
  • Demonstrates GUI programming using Tkinter.
  • Shows event handling using Buttons.
  • Uses Labels, Entry widgets and Grid Layout.
  • Suitable for AKTU Practical Examination.
  • Can be extended into a complete database project.

Applications

  • Student Record Management
  • College Projects
  • Employee Information System
  • Library Management System
  • Hospital Registration System
  • Desktop GUI Applications

Viva Questions

  1. What is Tkinter?
  2. What is the purpose of Tk()?
  3. What is mainloop()?
  4. What is the difference between pack() and grid()?
  5. What is an Entry widget?
  6. How do you create a Button?
  7. What is event handling?
  8. Why is Tkinter called a GUI toolkit?
  9. How do you read data from an Entry widget?
  10. Which layout managers are available in Tkinter?

Interview Questions

  • Explain Tkinter architecture.
  • Difference between Tkinter and PyQt.
  • How are widgets created in Tkinter?
  • How do callback functions work?
  • What is the purpose of geometry()?
  • How do you change widget colors?
  • How do you display images in Tkinter?
  • How do you create menus in Tkinter?

Conclusion

In this tutorial, you learned how to develop a complete Student Record Management System using Python Tkinter. You created labels, entry widgets, buttons, event handling functions and displayed user input in a professional desktop application. This project provides an excellent foundation for developing larger GUI applications such as Library Management Systems, Hospital Management Systems, Banking Applications and Inventory Management Systems.