{Possible_Spam} tkFileDialog.askopenfilename()

John McMonagle jmcmonagle at velseis.com.au
Tue May 15 19:25:19 EDT 2007


rahulnag22 at yahoo.com wrote:
> Hi,
> When I call tkFileDialog.askopenfilename() , the dialog box opens with
> the current directory as the default directory. Is it possible to open
> the dialog box with a directory other than the current directory. Can
> we pass in  a user defined starting directory.
> Thanks
> Rahul
> 

tkFileDialog.askopenfilename() uses the tk command tk_getOpenFile, the 
documentation for which is at:

http://www.tcl.tk/man/tcl8.4/TkCmd/getOpenFile.htm

Regards,

John



More information about the Python-list mailing list