MultiSorter
Implemented Interfaces: ListModel
, Buildable
GtkMultiSorter
combines multiple sorters by trying them
in turn.
If the first sorter compares two items as equal, the second is tried next, and so on.
Constructors
- class MultiSorter
- classmethod new() MultiSorter
Creates a new multi sorter.
This sorter compares items by trying each of the sorters in turn, until one returns non-zero. In particular, if no sorter has been added to it, it will always compare items as equal.
Methods
Properties
- class MultiSorter
- 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.