0% found this document useful (0 votes)
27 views2 pages

Assignment 12 - Programing With Scratch

Programming with Scratch

Uploaded by

Sadia Khadim
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)
27 views2 pages

Assignment 12 - Programing With Scratch

Programming with Scratch

Uploaded by

Sadia Khadim
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/ 2

Assignment 12 - Programing with Scratch

Practice with the following:

🎯 Objective:
To design a simple desktop GUI application in Python using tkinter that accepts and displays
Student Admission Form details.

🛠️ Project Title:
"Student Admission Form System" – GUI Based

✅ Instructions:
Step 1: Open [Link]
●​ Visit [Link]
●​ Sign in and create a new Python project.

Step 2: Copy the following sample code into Replit


import tkinter as tk
from tkinter import messagebox

def submit_form():
name = name_entry.get()
age = age_entry.get()
grade = grade_entry.get()
contact = contact_entry.get()

if name and age and grade and contact:


[Link]("Admission Form", f"Student Name: {name}\nAge:
{age}\nGrade: {grade}\nContact: {contact}")
else:
[Link]("Warning", "Please fill all fields")

# Create main window


root = [Link]()
[Link]("Student Admission Form")
[Link]("300x300")

# Labels and Entry Fields


[Link](root, text="Student Name:").pack()
name_entry = [Link](root)
name_entry.pack()

[Link](root, text="Age:").pack()
age_entry = [Link](root)
age_entry.pack()
[Link](root, text="Grade:").pack()
grade_entry = [Link](root)
grade_entry.pack()

[Link](root, text="Contact No:").pack()


contact_entry = [Link](root)
contact_entry.pack()

# Submit Button
[Link](root, text="Submit", command=submit_form).pack(pady=10)

[Link]()
Step 3: Run Your Program
Click Run on Replit

A new window will open where you can fill and test the form

📸 What to Submit:
Screenshot of:
●​ The GUI form
●​ The message box after clicking Submit
●​ Optional: Modify the form to include Address or School Name

Screenshots of the working application

You might also like