On 4/09/2003 8:00 AM, Michael McLay wrote:

I received an odd warning when testing the use of get_property. Accessing the 'child' property for a button returns the message:

(:2640): Gtk-WARNING **: ../../gtk/gtkcontainer.c:874: invalid property id 3 for "child" of type `GParamObject' in `GtkButton'


c.get_property('child')



(:2640): Gtk-WARNING **: ../../gtk/gtkcontainer.c:874: invalid property id 3 for "child" of type `GParamObject' in `GtkButton'


Here's the code that caused this to happen.


the GtkContainer::child property is write-only, which is why you get weird results when trying to read it. The other cases are most likely similar.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
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