GObject#
- class ignis.gobject.IgnisGObject(*args: Any, **kwargs: Any)#
Bases:
GObject.Object
A base class for all services and widgets (and some utils). Mainly, it is the same GObject.Object, but with some improvements.
It provides support for
Binding
.It offers easier control over properties (without the need for the
.props
attribute).
- notify_list(*args) None #
Notify list of properties. You can pass unlimited number of property names as arguments.
- Return type:
- bind_property2(source_property: str, target: gi.repository.GObject.Object, target_properties: list[str], transform: Callable | None = None) None #
Bind
source_property
onself
withtarget_properties
ontarget
.- Parameters:
- Return type:
- bind(property_name: str, transform: Callable | None = None) Binding #
Creates
Binding
from property name onself
.
- class ignis.gobject.Binding(target: gi.repository.GObject.Object, target_properties: list[str], transform: Callable | None = None)#
An object that describe binding.
- property target: gi.repository.GObject.Object#
required, read-only
The target GObject.