MultiSelection

class MultiSelection(**properties: Any)

Superclasses: Object

Implemented Interfaces: ListModel, SectionModel, SelectionModel

GtkMultiSelection is a GtkSelectionModel that allows selecting multiple elements.

Constructors

class MultiSelection
classmethod new(model: ListModel | None = None) MultiSelection

Creates a new selection to handle model.

Parameters:

model – the GListModel to manage

Methods

class MultiSelection
get_model() ListModel | None

Returns the underlying model of self.

set_model(model: ListModel | None = None) None

Sets the model that self should wrap.

If model is None, self will be empty.

Parameters:

model – A GListModel to wrap

Properties

class MultiSelection
props.item_type: type

The type of items. See get_item_type.

Added in version 4.8.

props.model: ListModel

The list managed by this selection.

props.n_items: int

The number of items. See get_n_items.

Added in version 4.8.