diff --git a/wxPython/demo/wxOGL.py b/wxPython/demo/wxOGL.py index 602c7ccb52..b2682636a4 100644 --- a/wxPython/demo/wxOGL.py +++ b/wxPython/demo/wxOGL.py @@ -84,7 +84,9 @@ class DividedShape(wxDividedShape): def OnSizingEndDragLeft(self, pt, x, y, keys, attch): self.base_OnSizingEndDragLeft(pt, x, y, keys, attch) - wxCallAfter(self.ReformatRegions) + self.SetRegionSizes() + self.ReformatRegions() + self.GetCanvas().Refresh() #----------------------------------------------------------------------