ManualDataComboHelper

class glue.core.data_combo_helper.ManualDataComboHelper(state, selection_property, data_collection=None)[source]

Bases: BaseDataComboHelper

This is a helper for combo boxes that need to show a list of data objects that is manually curated.

Datasets are added and removed using the append_data() and remove_data() methods.

Parameters
stateState

The state to which the selection property belongs

selection_propertySelectionCallbackProperty

The selection property representing the combo.

data_collectionDataCollection

The data collection to which the datasets belong - this is needed because if a dataset is removed from the data collection, we want to remove it here.

Methods Summary

append_data(data[, refresh])

register_to_hub(hub)

remove_data(data)

set_multiple_data(datasets)

Add multiple datasets to the combo in one go (and clear any previous datasets).

Methods Documentation

append_data(data, refresh=True)[source]
register_to_hub(hub)[source]
remove_data(data)[source]
set_multiple_data(datasets)[source]

Add multiple datasets to the combo in one go (and clear any previous datasets).

Parameters
datasetslist

The list of Data objects to add