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 the None singleton.

Added in version 4.8.

props.model: ListModel#

The type of the None singleton.

props.n_items: int#

The type of the None singleton.

Added in version 4.8.