import images
-#----------------------------------------------------------------------
-# This creates some pens and brushes that the OGL library uses.
-
-wxOGLInitialize()
+##wxTrap()
#----------------------------------------------------------------------
def OnSizingEndDragLeft(self, pt, x, y, keys, attch):
+ print "***", self
self.base_OnSizingEndDragLeft(pt, x, y, keys, attch)
self.SetRegionSizes()
self.ReformatRegions()
def OnLeftClick(self, x, y, keys = 0, attachment = 0):
shape = self.GetShape()
- print shape.__class__
+ print shape.__class__, shape.GetClassName()
canvas = shape.GetCanvas()
dc = wxClientDC(canvas)
canvas.PrepareDC(dc)
#----------------------------------------------------------------------
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