hi i'm trying to be able to change the font style of my button i've done:
checkbutton .myButton -bg $Grey -foreground $Black -font {Courier 12} -text Text -selectcolor $Black -indicatoron 0 -command {
if {[ .myButton cget -foreground] == $Black} {
.myButton configure -foreground $Grey
} else {
.myButton configure -foreground $Black
}
} -height 1 -width 1
but the button is too large (high), I think it is because of the spacing between 2 lines. How can i force the spacing between two line?
(note : if you have a better method to change the font color when i ckick on the button i take it)
checkbutton .myButton -bg $Grey -foreground $Black -font {Courier 12} -text Text -selectcolor $Black -indicatoron 0 -command {
if {[ .myButton cget -foreground] == $Black} {
.myButton configure -foreground $Grey
} else {
.myButton configure -foreground $Black
}
} -height 1 -width 1
but the button is too large (high), I think it is because of the spacing between 2 lines. How can i force the spacing between two line?
(note : if you have a better method to change the font color when i ckick on the button i take it)