my $colorChanger = sub { $red = floor(5*rand()); $green = floor(5*rand()+10); $blue = floor(5*rand()+20); }; $colorChanger->(); ## Initizalizezazazabanana $mw->repeat( 2000, $colorChanger ); MainLoop;
This way you also don't need an ->update with textvariables
In reply to Re: PERL Tk label(-textvariable)) (Tk::after repeat while(1))
by Anonymous Monk
in thread PERL Tk label(-textvariable))
by State_Space
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |