]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/OGL.py
Alpha is supported on GTK2 now!
[wxWidgets.git] / wxPython / demo / OGL.py
index 22798f67ae2c8d9f1d39f05416e75e6bea53839f..0fad4004923a355cc898f378fa23663e0986e6c4 100644 (file)
@@ -327,7 +327,9 @@ class TestWindow(ogl.ShapeCanvas):
         shape.SetY(y)
         if pen:    shape.SetPen(pen)
         if brush:  shape.SetBrush(brush)
-        if text:   shape.AddText(text)
+        if text:
+            for line in text.split('\n'):
+                shape.AddText(line)
         #shape.SetShadowMode(ogl.SHADOW_RIGHT)
         self.diagram.AddShape(shape)
         shape.Show(True)