Tkinter.LabelFrame.pack


Definition
Create LabelFrame in the Widget.

Syntax
Tkinter.LabelFrame.pack()
LabelFrame().pack()

Examples
The Checkbutton is placed inside the LabelFrame.

 from tkinter import*
master=Tk()

labelframe=LabelFrame(master, text="Your age")
labelframe.pack(side=LEFT)

checkbutton1=Checkbutton(labelframe, text=" 16+")
checkbutton1.pack()

checkbutton2=Checkbutton(labelframe, text=" 30+")
checkbutton2.pack()

checkbutton3=Checkbutton(labelframe, text=" 40+")
checkbutton3.pack()

checkbutton3=Checkbutton(labelframe, text=" 60+")
checkbutton3.pack()

master.mainloop()





Comments