FileDialog

Robin Dunn wrote:

Werner F. Bruhin wrote:

I noticed that if the user manually changes his selection of a file the value returned by dlg.GetPath() is potentially not a valid path.

I'm not sure I follow your description. Can you explain this a bit more?

I suspect he wants the equivalent of OFN_PATHMUSTEXIST in the underlying Windows GetOpenFilename API. I don't know if there is way to do that with the wx.FileDialog.

On the other hand, it's not that hard to call the API directly.

···

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