Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pysamples/uturn.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysamples/uturn.py')
-rw-r--r--pysamples/uturn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pysamples/uturn.py b/pysamples/uturn.py
index 0b164a0..cdeb96d 100644
--- a/pysamples/uturn.py
+++ b/pysamples/uturn.py
@@ -27,9 +27,9 @@ def myblock(tw, arg):
# Add its primitive to the LogoCode dictionary.
tw.lc.def_prim('uturn', 0,
- lambda self: primitive_dictionary['set'](
- 'heading', tw.canvas.seth, tw.canvas.heading + 180))
+ lambda self: primitive_dictionary['set']
+ ('heading', tw.canvas.seth, tw.canvas.heading + 180))
# Regenerate the palette, which will now include the new block.
tw.show_toolbar_palette(palette_name_to_index('turtle'),
- regenerate=True)
+ regenerate=True)