Stroing tkinter screen as PNG file..............

Fredrik Lundh fredrik at
Tue Jun 24 15:32:07 CEST 2003

Suresh Kumar wrote:

>     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?

here's one way to do it:

ImageGrab is part of the PIL library:


More information about the Python-list mailing list