class_docstr: Abstract ParameterTree item. 
  Used to represent the state of a Parameter from within a ParameterTree.
  
    - Sets first column of item to name
    - generates context menu if item is renamable or removable
    - handles child added / removed events
    - provides virtual functions for handling changes from parameter
  
  For more ParameterItem types, see ParameterTree.parameterTypes module.
class_docstr_tok: ["Abstract","ParameterTree","item",".","Used","to","represent","the","state","of","a","Parameter","from","within","a","ParameterTree",".","-","Sets","first","column","of","item","to","name","-","generates","context","menu","if","item","is","renamable","or","removable","-","handles","child","added","\/","removed","events","-","provides","virtual","functions","for","handling","changes","from","parameter","For","more","ParameterItem","types",",","see","ParameterTree.parameterTypes","module","."]
code: def __init__(self, param, depth=0):
      QtWidgets.QTreeWidgetItem.__init__(self, [param.title(), ""])
  
      self.param = param
      self.param.registerItem(
          self
      )  ## let parameter know this item is connected to it (for debugging)
      self.depth = depth
  
      param.sigValueChanged.connect(self.valueChanged)
      param.sigChildAdded.connect(self.childAdded)
      param.sigChildRemoved.connect(self.childRemoved)
      param.sigNameChanged.connect(self.nameChanged)
      param.sigLimitsChanged.connect(self.limitsChanged)
      param.sigDefaultChanged.connect(self.defaultChanged)
      param.sigOptionsChanged.connect(self.optsChanged)
      param.sigParentChanged.connect(self.parentChanged)
  
      self.updateFlags()
  
      ## flag used internally during name editing
      self.ignoreNameColumnChange = False
  
imports: from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 1 to create a new ParameterItem object from inherited base classes: QtWidgets with example: obj = ParameterItem(param, depth)