Hello,
I need to save an ogl.Diagram object into a file, so that when I load it back my
canvas looks the same.
Could you please suggest a way to do that ?
Thanks.
Lokesh Batra
Hello,
I need to save an ogl.Diagram object into a file, so that when I load it back my
canvas looks the same.
Could you please suggest a way to do that ?
Thanks.
Lokesh Batra
Lokesh Batra wrote:
Hello,
I need to save an ogl.Diagram object into a file, so that when I load it back my canvas looks the same.
Could you please suggest a way to do that ?
Thanks.
Lokesh Batra
You might be able to use pickle. Robin said in the past that as the data is "pickle friendly" (i.e. not referencing any SWIGed stuff in wx), it should work. See the following for more:
http://lists.wxwidgets.org/pipermail/wxpython-users/2007-May/064238.html
http://www.koders.com/python/fid67A1441516170EBFB6C125FF4A1545CA3AC5762F.aspx?s=sort#L373
I hope that works.
Mike
Thanks a lot Mike. Can you suggest me any tutorials/books for reference for
wx.lib.ogl ?
Quoting Mike Driscoll <mike@pythonlibrary.org>:
Lokesh Batra wrote:
> Hello,
>
> I need to save an ogl.Diagram object into a file, so that when I load it
back my
> canvas looks the same.
>
> Could you please suggest a way to do that ?
>
>
> Thanks.
>
> Lokesh Batra
>You might be able to use pickle. Robin said in the past that as the data
is "pickle friendly" (i.e. not referencing any SWIGed stuff in wx), it
should work. See the following for more:http://lists.wxwidgets.org/pipermail/wxpython-users/2007-May/064238.html
http://www.koders.com/python/fid67A1441516170EBFB6C125FF4A1545CA3AC5762F.aspx?
s=sort#L373
I hope that works.
Mike
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users