@classmethod
def _on_selection_changed(cls, index, new_complex):
    callbacks = cls.__selection_changed_callbacks
    try:
        callbacks[index](new_complex)
    except KeyError:
        Logs.warning('Received an unknown updated complex index:', index)
@classmethod
def _on_selection_changed(cls, index, new_complex):
    callbacks = cls.__selection_changed_callbacks
    try:
        callbacks[index](new_complex)
    except KeyError:
        Logs.warning('Received an unknown updated complex index:', index)