gtk.multi_selection
Module for [MultiSelection] class
Types 3
classMultiSelection : gobject.object.ObjectWrap, gio.list_model.ListModel, gtk.section_model.SectionModel, gtk.selection_model.SelectionModel
[gtk.multi_selection.MultiSelection] is a [gtk.selection_model.SelectionModel] that allows selecting multiple elements.
Methods
MultiSelection self()Returns `this`, for use in `with` statements.MultiSelectionGidBuilder builder()Get builder for [gtk.multi_selection.MultiSelection] Returns: New builder objectgobject.types.GType itemType() @propertyGet `itemType` property. Returns: The type of items. See [gio.list_model.ListModel.getItemType].gio.list_model.ListModel model() @propertyGet `model` property. Returns: The list managed by this selection.void model(gio.list_model.ListModel propval) @propertySet `model` property. Params: propval = The list managed by this selection.uint nItems() @propertyGet `nItems` property. Returns: The number of items. See [gio.list_model.ListModel.getNItems].gio.list_model.ListModel getModel()Returns the underlying model of self. Returns: the underlying modelvoid setModel(gio.list_model.ListModel model = null)Sets the model that self should wrap.Constructors
this(gio.list_model.ListModel model = null)Creates a new selection to handle model.classMultiSelectionGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.list_model.ListModelGidBuilderImpl!T, gtk.section_model.SectionModelGidBuilderImpl!T, gtk.selection_model.SelectionModelGidBuilderImpl!T
Methods
T model(gio.list_model.ListModel propval)Set `model` property. Params: propval = The list managed by this selection. Returns: Builder instance for fluent chainingFluent builder for [gtk.multi_selection.MultiSelection]
Methods