Name

StackWindow

tixStackWindow pathname [option value...]

The tixStackWindow command creates a new tixStackWindow mega-widget named pathName. The tixStackWindow class is derived from the tix-VStack class. Similar to the tixNoteBook, it allows the user to select one of several pages (windows) to be displayed at one time. The user chooses the page to display by selecting its name from a tixSelect mega-widget.

Widget-Specific Options

-dynamicgeometry boolean (dynamicGeometry, DynamicGeometry)

Whether the tixStackWindow should dynamically resize to match the size of the current page. The default is false, in which case the size of the tixStackWindow will match the size of the largest page.

-ipadx amount (ipadX, Pad)

Amount of internal horizontal padding around the sides of the page subwidgets.

-ipady amount (ipadY, Pad)

Amount of internal vertical padding around the sides of the page subwidgets.

Subwidgets

tabs

The Stack mega-widget that displays a button for each page.

pageName

The frame widget of a page as Returned by the add method.

Methods

pathName add pageName [option value...]

Add a new page to the tixStackWindow and a button to select it in the Select subwidget. The pageName option will be the name of the page and the button in the Select subwidget. The pathName of the page’s master frame widget is Returned. Available options are as follows:

-Createcmd tclCommand

Command to be called the first time a page is to be displayed.

-label tclCommand

Text label for the button in the Select subwidget.

-

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.