Пример #1
0
 def set_from_resource(self, resource_name):
     self.pixbuf = create_pixbuf_from_resource(resource_name, self.size)
     self.set_from_pixbuf(self.pixbuf)
Пример #2
0
 def set_no_image(self):
     self.pixbuf = create_pixbuf_from_resource(self.resource, self.size)
     self.set_from_pixbuf(self.pixbuf)
Пример #3
0
 def apeend_icon(self, calling_object, icon_name, active=False):
     pixbuf = create_pixbuf_from_resource(icon_name, self.ICON_SIZE)
     if pixbuf:
         self.model.append([pixbuf, icon_name])
         if active:
             calling_object.combobox.set_active(len(self.model) - 1)
Пример #4
0
 def __init__(self, resource, size=None):
     Gtk.Image.__init__(self)
     self.resource = resource
     self.size = size
     self.pixbuf = create_pixbuf_from_resource(self.resource, self.size)
Пример #5
0
 def apeend_icon(self, calling_object, icon_name, active=False):
     pixbuf = create_pixbuf_from_resource(icon_name, self.ICON_SIZE)
     if pixbuf:
         self.model.append([pixbuf, icon_name])
         if active:
             calling_object.combobox.set_active(len(self.model) - 1)