473,320 Members | 1,902 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,320 software developers and data experts.

interactive graphics?

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?
Jul 18 '05 #1
4 2269
Elaine Jackson wrote:
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?


Quite vague.
Although, you might want to take a look at PyGame www.pygame.org
and also the turtle module: http://docs.python.org/lib/module-turtle.html

--Irmen
Jul 18 '05 #2
If your platform is Windows you might also want to
take a look at:

http://www.onlamp.com/pub/a/python/e...t20/index.html

HTH,
Larry Bates
Syscon, inc.

"Elaine Jackson" <el***************@home.com> wrote in message
news:4egNc.115864$Mr4.37857@pd7tw1no...
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?

Jul 18 '05 #3
Elaine Jackson wrote:
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?


Do you mean like an applet that lets you draw? Or an applet that takes
a pre-existing image and you can alter it (like make it fuzzy or draw
over it)? Or an applet that lets you add shapes and move them around?

There isn't as much on the Python side as Java, but you can do all these
in Python.

If you are using Windows, I would recommend starting off by trying out
wxPython (http://www.wxpython.org/) and running the demo.

If you are wanting to do something like a drawing or image altering
application, see in addition to the demo:
http://wiki.wxpython.org/index.cgi/WorkingWithImages
http://www.pythonware.com/products/pil/

If you are wanting something that can do interactive structured
graphics, where you can add shapes and drag them around, see for
example: http://bellsouthpwp.net/p/r/prochak/pyxel.html

And also check out http://pygame.org/ and http://www.nongnu.org/pygsear/
Jul 18 '05 #4
On Mon, 26 Jul 2004 23:13:04 GMT, "Elaine Jackson"
<el***************@home.com> wrote:
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?

www.vpython.org

The demos should give you a good idea of some of the possiblities.
Its pedagogical possibilities are being well explored in the physics
classroom, but there are many other ways to go with it.

My own effort is PyGeo, which is a geometry laboratory using Vpython
as the rendering backend. It is in the class of "dynamic geometry"
applications. Except, as opposed to the others of which I am aware,
it lives in a spacial, rather than flat world. Oh, and its in Python.

http://home.netcom.com/~ajs

There are parts of its architecture I think are cool.

Except that its mouse functioning is broken by the brand new VPython
release (which is the first Boost based release). I suspected the
new VPython might break PyGeo, so was holding off on a new release
until the VPython release. Now I have no excuse.

Art
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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...
5
by: Eckhoff, Michael A | last post by:
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...
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
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.