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: Return a single widget whose position in the tree is determined by the
  value of self.asSubItem. If True, it will be placed in the second tree
  column, and if False, the first tree column of a child item.
  
  The widget must be given three attributes:
  
  ==========  ============================================================
  sigChanged  a signal that is emitted when the widget's value is changed
  value       a function that returns the value
  setValue    a function that sets the value
  ==========  ============================================================
  
  This function must be overridden by a subclass.
docstr_tok: ["Return","a","single","widget","whose","position","in","the","tree","is","determined","by","the","value","of","self.asSubItem",".","If","True",",","it","will","be","placed","in","the","second","tree","column",",","and","if","False",",","the","first","tree","column","of","a","child","item",".","The","widget","must","be","given","three","attributes",":","==========","============================================================","sigChanged","a","signal","that","is","emitted","when","the","widget","'s","value","is","changed","value","a","function","that","returns","the","value","setValue","a","function","that","sets","the","value","==========","============================================================","This","function","must","be","overridden","by","a","subclass","."]
code: def makeWidget(self):
      """
      Return a single widget whose position in the tree is determined by the
      value of self.asSubItem. If True, it will be placed in the second tree
      column, and if False, the first tree column of a child item.
  
      The widget must be given three attributes:
  
      ==========  ============================================================
      sigChanged  a signal that is emitted when the widget's value is changed
      value       a function that returns the value
      setValue    a function that sets the value
      ==========  ============================================================
  
      This function must be overridden by a subclass.
      """
      raise NotImplementedError
  
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 2 for calling the WidgetParameterItem obj's underlying member method code with example usage: obj.makeWidget() without return types