FlattenListModel#
Superclasses: Object
Implemented Interfaces: ListModel, SectionModel
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
GtkFlattenListModelthat flattenslist.- Parameters:
model – the model to be flattened
Methods#
Properties#
- class FlattenListModel
- props.item_type: GType#
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.