class_docstr: Parameter with a list of acceptable values.
  
  By default, this parameter is represtented by a :class:`ListParameterItem`,
  displaying a combo box to select a value from the list.
  
  In addition to the generic :class:`~pyqtgraph.parametertree.Parameter`
  options, this parameter type accepts a ``limits`` argument specifying the
  list of allowed values.
  
  The values may generally be of any data type, as long as they can be
  represented as a string. If the string representation provided is
  undesirable, the values may be given as a dictionary mapping the desired
  string representation to the value.
class_docstr_tok: ["Parameter","with","a","list","of","acceptable","values",".","By","default",",","this","parameter","is","represtented","by","a",":","class",":","`","ListParameterItem","`",",","displaying","a","combo","box","to","select","a","value","from","the","list",".","In","addition","to","the","generic",":","class",":","`","~pyqtgraph.parametertree.Parameter","`","options",",","this","parameter","type","accepts","a","``","limits","``","argument","specifying","the","list","of","allowed","values",".","The","values","may","generally","be","of","any","data","type",",","as","long","as","they","can","be","represented","as","a","string",".","If","the","string","representation","provided","is","undesirable",",","the","values","may","be","given","as","a","dictionary","mapping","the","desired","string","representation","to","the","value","."]
code: def __init__(self, **opts):
      self.forward = OrderedDict()  ## {name: value, ...}
      self.reverse = ([], [])  ## ([value, ...], [name, ...])
  
      # Parameter uses 'limits' option to define the set of allowed values
      if "values" in opts:
          warnings.warn(
              'Using "values" to set limits is deprecated. Use "limits" instead.',
              DeprecationWarning,
              stacklevel=2,
          )
          opts["limits"] = opts["values"]
      if opts.get("limits", None) is None:
          opts["limits"] = []
      Parameter.__init__(self, **opts)
      self.setLimits(opts["limits"])
  
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 1 to create a new ListParameter object from inherited base classes: Parameter with example: obj = ListParameter()