Re: function to get all gobject properties?



Am Donnerstag, den 07.04.2011, 22:34 +0200 schrieb Laszlo Pandy:
> gobject.list_properties() will give you param spec objects with all
> the properties metadata.

i don't have this function (i'm using ubuntu natty).

> You can also use dir(object.props). Object.props is a dynamically
> created Python object which allows setting and getting without
> set_property() and get_property() functions.

dir(obj.props) has all the properties. thanks!


> 
> On Thu, Apr 7, 2011 at 8:53 PM, Thomas Bechtold
> <thomasbechtold jpberlin de> wrote:
> > Hi,
> >
> > i created a small lib [1] with gobject-introspection. is there a
> > function to get all possible properties with python?
> > There is obj.get_property() and obj.get_properties() but you always have
> > to know the properties names.
> >
> > Cheers,
> >
> > Tom
> >
> > [1] https://gitorious.org/isas/isas
> >
> > _______________________________________________
> > python-hackers-list mailing list
> > python-hackers-list gnome org
> > http://mail.gnome.org/mailman/listinfo/python-hackers-list
> >
> >

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]