tkinter - tkFileDialog - how to get dir instead of file

Ulrich Goertz u at g0ertz.de
Tue Oct 30 07:17:01 EST 2001


"maxm" <maxm at mxm.dk> writes:

> I am writing my first tkinter program and so far it's been pretty painless.
> But now I need to open a directory and not a file. I cannot see a simple way
> to get this from the standard module "tkFileDialog".
> 
> Do I really have to write a special class for this?

See Fredrik Lundh's message at
http://groups.yahoo.com/group/python-list/message/112577

It contains a class that wraps the corresponding Tk widget.

Regards, Ulrich



More information about the Python-list mailing list