TreeListRowSorter

class TreeListRowSorter(**properties: Any)

Superclasses: Sorter, Object

Constructors:

TreeListRowSorter(**properties)
new(sorter:Gtk.Sorter=None) -> Gtk.TreeListRowSorter

Constructors

class TreeListRowSorter
classmethod new(sorter: Sorter | None = None) TreeListRowSorter

Create a special-purpose sorter that applies the sorting of sorter to the levels of a GtkTreeListModel.

Note that this sorter relies on passthrough being False as it can only sort TreeListRow’s.

Parameters:

sorter – a GtkSorter

Methods

class TreeListRowSorter
get_sorter() Sorter | None

Returns the sorter used by self.

set_sorter(sorter: Sorter | None = None) None

Sets the sorter to use for items with the same parent.

This sorter will be passed the item of the tree list rows passed to self.

Parameters:

sorter – The sorter to use

Properties

class TreeListRowSorter
props.sorter: Sorter

The underlying sorter