Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/taconstants.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-07-05 13:28:47 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-07-05 13:28:47 (GMT)
commit4029ddcd1bf0da391fb26b7e717fe015bafb0fb9 (patch)
treeb0bcf566bca82a61a7676efff94a6359165e2e81 /TurtleArt/taconstants.py
parentf445a0588adb68fdaa9fc6d19f13b14fdd04f861 (diff)
convert flow blocks to new clamp style
Diffstat (limited to 'TurtleArt/taconstants.py')
-rw-r--r--TurtleArt/taconstants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/TurtleArt/taconstants.py b/TurtleArt/taconstants.py
index 0285f7b..e246b03 100644
--- a/TurtleArt/taconstants.py
+++ b/TurtleArt/taconstants.py
@@ -90,6 +90,9 @@ EXPANDABLE_STYLE = ['boolean-style', 'compare-porch-style', 'compare-style',
'number-style-porch', 'number-style', 'basic-style-2arg',
'number-style-block', 'box-style-media']
+# Fixme: this should be based on styles
+EXPANDABLE_FLOW = ['repeat', 'until', 'while', 'if', 'forever', 'ifelse']
+
EXPANDABLE = ['vspace', 'hspace', 'identity2']
EXPANDABLE_ARGS = ['list', 'myfunc1arg', 'myfunc2arg', 'myfunc3arg',
@@ -218,6 +221,8 @@ VOICES = {'af': 'afrikaans', 'cy': 'welsh-test', 'el': 'greek',
# Macros (groups of blocks)
#
MACROS = {
+ 'ifthenelse':
+ [[0, 'ifelse', 0, 0, [None, None, None, None]]],
'clamp':
[[0, 'sandwichtop_no_label', 0, 0, [None, 1]],
[1, 'vspace', 0, 0, [0, 2]],