Next / Previous / Contents / TCC Help System / NM Tech homepage

15.2. Adjuster.set(): Change the color

This method changes the color to the given value. The actual color is stored inside the ColorReadout widget. See Section 16.2, “ColorReadout.set(): Change the displayed color”.

huey
# - - -   A d j u s t e r . s e t

    def set ( self, color ):
        """Change the currently displayed color.
        """
        #-- 1 --
        # [ self.__colorReadout  :=  self.__colorReadout
        #       displaying color ]
        self.__colorReadout.set ( color )

Also change the slider positions to reflect the new color; see Section 18.2, “ColorSliders.setColor(): Change the displayed color”.

huey
        #-- 2 --
        # [ self.__colorSliders  :=  self.__colorSliders
        #       displaying color ]
        self.__colorSliders.setColor ( color )