ManualDataComboHelper

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

Bases: glue.core.data_combo_helper.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(self, data[, refresh])

register_to_hub(self, hub)

remove_data(self, data)

set_multiple_data(self, datasets)

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

Methods Documentation

append_data(self, data, refresh=True)[source]
register_to_hub(self, hub)[source]
remove_data(self, data)[source]
set_multiple_data(self, 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