[Tutor] Stroing tkinter screen as PNG file..............

Alfred Milgrom fredm@smartypantsco.com
Wed Jun 25 01:47:03 2003


At 01:04 PM 24/06/03 +0000, Suresh  Kumar wrote:
>Hi,
>
>    I am using python/tkinter/windows. How to store tkinter canvas screen 
> as a PNG file? I have drawn some rectangles in my canvas and i want to 
> store it as a PNG file so that i can use it for further processing. How 
> can i do it?
>
>Thanx.

Hi:

I was asking a similar question just a short while ago, got very good 
advice from Magnus Lycka, and I posted my research on specifically grabbing 
Tkinter canvas on 19/6:
http://mail.python.org/pipermail/tutor/2003-June/023456.html

Basically the answer lies in the ImageGrab module available in the PIL 
library. PIL is available from
http://www.pythonware.com/products/pil/index.htm#pil114

Info on Tkinter grabbing is available at
http://mail.python.org/pipermail/image-sig/2003-May/002292.html

All the best,
Fred Milgrom