diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-12-10 14:07:41 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-12-10 14:07:41 (GMT) |
commit | 1479d6219995eba1a22eb28e71571bcc6249ed88 (patch) | |
tree | 0d561fb32c5a9fdc6622d00d9547ebb43119bd19 /plugins/turtle_blocks_extras | |
parent | 4c68ca261eecf9aaae35c82b1574d58f4be2a5e3 (diff) |
refactor until block
Diffstat (limited to 'plugins/turtle_blocks_extras')
-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=' ', |