canvas .cv -background blue
pack .cv
button .b -text foo -background red -activebackground blue -relief flat
.cv create window 100 100 -window .b
There is a thin strip (2 pixels) of the original canvas background color around
the button. Is there any way to eliminate this. -bd 0 doesn't do it.
I also notice that the button is a lot larger than it was under 3.6.
: In tk 4.1 there seems to be an extra border around some things that wasn't
: there in 3.6. For example:
: canvas .cv -background blue
: pack .cv
: button .b -text foo -background red -activebackground blue -relief flat
: .cv create window 100 100 -window .b
: There is a thin strip (2 pixels) of the original canvas background color around
: the button. Is there any way to eliminate this. -bd 0 doesn't do it.
That's the highlight (actually the space reserved for the highlight).
-highlightthickness 0
if it bothers you...