On Thu, Nov 18, 2004 at 02:21:46PM -0600, Doug Quale wrote:
> > Fair enough. So how do I instead set a window's icon to a stock image?
> > Alternatively, how do I get a pixbuf from a stock image?
> >
>
> As you note, since you want a pixbuf rather than a gtkImage widget a
> more direct approach would be nicer. You can get a stock icon pixbuf
> using the gtkWidget render_icon() method. (Unfortunately ethods like
> these that are far up the inheritance hierarchy can be hard to find.)
>
> pixbuf = dialog.render_icon(gtk.STOCK_FIND, gtk.ICON_SIZE_MENU)
> dialog.set_icon(pixbuf)
-> FAQ 8.11
http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq08.011.htp
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/