ManualDataComboHelper¶
-
class
glue.core.data_combo_helper.ManualDataComboHelper(state, selection_property, data_collection=None)[source]¶ Bases:
glue.core.data_combo_helper.BaseDataComboHelperThis 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()andremove_data()methods.- Parameters
- state
State The state to which the selection property belongs
- selection_property
SelectionCallbackProperty The selection property representing the combo.
- data_collection
DataCollection 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.
- state
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