Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/turtle_blocks_extras/turtle_blocks_extras.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
index fcbfafe..de5a9e3 100644
--- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py
+++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py
@@ -704,6 +704,17 @@ module found in the Journal'))
lambda self:
primitive_dictionary['activeturtle']())
+ primitive_dictionary['activeturtle'] = self._prim_active_turtle
+ palette.add_block('activeturtle',
+ style='box-style',
+ #TRANS: pop removes a new item from the program stack
+ label=_('active turtle'),
+ prim_name='activeturtle',
+ value_block=True,
+ help_string=_('the name of the active turtle'))
+ self.tw.lc.def_prim('activeturtle', 0,
+ lambda self: primitive_dictionary['activeturtle']())
+
primitive_dictionary['skin'] = self._prim_reskin
palette.add_block('skin',
hidden=True,