A Sex, 2003-08-15 ās 13:57, Shaffer, Chris escreveu: > How can I set the window icon from a PNG file? I know it will use > set_icon(icon), but I get an error message saying that it needs to be of > type gtk.gdk.Pixbuf, not string (I tried to pass the file name).
Try loading the pixbuf first, with gtk.gdk.pixbuf_new_from_file("name.png"). > > Thanks, > > Chris Shaffer > > > > ***** > "The information transmitted is intended only for the person or entity to > which it is addressed and may contain confidential, proprietary, and/or > privileged material. Any review, retransmission, dissemination or other use > of, or taking of any action in reliance upon, this information by persons or > entities other than the intended recipient is prohibited. If you received > this in error, please contact the sender and delete the material from all > computers." > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ -- Gustavo J. A. M. Carneiro <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/