Gtk.SelectionFilterModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r/w/en |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.SelectionFilterModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkSelectionFilterModel
is a list model that presents the selection from aGtkSelectionModel
.- classmethod new(model)[source]¶
- Parameters:
model (
Gtk.SelectionModel
orNone
) – the selection model to filter- Returns:
a new
GtkSelectionFilterModel
- Return type:
Creates a new
GtkSelectionFilterModel
that will include the selected items from the underlying selection model.
- get_model()[source]¶
- Returns:
The model that gets filtered
- Return type:
Gets the model currently filtered or
None
if none.
- set_model(model)[source]¶
- Parameters:
model (
Gtk.SelectionModel
orNone
) – The model to be filtered
Sets the model to be filtered.
Note that GTK makes no effort to ensure that model conforms to the item type of self. It assumes that the caller knows what they are doing and have set up an appropriate filter to ensure that item types match.
Property Details¶
- Gtk.SelectionFilterModel.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.SelectionFilterModel.props.model¶
- Name:
model
- Type:
- Default Value:
- Flags:
The model being filtered.