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

11.3. Application.__nameHandler(): Name picker handler

This callback is called by the NamePicker widget whenever the user picks a color by name. The argument is a Color object representing the selected color. It passes the new color to the .set() method of the Adjuster widget, so the new color can be shown there. See Section 15.2, “Adjuster.set(): Change the color”.

# - - -   A p p l i c a t i o n . _ _ n a m e H a n d l e r

    def __nameHandler ( self, newColor ):
        """Handler for the NamePicker widget.

          [ newColor is a Color instance ->
              self  :=  self with its Adjuster displaying newColor ]
        self.__adjuster.set ( newColor )