Name

ListNoteBook

tixListNoteBook pathName [option value...]

The tixListNoteBook command creates a new tixListNoteBook mega-widget named pathName. The tixListNoteBook class is derived from the tixVStack 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 an hlist subwidget.

Widget-Specific Options

-dynamicgeometry boolean (dynamicGeometry, DynamicGeometry)

Whether the tixListNoteBook should dynamically resize to match the size of the current page. The default is false, in which case the size of the tixListNoteBook 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 page subwidgets.

Subwidgets

hlist

The tixHList mega-widget that displays the names of the pages.

pageName

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

Methods

pathName add pageName [option value...]

Add a new page to the tixListNoteBook. The pageName option must be the name of an existing entry in the hlist subwidget. The pathname of the page’s master frame widget is Returned. Available options are:

-Createcmd tclCommand

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

-raisecmd tclCommand

Command to be called whenever the page is raised by the user.

pathName delete pageName

Delete the given page ...

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.