def set_value(self, value, signal=True):
        options = self.get_widget_options()
        if not signal:
            self.currentIndexChanged[int].disconnect(self.value_changed)
        if value is not None and "allowed_values" in options:
            if "remap" in options:
                remap = options["remap"]
                cur_text = remap[value]
            else:
                cur_text = value
            self.setCurrentIndex(self.findText(cur_text))
        else:
            self.setCurrentIndex(-1)
        if not signal:
            self.currentIndexChanged[int].connect(self.value_changed)
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/configuration.py/QConfigurationComboBox.set_value/original