parameters: (self, rangeWidget)
docstring: Set the range widget based on current backgroun
      volume - note that hi+1 is used since the range widget
      will round floating numbers to 2 significant digits
docstring_summary: Set the range widget based on current backgroun
      volume - note that hi+1 is used since the range widget
      will round floating numbers to 2 significant digits
docstring_tokens: Set the range widget based on current backgroun volume - note that hi + 1 is used since the range widget will round floating numbers to 2 significant digits
function: def setRangeWidgetToBackgroundRange(self, rangeWidget):
      """Set the range widget based on current backgroun
      volume - note that hi+1 is used since the range widget
      will round floating numbers to 2 significant digits"""
      if not rangeWidget:
        return
      success, lo, hi = self.getBackgroundScalarRange()
      if success:
        rangeWidget.minimum, rangeWidget.maximum = lo, hi+1
function_tokens: def setRangeWidgetToBackgroundRange ( self , rangeWidget ) : if not rangeWidget : return success , lo , hi = self . getBackgroundScalarRange ( ) if success : rangeWidget . minimum , rangeWidget . maximum = lo , hi + 1