Game Development Community

Is it possibile to embed wxPython in TGE?

by Prodigy Andy · in Torque Game Engine · 09/26/2006 (11:39 pm) · 2 replies

Is it possible to embed wxPython in TGE?

I found two clues all supported by Josh Ritter---who is a cool man---one is [url=http://www.garagegames.com/mg/forums/result.thread.php?qt=6440"]pyTSE[/url] and another one is [url="http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3345"] TGEpython.[/url]

I tried to embed native Gui in Torque game by using wxPython for about 3 weeks, But i still can't find the right key.
I need your help! SOS...

#1
09/27/2006 (12:08 am)
I combined wxPython with TGE via TGEPython earlier this year. I added an ActiveX IE wxWindow into Minions of Mirth (it's since been removed). This isn't a trivial process as you have to manage multiple event loops and dig around/modify the TGE windows platform code.

A few years ago I did some work with wxPython + TGEPython using wxWindows OpenGL stuff. It actually worked quite well... though again, you have to get down in dirty with the platform layer. The nice thing is that buttons and other native controls rendered/performed ontop of the OpenGL rendering just fine.

So, the anwer is that it is possible. It just isn't very easy and is time consuming to get all the glitches worked out.

-JR
#2
09/27/2006 (12:21 am)
Thanks a lot for your so quick reply, Josh.

I once download MoM to look for something like ActiveX IE wxWindow, But i failed.Now I know why. :)

Because my poor experience of coding, I still do not know how to manage "mutiple event loops" as your say.
Can you give me more detail info if you can?

Thanks again any way.