i'm trying to make a button where font color and background color exchage whether it is selected or not. I'm trying whith a checkbutton but there is no simple way to change the foreground
checkbutton .chkbutton -bg $color1 -foreground $color2 -font {Courier 12} -text T -selectcolor $color2 -indicatoron 0 -command { .chkbutton configure -foreground $color1 }
(of course once the button have been selected one time the font color stay color1.
checkbutton .chkbutton -bg $color1 -foreground $color2 -font {Courier 12} -text T -selectcolor $color2 -indicatoron 0 -command { .chkbutton configure -foreground $color1 }
(of course once the button have been selected one time the font color stay color1.