Tony Cappellini wrote:
>
> I want to specify the directory in which win32ui
> <win32ui.html>.CreateFileDialog() should be displayed.
> The arguments in the help PyCFileDialog <PyCFileDialog.html> =
> *CreateFileDialog(/bFileOpen//, defExt/ /, fileName/ /, flags/ /,
> filter/ /, parent/ *)
> don't seem to allow this.
>
> I know I can specify the initial  director (among other things) when I
> invoke the File Open browser from wxPython and other gui frameworks.
>
> How do I do this with the bare bones Win32 api?

That function returns an object to you, which wraps the OPENFILENAME
structure from the common dialog.  You can call
    dlg.SetOFNInitialDir( 'xxx' )
to set the initial directory before you call
    dlg.DoModal()
to display the dialog.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to