I'd like to make wx.DirDialog start with the last opened directory (as it
happens on the wx.FileDialog).
The code bellow worked under MacOS X 10.5.6 and somehow in Fedora 11, but I
couldn't make it work under Windows XP.
Any ideas?
You need to save the last path that was used in the dialog and then
the next time you show the dialog use that path for the defaultPath
argument to the dialogs constructor.
It may have been 'working' without this on the other cases as the
system dialog may have been remembering the previous state the next
time it was created by your application but explicitly using the
defaultPath argument will always work.
Cody
···
On Wed, Nov 11, 2009 at 10:58 AM, Paulo Henrique Junqueira Amorim <paulojamorim@gmail.com> wrote: