Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-08 15:58:10 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-08 15:58:10 (GMT)
commitbd0b957c9380f1ede0b53995985b06e35f423b20 (patch)
tree08766212ed3048055d034abf60385dd082e1e2e1 /tawindow.py
parent79ef7119539b46b182e4ac3a97b9aa0d31442d60 (diff)
better handling of ords
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tawindow.py b/tawindow.py
index b825a86..7389c7f 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1238,6 +1238,14 @@ class TurtleArtWindow():
return False
elif b2.name == 'number' and float(b2.values[0]) == 0:
return False
+ elif b1.name in ['product2', 'minus2', 'sqrt', 'division2', 'random',
+ 'remainder2', 'string'] and\
+ b2.name in ['product2', 'minus2', 'sqrt', 'division2', 'random',
+ 'remainder2', 'string']:
+ if b1.name == 'string' and len(b1.values[0]) != 1:
+ return False
+ elif b2.name == 'string' and len(b2.values[0]) != 1:
+ return False
return True
"""