

def __init__(self, color=IECore.Color3f(1), useDisplayTransform=True, parenting=None):
    self.__column = GafferUI.ListContainer(GafferUI.ListContainer.Orientation.Vertical, spacing=4)
    GafferUI.Widget.__init__(self, self.__column, parenting=parenting)
    self.__color = color
    self.__defaultColor = color
    self.__sliders = {
        
    }
    self.__numericWidgets = {
        
    }
    self.__componentValueChangedConnections = []
    with self.__column:
        for component in 'rgbahsv':
            with GafferUI.ListContainer(GafferUI.ListContainer.Orientation.Horizontal, spacing=4):
                numericWidget = GafferUI.NumericWidget(0.0)
                numericWidget.setFixedCharacterWidth(6)
                numericWidget.component = component
                self.__numericWidgets[component] = numericWidget
                slider = _ComponentSlider(color, component, useDisplayTransform=useDisplayTransform)
                self.__sliders[component] = slider
                self.__componentValueChangedConnections.append(numericWidget.valueChangedSignal().connect(Gaffer.WeakMethod(self.__componentValueChanged)))
                self.__componentValueChangedConnections.append(slider.valueChangedSignal().connect(Gaffer.WeakMethod(self.__componentValueChanged)))
        with GafferUI.ListContainer(GafferUI.ListContainer.Orientation.Horizontal, parenting={
            'expand': True,
        }):
            self.__initialColorSwatch = GafferUI.ColorSwatch(color, useDisplayTransform=useDisplayTransform, parenting={
                'expand': True,
            })
            self.__initialColorPressConnection = self.__initialColorSwatch.buttonPressSignal().connect(Gaffer.WeakMethod(self.__initialColorPress))
            GafferUI.Spacer(IECore.V2i(4, 40))
            self.__colorSwatch = GafferUI.ColorSwatch(color, useDisplayTransform=useDisplayTransform, parenting={
                'expand': True,
            })
    self.__colorChangedSignal = Gaffer.Signal2()
    self.__updateUIFromColor()

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/ColorChooser.py ColorChooser.__init__/original