[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Embedding pygame?



Simon wrote:
> i'd like to know if it's possible to embed a .py in an Internet Explorer
> window.

the answer, it might be possible, but it certainly won't be easy.

using the "win32api" modules, you can create COM components, so you 
should be able to create activex controls in python. (i assume, i 
haven't heard of any people doing this). the "py2exe" can package 
standalone python com components, so again it would seem you could make 
a standalone activex control with it?

the sdl window can run in embedded gui's, but it seems to be sort of hit 
and miss. for example, i've seen it working with wxpython, but hear 
there's no luck with pyqt. running inside an IE activex control seems 
like a longshot, but i suppose it might fly?

in the end it'd be a lot of hard work, and has a good chance of not 
working at all in the end. i think if it's something you really want, 
you'll have a better start by creating a C activex control that launches 
SDL and links to the python interpreter. but that's also going to be a 
big "learning experience".


oh, and as amund noted (but got bounced from the list). there is a java 
implementation of SDL, JSDL. http://jsdl.sourceforge.net/
I'm sure you could use jython to work with jsdl. jsdl is probably 
similar to pygame, but you certainly won't be able to mix the two.

so using python, you could create a java plugin (with jython) that used 
sdl. i don't know if jsdl comes with the drawing or transform tools like 
pygame?




____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org