Directory chooser in Tk
Aaron J Reichow
reic0024 at ub.d.umn.edu
Tue Nov 16 10:16:44 EST 1999
> > |I need a dialog similar to the askopenfilename() dialog, but for
> > |directories. Is there such a beast?
> >
I needed the same thing. I just wound up using askopenfilename(),
choosing any file in the directory I wanted, and then using os.path.split()
to dump the name of the file and retain the path in another variable. Not
elegant, but it works.
Aaron
More information about the Python-list
mailing list