Can Python work like Java Applet?

Peter Hansen peter at engcorp.com
Wed Oct 22 16:42:33 EDT 2003


Cameron Laird wrote:
> 
> Let's reconsider whether Java is "the only approach that is
> somewhat cross-platform."  Some of my Web-app-specializing
> acquaintances tell me Flash, for example, is effectively both
> more capable and portable than Java.
> 
> There have been at least rudimentary marriages of Flash and
> Python.  I suspect the two could get along quite well.  I
> don't know whether someone has already done this.

One rudimentary marriage -- some might call it a weekend fling --
exists in Twisted, where the (experimental?) LivePage feature
supports having ActionScript code in a zero-width Flash movie
sending client-side events through a socket opened to the 
server, to allow dynamic interfacing of server-side Python code
and client-side events.  Updates in the other directly are
supported as well, so that the server can cause arbitrary
Javascript code to be executed in the client...  

It's pretty, uh, "twisted".  (Even more so is that the IE version
of this seems to require some VBScript glue in the web page, to
interface Flash to Javascript.  Let's see, that's four languages
interfaced together just to handle your onClick events. :-)

-Peter




More information about the Python-list mailing list