Hi,
I'm having issues updating the progressbar color. I've tried using -colors, it didnt work, so I'm trying -foreground, still doesnt work.
Progress bar gen:my %PBCfg = ( -width => "20", -length => 500, -from => "0", -to => "100", -blocks => "500", -gap => '2', -borderwidth => '2', #-colors => [0, 'green', 50, 'green' , 80, 'green'] -foreground => 'green' ); my $Prb = $TBL_frame->ProgressBar(%PBCfg, -troughcolor=>'white',-varia +ble=>\$T_testers{$tst}->{"ProgS"})->pack(-side=>'left', -fill=>'x');
Now, I'm trying to change the color
$T_testers{$tst}->{'Status_B'}->configure(-text=>"Down",-background => + "red" ); $T_testers{$tst}->{"ProgBar"}->configure(-foreground => "red" );$mw->u +pdate;
the botton changes color everytime I try, but the ProgressBar changes the color only once after init. Any ideas?
In reply to TK::ProgressBar Color update by Ohad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |