Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tasprites.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-07-18 00:40:59 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-07-18 00:40:59 (GMT)
commit19d464d591f664ebce4472f706d6c01a5774501c (patch)
tree336431ce0ef3d7c02882420eaa32601f0f90c7cc /tasprites.py
parent35137c3856627a752e6d4ae4d5248bf79e22e557 (diff)
dead key workaround
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