def is_threaded_build(root):
    """
    Check whether the tk build in use supports threading.

    :param root: the tk widget to be used as reference

    :return: ``1`` if threading is supported ``0`` otherwise
    """
    return int(root.tk.eval("set tcl_platform(threaded)"))