[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release
daku9999
report at bugs.python.org
Mon Apr 6 19:45:11 CEST 2009
New submission from daku9999 <daku9999 at gmail.com>:
from tkFileDialog import askopenfilenames
a = askopenfilenames()
print a
print type(a)
'''
--output--
J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/rgb2hex.py
J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/bluebtn.jpg
J:/PortablePython_1.1_py2.6.1/Aatest26/tk_new/redbtn.jpg
<type 'unicode'>
'''
---- behaviour seen on windows xp 2.6.1 python release. Linux
distributions seem fine.
---- parsing above string (as it's not a tuple anymore) is difficult as
it is a list of filenames separated by a space but spaces can be in the
middle of filenames.
----------
components: Tkinter
messages: 85658
nosy: daku9999
severity: normal
status: open
title: tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5712>
_______________________________________
More information about the Python-bugs-list
mailing list