Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
429 B
4
Indexable
Never
from tkinter import *

# https://www.tutorialspoint.com/python/tk_labelframe.htm
# https://www.youtube.com/watch?v=_auZ8TTkojQ&list=PLCC34OHNcOtoC6GglhF3ncJ5rLwQrLGnV&index=11

root = Tk()

labelframe = LabelFrame(root, text="This is a LabelFrame", padx=50, pady=50)
labelframe.pack(fill="both", expand="yes", padx=10, pady=10)
 
left = Label(labelframe, text="Inside the LabelFrame")
left.pack()
 
root.mainloop()