[pygtk] Load .ico files with multiple images

Peer Sommerlund peer.sommerlund at gmail.com
Mon May 26 21:10:14 WST 2008


Hi

I'm working on a new set of icons for TortoiseHg, and would like to provide
16x16 images as well as 32x32 images.
Simply scaling the images looses some control over where to put contrast.

I have discovered
set_icon_list<http://www.pygtk.org/docs/pygtk/class-gtkwindow.html#method-g=
tkwindow--set-icon-list>which
allows me to set multiple images for windows, but I'm unable to find a
way to load two images from the same .ico file.

pixbuf_new_from_file_at_size<http://www.pygtk.org/docs/pygtk/class-gdkpixbu=
f.html#function-gdk--pixbuf-new-from-file>looked
like it could do the job. Unfortunately it doesn't load the image
with the specified resolution - but simply scales the largest image.

Is it possible to load two images from one .ico file, or do I have to
separate images into two files?

Regards,
Peer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080526/ce35cb9c/at=
tachment.htm


More information about the pygtk mailing list