()
return (size.width, size.height)
Get the main screen resolution.
    Any secondary screens will be ignored.

    Returns:
        Tuple of the width and height of the main screen.
Get the main screen resolution.
    Any secondary screens will be ignored.
Get the main screen resolution . Any secondary screens will be ignored .
def main_monitor_resolution():
    """Get the main screen resolution.
    Any secondary screens will be ignored.

    Returns:
        Tuple of the width and height of the main screen.
    """
    size = NSScreen.mainScreen().frame().size
    return (size.width, size.height)
def main_monitor_resolution ( ) : size = NSScreen . mainScreen ( ) . frame ( ) . size return ( size . width , size . height )