[issue39827] setting a locale that uses comma as decimal separator breaks tkinter.DoubleVar

2020-03-04 Thread Till Korten
Till Korten added the comment: I just found the following code in lines 314-320 of [tkinter/ttk.py](https://github.com/python/cpython/blob/master/Lib/tkinter/ttk.py), which are clearly not localization-aware: ``` def _to_number(x): if isinstance(x, str): if '.' in x

[issue39827] setting a locale that uses comma as decimal separator breaks tkinter.DoubleVar

2020-03-02 Thread Till Korten
New submission from Till Korten : This issue occurs when a locale is set that uses comma as decimal separator (e.g. locale.setlocale(locale.LC_NUMERIC, 'de_DE.utf8')). I have a tkinter.Spinbox with increment=0.1 connected to a tkinter.DoubleVar. When I change the value of the Spinbox using