-
Notifications
You must be signed in to change notification settings - Fork 0
/
registrationingui.py
38 lines (27 loc) · 1.21 KB
/
registrationingui.py
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
from tkinter import*
base = Tk()
base.geometry('500x500')
base.title("Registration Form")
labl_0 = Label(base, text="Registration form",width=20,font=("bold", 20))
labl_0.place(x=90,y=53)
labl_1 = Label(base, text="FullName",width=20,font=("bold", 10))
labl_1.place(x=80,y=130)
entry_1 = Entry(base)
entry_1.place(x=240,y=130)
labl_2 = Label(base, text="Email",width=20,font=("bold", 10))
labl_2.place(x=68,y=180)
entry_02 = Entry(base)
entry_02.place(x=240,y=180)
labl_3 = Label(base, text="Gender",width=20,font=("bold", 10))
labl_3.place(x=70,y=230)
varblbl = IntVarblbl()
Radiobutton(base, text="Male",padx = 5, varblbliable=varblbl, value=1).place(x=235,y=230)
Radiobutton(base, text="Female",padx = 20, varblbliable=varblbl, value=2).place(x=290,y=230)
labl_4 = Label(base, text="Age:",width=20,font=("bold", 10))
labl_4.place(x=70,y=280)
entry_02 = Entry(base)
entry_02.place(x=240,y=280)
Button(base, text='Submit',width=20,bg='brown',fg='white').place(x=180,y=380)
# it will be used for displaying the registration form onto the window
base.mainloop()
print("Registration form is created seccussfully...")