class_docstr: WidgetParameterItem subclass providing comboBox that lets the user select from a list of options.
class_docstr_tok: ["WidgetParameterItem","subclass","providing","comboBox","that","lets","the","user","select","from","a","list","of","options","."]
code: def setValue(self, val):
      self.targetValue = val
      match = [fn.eq(val, limVal) for limVal in self.reverse[0]]
      if not any(match):
          self.widget.setCurrentIndex(0)
      else:
          idx = match.index(True)
          key = self.reverse[1][idx]
          ind = self.widget.findText(key)
          self.widget.setCurrentIndex(ind)
  
file_path: pyqtgraph/pyqtgraph/parametertree/parameterTypes/list.py
imports: import warnings
  from collections import OrderedDict
  from ...None import functions
  from ...Qt import QtWidgets
  from ..Parameter import Parameter
  from .basetypes import WidgetParameterItem
label_desc: Use image node_id 4 for calling the ListParameterItem obj's underlying member method code with example usage: obj.setValue(val) without return types