beetlebug▾
/

wm transient

Gives or sets the window that a dialog belongs to.

wm transient WINDOW ?CONTAINER?

Description

A transient window, such as a dialog, stays above CONTAINER on most platforms. An empty CONTAINER makes the window a normal window again. With no CONTAINER, gives the current one, or an empty string.

Returns

A widget name, or an empty string.

Examples

% toplevel .t
> wm transient .t .
> wm transient .t
.

% wm transient .t .
> wm transient .t {}
> wm transient .t

Errors

% wm transient .t .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