Programming Examples

Tkinter-program to create a registration form


GUI Program in Python

Create a Registration form in Tkinter to Accept the Roll, Name, and City from user

Solution

from tkinter import *
root=Tk()
root.geometry("250x300")
Label(root,text="Student Entry Form",font="arial 14 bold").grid(row=0,columnspan=2)
Label(root,text="").grid(row=1,column=0)
Label(root,text="Roll No ").grid(row=2,column=0)
Label(root,text="").grid(row=3,column=0)
Label(root,text="Name ").grid(row=4,column=0)
Label(root,text="").grid(row=5,column=0)
Label(root,text="City ").grid(row=6,column=0)
Label(root,text="").grid(row=7,column=0)
v1=StringVar()
v2=StringVar()
v3=StringVar()
e1=Entry(root,textvariable=v1).grid(row=2,column=1)
e2=Entry(root,textvariable=v2).grid(row=4,column=1)
e3=Entry(root,textvariable=v3).grid(row=6,column=1)
Button(root,text="Submit").grid(row=8,column=1)
root.mainloop()
Output


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz