bind_property in python does not allow named arguments AND there is no python documentation
The documentation for function bind_property() in python is missing. It should also be documented, that the functions bind_poroperty_full() and bind_property_with_closures() do not exist and are not needed. As Emmanuele Bassi said: You don't need the full/closures variants bind_property() takes optional transform_to/from callables It's the equivalent of def bind_property(self, source_property, target_obj, target_property, flags=GObject.BindingFlags.DEFAULT, transform_to=None, transform_from=None)
But there is also a bug. If you want to change transform_to=None and/or transform_from=None, you have to use positional arguments. Example:
this does not work: article.bind_property("count", pick_row.spin_button, "value", GObject.BindingFlags.SYNC_CREATE | GObject.BindingFlags.BIDIRECTIONAL, transform_to=self.transform_to, transform_from=self.transform_from)
this works: article.bind_property("count", pick_row.spin_button, "value", GObject.BindingFlags.SYNC_CREATE | GObject.BindingFlags.BIDIRECTIONAL, self.transform_to, self.transform_from)
I think it is also ok, if it only works with positional arguments and not with named arguments, but it should be documented.