[issue27939] Tkinter mainloop raises when setting the value of ttk.LabeledScale
Serhiy Storchaka
report at bugs.python.org
Mon Oct 24 10:13:45 EDT 2016
Serhiy Storchaka added the comment:
This is caused by replacing int() by self._tk.getint() in IntVar.get() (issue23880). But the failure can be reproduced even in 3.4 if set tk.wantobjects = 0 before creating root widget.
One way is making getint() accepting floats. This fizes original example, but doesn't solve the issue for tk.wantobjects = 0.
Other way is making IntVar.get() falling back to integer part of getdouble(). This fixes the example in both modes. Proposed patch goes this way.
----------
assignee: -> serhiy.storchaka
keywords: +patch
stage: needs patch -> patch review
versions: +Python 3.7
Added file: http://bugs.python.org/file45203/tkinter_intvar_float_value.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27939>
_______________________________________
More information about the Python-bugs-list
mailing list