]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/ogl/_diagram.py
Added wx.lib.delayedresult from Oliver Schoenborn.
[wxWidgets.git] / wxPython / wx / lib / ogl / _diagram.py
index 8e8f8347246b95412b4da1871a599d853b2bb1ee..6bdf00185f00e3267409f0d0ced4dd4618aae960 100644 (file)
@@ -78,6 +78,7 @@ class Diagram(object):
         for shape in self._shapeList[:]:
             if not shape.GetParent():
                 self.RemoveShape(shape)
         for shape in self._shapeList[:]:
             if not shape.GetParent():
                 self.RemoveShape(shape)
+                shape.Delete()
                 
     def ShowAll(self, show):
         """Call Show for each shape in the diagram."""
                 
     def ShowAll(self, show):
         """Call Show for each shape in the diagram."""