Dazzle.ReadOnlyListModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
The list model to be wrapped as read-only |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Dazzle.ReadOnlyListModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(base_model)¶
- Parameters:
base_model (
Gio.ListModel
) – aGio.ListModel
- Returns:
- Return type:
Creates a new
Dazzle.ReadOnlyListModel
which is a read-only wrapper around base_model. This is useful when you want to give API consumers access to aGio.ListModel
but without the ability to mutate the underlying list.New in version 3.30.
Property Details¶
- Dazzle.ReadOnlyListModel.props.base_model¶
- Name:
base-model
- Type:
- Default Value:
- Flags:
The “base-model” property is the
Gio.ListModel
that will be wrapped.This base model is not accessible after creation so that API creators can be sure the consumer cannot mutate the underlying model. That is useful when you want to give a caller access to a
Gio.ListModel
without the ability to introspect on the type and mutate it without your knowledge (such as withGio.ListStore
).New in version 3.30.