I'm having a problem with the default directory of a wx.FileDialog when
being on Windows7.
Let's say you are in a directory C:\myDir that has a sub-directory 'mySub'.
I run the dialog using os.getcwd() as the default directory argument.
The first time is open the dialog, I'm proprely in C:\myDir. Now, in the
dialog, I go to C:\myDir\mySub and select a file there.
Quit the application, run it again from C:\myDir, open the file dialog
again, the default directory is now C:\myDir\mySub, even though
os.getcwd() is passed as the directory argument (and os.getcwd()
properly returns C:\myDir). It looks like the last visited directory is
'recorded' in the Windows7 file dialog and there is no way to overwrite it.
I also tried to use dlg.SetDirectory(os.getcwd()) without success.
Thanks.
Raphael
'C:\myDir'
all the time, even if the file dialog is opened in
'C:\myDir\mySub'
It looks like keeping track of the last visited directory from an
application is recorded in the application registry and the directory
argument of the wx.FileDialog constructor cannot overwrite it.
Raphael
What style flags are you passing to wx.FileDialog?
--
Robin Dunn
Software Craftsman
http://wxPython.org
Raphael
Ok, create a ticket for it with the component set to wxMSW.