Add each line independently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
19a4dcb8cf
commit
b53190ef7e
@ -327,7 +327,9 @@ class TestWindow(ogl.ShapeCanvas):
|
|||||||
shape.SetY(y)
|
shape.SetY(y)
|
||||||
if pen: shape.SetPen(pen)
|
if pen: shape.SetPen(pen)
|
||||||
if brush: shape.SetBrush(brush)
|
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)
|
#shape.SetShadowMode(ogl.SHADOW_RIGHT)
|
||||||
self.diagram.AddShape(shape)
|
self.diagram.AddShape(shape)
|
||||||
shape.Show(True)
|
shape.Show(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user