wxDiagram::LoadFile and SaveFile

I would like to store everything on the canvas when I exit my application,
and load it back when I start it up again.

I have noticed the two methods LoadFile and SaveFile in wxDiagram, but the
documentation is a bit weak. It almost seems a bit too easy !

And when I try to do it this way:
self.diagram.SaveFile("graphics")

... I get this error message:
AttributeError: wxDiagram instance has no attribute 'SaveFile'

What am I doing wrong here?
Are ther any other/better ways to do this?

Thomas

Thomas Aanensen wrote:

I would like to store everything on the canvas when I exit my application,
and load it back when I start it up again.

I have noticed the two methods LoadFile and SaveFile in wxDiagram, but the
documentation is a bit weak. It almost seems a bit too easy !

And when I try to do it this way:
self.diagram.SaveFile("graphics")

... I get this error message:
AttributeError: wxDiagram instance has no attribute 'SaveFile'

What am I doing wrong here?
Are ther any other/better ways to do this?

The code that wxOGL uses to load and save has been deprecated and is no longer in the library. You'll need to iterate through the shapes and save their attributes yourself.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!