Tk radiobutton indicator does not change size with font size
Closed / Rejected341faffaf9d58d42bbcc44f79c9b0baf787fb839Created 9 years agoUpdated 9 years ago
Descriptionplain2017-09-05 19:20:46
Currently porting an application from 8.4 to 8.6. Using official builds from Active State, version 8.6.6
The radiobutton command has changed looks - the indicator is a circle now instead of a diamond. Barring an ability to configure the radio button back to using the original diamond, we'd like the indicator to resize appropriately with the size of the radiobutton itself. This sample script creates/packs 3 radiobuttons. In 8.4, the indicator grows to fill the space appropriately, in 8.6 the indicator remains a constant size and frankly looks silly on larger fonts.
set somevar 0
foreach fontsize {6 10 16 24 32} {
set bname bname$fontsize
radiobutton .$bname -text "button $bname" -variable somevar -value $bname
set f [font actual [.$bname cget -font]]
set newfont [eval font create font$bname $f]
font configure font$bname -size $fontsize
.$bname configure -font font$bname
pack .$bname
}
sebreswiki2017-09-06 07:28:32
Log in (anonymous is fine) to add a comment.