tkFileDialog and Multiple Filetypes

Brian brian.smith at thr.ca
Fri Sep 21 23:50:11 EDT 2001


When I run it, this is the traceback: (Linux and Python 2.1)

Traceback (most recent call last):
  File "/home/smibr/bin/view.py", line 109, in ?
    app = App()
  File "/home/smibr/bin/view.py", line 89, in __init__
    self.Load()
  File "/home/smibr/bin/view.py", line 65, in Load
    n=askopenfilename(filetypes= [("Image Files","*.jpg;*.gif"),
  File "/usr/local/lib/python2.1/lib-tk/tkFileDialog.py", line 74, in
askopenfilename
    return apply(Open, (), options).show()
  File "/usr/local/lib/python2.1/lib-tk/tkCommonDialog.py", line 53,
in show
    s = apply(w.tk.call, (self.command,) + w._options(self.options))
TclError: invalid command name "*.gif"

Is it an OS-type problem, perhaps?



More information about the Python-list mailing list