wm focusmodel
Gives or sets the focus model of a toplevel: active or passive.
wm focusmodel WINDOW ?MODEL?
Description
passive, the default, lets the window manager give the focus to the window. active is a window that sets its focus itself. ztk stores the value.
Returns
The model, or an empty string.
Examples
% toplevel .t
> set a [wm focusmodel .t]
> wm focusmodel .t active
> list $a [wm focusmodel .t]
passive active
Errors
% wm focusmodel .t bad
bad argument "bad": must be active or passive
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1