All of this good event binder information is in perldoc Tk::bind.$list_box->bind('<Button-1>', sub { my $indx = $list_box->curselection(); my $selected_object = $list_box->get($indx); }); $list_box->bind('<Double-Button-1>', sub{ print “\nuser clicked twice”; });
In reply to Re: Binding mouse clicks in perl/Tk
by ichimunki
in thread Binding mouse clicks in perl/Tk
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |