def __init__( self, color, component, useDisplayTransform = True, parenting = None ) :

		min = hardMin = 0
		max = hardMax = 1

		if component in ( "r", "g", "b", "v" ) :
			hardMax = sys.float_info.max

		GafferUI.NumericSlider.__init__( self, 0.0, min, max, hardMin, hardMax, parenting = parenting )

		self.color = color
		self.component = component
		self.__useDisplayTransform = useDisplayTransform

		if self.__useDisplayTransform :
			self.__displayTransformChangedConnection = GafferUI.DisplayTransform.changedSignal().connect( Gaffer.WeakMethod( self.__displayTransformChanged ) )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/ColorChooser.py/_ComponentSlider.__init__/original