[Python-checkins] python/dist/src/Lib/lib-tk
tkFileDialog.py,1.10,1.11
Guido van Rossum
guido@python.org
2003年6月17日 21:11:04 -0400
> > This fix looks to be incomplete.
> > Opening a new window (Control+O) results in the
> > following traceback:
> >
> >
> > Exception in Tkinter callback
> > Traceback (most recent call last):
> > File "C:\PY23\lib\lib-tk\Tkinter.py", line 1343, in __call__
> > return self.func(*args)
> > File "C:\PY23\lib\idlelib\IOBinding.py", line 198, in open
> > filename = self.askopenfile()
> > File "C:\PY23\lib\idlelib\IOBinding.py", line 517, in askopenfile
> > return self.opendialog.show(initialdir=dir, initialfile=base)
> > File "C:\PY23\lib\lib-tk\tkCommonDialog.py", line 54, in show
> > s = self._fixresult(w, s)
> > File "C:\PY23\lib\lib-tk\tkFileDialog.py", line 89, in _fixresult
> > if not widget.tk.wantobjects() and "multiple" in self.options:
> > TypeError: wantobjects() takes exactly 1 argument (0 given)
>> Can't reproduce this on Linux. Looks like you have an out-of-date
> verson of _tkinter; the source I have definitely accepts 0 or 1
> arguments.
Can't reproduce it on Windows either. DLL hell???
--Guido van Rossum (home page: http://www.python.org/~guido/)