tui::packtui
Places widgets in their parent along a side of the free space, as the packer of Tk.
tui::pack PATH ?PATH ...? ?-option value ...?
Description
The options: -side (top, bottom, left, or right), -fill (none, x, y, or both), -expand, -anchor, -padx, and -pady. A distance is in pixels of Tk, at 8 pixels for each column and 16 for each row, or in cells with a c at the end. tui::pack forget PATH ... removes widgets from the layout, tui::pack info PATH gives their options, and tui::pack slaves PATH gives the packed children.
Returns
An empty string, or the result of the subcommand.
Examples
% tui::label .a -text A; tui::label .b -text B; tui::pack .a .b -side left; tui::pack slaves .
.a .b
Errors
% tui::pack .a -side up
bad side "up": must be top, bottom, left, or right
-errorcode TCL LOOKUP INDEX side
Facts
- Capability
tui. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.7
The full page: tui::pack.