[pygtk] SVG icon blurry
Andrew Conkling
andrew.conkling at gmail.com
Sun Aug 21 02:40:09 WST 2005
Hi,
I'm loading an SVG icon for my program, but when I see it in the
Alt+Tab window, it looks very blurry. Following is the code I'm using
to load it. Can anyone suggest why this might be?
Regards,
Andrew Conkling
self.iconfactory = gtk.IconFactory()
self.pygmyset = gtk.IconSet()
filenames = [os.path.join(sys.prefix, 'share', 'pixmaps',
'pygmy.svg'), os.path.join(os.path.split(__file__)[0], 'pygmy.svg')]
self.icons = [gtk.IconSource() for i in filenames]
for i, iconsource in enumerate(self.icons):
iconsource.set_filename(filenames[i])
self.pygmyset.add_source(iconsource)
self.iconfactory.add('pygmy', self.pygmyset)
self.iconfactory.add_default()
More information about the pygtk
mailing list