notebook -
Multi-paned container widget
notebook pathName ?options?
Name | Database name | Database class |
---|---|---|
-height | height | Height |
If present and greater than zero, specifies the desired height of the pane area (not including internal padding or tabs). Otherwise, the maximum height of all panes is used. | ||
-padding | padding | Padding |
Specifies the amount of extra space to allocate for the widget. The padding is a list of up to four length specifications left top right bottom. If fewer than four elements are specified, bottom defaults to top, right defaults to left, and top defaults to left. | ||
-width | width | Width |
If present and greater than zero, specifies the desired width of the pane area (not including internal padding). Otherwise, the maximum width of all panes is used. |
The index argument to the above commands may take any of the following forms:
Name | Database name | Database class |
---|---|---|
-sticky | sticky | Sticky |
Specifies how the child pane is positioned within the pane area. Value is a string containing zero or more of the characters n, s, e, or w. Each letter refers to a side (north, south, east, or west) that the child window will "stick" to, as per the grid geometry manager. | ||
-text | text | Text |
Specifies a string to be displayed in the tab. | ||
-image | image | Image |
Specifies an image to display in the tab, which must have been created with the image create command. | ||
-compound | compound | Compound |
Specifies how to display the image relative to the text, in the case both -text and -image are present. See button(n) for legal values. |
notebook .nb .nb add [frame .nb.f1] -text "First tab" .nb add [frame .nb.f2] -text "Second tab" .nb select .nb.f2
widget(n), grid(n)