From 3e480dd17927aaf4bc1017e12303cdc2593cdffd Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 19 Mar 2009 21:30:30 +0000 Subject: adding "pippy-programmable" block --- (limited to 'tasetup.py') diff --git a/tasetup.py b/tasetup.py index 5241230..ce324b2 100644 --- a/tasetup.py +++ b/tasetup.py @@ -94,6 +94,7 @@ selectors = ( ('sensors', 55, (('kbinput','kbinput','noarg2'), ('keyboard','keyboard','num'), + ('nop','userdefined','onearg',100), ('myfunc','myfunc','myfunc',_('x'),100), ('hres','hres','num'), ('vres','vres','num'), @@ -249,13 +250,14 @@ def setup_misc(tw): tw.status_shapes['noinput'] = load_image(tw.path, '', 'noinput') tw.status_shapes['emptyheap'] = load_image(tw.path, '', 'emptyheap') tw.status_shapes['nomedia'] = load_image(tw.path, '', 'nomedia') + tw.status_shapes['nocode'] = load_image(tw.path, '', 'nocode') tw.status_shapes['syntaxerror'] = load_image(tw.path, '', 'syntaxerror') # for some reason, the status bar is displayed off screen on the XO if os.path.exists('/sys/power/olpc-pm'): tw.status_spr = sprNew(tw,0,(tw.height-83), \ tw.status_shapes['status'],True) else: - tw.status_spr = sprNew(tw,0,(tw.height-70), \ + tw.status_spr = sprNew(tw,0,(tw.height-73), \ tw.status_shapes['status'],True) tw.status_spr.type = 'status' setlayer(tw.status_spr,400) -- cgit v0.9.1