13.17. Grab Methods
When a window does a grab, it holds all the keyboard and mouse input to itself. That window will not allow any other windows in the application to receive input. There is also a global grab, which means that no applications in the entire system can get input except the one window that has done the global grab. These methods are usually called from a Toplevel widget.
To do a local grab for the widget, use grab:
$who = $widget->grabCurrent;
$status = $widget->grabStatus;
The grabStatus method returns a string that is "none", "local", or "global".
@windows = $widget->grabs;
Copyright © 2002 O'Reilly & Associates. All rights reserved.