

def position(self):
    loc = NSEvent.mouseLocation()
    return (self.x, (CGDisplayPixelsHigh(0) - loc.y))

dataset/ETHPy150Open pepijndevos/PyMouse/pymouse/mac.py PyMouse.position/VarMisuse@20/23 `loc`->`self`