diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-10-30 17:24:11 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-10-30 17:24:11 (GMT) |
commit | 955cbca83a84b0c1ea06f8c33dfec8dd0f850ed1 (patch) | |
tree | b35c003c4250652885887bfa8e554ce84b2b8696 /pysamples/forward_push.py | |
parent | 32444889db2d7573426b3e93722a566b36385bc3 (diff) |
comvert custom blocks to new prim style -- args is passed as a tuple
Diffstat (limited to 'pysamples/forward_push.py')
-rw-r--r-- | pysamples/forward_push.py | 4 |
1 files changed, 2 insertions, 2 deletions
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')) |