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()
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
(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