

def _build_ui(self):
    w = QtGui.QComboBox()
    for p in sorted(self.params):
        w.addItem(p)
    if isinstance(self.params, list):
        self.params = dict(((p, p) for p in self.params))
    w.currentIndexChanged.connect(nonpartial(self.changed))
    return w

dataset/ETHPy150Open glue-viz/glue/glue/viewers/custom/qt/custom_viewer.py ChoiceElement._build_ui/original