In this article, I'm going to show you how to create a grid layout using Tkinter and python programming language.
The user interface will entail the personal information like name, phone numbers, Email, password, and the submit button.
Project.
.From tkinter import*
.top = Tk()
.top.geometry("400x400")
.name = Label(top, text= "Name", fg="blue").place(x=30, y=50)
.phone = Label(top, text=" Phone", fg= "blue").place(x=30, y=90)
.email = Label(top, text="Email", fg="blue").place(x=30, y=130)
.password = Label(top, text="Password", fg= "blue").place(x=30, y=160)
.button= Label(top, text=" Submit", bg="green").place(x=300, y=300)
.button= Label(top, text="Cancel", bg ="green").place(x= 300, y=400)
.entry1=Entry(top, bg="red").place(x=200, y=50)
.entry2=Entry(top, bg="red").place(x=200, y=90)
.enrty3=Entry(top, bg="red").place(x=200, y=130)
.entry4= Entry(top, bg="red").place(x=200, y=160)
top.mainloop()
No comments:
Post a Comment