This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kvutza
Recipients kvutza, loewis
Date 2009-01-16.06:56:13
SpamBayes Score 0.00057402847
Marked as misclassified No
Message-id <1232088975.15.0.173664282718.issue4960@psf.upfronthosting.co.za>
In-reply-to
Content
When I do in Python 2.x (e.g. 2.6) next:
----------------------------
import Tkinter as T
import tkFileDialog as F
t = T.Tk()
dn = F.askdirectory()
----------------------------

It pop-ups the dialog, it is OK. Analogical case for Python 3.0 does not
work, at least on my Linux box:
----------------------------
import tkinter as T
import tkinter.filedialog as F
t = T.Tk()
dn = F.askdirectory()
----------------------------

It just writes an error message below:
----------------------------
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.0/tkinter/filedialog.py", line 430, in
askdirectory
    return Directory(**options).show()
  File "/usr/local/lib/python3.0/tkinter/dialog.py", line 20, in __init__
    cnf['title'], cnf['text'],
KeyError: 'title'
----------------------------

When I had tried to put there all the parameters it was asking for, it
just put some nonsense window.
History
Date User Action Args
2009-01-16 06:56:15kvutzasetrecipients: + kvutza, loewis
2009-01-16 06:56:15kvutzasetmessageid: <1232088975.15.0.173664282718.issue4960@psf.upfronthosting.co.za>
2009-01-16 06:56:14kvutzalinkissue4960 messages
2009-01-16 06:56:13kvutzacreate