beetlebug▾
/

winfo children

Gives the child widgets of a widget, in the stacking order.

winfo children WINDOW

Description

The list has each child of WINDOW from the bottom of the stacking order to the top. A new child goes at the top. raise and lower change the order. The list has the toplevels whose parent is WINDOW too.

Returns

A list of widget names.

Examples

% frame .p
> frame .p.q
> frame .p.r
> winfo children .p
.p.q .p.r

% frame .p2
> winfo children .p2

Errors

% winfo children
wrong # args: should be "winfo children window"
-errorcode NONE

% winfo children .nope
bad window path name ".nope"
-errorcode NONE

Facts

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