Making The GUI Registration Form Using Python.||With Free Source Code.|||||
Copy Code :
from tkinter import *
root=Tk()
def click():
print("Your Data Has Successfully Saved On Our System")
root.geometry("555x333")
root.title("Registration Form By Technical Vandar")
root.wm_iconbitmap("forms.ico")
Label(root, text="Registration Form", font="lucida 20 bold").grid()
username=Label(root, text="UserName:")
address=Label(root, text="Address:")
email=Label(root, text="E-mail:")
phone=Label(root, text="Phone:")
username.grid(padx=10, pady=10, row=1, column=0)
email.grid(padx=10, pady=10, row=2, column=0)
address.grid(padx=10, pady=10, row=3, column=0)
phone.grid(padx=10, pady=10, row=4, column=0)
uservalue=StringVar()
emailvalue=StringVar()
addressvalue=StringVar()
phonevalue=StringVar()
userentry=Entry(root, textvariable="uservalue")
emailentry=Entry(root, textvariable="emailvalue")
addressentry=Entry(root, textvariable="addressvalue")
phoneentry=Entry(root, textvariable="phonevalue")
userentry.grid(row=1, column=1, padx=10, pady=10)
emailentry.grid(row=2, column=1, padx=10, pady=10)
addressentry.grid(row=3, column=1, padx=10, pady=10)
phoneentry.grid(row=4, column=1, padx=10, pady=10)
Checkbutton(root, text="Remember Me").grid()
Button(root, text="Submit Your Details", activebackground='red',activeforeground='pink', cursor='hand2', command=click).grid(row=5, column=1)
root.mainloop()
For ICON :
Comments
Post a Comment