git-svn-id: file:///home/anna/Desktop/ocarina-legacy/mithos/ocarina@46 1daee41c-8060-4895-b1f0-2197c00d777a
12 lines
215 B
Python
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()
|