tui::frametui
Makes a frame: a container of other widgets, with a box of lines with -borderwidth 1.
tui::frame PATH ?-option value ...?
Description
A frame holds other widgets, which tui::pack places in it. Its options: -width and -height in cells (with none, it asks for the size of its packed children), -borderwidth 0 or 1 (a box of lines), -background, -padx, and -pady. The command also makes a command with the name PATH, with the subcommands configure and cget.
Returns
PATH.
Examples
% tui::frame .f -borderwidth 1 -width 8 -height 3; tui::pack .f; tui::configure -size {8 3}; tui::snapshot
╭──────╮
│ │
╰──────╯
Errors
% tui::frame f
bad window path name "f"
-errorcode TK LOOKUP WINDOW f
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::frame.