I am trying to attach a call back to the <<ListboxSelect>> event of a
ListBox but I am not having much luck.
The call of the bind method seems to work, but the callback function
never gets run.
Interestingly, if I introduce a typo in <<ListboxSelect>> then the bind
fails, so it must be doing something right.
Experimenting further, I find I cant seem to bind any events. Using a
simple button I've created in VTCL, I get the handle to it and then try
and do a bind to the <ButtonRelease-1> event (or any other for that
matter). The commented line of code runs but does not callback to the
function. Whereas the configure method works perfectly.
my $Execute = $Tcl->widget('Execute','Button');
#$Execute->bind('<ButtonRelease-1>', \&execute_macro);
$Execute->configure(-command => \&execute_macro);
Regards,
Jason