tkinter photoimage, couldn't recognize image data (PPM)
Martin P. Hellwig
martin.hellwig at dcuktec.org
Wed Dec 9 13:35:40 EST 2009
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.'
More information about the Python-list
mailing list