class_docstr: ParameterTree item with:
  
    * label in second column for displaying value
    * simple widget for editing value (displayed instead of label when item is selected)
    * button that resets value to default
  
  This class can be subclassed by overriding makeWidget() to provide a custom widget.
class_docstr_tok: ["ParameterTree","item","with",":","*","label","in","second","column","for","displaying","value","*","simple","widget","for","editing","value","(","displayed","instead","of","label","when","item","is","selected",")","*","button","that","resets","value","to","default","This","class","can","be","subclassed","by","overriding","makeWidget","(",")","to","provide","a","custom","widget","."]
docstr: Called when this item is added or removed from a tree.
docstr_tok: ["Called","when","this","item","is","added","or","removed","from","a","tree","."]
code: def treeWidgetChanged(self):
      """Called when this item is added or removed from a tree."""
      ParameterItem.treeWidgetChanged(self)
  
      ## add all widgets for this item into the tree
      if self.widget is not None:
          tree = self.treeWidget()
          if tree is None:
              return
          if self.asSubItem:
              self.subItem.setFirstColumnSpanned(True)
              tree.setItemWidget(self.subItem, 0, self.widget)
          tree.setItemWidget(self, 1, self.layoutWidget)
          self.displayLabel.hide()
          self.selected(False)
  
imports: import builtins
  from ...None import functions
  from ...None import icons
  from ...Qt import QtCore, QtGui, QtWidgets, mkQApp
  from ..Parameter import Parameter
  from ..ParameterItem import ParameterItem
label_desc: Use image node_id 17 for calling the WidgetParameterItem obj's underlying member method code with example usage: obj.treeWidgetChanged() without return types