Stacking order#

Where widgets overlap, stacking order decides which is drawn on top. Sibling widgets stack in creation order by default; these methods change it.

The canonical upstream references are the Tk raise and lower manual pages (Tcl 8.6).

lift(aboveThis=None)

Raise the widget above its siblings, or above one specific sibling. Alias: tkraise (lift avoids shadowing the Python builtin). Also raises a toplevel window to the front.

Parameters:

aboveThis – the sibling to raise above; if omitted, raises to the top.

Returns:

None.

lower(belowThis=None)

Lower the widget below its siblings, or below one specific sibling.

Parameters:

belowThis – the sibling to lower below; if omitted, lowers to the bottom.

Returns:

None.