Gtk.MultiSorter¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Sorter (3), GObject.Object (37), Gio.ListModel (4), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Sorter (2), GObject.Object (7), Gio.ListModel (3), Gtk.Buildable (9)
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.MultiSorter(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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.
- classmethod new()[source]¶
- Returns:
a new
GtkMultiSorter
- Return type:
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.
- append(sorter)[source]¶
- Parameters:
sorter (
Gtk.Sorter
) – a sorter to add
Add sorter to self to use for sorting at the end.
self will consult all existing sorters before it will sort with the given sorter.
Property Details¶
- Gtk.MultiSorter.props.item_type¶
- Name:
item-type
- Type:
- Default Value:
<GType GtkSorter>
- Flags:
The type of items. See [method`Gio`.ListModel.get_item_type].
New in version 4.8.