From 20cb8d638d75af5f7344606743a7edb9da772a1d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 31 Dec 2002 22:12:36 +0000 Subject: [PATCH] OGL demo tweaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/wxOGL.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() #----------------------------------------------------------------------