O'Reilly logo

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

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

NoteBookFrame

tixNoteBookFrame pathName [option value...]

The tixNoteBookFrame command creates a new tixNoteBookFrame widget named pathName. It provides page tabs for use in tixNoteBook-style megawidgets and serves as the container for any page frames to be controlled. It is up to the programmer to set up event bindings to properly connect page tabs and frames.

Standard Options

-background

-borderwidth

-cursor

-disabledforeground

-font

-foreground

-height

-relief

-takefocus

-width

  

Widget-Specific Options

-backpagecolor color (backPageColor, BackPageColor)

Color for the background behind the page tabs.

-focuscolor color (focusColor, FocusColor)

Color for the tab focus highlight.

-inactivebackground color (inactiveBackground, Background)

Background color for inactive tabs. The active tab always has the same background color as the tixNoteBookFrame.

-slave boolean (slave, Slave)

Whether the tixNoteBookFrame is a slave and therefore should not make its own geometry requests.

-tabpadx amount (tabPadX, Pad)

Horizontal padding around the text labels on the page tabs.

-tabpady amount (tabPadY, Pad)

Vertical padding around the text labels on the page tabs.

Methods

pathName activate tabName

Make the page tab tabName the active tab and also give it the tab focus. Note that this does not raise the page frame associated with the tab. If tabName is the empty string, no tab will be active or have the tab focus.

pathName add tabName [option value...]

Add a new page tab named tabName to the tixNoteBookFrame. It is up to ...

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