tkFileDialog.askopenfilenames not regonizing -multiple option

Tim Williams timothy.williams at
Fri Dec 5 14:32:36 CET 2003


I'm using Python 2.3 and trying to use tkFileDialog to get a list of
files. I get a message about the '-multiple' option is not a valid
option in the call to Open.

Python 2.3 (#1, Aug  4 2003, 10:43:11) 
[GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from Tkinter import *
>>> import tkFileDialog
>>> root=Tk()
>>> files=tkFileDialog.askopenfilenames()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "", line 133, in askopenfilenames
    return Open(**options).show()
  File "", line 52, in show
    s =, *w._options(self.options))
_tkinter.TclError: bad option "-multiple": must be -defaultextension,
-filetypes, -initialdir, -initialfile, -parent, or -title

~> tclsh
% info tclversion

Thanks for any help.

More information about the Python-list mailing list