

def set_selected(self, selected):
    ' Set the selected object in the combo box.\n\n        '
    if (not (self._guard & SELECTED_GUARD)):
        self._guard |= SELECTED_GUARD
        try:
            d = self.declaration
            try:
                index = d.items.index(selected)
            except ValueError:
                index = (- 1)
            d.widget.setCurrentIndex(index)
        finally:
            self._guard &= (~ SELECTED_GUARD)

dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_object_combo.py QtObjectCombo.set_selected/VarMisuse@73/112 `self`->`d`