beetlebug▾
/

pack slaves

Gives the packed widgets of a container, in the order of its list.

pack slaves CONTAINER

Description

Gives the names of the widgets in the list of CONTAINER, from the first to the last. A container with no packed widget gives an empty list. pack content is the same command.

Returns

A list of widget names.

Examples

% frame .sl
> frame .sl.a
> frame .sl.b
> pack .sl.b .sl.a
> pack slaves .sl
.sl.b .sl.a

% frame .sl2
> pack slaves .sl2

Errors

% pack slaves .sl.none
bad window path name ".sl.none"
-errorcode NONE

% pack slaves .sl x
wrong # args: should be "pack slaves window"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also