コード例 #1
0
 def setup_icon(self):
     icon_pixbuf = gtk.gdk.pixbuf_new_from_file(resources.image_path("mvc-logo.png"))
     self._window.set_icon(icon_pixbuf)
コード例 #2
0
def make_surface(image_name, height=None):
    path = image_path(image_name + '.png')
    image = widgetset.Image(path)
    if height is not None:
        image = image.resize(image.width, height)
    return widgetset.ImageSurface(image)
コード例 #3
0
 def setup_icon(self):
     icon_pixbuf = gtk.gdk.pixbuf_new_from_file(
             resources.image_path("mvc-logo.png"))
     self._window.set_icon(icon_pixbuf)
コード例 #4
0
def make_surface(image_name, height=None):
    path = image_path(image_name + '.png')
    image = widgetset.Image(path)
    if height is not None:
        image = image.resize(image.width, height)
    return widgetset.ImageSurface(image)