snakia.core.rx.bindable
Classes
|
|
|
A bindable value. |
|
|
|
Abstract base class for generic types. |
|
Type variable. |
|
- class snakia.core.rx.bindable.Bindable(default_value=None)[source]
Bases:
BaseBindable[T],Generic[T]A bindable value.
- property default_value: T
- property has_default_value: bool
- property has_value: bool
- on(run_now=False)[source]
Decorator to subscribe to an value.
- Return type:
Callable[[BindableSubscriber[TypeVar(T),Any]],None]
- set_silent(value)
- Return type:
None
- property subscribers: tuple[BindableSubscriber[T, Any], ...]
Get the subscribers.
- property value: T