Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tasprites.py
diff options
context:
space:
mode:
Diffstat (limited to 'tasprites.py')
-rw-r--r--tasprites.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tasprites.py b/tasprites.py
index 08c5f83..b4fc67a 100644
--- a/tasprites.py
+++ b/tasprites.py
@@ -133,8 +133,10 @@ def hit(spr,pos):
def draw_label(spr, label, myscale, center_flag):
fd = pango.FontDescription('Sans')
fd.set_size(int(myscale*spr.tw.scale*pango.SCALE))
+ # print label
+ # print type(label)
if type(label) == str or type(label) == unicode:
- pl = spr.tw.window.create_pango_layout(str(label))
+ pl = spr.tw.window.create_pango_layout(label.replace("\0"," "))
pl.set_font_description(fd)
if center_flag:
swidth = pl.get_size()[0]/pango.SCALE