Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Binding mouse clicks in perl/Tk

by ichimunki (Priest)
on Jul 19, 2002 at 17:03 UTC ( #183314=note: print w/replies, xml ) Need Help??


in reply to Binding mouse clicks in perl/Tk

You have bound probably not the exact thing you wanted. This binds button release for button one (left button) and two (middle button). Try
$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”; });
All of this good event binder information is in perldoc Tk::bind.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://183314]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2016-10-01 19:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.