On Fri, Sep 05, 2003 at 11:57:22AM +0800, James Henstridge wrote:
> 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.
Would it be possible to raise a proper exception in this case explaining
it is write-only?
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/