Terry Reedy wrote:
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'
Martin P. Hellwig wrote:
Hi all,
I've tried to display an image with the source being a string but it
fails (see below). Is there a way to display PPM without writing it
first to a file?
Thanks,
Martin
- snippet -
'''
Ubuntu 9.04 64bit, python 3.1
'''
import tkinter
DATA="""P3
3 2
Hi all,
I've tried to display an image with the source being a string but it
fails (see below). Is there a way to display PPM without writing it
first to a file?
Thanks,
Martin
- snippet -
'''
Ubuntu 9.04 64bit, python 3.1
'''
import tkinter
DATA="""P3
3 2
255
255 0 0 0 255