Procedure to Develop a Registration Form Using Tkinter in Python
1 min read
Welcome to a New Article on "How to Create a Registration Form Using Python"
So, here we are gonna use Tkinter Module.
What is TKINTER?
Answer :- Tkinter is a standard GUI Library for or in Python. It provides a powerful object-oriented interface to create GUI Kit.
In some ways, programming is like painting. You start with a blank canvas and certain basic raw materials. You use a combination of science, art, and craft to determine what to do with them. - Andrew Hunt
How to Import this Module ?
Answer :- Go to Terminal > Type "pip install tkinter" and you're done; wait for installation to get completed.
To Check Installation, Type "import tkinter".
So, here's a Source Code for Creating a Registration Form using Python Tkinter.
Source Code :-
from tkinter import*
root = Tk()
root.geometry('500x500')
root.title("Registration Form")
label_0 = Label(root, text="Registration form",width=20,font=("bold", 20))
label_0.place(x=90,y=53)
label_1 = Label(root, text="FullName",width=20,font=("bold", 10))
label_1.place(x=80,y=130)
entry_1 = Entry(root)
entry_1.place(x=240,y=130)
label_2 = Label(root, text="Email",width=20,font=("bold", 10))
label_2.place(x=68,y=180)
entry_2 = Entry(root)
entry_2.place(x=240,y=180)
label_3 = Label(root, text="Gender",width=20,font=("bold", 10))
label_3.place(x=70,y=230)
var = IntVar()
Radiobutton(root, text="Male",padx = 5, variable=var, value=1).place(x=235,y=230)
Radiobutton(root, text="Female",padx = 20, variable=var, value=2).place(x=290,y=230)
label_4 = Label(root, text="Age:",width=20,font=("bold", 10))
label_4.place(x=70,y=280)
entry_2 = Entry(root)
entry_2.place(x=240,y=280)
Button(root, text='Submit',width=20,bg='brown',fg='white').place(x=180,y=380)
# it is use for display the registration form on the window
root.mainloop()
print("registration form successfully created...")
You Can Copy/Paste the code from above.