my $startsmp = $mw->Button(-text => "Sample/Change Rate", -command => sub{ if ( not defined $smp ){ $ +smp = $mw->repeat($srate, \&samp)} else { $smp->cancel; $smp = $mw->repeat($sr +ate, \&samp) } } );
In reply to Re: Tk::Repeat - Variable Rate?
by ~~David~~
in thread Tk::Repeat - Variable Rate?
by transiency
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |