Tommy
Tommy

Reputation: 21

Selecting area of the screen with Python

I'm developing a screen shot utility in Python. At the moment it is specifically for Linux. So far I have the ability to take a screen shot of the full desktop, and have it upload to Imgur, then copy the link to clipboard. Now I want to expand into functions such as screen shots of the active window, or of a specific selection. If anyone could help, I'd love to know what kind of module would work best for this, and how to implement such a module.

Upvotes: 2

Views: 5722

Answers (1)

pyfunc
pyfunc

Reputation: 66709

The functionality will depend on what you are using for image grabbing.

With PIL

With GTK

To take a screenshot of active window :

Also look at the pixbuf api

Off topic

There are some screen cast tools: http://pypi.python.org/pypi/castro/1.0.4

Upvotes: 2

Related Questions