simvx.core.selection

Multi-select selection system for editor use.

Module Contents

Classes

Selection

Tracks an ordered set of selected items with change notification.

Data

log

API

simvx.core.selection.log[source]

‘getLogger(…)’

class simvx.core.selection.Selection[source]

Tracks an ordered set of selected items with change notification.

Initialization

property items: list
property count: int
property primary: object | None
property empty: bool
select(item, *, additive: bool = False)[source]

Select item. If additive, toggle it; otherwise replace.

deselect(item)[source]
toggle(item)[source]
clear()[source]
select_all(items)[source]
is_selected(item) bool[source]
__contains__(item)[source]
__iter__()[source]
__len__() int[source]