gobject.binding_group
Module for BindingGroup class
Types 3
gobject.binding_group.BindingGroup can be used to bind multiple properties from an object collectively.
Use the various methods to bind properties from a single source object to multiple destination objects. Properties can be bound bidirectionally and are connected when the source object is set with gobject.binding_group.BindingGroup.setSource.
Methods
BindingGroup self()Returns `this`, for use in `with` statements.BindingGroupGidBuilder builder()Get builder for [gobject.binding_group.BindingGroup] Returns: New builder objectgobject.object.ObjectWrap source() @propertyGet `source` property. Returns: The source object used for binding properties.void source(gobject.object.ObjectWrap propval) @propertySet `source` property. Params: propval = The source object used for binding properties.void bind(string sourceProperty, gobject.object.ObjectWrap target, string targetProperty, gobject.types.BindingFlags flags)Creates a binding between source_property on the source object and target_property on target. Whenever the source_property is changed the target_property is updated using the same value. The bindin...void bindFull(string sourceProperty, gobject.object.ObjectWrap target, string targetProperty, gobject.types.BindingFlags flags, gobject.closure.Closure transformTo = null, gobject.closure.Closure transformFrom = null)Creates a binding between source_property on the source object and target_property on target, allowing you to set the transformation functions to be used by the binding. The binding flag [gobject.t...gobject.object.ObjectWrap dupSource()Gets the source object used for binding properties. Returns: a #GObject or null.void setSource(gobject.object.ObjectWrap source = null)Sets source as the source object used for creating property bindings. If there is already a source object all bindings from it will be removed.Fluent builder implementation template for gobject.binding_group.BindingGroup
Methods
T source(gobject.object.ObjectWrap propval)Set `source` property. Params: propval = The source object used for binding properties. Returns: Builder instance for fluent chainingFluent builder for gobject.binding_group.BindingGroup
Methods
BindingGroup build()Create object from builder. Returns: New object