I want to grab the coordinates of a rectangular box which the user selects on a display. Like in screen recording programs, when you choose the "record area only" option. It allows you to select which area you want to capture instead of the whole screen.
This is an example: https://i.stack.imgur.com/v82yV.jpg
Now, programmatically, how such thing can be retrieved? I mean, is there any library I can use? Python bindings would be great.