From b53190ef7ed59cda12dca8c63b88e7bd40b67168 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 8 Jun 2004 01:13:33 +0000 Subject: [PATCH] Add each line independently git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/OGL.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)