Exemplo n.º 1
0
 def set_icon(self, basefilename):
     if not self.tray:
         return
     with_ext = "%s.ico" % basefilename
     icon_dir = get_icon_dir()
     filename = os.path.join(icon_dir, with_ext)
     if not os.path.exists(filename):
         log.error("could not find icon '%s' in win32 icon dir: %s", with_ext, icon_dir)
         return
     self.tray.set_icon(filename)
Exemplo n.º 2
0
 def set_icon(self, basefilename):
     if not self.macapp:
         return
     with_ext = "%s.png" % basefilename
     icon_dir = get_icon_dir()
     filename = os.path.join(icon_dir, with_ext)
     if not os.path.exists(filename):
         log.error("could not find icon '%s' in osx icon dir: %s", with_ext, icon_dir)
         return
     pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
     self.macapp.set_dock_icon_pixbuf(pixbuf)
Exemplo n.º 3
0
 def set_icon(self, basefilename):
     if not self.tray:
         return
     with_ext = "%s.ico" % basefilename
     icon_dir = get_icon_dir()
     filename = os.path.join(icon_dir, with_ext)
     if not os.path.exists(filename):
         log.error("could not find icon '%s' in win32 icon dir: %s",
                   with_ext, icon_dir)
         return
     self.tray.set_icon(filename)
Exemplo n.º 4
0
 def set_icon(self, basefilename):
     if not self.macapp:
         return
     with_ext = "%s.png" % basefilename
     icon_dir = get_icon_dir()
     filename = os.path.join(icon_dir, with_ext)
     if not os.path.exists(filename):
         log.error("could not find icon '%s' in osx icon dir: %s", with_ext,
                   icon_dir)
         return
     pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
     self.macapp.set_dock_icon_pixbuf(pixbuf)