DirectoryDialog path arg on Mac ignored?

Could someone verify that providing a path arg to the DirectoryDialog system dialog on the Mac does nothing? It looks like it always pulls up the last dir you had open. You can test this quickly with the following lines in the PyCrust shell or just running wx.lib.dialogs.

from wx.lib import dialogs
dialogs.directoryDialog(path='yourfavoritepathhere')

ka

Kevin Altis wrote:

Could someone verify that providing a path arg to the DirectoryDialog system dialog on the Mac does nothing? It looks like it always pulls up the last dir you had open. You can test this quickly with the following lines in the PyCrust shell or just running wx.lib.dialogs.

from wx.lib import dialogs
dialogs.directoryDialog(path='yourfavoritepathhere')

I can confirm it. The wxDirDialog's ShowModal is not putting m_path into the mDefaultLocation struct, but it's not clear to me how to do that since it is an opaque structure. Stefan?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I may have missed the reply to this, but I think DirectoryDialog is still broken on the Mac as of the 2.5.2.9p.20040914 daily build. It looks like the file dialog handles directory path arguments correctly, but as always someone else should verify just to be sure.

ka

···

On Jul 20, 2004, at 2:23 PM, Robin Dunn wrote:

Kevin Altis wrote:

Could someone verify that providing a path arg to the DirectoryDialog system dialog on the Mac does nothing? It looks like it always pulls up the last dir you had open. You can test this quickly with the following lines in the PyCrust shell or just running wx.lib.dialogs.
from wx.lib import dialogs
dialogs.directoryDialog(path='yourfavoritepathhere')

I can confirm it. The wxDirDialog's ShowModal is not putting m_path into the mDefaultLocation struct, but it's not clear to me how to do that since it is an opaque structure. Stefan?