473,796 Members | 2,537 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1830
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*********@we b.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.u a
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
2296
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, where might one start?
20
2454
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 just run scriptname.py (NOT python -i scriptname.py) and inside of scriptname.py I decide that I want to fall back to the interactive prompt? I've searched and so far the only thing I've come up with is to use pdb, but
2
7813
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 finding it a bit cumbersome. It works, but if I switch from the interactive window to the plot window and back, the plot window gets trashed.
2
2013
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 listener in my site to capture a "STATUS_CD" returned by www.payMe.com. It is working fine. 3. "WebForm3.aspx" is interactive page, responsibe to display the STATUS CODE "POSTED" by "WebForm2.aspx". 4. My goal is to use "WebForm2.aspx" to call...
6
1867
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 see a tool tip, or if you click on them to open a form associated with data tied behind them. What I can't figure out how to do (I have been looking at a few very complex examples and it's hard to pull out how they did it) is how do you create a...
3
4613
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 with desktop. What about the following scenario: A service will create a thread. This thread will create and run an UI Windows application that manages task bar and so on on a desktop. This application will communicate with the service: a/ by...
1
2272
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 am trying to figure out to create a form which will interact with a graphics. In other words, I would like to create a form with buttons and other components on it, and have events from that form cause stuff to be drawn (lines, arcs, etc) in...
2
2190
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 and zoom the graph once the program exits (when running it from IDLE), but I don't want to have to kill the sim every time I want to view the graph (besides, when I do, the graph window dissappears). The following code contains all the graphing...
3
1996
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 looking for at this link: http://www.slocountywineries.com/test_map.jpg
0
9683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.