from typing import Tuple


def _RGB_to_TkID(RGB: Tuple[int, int, int]) -> str:
    """
    This function converts an RGB tuple (R, G, B) into a colour code 
    which can be used by tkinter.
    :param RGB: Tuple[int, int, int]
    :return: str
    """
    r, g, b = RGB
    return f'#{r:02x}{g:02x}{b:02x}'