SelectionFilterModel#
Superclasses: Object
Implemented Interfaces: ListModel
GtkSelectionFilterModel
is a list model that presents the selection from
a GtkSelectionModel
.
Constructors#
- class SelectionFilterModel
- classmethod new(model: SelectionModel | None = None) SelectionFilterModel #
Creates a new
GtkSelectionFilterModel
that will include the selected items from the underlying selection model.- Parameters:
model – the selection model to filter
Methods#
- class SelectionFilterModel
- get_model() SelectionModel | None #
Gets the model currently filtered or
None
if none.
- set_model(model: SelectionModel | None = None) None #
Sets the model to be filtered.
Note that GTK makes no effort to ensure that
model
conforms to the item type ofself
. It assumes that the caller knows what they are doing and have set up an appropriate filter to ensure that item types match.- Parameters:
model – The model to be filtered