[ILUG] Python and TK - select folder dialog

Padraig Kitterick info at padraigkitterick.com
Sun Oct 5 17:25:44 IST 2008


How about:

from tkFileDialog import askdirectory

I think that will work...

-Padraig

ollie at eillo.org wrote:
> Hello,
>       With Python and Tk i can use "askopenfilename" to get the "Open File" dialog box. Does any one know how to just select a folder? 
> 
> Just trying to get used to TK.
> 
> Cheers,
>        Oliver.
> 



More information about the ILUG mailing list