tkFileDialog.askdirectory

Mike Abel Ax10 at gmx.de
Mon Dec 1 16:39:12 CET 2003


Hello

i have a Linux Mandrake Distribution with Python 2.3 and Tcl/Tk 8.4.

Python 2.2 and Tcl/Tk 8.3.3 returns an String if i made this:

x = tkFileDialog.askdirectory(initialdir="was auch immer", title="xxx")
print type(x)

<type 'str'>

With the combination Python 2.3 and Tcl/Tk 8.4 it returns
<type '_tkinter.Tcl_Obj'>

I have asked an other user (he used Windows 2000 Python 2.3.2
Tcl/Tk 8.4) and it returns an string.

Is the Python version the reason or what goes wrong, 
or is it a new feature?

Mike




More information about the Python-list mailing list