parameters: (parameterEditWidgets, parameterNode)
docstring: Update widgets from values stored in a vtkMRMLScriptedModuleNode.
  
    The function is useful for implementing updateGUIFromParameterNode.
  
    Note: Only a few widget classes are supported now. More will be added later. Report any missing classes at discourse.slicer.org.
  
    See example in :py:meth:`addParameterEditWidgetConnections` documentation.
docstring_summary: Update widgets from values stored in a vtkMRMLScriptedModuleNode.
docstring_tokens: Update widgets from values stored in a vtkMRMLScriptedModuleNode .
function: def updateParameterEditWidgetsFromNode(parameterEditWidgets, parameterNode):
    """ Update widgets from values stored in a vtkMRMLScriptedModuleNode.
  
    The function is useful for implementing updateGUIFromParameterNode.
  
    Note: Only a few widget classes are supported now. More will be added later. Report any missing classes at discourse.slicer.org.
  
    See example in :py:meth:`addParameterEditWidgetConnections` documentation.
    """
  
    for (widget, parameterName) in parameterEditWidgets:
      widgetClassName = widget.className()
      parameterValue = parameterNode.GetParameter(parameterName)
      if widgetClassName=="QSpinBox":
        if parameterValue:
          widget.value = int(float(parameterValue))
        else:
          widget.value = 0
      if widgetClassName=="ctkSliderWidget":
        if parameterValue:
          widget.value = float(parameterValue)
        else:
          widget.value = 0.0
      elif widgetClassName=="QCheckBox" or widgetClassName=="QPushButton":
        widget.checked = (parameterValue == "true")
      elif widgetClassName=="QComboBox":
        widget.setCurrentText(parameterValue)
      elif widgetClassName=="qMRMLNodeComboBox":
        widget.currentNodeID = parameterNode.GetNodeReferenceID(parameterName)
function_tokens: def updateParameterEditWidgetsFromNode ( parameterEditWidgets , parameterNode ) : for ( widget , parameterName ) in parameterEditWidgets : widgetClassName = widget . className ( ) parameterValue = parameterNode . GetParameter ( parameterName ) if widgetClassName == "QSpinBox" : if parameterValue : widget . value = int ( float ( parameterValue ) ) else : widget . value = 0 if widgetClassName == "ctkSliderWidget" : if parameterValue : widget . value = float ( parameterValue ) else : widget . value = 0.0 elif widgetClassName == "QCheckBox" or widgetClassName == "QPushButton" : widget . checked = ( parameterValue == "true" ) elif widgetClassName == "QComboBox" : widget . setCurrentText ( parameterValue ) elif widgetClassName == "qMRMLNodeComboBox" : widget . currentNodeID = parameterNode . GetNodeReferenceID ( parameterName )