473,407 Members | 2,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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 1809
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Elaine Jackson | last post by:
I'm intrigued by the pedagogical possibilities of those Java applets where you can manipulate an image by mouse-dragging. Is there any prospect of doing something similar with Python? And if so,...
20
by: Joe | last post by:
When you run "python -i scriptname.py" after the script completes you left at the interactive command prompt. Is there a way to have this occur from a running program? In other words can I...
2
by: Charles Krug | last post by:
List: I'm trying to us pylab to see what I'm doing with some DSP algorithms, in case my posts about convolution and ffts weren't giving it away. I've been using pylab's plot function, but I'm...
2
by: WJ | last post by:
I have three ASPX pages: 1. "WebForm1.aspx" is interactive, responsible for calling a web site (https://www.payMe.com) with $$$. It is working fine. 2. "WebForm2.aspx" is non-interactive, a...
6
by: Brian Henry | last post by:
Hello, I am trying to make a user control that is interactive. What I am doing is drawing a set of bars on a control similar to a gantt chart and allowing a user to place the mouse over them to...
3
by: Lubomir | last post by:
Hi, I read that interactive windows services will not be allowed to run under Wista. I would like to ask what exactly is the interactive service. It is supposed to be a service that communicates...
1
by: pool | last post by:
This has probably been asked before, but I cannot seem to find what i need with the searches I have tried. I am trying to learn C# for a project at work that I will probably be moving on to. I...
2
by: sydneytroz | last post by:
I am writing a program to simulate a double displacement reaction getting to equilibrium, but I am having some trouble graphing the particles' concentrations. It seems that it's only possible to pan...
3
by: Bob | last post by:
Hello, I was hoping someone could help me with what I think should be a relatively easy code question, but I can't seem to find what I'm looking for. I put together a screen shot of what I'm...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.