Python Program using Tkinter with the place method


In this program, you will learn how to implement Tkinter with the place method in Python.


tk = Tk()

name = Label(tk, text="Name").place(x=30, y=50)

Example: How to implement Tkinter with the place method in Python

from tkinter import *

tk = Tk()
tk.title("Xiith.com")
tk.geometry("600x500")

name = Label(tk, text="Name").place(x=30, y=50)
email = Label(tk, text="Email").place(x=30, y=80)
country = Label(tk, text="Country").place(x=30, y=110)

e1 = Entry(tk).place(x=120, y=50)
e1 = Entry(tk).place(x=120, y=80)
e1 = Entry(tk).place(x=120, y=110)

b1 = Button(tk, text="Sign up").place(x=80, y=180)

tk.mainloop()

Output:

tkinter place method