(**kwargs)
Factory returning a proper MSS class instance.

        It detects the platform we are running on
        and chooses the most adapted mss_class to take
        screenshots.

        It then proxies its arguments to the class for
        instantiation.
Factory returning a proper MSS class instance.
Factory returning a proper MSS class instance .
def mss(**kwargs):
    # type: (Any) -> MSSBase
    """ Factory returning a proper MSS class instance.

        It detects the platform we are running on
        and chooses the most adapted mss_class to take
        screenshots.

        It then proxies its arguments to the class for
        instantiation.
    """
    # pylint: disable=import-outside-toplevel

    os_ = platform.system().lower()

    if os_ == "darwin":
        from . import darwin

        return darwin.MSS(**kwargs)

    if os_ == "linux":
        from . import linux

        return linux.MSS(**kwargs)

    if os_ == "windows":
        from . import windows

        return windows.MSS(**kwargs)

    raise ScreenShotError("System {!r} not (yet?) implemented.".format(os_))
def mss ( * * kwargs ) : # type: (Any) -> MSSBase # pylint: disable=import-outside-toplevel os_ = platform . system ( ) . lower ( ) if os_ == "darwin" : from . import darwin return darwin . MSS ( * * kwargs ) if os_ == "linux" : from . import linux return linux . MSS ( * * kwargs ) if os_ == "windows" : from . import windows return windows . MSS ( * * kwargs ) raise ScreenShotError ( "System {!r} not (yet?) implemented." . format ( os_ ) )