Hans Bering <hans.ber...@arcor.de> added the comment: 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. ---------- Added file: http://bugs.python.org/file22603/scrollbarCrash1.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10647> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com