Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-07-07 19:02:29 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-07-07 19:02:29 (GMT)
commitdb36a7cf2c15802e9d06ad5bb75be294102c9cf8 (patch)
tree04746b07ddac507b8c72782ca0e2d59296e0db88
parent12eab0ca4c4eb13312cd9ec8b601528f6e9d07b8 (diff)
remove redundant add_block and make spelling match (#4541)
-rw-r--r--pysamples/uturn.py8
1 files changed, 1 insertions, 7 deletions
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'))