469,603 Members | 2,141 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,603 developers. It's quick & easy.

interactive web graphics

Hello,

I failed to locate a list for pygtk, so I thought I'd
ask my question here. Is it possible to write CGI
scripts that bring up a GUI (as in GTK+, QT, Tk, ...)
or an openGL display that is windowed inside a web
browser?

The answer would seem to me to be no, since the
client could be Windows or Linux. I'd like to
display some pretty graphics (scientific visualisation),
but web applications are not my background.

I would like a form with progress bars, but I guess
that would have to be implemented in some special way.
Sorry if these questions are ill-posed; I am just
getting my feet wet with python.

Thanks,
Michael E

PS Congratulations for having such wonderful documentation
on all things python.
Jul 19 '05 #1
5 1711
Web application are different than local or client
server applications. Web browser can connect to a
server and make a request, but the program that
satisfies the request runs to completion and disconnects
from the client. You cannot easily do interactive-type
applications. Things like progress bars can't really
even be done. You can have your applications create
graphs, charts, etc. and deliver them back to the user
either as web pages or as PDF files. There is a python
toolkit called ReportLab that provides a framework to
do this from python programs that run on the server.
The ReportLab graphics can do barcharts, line charts,
scatter plots, etc. and you can either save as .JPG
files that can be delivered on a web page or as a .PDF
file that the user can download. Hard to say which
would work best for you.

Hope information helps a little.

-Larry Bates

Eckhoff, Michael A wrote:
Hello,

I failed to locate a list for pygtk, so I thought I'd
ask my question here. Is it possible to write CGI
scripts that bring up a GUI (as in GTK+, QT, Tk, ...)
or an openGL display that is windowed inside a web
browser?

The answer would seem to me to be no, since the
client could be Windows or Linux. I'd like to
display some pretty graphics (scientific visualisation),
but web applications are not my background.

I would like a form with progress bars, but I guess
that would have to be implemented in some special way.
Sorry if these questions are ill-posed; I am just
getting my feet wet with python.

Thanks,
Michael E

PS Congratulations for having such wonderful documentation
on all things python.

Jul 19 '05 #2
> I would like a form with progress bars, but I guess
that would have to be implemented in some special way.
Sorry if these questions are ill-posed; I am just
getting my feet wet with python.


Larry already said some true things about this. Let me just add that what
you are after _might_ be done using macromedia flash - as that is a
wide-spread browser plugin with interactive and multimedia capabilities.
But how to do it in flash I've no idea - after all I'm a pythoneer.

Alternatively, SVG might be an option - but I'm not sure if its mature and
powerful enough.

--
Regards,

Diez B. Roggisch
Jul 19 '05 #3

java are also wide-spread browser plugin with interactive and multimedia
capabilities,
and java-applets can be written with python (jython)

"Diez B. Roggisch" <de*********@web.de> wrote:
news:d4*************@news.t-online.com...
you are after _might_ be done using macromedia flash - as that is a
wide-spread browser plugin with interactive and multimedia capabilities.
But how to do it in flash I've no idea - after all I'm a pythoneer.

Alternatively, SVG might be an option - but I'm not sure if its mature and
powerful enough.

--
Regards,

Diez B. Roggisch

--
Best regards,
Maksim Kasimov
mailto: ka*****@i.com.ua
Jul 19 '05 #4
Hello Michael,

Eckhoff, Michael A wrote:
Hello,

I failed to locate a list for pygtk, so I thought I'd
ask my question here. Is it possible to write CGI
scripts that bring up a GUI (as in GTK+, QT, Tk, ...)
or an openGL display that is windowed inside a web
browser?

The answer would seem to me to be no, since the
client could be Windows or Linux. I'd like to
display some pretty graphics (scientific visualisation),
but web applications are not my background.

I would like a form with progress bars, but I guess
that would have to be implemented in some special way.
Sorry if these questions are ill-posed; I am just
getting my feet wet with python.

There is a simpler, but still non-trivial, way of adding server-client
interactivity - using javascript. If you are just moving square bars
around you could use the javascript XML http request functions and
dynamically change the images (including using PIL - and maybe some of
the graph generating stuff from 'pythonweb' web modules - to
dynamically generate images server side).

Best Regards,

Fuzzy
http://www.voidspace.org.uk/python

Thanks,
Michael E

PS Congratulations for having such wonderful documentation
on all things python.


Jul 19 '05 #5
On 2005-04-27, Eckhoff, Michael A <Ec******@NAVO.NAVY.MIL> wrote:
Hello,

I failed to locate a list for pygtk, so I thought I'd
ask my question here. Is it possible to write CGI
scripts that bring up a GUI (as in GTK+, QT, Tk, ...)
or an openGL display that is windowed inside a web
browser?


How about the blender web plugin?
http://www.blender.org/modules/bc2002/plugin.html

I am not sure the plugin has been updated to match
recent blender releases, but recent blenders offer
python scripting. Could be interesting anyhow.
Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Elaine Jackson | last post: by
20 posts views Thread by Joe | last post: by
2 posts views Thread by Charles Krug | last post: by
2 posts views Thread by WJ | last post: by
3 posts views Thread by Lubomir | last post: by
1 post views Thread by pool | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.