Tkinter file dialog
MRAB
google at mrabarnett.plus.com
Fri May 29 05:58:11 EDT 2009
Ronn Ross wrote:
> I'm using Tkinter file selector to get a direcotry path. I'm using:
>
> self.file = tkFileDialog.askdirectory(title="Please select your directory")
> print file
>
> but all it prints out is:
> <type 'file'>
>
> How would I print the directory path?
>
Perhaps you meant:
self.file = tkFileDialog.askdirectory(title="Please select your
directory")
print self.file
More information about the Python-list
mailing list