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"]
code: def selectionChanged(self, *args):
      sel = self.selectedItems()
      if len(sel) != 1:
          sel = None
      if self.lastSel is not None and isinstance(
          self.lastSel, ParameterItem
      ):
          self.lastSel.selected(False)
      if sel is None:
          self.lastSel = None
          return
      self.lastSel = sel[0]
      if hasattr(sel[0], "selected"):
          sel[0].selected(True)
      return super().selectionChanged(*args)
  
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 13 for calling the ParameterTree obj's underlying member method code with example usage: obj.selectionChanged() and returns: super