Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-12-05 20:58:50 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-12-05 20:58:50 (GMT)
commit5d393dff9f0b00961da8ec5abc0b90329bcb02c0 (patch)
tree84f3612acef1c4fb147f4c34bcc8f8bc123b852e /TurtleArt/tawindow.py
parent58ef575b056011838b1dc3127d3406742ce026fb (diff)
check arg type before assigning block style for default args of number-style-1strarg
Diffstat (limited to 'TurtleArt/tawindow.py')
-rw-r--r--TurtleArt/tawindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/TurtleArt/tawindow.py b/TurtleArt/tawindow.py
index e726c2a..9c5295c 100644
--- a/TurtleArt/tawindow.py
+++ b/TurtleArt/tawindow.py
@@ -1841,6 +1841,10 @@ class TurtleArtWindow():
elif argname == 'number' and \
(type(argvalue) is str or type(argvalue) is unicode):
argname = 'string'
+ elif argname == 'string' and \
+ name in block_styles['number-style-1strarg'] and \
+ type(argvalue) in [int, float]:
+ argname = 'number'
elif argname == 'bool':
argname = argvalue
elif argname == 'flow':