def _color_from_tuple(self, value):
        """
        Convert an rgb color tuple to a hex color
        :param value: value to convert
        :type value: tuple of (int, int, int)
        :return: hexcode of color
        :rtype: str
        """
        r, g, b = value
        r = int(255 * r)
        g = int(255 * g)
        b = int(255 * b)
        hexcode = "#{:02X}{:02X}{:02X}".format(r, g, b)
        return hexcode

        Convert an rgb color tuple to a hex color
        :param value: value to convert
        :type value: tuple of (int, int, int)
        :return: hexcode of color
        :rtype: str
        
system/shui/tkui.py