def reverse_color_order(self):
        """Reverse the order of color widgets."""
        ### get a reversed list out of the current colors
        colors = list(self.get_colors())[::-1]

        ### then set them back on each widget and update
        ### color values on controls for display/edition
        self.update_colors(colors)
Reverse the order of color widgets.
nodezator/colorsman/editor/panel/colorsop.py