SliceListModel
Superclasses: Object
Implemented Interfaces: ListModel
, SectionModel
- Constructors:
SliceListModel(**properties)
new(model:Gio.ListModel=None, offset:int, size:int) -> Gtk.SliceListModel
Constructors
- class SliceListModel
Methods
- class SliceListModel
-
- get_offset() int
Gets the offset set via
set_offset()
.
- get_size() int
Gets the size set via
set_size()
.
- set_model(model: ListModel | None = None) None
Sets the model to show a slice of.
The model’s item type must conform to
self
’s item type.- Parameters:
model – The model to be sliced
Properties
- class SliceListModel
- props.item_type: type
The type of items. See
get_item_type
.Added in version 4.8.
- props.n_items: int
The number of items. See
get_n_items
.Added in version 4.8.