Tkinter without the window

Paul Winkler slinkp23 at yahoo.com
Thu Nov 22 00:51:14 EST 2001


>Les Smithson wrote:
>
>> I have a working Tkinter application that uses a canvas to draw
>> graphics in an X window. Is it possible for Tkinter to draw the same
>> graphics straight to a PNG/JPG/whatever file without going through a
>> windowing system?
>>
>> I have in mind using this application for an External script in a Zope
>> server. This would be called to generate a img tag on the fly. I want
>> to do this in the server, rather then in the browser. Any ideas how I
>> can generate PNG/JPG directly from Python, other than Tkinter?

If you want to generate vector graphics, sping might be good:
sping.sourceforge.net 

It can output to bitmap files such as JPG or PNG (via PIL), Tkinter,
postscript, PDF, or SVG, all using one simple API. It's nice.

--PW







More information about the Python-list mailing list