beetlebug▾
/

tui::winfotui

Gives a fact of a widget: its place, its children, or its class.

tui::winfo OPTION PATH

Description

The options: exists, children, class, parent, ismapped, geometry (WxH+X+Y in cells), width, height, x, and y. The place comes from a layout at the call.

Returns

The fact.

Examples

% tui::configure -size {10 2}; tui::label .w -text Hi; tui::pack .w; tui::winfo geometry .w
2x1+4+0

Errors

% tui::winfo size .
bad option "size": must be children, class, exists, geometry, height, ismapped, parent, width, x, or y
-errorcode TCL LOOKUP INDEX option size

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::winfo.

See also