From db36a7cf2c15802e9d06ad5bb75be294102c9cf8 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 07 Jul 2013 19:02:29 +0000 Subject: remove redundant add_block and make spelling match (#4541) --- diff --git a/pysamples/uturn.py b/pysamples/uturn.py index fee9a29..edd2bcd 100644 --- a/pysamples/uturn.py +++ b/pysamples/uturn.py @@ -34,7 +34,7 @@ def myblock(tw, arg): style='basic-style-extended-vertical', label=_('uturn'), prim_name='uturn', - help_string=_('make a uturn')) + help_string=_('turns the turtle 180 degrees')) # Add its primitive to the LogoCode dictionary. tw.lc.def_prim('uturn', 0, lambda self: _prim_uturn(tw)) @@ -42,9 +42,3 @@ def myblock(tw, arg): # Regenerate the palette, which will now include the new block. tw.show_toolbar_palette(palette_name_to_index('turtle'), regenerate=True) - - palette.add_block('uturn', # the name of your block - style='basic-style', # the block style - label=_('u turn'), # the label for the block - prim_name='uturn', # code reference (see below) - help_string=_('turns the turtle 180 degrees')) -- cgit v0.9.1