
15. Bindings and Virtual Events 85
$mw->transient(?master?);
Informs window manager that
$mw is a transient of the
window master.
$mw->withdraw;
Arranges for
$mw to be withdrawn from the screen.
15. Bindings
and Virtual Events
Note that bind callbacks are implicitly passed the bound
object as the first argument of the parameter list.
An eventDescriptor is a list of one or more event patterns. An
event pattern may be a single character, a string of the form
‘<modifier-modifier-type-detail>’, or ‘<<name>>’
(a virtual event).
$widget->bind;
Returns list of all eventDescriptors for which a binding
exists for
$widget.
$widget->bind(tag);
Returns list of all eventDescriptors for which a binding
exists for tag.
$widget->bind(eventDescriptor);
Returns the callback bound to the given eventDescriptor
for
$widget.
$widget->bind(tag, eventDescriptor);
Returns the callback bound to the given eventDescriptor
for tag.
$widget->bind(eventDescriptor => callback);
Binds callback to the given eventDescriptor for
$widget
$widget->bind(tag, eventDescriptor => callback);
Binds callback to the given eventDescriptor for tag
$widget->bindtags(?tagList?);
Sets the current precedence order of tags for
$widget to
tagList. By default a Perl/Tk widget’s taglist is class,