X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/84c8e900a67b75309441c3e69e7fcb9435e0b231..16541a4ef4c409e27a047f898f9d770bdcfa9f30:/wxPython/wx/lib/ogl/_diagram.py diff --git a/wxPython/wx/lib/ogl/_diagram.py b/wxPython/wx/lib/ogl/_diagram.py index 4f348d7df4..6bdf00185f 100644 --- a/wxPython/wx/lib/ogl/_diagram.py +++ b/wxPython/wx/lib/ogl/_diagram.py @@ -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."""