O'Reilly logo

Tcl/Tk in a Nutshell by Jeff Tranter, Paul Raines

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required