beetlebug▾
/

lower

Moves a widget below its siblings in the stacking order.

lower WINDOW ?BELOWTHIS?

Description

With no BELOWTHIS, WINDOW goes to the bottom of the stacking order of its siblings, and the other siblings are drawn on top of it where they overlap. With BELOWTHIS, WINDOW goes just below it. BELOWTHIS is a sibling of WINDOW or a descendant of a sibling. For a toplevel, lower moves its platform window below the other windows of the application. winfo children gives the children from the bottom of the order to the top.

Returns

An empty string.

Examples

% frame .l1
> frame .l2
> frame .l3
> foreach w {.l1 .l2 .l3} { place $w -x 0 -y 0 }
> lower .l3
> winfo children .
.l3 .l1 .l2

% lower .l2 .l1
> winfo children .
.l3 .l2 .l1

Errors

% lower
wrong # args: should be "lower window ?belowThis?"
-errorcode NONE

% lower .nope
bad window path name ".nope"
-errorcode NONE

% lower .l1 .l2 .l3
wrong # args: should be "lower window ?belowThis?"
-errorcode NONE

Differences from Tcl

Facts

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

See also