(self, palette_id, color)
Replace the configured palette color for the given palette ID
        with the given color.
Replace the configured palette color for the given palette ID
        with the given color.
Replace the configured palette color for the given palette ID with the given color .
def replace_palette_color(self, palette_id, color):
        """Replace the configured palette color for the given palette ID
        with the given color."""
        palettebits = self.config['palette'].split(':')
        palettebits[palette_id] = get_color_string(color)
        self.config['palette'] = ':'.join(palettebits)
        self.config.save()
def replace_palette_color ( self , palette_id , color ) : palettebits = self . config [ 'palette' ] . split ( ':' ) palettebits [ palette_id ] = get_color_string ( color ) self . config [ 'palette' ] = ':' . join ( palettebits ) self . config . save ( )