]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxOGL.py
Lots of little bug fixes, API updates, etc.
[wxWidgets.git] / wxPython / demo / wxOGL.py
index 2094959821a89b9c9e282c038ca2a5a0cea3e476..042cd1572174046b4109bad1c2ccd80314a51e94 100644 (file)
@@ -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