diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-31 23:12:05 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-01-31 23:12:05 (GMT) |
commit | 2c57833688b6cd36b284de7194fdad7c5571087d (patch) | |
tree | 6a63b94142354dffe72d39d52c2cc3b7c30e4585 /Theme.py | |
parent | f3f438af59c69b584d84b27f103f9392fc8185f8 (diff) |
implement load/save operations
Diffstat (limited to 'Theme.py')
-rw-r--r-- | Theme.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -96,11 +96,13 @@ def pixbuf(file, size = None): out = gtk.gdk.pixbuf_new_from_file(path(file)) return out -EMPTY_PIXBUF = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 8, 1, 1) - def scale(pixbuf, size = THUMB_SIZE): return pixbuf.scale_simple(size, size, gtk.gdk.INTERP_BILINEAR) +EMPTY_FILENAME = 'images/pics/empty.png' +EMPTY_ORIG = pixbuf(EMPTY_FILENAME) +EMPTY_THUMB = scale(EMPTY_ORIG) + def choose(out_fun): from sugar.graphics.objectchooser import ObjectChooser |