ColumnViewSorter

Added in version 4.10.

class ColumnViewSorter(**properties: Any)

Superclasses: Sorter, Object

Constructors:

ColumnViewSorter(**properties)

Methods

class ColumnViewSorter
get_n_sort_columns() int

Returns the number of columns by which the sorter sorts.

If the sorter of the primary sort column does not determine a total order, then the secondary sorters are consulted to break the ties.

Use the changed signal to get notified when the number of sort columns changes.

Added in version 4.10.

get_nth_sort_column(position: int) tuple[ColumnViewColumn | None, SortType]

Gets the position’th sort column and its associated sort order.

Use the changed signal to get notified when sort columns change.

Added in version 4.10.

Parameters:

position – the position of the sort column to retrieve (0 for the primary sort column)

get_primary_sort_column() ColumnViewColumn | None

Returns the primary sort column.

The primary sort column is the one that displays the triangle in a column view header.

Added in version 4.10.

get_primary_sort_order() SortType

Returns the primary sort order.

The primary sort order determines whether the triangle displayed in the column view header of the primary sort column points upwards or downwards.

If there is no primary sort column, then this function returns GTK_SORT_ASCENDING.

Added in version 4.10.

Properties

class ColumnViewSorter
props.primary_sort_column: ColumnViewColumn

The primary sort column.

The primary sort column is the one that displays the triangle in a column view header.

Added in version 4.10.

props.primary_sort_order: SortType

The primary sort order.

The primary sort order determines whether the triangle displayed in the column view header of the primary sort column points upwards or downwards.

Added in version 4.10.