]> git.saurik.com Git - wxWidgets.git/commitdiff
Add each line independently
authorRobin Dunn <robin@alldunn.com>
Tue, 8 Jun 2004 01:13:33 +0000 (01:13 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 8 Jun 2004 01:13:33 +0000 (01:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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)