original_docstring: 
              | Return a single widget that should be placed in the second tree column.
              | 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 is a good function to override in subclasses.
  
              See Also
              --------
              SpinBoxCustom, custom_parameter_tree.setOpts
          
docstring: | Return a single widget that should be placed in the second tree column.
  | 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 is a good function to override in subclasses.
  
  See Also
  
  
docstring_tokens: | Return a single widget that should be placed in the second tree column . | 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 is a good function to override in subclasses . See Also
code: def makeWidget(self):
          """
              | Return a single widget that should be placed in the second tree column.
              | 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 is a good function to override in subclasses.
  
              See Also
              --------
              SpinBoxCustom, custom_parameter_tree.setOpts
          """
          opts = self.param.opts
          t = opts['type']
          if t in ('int', 'float'):
              defs = {
                  'value': 0, 'min': None, 'max': None,
                  'step': 1.0, 'dec': False,
                  'siPrefix': False, 'suffix': '', 'decimals': 12,
              }
              if t == 'int':
                  defs['int'] = True
                  defs['minStep'] = 1.0
              for k in defs:
                  if k in opts:
                      defs[k] = opts[k]
              if 'limits' in opts:
                  defs['bounds'] = opts['limits']
              w = SpinBoxCustom()
              w.setOpts(**defs)
              w.sigChanged = w.sigValueChanged
              w.sigChanging = w.sigValueChanging
          elif t == 'bool':
              w = QtWidgets.QCheckBox()
              w.sigChanged = w.toggled
              w.value = w.isChecked
              w.setValue = w.setChecked
              w.setEnabled(not opts.get('readonly', False))
              self.hideWidget = False
          elif t == 'bool_push':
              w = QtWidgets.QPushButton()
              if 'label' in opts:
                  w.setText(opts['label'])
              elif 'title' in opts:
                  w.setText(opts['title'])
              else:
                  w.setText(opts['name'])
              #w.setMaximumWidth(50)
              w.setCheckable(True)
              w.sigChanged = w.toggled
              w.value = w.isChecked
              w.setValue = w.setChecked
              w.setEnabled(not opts.get('readonly', False))
              self.hideWidget = False
          elif t == 'led_push':
              w = QLED()
              w.clickable = True
              w.set_as_false()
              w.sigChanged = w.value_changed
              w.value = w.get_state
              w.setValue = w.set_as
              self.hideWidget = False
          elif t == 'str':
              w = QtWidgets.QLineEdit()
              w.sigChanged = w.editingFinished
              w.value = lambda: str(w.text())
              w.setValue = lambda v: w.setText(str(v))
              w.sigChanging = w.textChanged
          elif t == 'color':
              w = ColorButton.ColorButton()
              w.sigChanged = w.sigColorChanged
              w.sigChanging = w.sigColorChanging
              w.value = w.color
              w.setValue = w.setColor
              self.hideWidget = False
              w.setFlat(True)
              w.setEnabled(not opts.get('readonly', False))
          elif t == 'colormap':
              from pyqtgraph.widgets.GradientWidget import GradientWidget ## need this here to avoid import loop
              w = GradientWidget(orientation='bottom')
              w.sigChanged = w.sigGradientChangeFinished
              w.sigChanging = w.sigGradientChanged
              w.value = w.colorMap
              w.setValue = w.setColorMap
              self.hideWidget = False
          elif t == 'date_time':
              w = QtWidgets.QDateTimeEdit(QDateTime(QDate.currentDate(), QTime.currentTime()))
              w.setCalendarPopup(True)
              w.setDisplayFormat('dd/MM/yyyy hh:mm')
              w.sigChanged = w.dateTimeChanged
              w.value = w.dateTime
              w.setValue = w.setDateTime
          elif t == 'date':
              w = QtWidgets.QDateEdit(QDate(QDate.currentDate()))
              w.setCalendarPopup(True)
              w.setDisplayFormat('dd/MM/yyyy')
              w.sigChanged = w.dateChanged
              w.value = w.date
              w.setValue = w.setDate
  
          elif t == 'time':
              w = QTimeCustom(QTime(QTime.currentTime()))
              if 'minutes_increment' in opts:
                  w.setMinuteIncrement(opts['minutes_increment'])
              w.setDisplayFormat('hh:mm')
              w.sigChanged = w.timeChanged
              w.value = w.time
              w.setValue = w.setTime
  
          elif t == 'led':
              w = QLED()
              w.clickable = False
              w.set_as_false()
              w.sigChanged = w.value_changed
              w.value = w.get_state
              w.setValue = w.set_as
          elif t == 'pixmap':
              w = QtWidgets.QLabel()
              w.sigChanged = None
              w.value = w.pixmap
              w.setValue = w.setPixmap
          elif t == 'pixmap_check':
              w = Pixmap_check()
              w.sigChanged = w.checkbox.toggled
              w.value = w.value
              w.setValue = w.setValue
          # elif t=='slide':
          #
          #     defs = {
          #         'value': 0, 'min': 0., 'max': 1000.,
          #         'step': 1.0, 'dec': False,
          #         'siPrefix': False, 'suffix': '', 'decimals': 12,
          #     }
          #     for k in defs:
          #         if k in opts:
          #             defs[k] = opts[k]
          #     if 'limits' in opts:
          #         defs['bounds'] = opts['limits']
          #     if 'subtype' not in opts:
          #         opts['subtype'] = 'linear'
          #     w = SliderSpinBox(bounds=(0.,1000.), subtype=opts['subtype'])
          #     w.setOpts(**defs)
          #
          #     w.sigChanged = w.spinbox.sigValueChanged
          #     w.sigChanging = w.spinbox.sigValueChanging
  
          else:
              raise Exception("Unknown type '%s'" % str(t))
          return w
code_tokens: def makeWidget ( self ) : opts = self . param . opts t = opts [ 'type' ] if t in ( 'int' , 'float' ) : defs = { 'value' : 0 , 'min' : None , 'max' : None , 'step' : 1.0 , 'dec' : False , 'siPrefix' : False , 'suffix' : '' , 'decimals' : 12 , } if t == 'int' : defs [ 'int' ] = True defs [ 'minStep' ] = 1.0 for k in defs : if k in opts : defs [ k ] = opts [ k ] if 'limits' in opts : defs [ 'bounds' ] = opts [ 'limits' ] w = SpinBoxCustom ( ) w . setOpts ( ** defs ) w . sigChanged = w . sigValueChanged w . sigChanging = w . sigValueChanging elif t == 'bool' : w = QtWidgets . QCheckBox ( ) w . sigChanged = w . toggled w . value = w . isChecked w . setValue = w . setChecked w . setEnabled ( not opts . get ( 'readonly' , False ) ) self . hideWidget = False elif t == 'bool_push' : w = QtWidgets . QPushButton ( ) if 'label' in opts : w . setText ( opts [ 'label' ] ) elif 'title' in opts : w . setText ( opts [ 'title' ] ) else : w . setText ( opts [ 'name' ] ) w . setCheckable ( True ) w . sigChanged = w . toggled w . value = w . isChecked w . setValue = w . setChecked w . setEnabled ( not opts . get ( 'readonly' , False ) ) self . hideWidget = False elif t == 'led_push' : w = QLED ( ) w . clickable = True w . set_as_false ( ) w . sigChanged = w . value_changed w . value = w . get_state w . setValue = w . set_as self . hideWidget = False elif t == 'str' : w = QtWidgets . QLineEdit ( ) w . sigChanged = w . editingFinished w . value = lambda : str ( w . text ( ) ) w . setValue = lambda v : w . setText ( str ( v ) ) w . sigChanging = w . textChanged elif t == 'color' : w = ColorButton . ColorButton ( ) w . sigChanged = w . sigColorChanged w . sigChanging = w . sigColorChanging w . value = w . color w . setValue = w . setColor self . hideWidget = False w . setFlat ( True ) w . setEnabled ( not opts . get ( 'readonly' , False ) ) elif t == 'colormap' : from pyqtgraph . widgets . GradientWidget import GradientWidget w = GradientWidget ( orientation = 'bottom' ) w . sigChanged = w . sigGradientChangeFinished w . sigChanging = w . sigGradientChanged w . value = w . colorMap w . setValue = w . setColorMap self . hideWidget = False elif t == 'date_time' : w = QtWidgets . QDateTimeEdit ( QDateTime ( QDate . currentDate ( ) , QTime . currentTime ( ) ) ) w . setCalendarPopup ( True ) w . setDisplayFormat ( 'dd/MM/yyyy hh:mm' ) w . sigChanged = w . dateTimeChanged w . value = w . dateTime w . setValue = w . setDateTime elif t == 'date' : w = QtWidgets . QDateEdit ( QDate ( QDate . currentDate ( ) ) ) w . setCalendarPopup ( True ) w . setDisplayFormat ( 'dd/MM/yyyy' ) w . sigChanged = w . dateChanged w . value = w . date w . setValue = w . setDate elif t == 'time' : w = QTimeCustom ( QTime ( QTime . currentTime ( ) ) ) if 'minutes_increment' in opts : w . setMinuteIncrement ( opts [ 'minutes_increment' ] ) w . setDisplayFormat ( 'hh:mm' ) w . sigChanged = w . timeChanged w . value = w . time w . setValue = w . setTime elif t == 'led' : w = QLED ( ) w . clickable = False w . set_as_false ( ) w . sigChanged = w . value_changed w . value = w . get_state w . setValue = w . set_as elif t == 'pixmap' : w = QtWidgets . QLabel ( ) w . sigChanged = None w . value = w . pixmap w . setValue = w . setPixmap elif t == 'pixmap_check' : w = Pixmap_check ( ) w . sigChanged = w . checkbox . toggled w . value = w . value w . setValue = w . setValue else : raise Exception ( "Unknown type '%s'" % str ( t ) ) return w
short_docstring: | Return a single widget that should be placed in the second tree column.
short_docstring_tokens: | Return a single widget that should be placed in the second tree column .
comment: """
              | Return a single widget that should be placed in the second tree column.
              | 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 is a good function to override in subclasses.
  
              See Also
              --------
              SpinBoxCustom, custom_parameter_tree.setOpts
          """$SEP$#w.setMaximumWidth(50)$SEP$## need this here to avoid import loop$SEP$# elif t=='slide':$SEP$#$SEP$#     defs = {$SEP$#         'value': 0, 'min': 0., 'max': 1000.,$SEP$#         'step': 1.0, 'dec': False,$SEP$#         'siPrefix': False, 'suffix': '', 'decimals': 12,$SEP$#     }$SEP$#     for k in defs:$SEP$#         if k in opts:$SEP$#             defs[k] = opts[k]$SEP$#     if 'limits' in opts:$SEP$#         defs['bounds'] = opts['limits']$SEP$#     if 'subtype' not in opts:$SEP$#         opts['subtype'] = 'linear'$SEP$#     w = SliderSpinBox(bounds=(0.,1000.), subtype=opts['subtype'])$SEP$#     w.setOpts(**defs)$SEP$#$SEP$#     w.sigChanged = w.spinbox.sigValueChanged$SEP$#     w.sigChanging = w.spinbox.sigValueChanging