[wxPython-users] Saving information from the GUI to a file
jupan ghe
jupanghe1 at gmail.com
Tue Apr 3 03:58:49 PDT 2007
On 4/3/07, Werner F. Bruhin <werner.bruhin at free.fr> wrote:
>
> Hi,
>
> jupan ghe wrote:
> > Dear friends,
> >
> > Now I have started to have something which looks more like an
> > application. There are grids, dialogs, etc.
> > Now I try to create the save method in order to save the content of my
> > GUI and the data that the user has provided in the grids, the settings
> > that he has made. The problem is how to do this. Which solution do you
> > propose ?
> I don't know how you would save the GUI state (screen size etc) nicely,
> but for the data the user entered you can look into storing them in a
> database SQLite, Firebird etc or use Python's pickle (also I never use
> this) or ...
>
> Werner
Hi Werner,
I tried to used pickle to save the state of the objets but most of the time
complained about not beeing possible to pickle the c++ objects.
I was also thinking to save from each controll the text inserted but the
problem is when is to saiving the whole tree of widgets. I was also thinking
about MVCtree concept but since I don;t have an example I could not grasp
it.
I will try to look at SQLite and Firebird.
Maybe some other users that had developed such tools could give me a working
example,
Thanks again
---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200704=
03/7003b176/attachment.htm
More information about the wxpython-users
mailing list