hi all,
is it possible to set the path in which dialog box has to open when we use tk_getSaveFile(or tk_getOpenFile). by default it opens in the path of the user, but wat to do if I want it to open in some other dir by default?
thanx,
Raj.
use the -intialdir option. As it says in the man page:
-initialdir directory
Specifies that the files in directory should be displayed when the dialog pops up. If this parameter is not specified, then the files in the current working directory are displayed. If the parameter specifies a relative path, the return value will convert the relative path to an absolute path. This option may not always work on the Macintosh. This is not a bug. Rather, the General Controls control panel on the Mac allows the end user to override the application default directory.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.