Hi Stuart,
I didn't consider yet. As i began the project i was lucky to set up a double
buffered drawing framework so easily with wxPython. The idea about the
server sided image creation came up much later. Do you know drawing
libraries which can be used to draw and show images in an interactive
window? I know ImageMagick but i heard this project was nearly dead.
Oliver
···
-----Ursprüngliche Nachricht-----
Von: Stuart [mailto:stuartw@kcbbs.gen.nz]
Gesendet: Mittwoch, 3. Dezember 2003 11:11
An: wxPython-users@lists.wxwindows.org
Betreff: Re: [wxPython-users] wxDC - Standalone and with CGI?
On Wednesday 03 December 2003 22:51, Oliver Walczak wrote:
Dear List,
Is it possible to use wxPython in a server sided CGI script? I always get
an error message that no graphic device handle could be opened when i
import with from wxPython import *. I need to create images with the wxDC
drawing functions and save the image buffer to an image file on HD.
How can i do that? Is there another approach to do this? My drawing
routines are all finished. I need to show the resulting images in a
standalone wxPython application (very interactive, not still images) as
well as to create them with the CGI script.
Oliver
I would suggest if you absolutly need to use GDI drawing of some form to
write
a drawing 'server' process that communicated with the CGI level through a
comms protocol (XMLRPC tend to be quite easy) or even through a file system
approach - you will almost certainly need to serialise the access to this
server.
I doubt it is possible to initialise wx in the context of CGI - but I could
be
wrong.
Have you considered using other less GUI-oriented drawing libraries?
Regards,
Stuart
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org