def refreshUI(self):
        if self.inputVolumeSelector.currentNodeID != "":
            self.addFiducialButton.enabled = True
            self.addFiducialButton.toolTip = "Click and add a new seed in the volume"
        else:
            self.addFiducialButton.enabled = False
            self.addFiducialButton.toolTip = "Select a volume before adding any seed"
            self.__removeFiducialsFrames__()


        # Apply segmentation button allowed only if there is at least one seed
        if self.inputVolumeSelector.currentNodeID != "" and \
                        self.logic.getNumberOfFiducials(self.inputVolumeSelector.currentNodeID) > 0:
            self.segmentButton.setVisible(True)
        else:
            self.segmentButton.setVisible(False)

        # Level slider and Features Selection section active after running the segmentation algorithm
        self.selectThresholdLabel.visible = self.distanceLevelSlider.visible = self.logic.cliOutputScalarNode is not None

        # Show spheres buttons just visible for the analyzed spheres
        for mode in self.logic.spheresDict.iterkeys():
            for rad in self.logic.spheresDict[mode]:
                visible = self.workingMode == mode
                self.spheresButtonGroup.button(rad*10).setVisible(visible)
                # "Show sphere" radio buttons just visible if the analysis was already performed
                visible = (visible and self.__analyzedSpheres__.__contains__(rad))
                self.showSpheresButtonGroup.button(rad*10).setVisible(visible)
        # Other radius show button will be displayed every time any sphere has been analyzed
        self.otherRadiusShowSphereRadioButton.setVisible(len(self.__analyzedSpheres__) > 0)

        #self.progressBar.visible = self.distanceLevelSlider.enabled
        self.saveSeedsButton.visible = self.loadSeedsButton.visible = self.__evaluateSegmentationModeOn__
        self.reportsWidget.showSaveButton(self.__evaluateSegmentationModeOn__)
Confiugre the GUI elements based on the current configuration
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_LesionModel/CIP_LesionModel.py/CIP_LesionModelWidget.refreshUI