X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19a4dcb8cf5f232533404ffb25f3cc33d82c3521..b53190ef7ed59cda12dca8c63b88e7bd40b67168:/wxPython/demo/OGL.py?ds=inline 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)