Support GObject property access as direct Python object attributes
Submitted by Simon Feltman
Link to original bug (#734894)
Description
The request for accessing GObject properties directly has come up a few times. Furthermore, both vala and gjs support direct property accessors as follows:
button = Gtk.Button()
button.label
vs.
button.props.label
Implementing this should be trivial in the sense that we just need to implement getattr and setattr which could be done purely in Python and return the results of get/set_property() with TypeError exceptions translated to AttributeErrors.
Edited by Christoph Reiter