Terry Reedy wrote:
<cut>
DATA="""P3
3 2
255
255   0   0     0 255   0     0   0 255
255 255   0   255 255 255     0   0   0"""

Should the string really have the newlines? Or should this be
DATA="""P3\
3 2\
255\
255   0   0     0 255   0     0   0 255\
255 255   0   255 255 255     0   0   0"""


I've tried it, still same error, I did had a look at http://netpbm.sourceforge.net/doc/ppm.html and the wikipedia page.

<cut>
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize image data
-----




--
MPH
http://blog.dcuktec.com
'If consumed, best digested with added seasoning to own preference.'
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to