On Wed, 17 Nov 2004 21:00:48 +0100 Gian Mario Tagliaretti
<[EMAIL PROTECTED]> wrote:

> On Wednesday 17 November 2004 20:44, Christian Robottom Reis wrote:
> 
> > Careful. Does the following work?
> >
> >     img = gtk.Image()
> >     img.set_from_stock(gtk.STOCK_DIALOG_INFO, gtk.ICON_SIZE_BUTTON)
> 
> to me it return None as well
> 
> 
> > If so, read carefully.
> 
> what you mean, exactly?

> >     img = gtk.Image()
This sets img to the new Image instance. The code you originally posted,
however, did the following:

img = gtk.Image().some_method_of_image()

which sets img to the return value of some_method_of_image, rather than
the Image instance.

> U2, cheers
> Gmario
Tom
_______________________________________________
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