Gtk.NoSelection¶
- 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.NoSelection(**kwargs)¶
- Bases:
GObject.Object
,Gio.ListModel
,Gtk.SectionModel
,Gtk.SelectionModel
- Abstract:
No
- Structure:
GtkNoSelection
is aGtkSelectionModel
that does not allow selecting anything.This model is meant to be used as a simple wrapper around a
GListModel
when aGtkSelectionModel
is required.GtkNoSelection
passes through sections from the underlying model.- classmethod new(model)[source]¶
- Parameters:
model (
Gio.ListModel
orNone
) – theGListModel
to manage- Returns:
a new
GtkNoSelection
- Return type:
Creates a new selection to handle model.
- get_model()[source]¶
- Returns:
The model being wrapped
- Return type:
Gets the model that self is wrapping.
- set_model(model)[source]¶
- Parameters:
model (
Gio.ListModel
orNone
) – AGListModel
to wrap
Sets the model that self should wrap.
If model is
None
, this model will be empty.
Property Details¶
- Gtk.NoSelection.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.NoSelection.props.model¶
- Name:
model
- Type:
- Default Value:
- Flags:
The model being managed.