Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tabasics.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tabasics.py')
-rw-r--r--TurtleArt/tabasics.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/TurtleArt/tabasics.py b/TurtleArt/tabasics.py
index cf309cd..1704224 100644
--- a/TurtleArt/tabasics.py
+++ b/TurtleArt/tabasics.py
@@ -137,7 +137,7 @@ class Palettes():
lambda self, x: primitive_dictionary['move'](
self.tw.canvas.forward, -x))
- primitive_dictionary['clean'] = self.tw.lc.prim_clear
+ primitive_dictionary['clean'] = self._prim_clean
palette.add_block('clean',
style='basic-style-extended-vertical',
label=_('clean'),
@@ -852,6 +852,7 @@ buttons'))
palette.add_block('storeinbox1',
style='basic-style-1arg',
label=_('store in box 1'),
+ string_or_number=True,
prim_name='storeinbox1',
default=100,
logo_command='make "box1',
@@ -863,6 +864,7 @@ buttons'))
palette.add_block('storeinbox2',
style='basic-style-1arg',
label=_('store in box 2'),
+ string_or_number=True,
prim_name='storeinbox2',
default=100,
logo_command='make "box2',
@@ -1005,6 +1007,12 @@ variable'))
# Block primitives
+ def _prim_clean(self):
+ ''' Clean block '''
+ self.tw.lc.prim_clear
+ self.tw.display_coordinates()
+ self.tw.parent.restore_challenge()
+
def _prim_and(self, x, y):
""" Logical and """
return x & y