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 <rep...@bugs.python.org> <http://bugs.python.org/issue27939> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com