my $button1 = $mw->Button(-text => "18-Letters", -command => sub {print OUTFILE "18L\n",\&onclick,} ,) ->pack(-side => "top"); sub onclick{ $button1->configure(-background=>"yellow") }
In reply to Re^2: Change button color with Tk
by PerlCowboy
in thread Change button color with Tk
by PerlCowboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |