The Frame Widget
Create a frame for enclosing other widgets using the
Frame method. For example:
$parent->Frame( options )The standard configuration options that apply to Frame are: -background, -bg, -borderwidth, -bw, -cursor, -height, -highlightbackground, -highlightcolor, -highlightthickness, -relief, -takefocus, and -width.
Other options are:
-class =>nameThe class associated with the frame.
-colormap =>\$windowSpecifies another window to share the colormap with. You can point to another window or use the value
newto specify a new colormap. Default isundef.-label =>stringThe string to use as a label for the frame.
-labelPackSpecifies options for the
packcommand.-labelVariable =>\$variableSpecifies a variable containing the text for the label.
-visual =>type nFor the X Window System, changes the depth of colors.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access