Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/taturtle.py
diff options
context:
space:
mode:
Diffstat (limited to 'taturtle.py')
-rw-r--r--taturtle.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/taturtle.py b/taturtle.py
index f3d408a..a4f57b7 100644
--- a/taturtle.py
+++ b/taturtle.py
@@ -258,6 +258,7 @@ def draw_text(t, label, x, y, size, w):
pl = t.tw.window.create_pango_layout(str(label))
else:
print type(label)
+ pl = t.tw.window.create_pango_layout(str(label))
pl.set_font_description(fd)
pl.set_width(int(w)*pango.SCALE)
t.canvas.image.draw_layout(t.gc,int(x),int(y),pl)