Slaven Rezić > Tk > Tk::bind   Annotate this POD   New  33 Open 
54 Stalled  14 View/Report Bugs Source  
Latest Release: Tk-804.032_500   Tk::bind - Arrange for X events
to invoke callbacks   Retrieve bindings:      Associate and
destroy bindings:     The bind method associates callbacks with
X events. If callback is specified, bind will arrange for
callback to be evaluated whenever the event(s) given by sequence
occur in the window(s) identified by $widget or tag. If callback
is an empty string then the current binding for sequence is
destroyed, leaving sequence unbound. In all of the cases where a
callback argument is provided, bind returns an empty string.  If
sequence is specified without a callback, then the callback
currently bound to sequence is returned, or undef is returned if
there is no binding for sequence. If neither sequence nor
callback is specified, then the return value is a list whose
elements are all the sequences for which there exist bindings
for tag.  If no tag is specified then the bin