The PNB (Panther notebook) widget is a variant of the tab notebook which has the much of the appearance of notebooks in OS X from 10.3 ("Panther") and above.
On non-Mac platforms, it falls back to the standard Tile notebook. The old and new style Mac OS X notebooks are compared in Apple's Human
The PNB widget first appeared in TclMacBag v0.09 with what would now be considered the 'tnb' style.
Support for styles appeared from v0.18 onward.
The name of the button decoration style to be used.
Style fashions change quite a bit in the Mac world, and the current rule seems to be: "Do whatever looks good."
The 'tnb' style provides the classic Panther Notebook look (pictured above) and is the default if you do not specify a -style option.
However, the following options should not be used: -state, -image, -compound, -height, -underline.
set pnb [::tclmacbag::pnb .nb]
$pnb add [ttk::frame $pnb.a1] -text "Cats"
$pnb add [ttk::frame $pnb.a2] -text "Monkeys"
$pnb add [ttk::frame $pnb.a3] -text "People"
pack $pnb -expand yes -fill both -padx 10 -pady 5
PNB does not look good when created with only one tab in the notebook. So don't do that.
Always control your toplevel's dimensions when using this widget (using either [wm geometry] and/or [wm minsize]) to ensure frame contents (including buttons) are visible.
PNB does not support pinstripe darkening inside notebook frames.