wm state
Gives or sets the state of a toplevel: normal, iconic, withdrawn, or zoomed.
wm state WINDOW ?STATE?
Description
normal shows the window, iconic makes it an icon, withdrawn removes it from the screen, and zoomed maximizes it on a backend that has the zoomed state. icon is the same as iconic. With no STATE, gives the current state.
Returns
The state, or an empty string.
Examples
% toplevel .t
> wm state .t withdrawn
> set a [wm state .t]
> wm state .t normal
> list $a [wm state .t]
withdrawn normal
Errors
% wm state .t bad
bad argument "bad": must be normal, iconic, withdrawn, or zoomed
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1