class_docstr: Widget used to display or control data from a hierarchy of Parameters
class_docstr_tok: ["Widget","used","to","display","or","control","data","from","a","hierarchy","of","Parameters"]
docstr: ============== ========================================================
  **Arguments:**
  parent         (QWidget) An optional parent widget
  showHeader     (bool) If True, then the QTreeView header is displayed.
  ============== ========================================================
docstr_tok: ["==============","========================================================","*","*","Arguments",":","*","*","parent","(","QWidget",")","An","optional","parent","widget","showHeader","(","bool",")","If","True",",","then","the","QTreeView","header","is","displayed",".","==============","========================================================"]
code: def __init__(self, parent=None, showHeader=True):
      """
      ============== ========================================================
      **Arguments:**
      parent         (QWidget) An optional parent widget
      showHeader     (bool) If True, then the QTreeView header is displayed.
      ============== ========================================================
      """
      TreeWidget.__init__(self, parent)
      self.setVerticalScrollMode(self.ScrollMode.ScrollPerPixel)
      self.setHorizontalScrollMode(self.ScrollMode.ScrollPerPixel)
      self.setAnimated(False)
      self.setColumnCount(2)
      self.setHeaderLabels(["Parameter", "Value"])
      self.setAlternatingRowColors(True)
      self.paramSet = None
      self.header().setSectionResizeMode(
          QtWidgets.QHeaderView.ResizeMode.ResizeToContents
      )
      self.setHeaderHidden(not showHeader)
      self.itemChanged.connect(self.itemChangedEvent)
      self.itemExpanded.connect(self.itemExpandedEvent)
      self.itemCollapsed.connect(self.itemCollapsedEvent)
      self.lastSel = None
      self.setRootIsDecorated(False)
  
      app = mkQApp()
      app.paletteChanged.connect(self.updatePalette)
  
file_path: pyqtgraph/pyqtgraph/parametertree/ParameterTree.py
imports: from .parameterTypes import GroupParameterItem
  from ..Qt import QtCore, QtWidgets, mkQApp
  from ..widgets.TreeWidget import TreeWidget
  from .ParameterItem import ParameterItem
label_desc: Use image node_id 1 to create a new ParameterTree object from inherited base classes: TreeWidget with example: obj = ParameterTree(parent, showHeader)