Skip to content

Fabricator

class Fabricator (poll_from: Callable[[Concatenate[Self, P]], T], interval: int = 1000, stream: bool = False, default_value: T | Any = None, initial_poll: bool = True, *data, **kwargs)

Section titled “ Fabricator ”

class Fabricator (poll_from: Callable[[Concatenate[Self, P]], T], interval: int = 1000, stream: bool = True, default_value: T | Any = None, initial_poll: bool = True, *data, **kwargs)

Section titled “ Fabricator ”

class Fabricator (poll_from: str, interval: int = 1000, stream: bool = False, default_value: str | Any = None, initial_poll: bool = True, *args, **kwargs)

Section titled “ Fabricator ”

class Fabricator (poll_from: str, interval: int = 1000, stream: bool = True, default_value: str | Any = None, initial_poll: bool = True, *args, **kwargs)

Section titled “ Fabricator ”

Bases: Service, Generic[T]

Default service constructor (base constructor)

  • Parameters: **kwargs

    mapped to signal connections (e.g. on_clicked=lambda *_: … connects the given function to the signal “clicked”, notify_my_property=my_func connects the given function to the signal “notify::my-property”)

signal changed (self, value: object)NoneType

Section titled “ changed ”

signal polling_done (self, last_value: object)NoneType

Section titled “ polling_done ”

def get_value (*args, _prop=<GObject Property value (PyObject)>, **kwargs)

Section titled “ get_value ”

def set_value (value, *args, _prop=<GObject Property value (PyObject)>, **kwargs)

Section titled “ set_value ”