From 609dfa7b066a67c8c6cd542b4735a1e8ebb42131 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 02 Jul 2012 15:41:08 +0000 Subject: make sandwich a macro --- (limited to 'plugins') diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index 9617d12..ade0508 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -671,7 +671,15 @@ module found in the Journal')) label=_('turtle shell'), help_string=_("put a custom 'shell' on the turtle")) + # macro + palette.add_block('clamp', + style='collapsible-top-no-label', + label=[' ', ' '], + special_name=_('top'), + help_string=_('top of a collapsed stack')) + palette.add_block('sandwichtop_no_label', + hidden=True, style='collapsible-top-no-label', label=[' ', ' '], special_name=_('top'), @@ -679,6 +687,7 @@ module found in the Journal')) help_string=_('top of a collapsed stack')) palette.add_block('sandwichbottom', + hidden=True, style='collapsible-bottom', label=[' ', ' '], prim_name='nop', -- cgit v0.9.1