ttk::notebook hide
Hides a tab and keeps its page in the notebook.
PATHNAME hide TAB
Description
Sets the state of the tab to hidden. The tab has no place in the row, and tabs still lists its page. add with the page shows the tab again.
Returns
An empty string.
Examples
% ttk::notebook .tnbhi
> foreach p {a b} {ttk::frame .tnbhi.$p; .tnbhi add .tnbhi.$p}
> .tnbhi hide 0
> list [.tnbhi tab 0 -state] [.tnbhi select]
hidden .tnbhi.b
Errors
% ttk::notebook .tnbhi2; .tnbhi2 hide bogus
Invalid slave specification bogus
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1