projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19a4dcb
)
Add each line independently
author
Robin Dunn
<robin@alldunn.com>
Tue, 8 Jun 2004 01:13:33 +0000
(
01:13
+0000)
committer
Robin 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
patch
|
blob
|
blame
|
history
diff --git
a/wxPython/demo/OGL.py
b/wxPython/demo/OGL.py
index 22798f67ae2c8d9f1d39f05416e75e6bea53839f..0fad4004923a355cc898f378fa23663e0986e6c4 100644
(file)
--- 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)