[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release
vijay
report at bugs.python.org
Wed Jun 16 18:46:34 CEST 2010
vijay <vijay.psaibola at gmail.com> added the comment:
Update!! I found a very good workaround for this and it works very nicely, with both 2.5 and 2.6 versions.
Below is the segment from my code:-
from Tkinter import *
import tkFileDialog
master = Tk()
master.withdraw() #hiding tkinter window
Inputfiles = tkFileDialog.askopenfilenames(title="Select the source input file(s)", filetypes=[("mpf file",".mpf"),("All files",".*")])
#Heres the TRICK!
InputfilesList = master.tk.splitlist(Inputfiles)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5712>
_______________________________________
More information about the Python-bugs-list
mailing list