def set_attribute_combo(self, data):
        labeldata = ((f.label, f) for f in data.visible_components)
        update_combobox(self.ui.attributeComboBox, labeldata)
Update attribute combo box to reflect components in data
dataset/ETHPy150Open glue-viz/glue/glue/viewers/image/qt/viewer_widget.py/ImageWidgetBase.set_attribute_combo