[Tutor] how to save wxpython output

Kent Johnson kent37 at tds.net
Tue Dec 5 12:01:53 CET 2006


Ketan Maheshwari wrote:
> Hi *:
>     How do I save the output of a wxpython program as a jpg or png image 
> from within the program?

What output do you want to capture? Do you mean you want a screenshot of 
the windows? On Windows you can use ImageGrab from the Python Imaging 
Library to capture a screenshot.
http://www.pythonware.com/library/pil/handbook/imagegrab.htm

Kent



More information about the Tutor mailing list