示例#1
0
def backend_version(backend):
    """Back-end version.

    :param backend: back-end (examples:scrot, wx,..)
    :return: version as string
    """
    return childprocess_backend_version(backend)
示例#2
0
def backend_version(backend, childprocess=True):
    """Back-end version.

    :param backend: back-end (examples:scrot, wx,..)
    :param childprocess: see :py:func:`grab`
    :return: version as string
    """
    if not childprocess:
        return _backend_version(backend)
    else:
        return childprocess_backend_version(_backend_version, backend)