This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hans.bering
Recipients brian.curtin, hans.bering, hfischer, r.david.murray, tim.golden
Date 2011-07-07.12:04:11
SpamBayes Score 7.3125395e-12
Marked as misclassified No
Message-id <1310040253.06.0.500267903393.issue10647@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, _now_ I have run into the same problem. I have attached a small script similar to the original entry (but shorter) which will reliably crash with Python 3.1.4 on Windows 7 (64bit) when using a locale with a comma decimal fraction marker (e.g., German). The stacktrace is as follows:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python31\lib\tkinter\__init__.py", line 1400, in __call__
    return self.func(*args)
  File "C:\Python31\lib\tkinter\__init__.py", line 2799, in set
    self.tk.call((self._w, 'set') + args)
_tkinter.TclError: expected floating-point number but got "0,2"

The script runs fine with an English locale. It also runs fine with Python 3.2 on the same machine & Windows & German locale.

The reason seems to be that the Scrollbar lets its self.tk compute fractions which self.tk returns as locale-dependent strings; the Scrollbar runs into problems when converting these strings into floats.
History
Date User Action Args
2011-07-07 12:04:13hans.beringsetrecipients: + hans.bering, tim.golden, r.david.murray, brian.curtin, hfischer
2011-07-07 12:04:13hans.beringsetmessageid: <1310040253.06.0.500267903393.issue10647@psf.upfronthosting.co.za>
2011-07-07 12:04:12hans.beringlinkissue10647 messages
2011-07-07 12:04:11hans.beringcreate