SyntaxFix
Write A Post
Hire A Developer
Questions
This one works on X11, and perhaps on Windows too (someone, please check). Needs PyQt4:
import sys from PyQt4.QtGui import QPixmap, QApplication app = QApplication(sys.argv) QPixmap.grabWindow(QApplication.desktop().winId()).save('test.png', 'png')