diff options
-rw-r--r-- | plugins/turtle_blocks_extras/turtle_blocks_extras.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/turtle_blocks_extras/turtle_blocks_extras.py b/plugins/turtle_blocks_extras/turtle_blocks_extras.py index d99a4c5..131d14b 100644 --- a/plugins/turtle_blocks_extras/turtle_blocks_extras.py +++ b/plugins/turtle_blocks_extras/turtle_blocks_extras.py @@ -787,8 +787,8 @@ module found in the Journal')) string_or_number=True, help_string=_('chooses which turtle to command')) self.tw.lc.def_prim('addturtle', 1, - lambda self, x: - self.tw.turtles.set_turtle(x)) + Primitive(self.tw.turtles.set_turtle, + arg_descs=[ArgSlot(TYPE_STRING)])) palette.add_block('turtlex', style='number-style-1arg', |