From 204ea781c637ddb4a1337bb977d731e842f83b6d Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 05 Nov 2013 15:49:08 +0000 Subject: convert turtle block to new prim format --- (limited to 'plugins') 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', -- cgit v0.9.1