def update_from_hex_entry(self):
        """Update color value from hex entry."""
        ### get value from hex entry
        hex_string = self.hex_entry.get()

        ### convert to list of RGB(A) integers so that
        ### each value is so that 0 <= value <= 255
        color = hex_string_to_full_rgb(hex_string)

        ### finally, set the color on the controls
        self.set_color_on_controls(color)
Update color value from hex entry.
nodezator/colorsman/editor/widgetop.py