ocarina/trunk/src/image.py
bjschuma 396631bc3d Began redoing library view, removed GuiObjects directory
git-svn-id: file:///home/anna/Desktop/ocarina-legacy/mithos/ocarina@46 1daee41c-8060-4895-b1f0-2197c00d777a
2009-07-14 03:17:53 +00:00

12 lines
215 B
Python

import gtk
class Image(gtk.Image):
def __init__(self,path,stock):
gtk.Image.__init__(self)
if path:
self.set_from_file(path)
else:
self.set_from_stock(stock,gtk.ICON_SIZE_SMALL_TOOLBAR)
self.show()