Gtk.MultiSelection¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Gio.ListModel (4), Gtk.SectionModel (2), Gtk.SelectionModel (11)
- Structs:
class |
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r/w/en |
|||
r |
Signals¶
Fields¶
Class Details¶
- class Gtk.MultiSelection(**kwargs)¶
- Bases:
GObject.Object
,Gio.ListModel
,Gtk.SectionModel
,Gtk.SelectionModel
- Abstract:
No
- Structure:
GtkMultiSelection
is aGtkSelectionModel
that allows selecting multiple elements.- classmethod new(model)[source]¶
- Parameters:
model (
Gio.ListModel
orNone
) – theGListModel
to manage- Returns:
a new
GtkMultiSelection
- Return type:
Creates a new selection to handle model.
- get_model()[source]¶
- Returns:
the underlying model
- Return type:
Returns the underlying model of self.
- set_model(model)[source]¶
- Parameters:
model (
Gio.ListModel
orNone
) – AGListModel
to wrap
Sets the model that self should wrap.
If model is
None
, self will be empty.
Property Details¶
- Gtk.MultiSelection.props.item_type¶
- Name:
item-type
- Type:
- Default Value:
<GType GObject>
- Flags:
The type of items. See [method`Gio`.ListModel.get_item_type].
New in version 4.8.
- Gtk.MultiSelection.props.model¶
- Name:
model
- Type:
- Default Value:
- Flags:
The list managed by this selection.