Name

tabset

tabset pathName [option value...]

The tabset command creates a new tabset widget named pathName. A tabset widget displays a a series of overlapping widget layout folders. Only the contents of one folder, selected by using its tab, is displayed at one time. The tabset widget is similar to the notebook mega-widget in the Tix extension.

Standard Options

-activebackground

-activeforeground

-background

-borderwidth

-cursor

-font

-foreground

-highlightbackground

-highlightcolor

-highlightthickness

-relief

-selectbackground

-selectborderwidth

-selectforeground

-takefocus

Widget-Specific Options

-dashes dashStyle (dashes, Dashes)

Dash style for focus outline around selected tab’s label. Parameter dashStyle is a list of up to 11 numbers that alternately represent the lengths of the dashes and gaps. Each number must be between 1 and 255, inclusive. If dashStyle is the empty string, a solid line is drawn. The default is {5 2}.

-gap size (gap, Gap)

Gap, in pixels, between tabs. The default is 2.

-height height (height, Height)

Desired height, in screen units, for the window. If height is 0 (the default), the height is autosized.

-pageheight height (pageHeight, PageHeight)

Desired height, in screen units, for the area under the tabs for displaying the page contents. If height is 0 (the default), the height is autosized.

-pagewidth width (pageWidth, PageWidth)

Desired width, in screen units, for the area under the tabs for displaying the page contents. If width is 0 (the default), the width is autosized.

-rotate ...

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.