Gtk.NoSelection¶
class — extends GObject.Object, Gio.ListModel, SectionModel, SelectionModel
A selection model that does not allow selecting anything.
This model is meant to be used as a simple wrapper around a GListModel
when a GtkSelectionModel is required.
GtkNoSelection passes through sections from the underlying model.
Constructors¶
new¶
Creates a new selection to handle model.
Parameters:
model— theGListModelto manage
Methods¶
get_model¶
Gets the model that self is wrapping.
set_model¶
Sets the model that self should wrap.
If model is None, this model will be empty.
Parameters:
model— AGListModelto wrap
Properties¶
item_type¶
The type of items. See Gio.ListModel.get_item_type.
model¶
The model being managed.
n_items¶
The number of items. See Gio.ListModel.get_n_items.