Directory chooser in Tk

Randall Hopper aa8vb at
Tue Nov 16 07:19:17 EST 1999

Ivan Van Laningham:
 |I need a dialog similar to the askopenfilename() dialog, but for
 |directories.  Is there such a beast?

There is a tk_chooseDirectory function in Tcl 8.2 (and in but undoc in
8.1), but reportedly this is Win32-only.

Christopher Nelson posted a proposed portable version of this
(chooseDir.tcl) to c.l.tcl last week.  There's also Daniel Roche's

A link to these posts along with a few others from DejaNews:[ST_rn=ps]/getdoc.xp?AN=547570099[ST_rn=ps]/getdoc.xp?AN=548332092[ST_rn=ps]/getdoc.xp?AN=532357262

Shouldn't be hard to port one to Python/Tkinter.  Alternatively, you could
modify the module in the standard python dist to choose

Randall Hopper
aa8vb at

More information about the Python-list mailing list