grab set
Gives the grab to a widget.
grab set ?-global? WINDOW
Description
WINDOW gets the grab, and the old grab ends. A second call on the grab widget changes only the status between local and global.
Returns
An empty string.
Examples
% frame .s
> grab set .s
> grab current
.s
% grab set -global .s
> grab status .s
global
Errors
% grab set
wrong # args: should be "grab set ?-global? window"
-errorcode TCL WRONGARGS
% grab set .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