[Tutor] How to save tkinter canvas....

Alan Gauld alan.gauld at btinternet.com
Sat Dec 9 14:18:29 CET 2006


"Asrarahmed Kadri" <ajkadri at googlemail.com> wrote

> I have a window that contains bar chart on a Canvas (tkinter). Is 
> there a
> way in which I can provide the user the option of saving it as an 
> image
> file.

Have you looked at the PIL library?

I seem to recall seeing a function there that could work with Tkinter
Canvas objects, and once in PIL it should be possible to save it.

HTH.

Alan G, 




More information about the Tutor mailing list