Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/talogo.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2009-07-19 23:18:05 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2009-07-19 23:18:05 (GMT)
commit51b7ec2cdef0824b7c0760ab5b21e7e5320f115f (patch)
treedbcd18c8792bfc9a9e4881b9b9cb882c7e7665da /talogo.py
parent853f1ec75289eb80ce95ab7c4596309dbfa8737b (diff)
cleaned up some print/show code
Diffstat (limited to 'talogo.py')
-rw-r--r--talogo.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/talogo.py b/talogo.py
index be611fe..892993a 100644
--- a/talogo.py
+++ b/talogo.py
@@ -95,6 +95,8 @@ def blocks_to_code(lc,spr):
code.append(float(ord(spr.label[0])))
elif spr.proto.name=='string' or spr.proto.name=='title':
if type(spr.label) == float or type(spr.label) == int:
+ #if int(spr.label) == spr.label:
+ # spr.label = int(spr.label)
code.append('#s'+str(spr.label))
else:
code.append('#s'+spr.label)
@@ -858,7 +860,7 @@ def show(lc, string):
play_sound(lc, string)
else:
draw_text(lc.tw.turtle,string,x,y,lc.tw.textsize,lc.tw.turtle.width)
- elif type(string) == float:
+ elif type(string) == float or type(string) == int:
if int(string) == string:
string = int(string)
else: