REGISTRATION FORM in PYTHON | PART 2

Published: 13 March 2022
on channel: Let's Try Coding
14
1

from tkinter import*

m=Tk()

def click_save():
print("First name: %s\n Last name: %s\n Middle name: %s\n Age: %s\n Mobile number: %s" % (e1.get(),e2.get(),e3.get(),e4.get(),e5.get()))

Label(m,text="First Name:").grid(row=0,column=0,pady=10)
Label(m,text="Last Name:").grid(row=1,column=0,pady=10)
Label(m,text="Middle Name:").grid(row=2,column=0,pady=10)
Label(m,text="Age:").grid(row=3,column=0,pady=10)
Label(m,text="Mobile Number:").grid(row=4,column=0,pady=10)

Button(m,text="Cancel").grid(row=6,column=2)
Button(m,text="Save",command=click_save).grid(row=6,column=3)

e1=Entry(m);
e1.grid(row=0,column=1)
e2=Entry(m);
e2.grid(row=1,column=1)
e3=Entry(m);
e3.grid(row=2,column=1)
e4=Entry(m);
e4.grid(row=3,column=1)
e5=Entry(m);
e5.grid(row=4,column=1)
mainloop()

#python
#form
#signup
#beginner
#learningpython
#part2


On this page of the site you can watch the video online REGISTRATION FORM in PYTHON | PART 2 with a duration of hours minute second in good quality, which was uploaded by the user Let's Try Coding 13 March 2022, share the link with friends and acquaintances, this video has already been watched 14 times on youtube and it was liked by 1 viewers. Enjoy your viewing!