diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-12-10 14:04:47 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-12-10 14:04:47 (GMT) |
commit | a4c58761b6343e66056d5f94ac31670b76810402 (patch) | |
tree | 8535704d055e4b4742743d0500b95fe8ad924cf3 /plugins/turtle_blocks_extras/turtle_blocks_extras.py | |
parent | efdc7bba0d599b55a6106bafe5c3b57747a0fde9 (diff) |
refactor until block
Diffstat (limited to 'plugins/turtle_blocks_extras/turtle_blocks_extras.py')
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 3192021..62dd40f 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -93,7 +93,8 @@ boolean operators from Numbers palette')) True) palette.add_block('until', - style='clamp-style-boolean', + hidden=True, # Too big to fit on palette + style='clamp-style-until', label=_('until'), prim_name='until', default=[None, None], @@ -115,6 +116,13 @@ boolean operators from Numbers palette')) ArgSlot(TYPE_OBJECT)]), True) + # macro + palette.add_block('untilmacro', + style='basic-style-extended-vertical', + label=_('until'), + help_string=_('do-until-True operator that uses \ +boolean operators from Numbers palette')) + palette.add_block('sandwichclamp', style='clamp-style-collapsible', label=' ', |