|
using pygtk to create plots on a server w/ no DISPLAY: msg#00208gnome.gtk+.python
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 pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Exception dialog: 00208, Christian Reis |
|---|---|
| Next by Date: | Re: using pygtk to create plots on a server w/ no DISPLAY: 00208, Jeff MacDonald |
| Previous by Thread: | gtksourceviewi: 00208, m3tr0 |
| Next by Thread: | Re: using pygtk to create plots on a server w/ no DISPLAY: 00208, Jeff MacDonald |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |