def setup_icon(self):
     icon_pixbuf = gtk.gdk.pixbuf_new_from_file(resources.image_path("mvc-logo.png"))
     self._window.set_icon(icon_pixbuf)
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)
 def setup_icon(self):
     icon_pixbuf = gtk.gdk.pixbuf_new_from_file(
             resources.image_path("mvc-logo.png"))
     self._window.set_icon(icon_pixbuf)
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)