Table of Contents
Python program to create registration form using tkinter
Python program to create registration form using tkinter : This program explores various widgets classes their options and methods in tkinter
Create registration form using tkinter
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | from tkinter import * root=Tk() Label (root, text = "ITVoyagers Registration Form", bg="blue", fg="white",font="Verdana 16 bold italic").grid(row=0, columnspan=5) lab= Label( root, text= "Name of visitor", height=2, width=15,fg='blue',font="BOLD") lab.grid(row=1,column=1,sticky=W) w=Entry(root) w.grid(row=1,column=2) lab= Label( root, text= "Favourite programming language", height=2, width=25,fg='blue',font="BOLD") lab.grid(row=2,column=1,sticky=W) w=Entry(root) w.grid(row=2,column=2) lab= Label( root, text= "Gender", height=2, width=15,fg='blue',font="BOLD") lab.grid(row=3,column=1,sticky=W) var=IntVar() w=Radiobutton(root, text= "Male",variable= var, value=1) w.grid(row=3,column=2,sticky=N) w=Radiobutton(root, text= "Female",variable= var, value=2) w.grid(row=4,column=2,sticky=N) lab= Label( root, text= "Address", height=2, width=15,fg='blue',font="BOLD") lab.grid(row=5,column=1,sticky=W) w=Text( root, bd=2,height=5,width=15,relief=RAISED ) w.insert(INSERT,"Edit here") w.grid(row=5,column=2) lab= Label( root, text= "Email id", height=2, width=15,fg='blue',font="BOLD") lab.grid(row=6,column=1,sticky=W) w=Entry(root) w.grid(row=6,column=2) lab= Label( root, text= "Contact no", height=2, width=15,fg='blue',font="BOLD") lab.grid(row=7,column=1,sticky=W) w=Entry(root) w.grid(row=7,column=2) lab= Label( root, text= "Country", height=2, width=15,fg='blue',font="BOLD") lab.grid(row=8,column=1,sticky=W) w=Entry(root) w.grid(row=8,column=2) lab= Label( root, text= "State", height=2, width=15,fg='blue',font="BOLD") lab.grid(row=9,column=1,sticky=W) w=Entry(root) w.grid(row=9,column=2) CheckVar1=IntVar() CheckVar2=IntVar() Label(root,text="Select topics you wish to learn",fg='blue',font="BOLD").grid(row=10,column=1,sticky=W) C1=Checkbutton(root,text="Python",variable=CheckVar1) C2=Checkbutton(root,text="Business Intelligence",variable=CheckVar2) C1.grid(row=10,column=2,sticky=N) C2.grid(row=11,column=2,sticky=N) B=Button(root,text="REGISTER HERE", height=1, width=15, bg="blue", fg="White",font="Verdana 16 bold") B.grid(row=12,columnspan=3) |
Output

We are aiming to explain all concepts of python in easiest terms as possible.

ITVoyagers
Author
PRACTICALS/PRACTICE PROGRAM IN PYTHON
CHECKOUT OTHER RELATED TOPICS
CHECKOUT OTHER QUIZZES
Quizzes on File Handling |
Easy quiz on file handling in python part 1 |
Easy quiz on file handling in python part 2 |
Quizzes on Exception Handling |
Easy quiz on Exception Handling in python part 1 |
Easy Quiz on Exception Handling in python part 2 |
Quizzes on Regular Expressions |
Easy Quiz on Regular Expression in python part 1 |
Quizzes on Python concepts coming soon… |
Python basic quiz |
New and easy python quiz basic part 1 |
New and easy python quiz (basic) part 2 |
New and easy python quiz (basic) part 3 |
Python practice quiz set |
Best Practice Quiz Set on Python Programming Part 1 |
Best Practice Quiz Set on Python Programming Part 2 |
Best Practice Quiz Set on Python Programming Part 3 |
Best Practice Quiz Set on Python Programming Part 4 |
Best Practice Quiz Set on Python Programming Part 5 |