(self, index, colour, force=False)
Set a new colour for a given attribute.
Set a new colour for a given attribute.
Set a new colour for a given attribute .
def set_entry(self, index, colour, force=False):
        """Set a new colour for a given attribute."""
        if force or self.allows_palette_change():
            self._palette[index] = colour
            # in text mode, we'd be setting more than one attribute
            # e.g. all true attributes with this number as foreground or background
            # and attr_to_rgb decides which
            self.submit()
def set_entry ( self , index , colour , force = False ) : if force or self . allows_palette_change ( ) : self . _palette [ index ] = colour # in text mode, we'd be setting more than one attribute # e.g. all true attributes with this number as foreground or background # and attr_to_rgb decides which self . submit ( )