docstr: Constructs a list of allowed enum values from the enum class provided
  `searchObj` is only needed for PyQt5 compatibility, where it must be the module holding the enum.
  For instance, if making a QtEnumParameter out of QtWidgets.QFileDialog.Option, `searchObj` would
  be QtWidgets.QFileDialog
docstr_tok: ["Constructs","a","list","of","allowed","enum","values","from","the","enum","class","provided","`","searchObj","`","is","only","needed","for","PyQt5","compatibility",",","where","it","must","be","the","module","holding","the","enum",".","For","instance",",","if","making","a","QtEnumParameter","out","of","QtWidgets.QFileDialog.Option",",","`","searchObj","`","would","be","QtWidgets.QFileDialog"]
code: def __init__(self, enum, searchObj=QtCore.Qt, **opts):
      """
      Constructs a list of allowed enum values from the enum class provided
      `searchObj` is only needed for PyQt5 compatibility, where it must be the module holding the enum.
      For instance, if making a QtEnumParameter out of QtWidgets.QFileDialog.Option, `searchObj` would
      be QtWidgets.QFileDialog
      """
      self.enum = enum
      self.searchObj = searchObj
      opts.setdefault("name", enum.__name__)
      self.enumMap = self._getAllowedEnums(enum)
  
      opts.update(limits=self.formattedLimits())
      super().__init__(**opts)
  
file_path: pyqtgraph/pyqtgraph/parametertree/parameterTypes/qtenum.py
imports: from enum import Enum
  from ...Qt import QT_LIB, QtCore
  from .list import ListParameter
label_desc: Use image node_id 1 to create a new QtEnumParameter object from inherited base classes: ListParameter with example: obj = QtEnumParameter(enum, searchObj)