X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fded56b375bf7a4687af1cdb182899614c1b2a8..fd3f2efe791cf99c2e4944cd615f02a5502ed93e:/wxPython/demo/wxOGL.py diff --git a/wxPython/demo/wxOGL.py b/wxPython/demo/wxOGL.py index 2094959821..042cd15721 100644 --- a/wxPython/demo/wxOGL.py +++ b/wxPython/demo/wxOGL.py @@ -4,10 +4,7 @@ from wxPython.ogl import * import images -#---------------------------------------------------------------------- -# This creates some pens and brushes that the OGL library uses. - -wxOGLInitialize() +##wxTrap() #---------------------------------------------------------------------- @@ -83,6 +80,7 @@ class DividedShape(wxDividedShape): def OnSizingEndDragLeft(self, pt, x, y, keys, attch): + print "***", self self.base_OnSizingEndDragLeft(pt, x, y, keys, attch) self.SetRegionSizes() self.ReformatRegions() @@ -257,6 +255,11 @@ class TestWindow(wxShapeCanvas): #---------------------------------------------------------------------- def runTest(frame, nb, log): + # This creates some pens and brushes that the OGL library uses. + # It should be called after the app object has been created, but + # before OGL is used. + wxOGLInitialize() + win = TestWindow(nb, log, frame) return win