[Tutor] saving Tkinter canvas as jpg

Joel Goldstick joel.goldstick at gmail.com
Mon Dec 9 02:02:48 CET 2013


On Sun, Dec 8, 2013 at 7:14 PM, Benjamin Fishbein <bfishbein79 at gmail.com>wrote:

> Hello.
> I'm writing a program to draw pictures. I'm using Python 2.7.3 on Mac OSx.
> I'm trying to find a good way to save the canvas as a jpg (or other pic
> formats). The advice I've found on stackoverflow is ImageGrab from PIL, but
> apparently that doesn't work for macs. I get the "no module named
> _grabscreen" ImportError.
> Can you recommend a good module for saving the canvas into a picture file?
> Thank you,
> Ben
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>

Have you imported PIL ?  Show a small coding example here with the
traceback. Cut and paste the traceback, don't paraphrase it.

-- 
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131208/046fb93a/attachment.html>


More information about the Tutor mailing list