Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tasetup.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2008-12-22 20:01:24 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2008-12-22 20:01:24 (GMT)
commitf55fe02ea3bdf7b064bd5314c740495a95174a98 (patch)
treecb8c9a1d6fd1f1f0acf2ebbeb99631c7fcb4358d /tasetup.py
parent5432fed0239df3c35b9ae659d85a05746a569c38 (diff)
UCB logo export
Image cache check
Diffstat (limited to 'tasetup.py')
-rw-r--r--tasetup.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tasetup.py b/tasetup.py
index 8609928..bdc0271 100644
--- a/tasetup.py
+++ b/tasetup.py
@@ -76,9 +76,9 @@ selectors = (
('hspace','nop','hspace'),
('vspace','nop','vspace'))),
('myblocks', 55,
- (('hat1','nop','start'),
+ (('hat1','nop1','start'),
('stack1','stack1','noarg'),
- ('hat2','nop','start'),
+ ('hat2','nop2','start'),
('stack2','stack2','noarg'),
('storeinbox1','storeinbox1','1arg'),
('box1','box1','num'),
@@ -191,9 +191,9 @@ def load_image(path, dir, file):
# first try to open the cached image
# if you fail, open the .svg file and cache the result
+ # gtk.gdk.pixbuf_new_from_file_at_size(filename, width, height)
try: return gtk.gdk.pixbuf_new_from_file(os.path.join(activity.get_activity_root(),"data",file+'.png'))
except:
foo = gtk.gdk.pixbuf_new_from_file(os.path.join(path,dir,file+'.svg'))
foo.save(os.path.join(activity.get_activity_root(),"data",file+'.png'), "png")
return foo
-