From 955cbca83a84b0c1ea06f8c33dfec8dd0f850ed1 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 30 Oct 2013 17:24:11 +0000 Subject: comvert custom blocks to new prim style -- args is passed as a tuple --- (limited to 'pysamples/forward_push.py') diff --git a/pysamples/forward_push.py b/pysamples/forward_push.py index ca527db..80fe818 100644 --- a/pysamples/forward_push.py +++ b/pysamples/forward_push.py @@ -10,7 +10,7 @@ # destination to the FILO. -def myblock(tw, name): +def myblock(tw, args): ''' ''' def _prim_forward_push(tw, line_length): @@ -42,7 +42,7 @@ def myblock(tw, name): # Create a new block prototype. palette.add_block('forwardpush', style='basic-style-1arg', - label=name, + label=args[0], default=100, prim_name='forwardpush', help_string=_('push destination rgb value to heap')) -- cgit v0.9.1