FlattenListModel
Superclasses: Object
Implemented Interfaces: ListModel
, SectionModel
GtkFlattenListModel
is a list model that concatenates other list models.
GtkFlattenListModel
takes a list model containing list models, and flattens
it into a single model. Each list model becomes a section in the single model.
Constructors
- class FlattenListModel
- classmethod new(model: ListModel | None = None) FlattenListModel
Creates a new
GtkFlattenListModel
that flattenslist
.- Parameters:
model – the model to be flattened
Methods
Properties
- class FlattenListModel
- props.item_type: type
The type of items. See
get_item_type
.Added in version 4.8.
- props.n_items: int
The number of items. See
get_n_items
.Added in version 4.8.