()
return (display.width_in_pixels, display.height_in_pixels)
Get the main screen resolution.
    Any secondary screens will be ignored.

    Returns:
        (width, height)
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:
        (width, height)
    """
    display = Display().screen()
    return (display.width_in_pixels, display.height_in_pixels)
def main_monitor_resolution ( ) : display = Display ( ) . screen ( ) return ( display . width_in_pixels , display . height_in_pixels )