List Info

Thread: Possible bug related with Tkinter ?




Possible bug related with Tkinter ?
user name
2007-12-20 04:07:57
While testing the tkFileDialog, I encountered a strange
error :

~/dev/trunk$ ./python Lib/lib-tk/tkFileDialog.py
Traceback (most recent call last):
  File "Lib/lib-tk/tkFileDialog.py", line 202, in
<module>
    openfilename=askopenfilename(filetypes=[("all
files", "*")])
  File "Lib/lib-tk/tkFileDialog.py", line 125, in
askopenfilename
    return Open(**options).show()
  File
"/home/quentin/dev/trunk/Lib/lib-tk/tkCommonDialog.py&q
uot;, line 48, in show
    s = w.tk.call(self.command, *w._options(self.options))
_tkinter.TclError: expected floating-point number but got
"0.0"

Investigating a little, I discovered this is a known issue
for some
applications like Pyraf and that the following workaround is
effective
: "env LC_NUMERIC=C ./python
Lib/lib-tk/tkFileDialog.py".

Looking further, this seems to resolve an atof issue and the
fact that
Python assumes a C locale while my Linux box actually uses
fr_FR.UTF-8, but I have a hard time determining if that a
Python
issue, a TCL issue or something else.

Has someone already encountered this ?

Quentin
_______________________________________________
Python-Dev mailing list
Python-Devpython.org
ht
tp://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/p
ython-dev/nessto%40sharedlog.com

Re: Possible bug related with Tkinter ?
user name
2007-12-20 06:47:56
Quentin Gallet-Gilles wrote:
> Has someone already encountered this ?

Without any version numbers, it's hard to say. More recent
versions of 
Python don't assume LC_NUMERIC is set to the C locale, but
older 
versions did.

Cheers,
Nick.


-- 
Nick Coghlan   |   ncoghlangmail.com   |   Brisbane,
Australia
------------------------------------------------------------
---
             http://www.boredoma
ndlaziness.org
_______________________________________________
Python-Dev mailing list
Python-Devpython.org
ht
tp://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/p
ython-dev/nessto%40sharedlog.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )