Re: [Tutor] saving Tkinter canvas as jpg

2013-12-08 Thread eryksun
On Sun, Dec 8, 2013 at 8:49 PM, Mark Lawrence wrote: > > https://pypi.python.org/pypi/Pillow/ is a fork of PIL. I've never used it > myself but here's hoping!!! ImageGrab has built-in support for Microsoft Windows only: https://github.com/python-imaging/Pillow/blob/2.2.1/PIL/ImageGrab.py#L29 ht

Re: [Tutor] saving Tkinter canvas as jpg

2013-12-08 Thread Mark Lawrence
On 09/12/2013 01:10, Benjamin Fishbein wrote: Here's what printed out: Traceback (most recent call last): File "", line 1, in from PIL import ImageGrab File "/Library/Python/2.7/site-packages/PIL/ImageGrab.py", line 34, in import _grabscreen ImportError: No module named _grabs

Re: [Tutor] saving Tkinter canvas as jpg

2013-12-08 Thread Srinivas Nyayapati
>From what I've seen online, this isn't available for mac...of course everything about this module is several years old, and it hasn't been updated with a new version in a few years, so I think there must be something better than it. > You could give Pillow a try. It is a fork of the PIL library

Re: [Tutor] saving Tkinter canvas as jpg

2013-12-08 Thread Joel Goldstick
On Sun, Dec 8, 2013 at 8:10 PM, Benjamin Fishbein wrote: > Have you imported PIL ? Show a small coding example here with the > traceback. Cut and paste the traceback, don't paraphrase it. > > > Here's what printed out: > > Traceback (most recent call last): > File "", line 1, in > from PIL

Re: [Tutor] saving Tkinter canvas as jpg

2013-12-08 Thread Benjamin Fishbein
> Have you imported PIL ? Show a small coding example here with the traceback. > Cut and paste the traceback, don't paraphrase it. Here's what printed out: Traceback (most recent call last): File "", line 1, in from PIL import ImageGrab File "/Library/Python/2.7/site-packages/PIL/Image

Re: [Tutor] saving Tkinter canvas as jpg

2013-12-08 Thread Joel Goldstick
On Sun, Dec 8, 2013 at 7:14 PM, Benjamin Fishbein 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 > a

[Tutor] saving Tkinter canvas as jpg

2013-12-08 Thread Benjamin Fishbein
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