Tkinter.PhotoImage data for dynamic CGI .gif without writing to file?

Bengt Richter bokr at oz.net
Fri Dec 27 08:11:32 EST 2002


On 27 Dec 2002 02:18:11 -0800, hwlgw at hotmail.com (Will Stuyvesant) wrote:

>The .gif is created dynamically, at runtime (of the CGI script).  So
>its the data I am looking for, not the way to display it.  But thank
>you.
>
>Basically what I am looking for is a way to redirect the
>Tkinter.PhotoImage.write() method to data instead of a file.  But I
>got lost trying to read the source file that has the PhotoImage class
>definition, it uses so much global variable stuff etc...  Maybe
>someone just knows how to do it.  If not, I output to file and read it
>back, oh well :-)
>
Maybe the StringIO module will help you. I.e., use an instance instead of a file).

Regards,
Bengt Richter



More information about the Python-list mailing list