apptools.selection.i_selection module

class apptools.selection.i_selection.IListSelection(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: ISelection

Selection for ordered sequences of items.

indices = List

Indices of the selected objects in the selection provider.

items = List

Selected objects.

class apptools.selection.i_selection.ISelection(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: Interface

Collection of selected items.

is_empty()[source]

Is the selection empty?

provider_id = Str

ID of the selection provider that created this selection object.