def set_format(self, color_format, alone_when_single):
        """Change format in which value is represented.

        Parameters
        ==========
        color_format (string), alone_when_single (boolean)
            describe the format used by the value of the
            button; look into the __init__ docstring for the
            parameters with the same name for more info.
        """
        ### convert value using format described by given
        ### arguments

        self.value = custom_format_color(self.value, color_format, alone_when_single)

        ### store the arguments

        self.color_format = color_format
        self.alone_when_single = alone_when_single
Change format in which value is represented.

        Parameters
        ==========
        color_format (string), alone_when_single (boolean)
            describe the format used by the value of the
            button; look into the __init__ docstring for the
            parameters with the same name for more info.
        
nodezator/widget/colorbutton.py