[Tkinter-discuss] Convert Canvas to bitmap image

Michael Lange klappnase at web.de
Mon Oct 23 13:07:49 EDT 2017

On Mon, 23 Oct 2017 18:53:24 +0200
Michael Lange <klappnase at web.de> wrote:

> you can use the tkImg library to do that. tkImg's "window" image type
> allows you to create "screenshots" of Tk widgets on the fly.

Oh, and I forgot to mention, with the window image type it is necessary
that the canvas is *completely* visible on the screen, otherwise you
might end up with blacked-out image parts or even a TclError. So for a
real big canvas that requires scrolling I am afraid this is no option.

Best regards


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

War isn't a good life, but it's life.
		-- Kirk, "A Private Little War", stardate 4211.8

More information about the Tkinter-discuss mailing list