()
return result
Not tested.
Not tested.
Not tested .
def get_monitor_locations():
    """Not tested."""
    result = []
    for screen in NSScreen.screens():
        rect = NSScreen.frame(screen)
        x, y = rect.origin.x, rect.origin.y
        width, height = rect.size.width, rect.size.height
        result.append(tuple(map(int, (x, y, x + width, y + height))))
    return result
def get_monitor_locations ( ) : result = [ ] for screen in NSScreen . screens ( ) : rect = NSScreen . frame ( screen ) x , y = rect . origin . x , rect . origin . y width , height = rect . size . width , rect . size . height result . append ( tuple ( map ( int , ( x , y , x + width , y + height ) ) ) ) return result