ttk::notebook forget
Removes a page and its tab from the notebook.
PATHNAME forget TAB
Description
Removes the tab and unmaps its page. The page widget stays. When the selected tab goes, the next tab that is not hidden is selected, else the one before it.
Returns
An empty string.
Examples
% ttk::notebook .tnbfo
> foreach p {a b} {ttk::frame .tnbfo.$p; .tnbfo add .tnbfo.$p}
> .tnbfo forget .tnbfo.a
> list [.tnbfo tabs] [winfo exists .tnbfo.a]
.tnbfo.b 1
Errors
% ttk::notebook .tnbfo2; .tnbfo2 forget 5
Slave index 5 out of bounds
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1