Re: function to get all gobject properties?



gobject.list_properties() will give you param spec objects with all
the properties metadata.

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.

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
>
>


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