On Wednesday 17 November 2004 17:41, John Finlay wrote:
>
> You can use:
>
> http://www.pygtk.org/pygtk2reference/class-gtkwidget.html#method-gtkwidget-
>-render-icon
>
> to get the pixbuf to use with
>
> http://www.pygtk.org/pygtk2reference/class-gtkwindow.html#method-gtkwindow-
>-set-icon

like this it does work:

icon = self.win.render_icon(gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON)
win.set_icon(icon)


but I was wondering why this:

Im = gtk.Image().set_from_stock(gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON)

will return None

>>> Im = Image().set_from_stock(STOCK_DIALOG_INFO, ICON_SIZE_BUTTON)
>>> print Im
None

cheers
GMario
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to