[PyQt] Screenshots in linux

Jim Bublitz jbublitz at nwinternet.com
Tue May 6 01:19:44 BST 2008


On Monday 05 May 2008 13:22, Jake Richards wrote:
> Hello:
>   Does anyone have any idea how I might select a region of my desktop and
> then take a screen grab of it?  The screenshot example shows me how to grab
> the snapshot, but the hard part (at least for me) is changing my mouse
> cursor to some crosshairs and drawing a region on the desktop that I'd like
> to grab.  Can I make a transparent Always On Top window and get mouse
> clicks from it?  Anyone done something like this before and have any hints?
> Thanks!

In KDE you can use KSnapshot. There's also xgrab (segfaults on my system) and 
Gnome probably has something. For a console you can just cut and paste.

KSnapshot includes a settable time delay and the ability to only grab the 
window containing the mouse or the entire screen or a region. You can always 
crop or scale a screenshot with something like xv or gimp.

Jim



More information about the PyQt mailing list