mightycoder
mightycoder

Reputation: 71

Titles for elements in tkinter

I want to add some description before(after) textfield or other elements in python tkinter but do not know how.
How can I do it?

Upvotes: 0

Views: 48

Answers (1)

Johan
Johan

Reputation: 1693

Use a Label

root = Tk()
L1 = Label(root, text="Your description")
T1 = Text(root)
L1.pack(side=LEFT)
T1.pack(side=RIGHT)
root.mainloop()

Upvotes: 1

Related Questions