def create_icon(self): icon = GdkPixbuf.Pixbuf(GdkPixbuf.Colorspace.RGB, False, 8, appconsts.THUMB_WIDTH, appconsts.THUMB_HEIGHT) pixel = utils.gdk_color_str_to_int(self.gdk_color_str) icon.fill(pixel) self.icon = icon
def create_icon(self): icon = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, appconsts.THUMB_WIDTH, appconsts.THUMB_HEIGHT) pixel = utils.gdk_color_str_to_int(self.gdk_color_str) icon.fill(pixel) self.icon = icon
def create_icon(self): icon = GdkPixbuf.Pixbuf(GdkPixbuf.Colorspace.RGB, False, 8, appconsts.THUMB_WIDTH, appconsts.THUMB_HEIGHT) pixel = utils.gdk_color_str_to_int(self.gdk_color_str) icon.fill(pixel) self.icon = icon
def create_icon(self): icon = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, appconsts.THUMB_WIDTH, appconsts.THUMB_HEIGHT) pixel = utils.gdk_color_str_to_int(self.gdk_color_str) icon.fill(pixel) self.icon = icon