tkFileDialog.askdirectory root directory ?

Ringwraith atmo at go2.pl
Mon Mar 1 15:29:33 EST 2004


Hello!

I have the following problem. I use the tkFileDialog.askdirectory dialog to
allow users of my application to pick some subfolder from 'C:/my_app'
directory. I use initialdir='C:/my_app' option to set 'C:/my_app' as initial
directory. But I want my initial directory to be also a root directory, so
the user cannot pick any directory outside 'C:/my_app'  folder. I have no
idea how to do it using standard  tkFileDialog.askdirectory. Is that
possible?

Thank you in advance for any hints.

Best wishes,

Niki





More information about the Python-list mailing list