def tk_color(color):
    """Output a tk compatible color"""
    if color is None:
        return ''
    if isinstance(color, str):
        return color
    # Fix tuples
    return '#%02x%02x%02x' % color[:3]