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","."]
code: def valueChanged(self, param, val, force=False):
      ## called when the parameter's value has changed
      ParameterItem.valueChanged(self, param, val)
      if force or not fn.eq(val, self.widget.value()):
          try:
              if self.widget.sigChanged is not None:
                  self.widget.sigChanged.disconnect(
                      self.widgetValueChanged
                  )
              self.param.sigValueChanged.disconnect(self.valueChanged)
              self.widget.setValue(val)
              self.param.setValue(self.widget.value())
          finally:
              if self.widget.sigChanged is not None:
                  self.widget.sigChanged.connect(
                      self.widgetValueChanged
                  )
              self.param.sigValueChanged.connect(self.valueChanged)
      self.updateDisplayLabel()  ## always make sure label is updated, even if values match!
      self.updateDefaultBtn()
  
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 7 for calling the WidgetParameterItem obj's underlying member method code with example usage: obj.valueChanged(param, val, force) without return types