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()
|