my $root = "BLAHBLAHBLAH"; $can->CanvasBind( '<Button>', [ \&my_test, $root ] ); MainLoop; ... sub my_test { shift; # don't know why I have to do this, but ... my $msg = shift; print "[$msg]\n"; }
| Plankton: 1% Evil, 99% Hot Gas. |
In reply to Re: Re: Tk bind mouse down question
by Plankton
in thread Tk bind mouse down question
by Plankton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |