homepage

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 hfischer
Recipients hfischer
Date 2010年12月07日.20:55:33
SpamBayes Score 1.786904e-13
Marked as misclassified No
Message-id <1291755334.73.0.599361686975.issue10647@psf.upfronthosting.co.za>
In-reply-to
Content
My app has a tkinter messages listbox with a scrollbar which works fine in US setting, but not when locale is a European setting (with comma for decimal point). It's a highly interactive app with a lot of number formattings in the local locale, and mostly used in Europe and Asia.
This instruction: self.logListBox.insert(END, message)
causes this crash in non-US locale when scrolling down:
Class: class Scrollbar(Widget):
 def set(self, *args):
 """Set the fractional values of the slider position (upper and
 lower ends as value between 0 and 1)."""
 self.tk.call((self._w, 'set') + args) <<<<===== this line causes exception in European settings
the arg is in European decimal point format, when run on European settings, the error trace is:
 File "C:\Python31\lib\tkinter\__init__.py", line 1399, in __call__
 return self.func(*args)
 File "C:\Python31\lib\tkinter\__init__.py", line 2797, in set
 self.tk.call((self._w, 'set') + args)
_tkinter.TclError: expected floating-point number but got "0,145833"
using python 3.1.3 (r313:86834)
History
Date User Action Args
2010年12月07日 20:55:34hfischersetrecipients: + hfischer
2010年12月07日 20:55:34hfischersetmessageid: <1291755334.73.0.599361686975.issue10647@psf.upfronthosting.co.za>
2010年12月07日 20:55:33hfischerlinkissue10647 messages
2010年12月07日 20:55:33hfischercreate

AltStyle によって変換されたページ (->オリジナル) /