ttk::notebook insert
Puts a page at a place in the row of tabs.
PATHNAME insert POSITION PAGE ?OPTION VALUE ...?
Description
Puts the tab of PAGE before the tab at POSITION, an index or end. A new page gets a new tab. A page that is already in the notebook moves to that place.
Returns
An empty string.
Examples
% ttk::notebook .tnbin
> foreach p {a b c} {ttk::frame .tnbin.$p}
> .tnbin add .tnbin.a
> .tnbin add .tnbin.b
> .tnbin insert 0 .tnbin.c
> .tnbin tabs
.tnbin.c .tnbin.a .tnbin.b
Errors
% ttk::notebook .tnbin2; ttk::frame .tnbin2.a; .tnbin2 insert 9 .tnbin2.a
Slave index 9 out of bounds
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1