Name
frame
- frame
pathName[option value...] The frame command creates a new frame widget named
pathName. The main purpose of a frame widget is to serve as a container for laying out other widgets using one of Tk's geometry managers.
Standard Options
-borderwidth | -cursor | -highlightbackground |
-highlightcolor | -highlightthickness | -relief |
-takefocus |
Widget-Specific Options
- -background
color(background,Background) Same as standard option, but may be the empty string to display no background or border.
- -class
name(class,Class) Class to use when querying the option database and for bindings. May not be changed with configure.
- -colormap
colormap(colormap,Colormap) Color map to use for window.
Colormapmay be either new, in which case a new colormap is created, or the name of another window, in which case that window's colormap is used. The default is to use the colormap of its parent. May not be changed withconfigure.- -container
boolean(container,Container) Whether the window will be used as a container in which to embed some other application. May not be changed with configure.
- -height
height(height,Height) Desired height, in screen units, for the window.
- -visual
visual(visual,Visual) Visual class to use for the window.
Visualmust bedirectcolor,grayscale,pseudocolor,staticcolor,staticgray, ortruecolor.- -width
width(width,Width) Desired width, in screen units, for the window.
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