The users of my wx app asked me to save the last paths used while they
were browsing and to restore
these paths when the program is launched the next time.
I was thinking of pickling the since they are just short strings, but
I'm wondering what other techniques
are commonly used for GUI apps.
These paths aren't directly displayed in the GUI, but tell the program
where to open File & Directory browsers for loading data files needed
by the program.
Thanks
sessions
The users of my wx app asked me to save the last paths used while they
were browsing and to restore
these paths when the program is launched the next time.
I was thinking of pickling the since they are just short strings, but
I'm wondering what other techniques
are commonly used for GUI apps.
These paths aren't directly displayed in the GUI, but tell the program
where to open File & Directory browsers for loading data files needed
by the program.
Thanks
--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en
Hi,
Sounds like an ideal use for wxConfig, this will preserve selected information between sessions in a platform specific manner, you might also get some ideas from the wxPython demo of FileHistory. There has also been some mention on this list of a class that preserves all the information between sessions - 'fraid I can't remember what it is called at the moment.
Steve
ยทยทยท
From: "cappy2112" <cappy2112@gmail.com>
Sent: Wednesday, January 27, 2010 6:23 AM
To: "wxPython-users" <wxpython-users@googlegroups.com>
Subject: [wxPython-users] Saving paths and other config info across program
--------------------------------------------------
Sounds like an ideal use for wxConfig, this will preserve selected
information between sessions in a platform specific manner, you might also
get some ideas from the wxPython demo of FileHistory. There has also been
some mention on this list of a class that preserves all the information
between sessions - 'fraid I can't remember what it is called at the moment.
I know, I think I started that thread too. But at that time I was
looking to save the state of the GUI widgets.
This thread is just for some basic config info.
Will check out your suggestions.
thanks