in reply to Re^2: Background Color - Tk Checkbutton
in thread Background Color - Tk Checkbutton

Show some code. I know what I mean. Why don't you? ;-)

  • Comment on Re^3: Background Color - Tk Checkbutton

Replies are listed 'Best First'.
Re^4: Background Color - Tk Checkbutton
by Bintuch (Acolyte) on Jul 12, 2010 at 08:57 UTC

    There is nothing uniqe in the code, but I'll post it anyhow.

    my $cb_update_actual = $FrameDataToAnalyze -> Checkbutton( -text +=>"", -offvalue=>0, -onvalue=>1, -command=> sub { if ($UpdateActual) { $entry_actual_value->configure +(-state=>"normal"); } else { $entry_actual_value->configure +(-state=>"disabled"); } }, -variable=>\$UpdateActual); $cb_update_actual -> select();

      Well, in the code you posted there's no colour specification whatsoever.

      Doesn't

      my $cb_update_actual = $FrameDataToAnalyze -> Checkbutton( ... ); $cb_update_actual->configure( -activebackground => $cb_update_actual->cget('-background'), -activeforeground => $cb_update_actual->cget('-foreground'), );

      do the trick?

      What is it that keeps changing? is it $FrameDataToAnalyze or $cb_update_actual ?

        No colur specification because I still don't know how to get what I want... ;-)

        The box where you put the 'x' of the Checkbutton changes.