[New-bugs-announce] [issue41969] ttk.RadioButtons mis-sized under Windows 10 UI Scaling, with dpiAware set true

Athanasius report at bugs.python.org
Wed Oct 7 13:02:37 EDT 2020


New submission from Athanasius <github at miggy.org>:

Having recently looked into UI Scaling for an application I help develop I became aware with an issue involving tkinter.ttk.RadioButton and Windows UI Scaling.

When you have some UI Scaling set along with dpiAware set true you might find that radio buttons are mis-rendered. The usual manifestation of this is that the last button will be properly sized initially, with the others being undersized. If you even only mouse-over the 'correct' radio button it will then become undersized as well.

For more detail see: https://github.com/Athanasius/tk-radio-buttons

NB: This *has* been fixed upstream in the Tcl/Tk source, but I see they've not made a new release since 8.6.10 in November 2019.  Thus this issue is more in the way of a heads up about a bug others might encounter, and will have to wait for newer Tcl/Tk in some version of Python for it to be fixed.

See https://core.tcl-lang.org/tk/info/3c6660b6f0bed337 for the issue and fix.

----------
components: Tkinter
messages: 378171
nosy: Athanasius
priority: normal
severity: normal
status: open
title: ttk.RadioButtons mis-sized under Windows 10 UI Scaling, with dpiAware set true
type: behavior
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41969>
_______________________________________


More information about the New-bugs-announce mailing list