beetlebug▾
/

grab status

Gives the grab status of a widget: none, local, or global.

grab status WINDOW

Description

none is a widget with no grab. local and global give the kind of grab that the script asked for.

Returns

none, local, or global.

Examples

% frame .st
> set a [grab status .st]
> grab .st
> list $a [grab status .st]
none local

Errors

% grab status
wrong # args: should be "grab status window"
-errorcode TCL WRONGARGS

Facts

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

See also