Tkinter without the window

Kragen Sitaker kragen at canonical.org
Fri Nov 23 22:35:59 EST 2001


Les Smithson <lsmithso at NOhare.SPAM.demon.co.uk> writes:

> 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?

No.  But you could use Xvfb to draw the graphics in a windowing system
that doesn't display on any physical device, and then use xwd or some
similar program to make the PNG or JPG from it.

> I have in mind using this application for an External script in a Zope
> server. 

With enough work, Xvfb could be used for this.





More information about the Python-list mailing list