I have a plotting library that uses pygtk with gtk.DrawingArea and gtk.gdk.Drawable to make plots. I would like to use it from a zope server running on a headless linux box to dynamically generate plots to embed n html. If X is running on the server is there any to draw, for example to a pixmap, and then save the figure as a PNG, and then embed it in the html, w/o X ever launching the window?
The general sequence would be user connects to and logs onto web page -> get user data from database -> use pygtk to make png and store it to a tmp dir, make an IMG tag to include this png -> serve the page. Typically when I log in to the server from a local machine w/o X, eg a win32 machine over putty, and try to import gtk, I get the exception "RuntimeError: could not open display". I'm wondering if there is anyway to use gtk in display-less mode. Thanks, John Hunter _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
