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

20.3. Swatch.setBgColor()

Similar to Section 20.2, “Swatch.setTextColor(), but the background color is the "bg" attribute.

huey
# - - -   S w a t c h . s e t B g C o l o r

    def setBgColor ( self, color ):
        """Sets the background color of self.__text.
        """
        self.__text["bg"]  =  str(color)