Definitely infeasible. Besides the sandbox security issue you  
mentioned, python doesn't support multiple interpreters within the  
same process.

There's no way currently to run pyglet in jython, because there's no  
ctypes. Even if it were added, browser sandboxing would prevent it  
from doing the things pyglet needs (access to the os).

The best approach I can think of is to use a tool such as pyjamas to  
convert python code to javascript/actionscript, and provide a pyglet- 
like api for either flash or HTML canvas.

Alex.

On 15/05/2009, at 7:17 AM, Woodwolf <[email protected]> wrote:

>
> Well, I was wondering it it would be possible to create some kind of
> brower plugin for Pyglet. If there are some serious limitations that
> prevent such a thing from being created. It seems that Python had once
> some kind of sandbox similar to the Java VM, but due to that sandbox
> not being really secure, the project was abandoned. <br><br>
>
> Recently, I found Jython. I had not paid attention to all those
> different Python flavors, and this one surprised me. It opens up the
> possibility of creating applets using Python... so... maybe, some day,
> Pyglet could be supported too!<br><br>
>
> What for? Well, there are many RIA platforms out there these days:
> Flash & Flex, JavaFX, Silverlight... why not something python-based?
> Certainly, Python is more friendly than ActionScript, more compact
> than Java and... well, it doesn't come from Microsoft ;)<br><br>
>
> What do you think about this? Would you like being able to create
> browser games with Python? :)<br><br>
>
> I'll ask this in the pyglet mailing list too.
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to