X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cdb501108b32bf390d82f4840aad520030621228..768276f6ed4267a5768727cf06f636b2777e85da:/wxPython/demo/OGL.py diff --git a/wxPython/demo/OGL.py b/wxPython/demo/OGL.py index 22798f67ae..0fad400492 100644 --- a/wxPython/demo/OGL.py +++ b/wxPython/demo/OGL.py @@ -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)