]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/ogl/_diagram.py
Using buffered drawing won't let the themed background show through,
[wxWidgets.git] / wxPython / wx / lib / ogl / _diagram.py
index 4f348d7df4d28caedb43cb517eaea84a082b566a..6bdf00185f00e3267409f0d0ced4dd4618aae960 100644 (file)
@@ -78,11 +78,12 @@ class Diagram(object):
         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."""
         for shape in self._shapeList:
-            shape.Show()
+            shape.Show(show)
 
     def DrawOutline(self, dc, x1, y1, x2, y2):
         """Draw an outline rectangle on the current device context."""