Page 1 of 1

Python scripting module

Posted: Sun May 07, 2006 15:03
by Nitro
Hello,

I just finished a first version of a python scripting module for cegui, based on the pycegui part of pyogre and similar to the lua one. It can run demo 8 without problems.
I wanted to ask if there's any demand that this is added to cegui. If yes, then please tell me how I should contribute the stuff (I'm on windows and running vc 7.1).

-Matthias

EDIT: I should probably mention that this doesn't need ogre or anything special, it can be used with any renderer

Posted: Mon May 08, 2006 16:18
by scriptkid
Hi there :-)

Thanks for contributing :-)

You can patch it to sourceforge:
http://sourceforge.net/tracker/?func=ad ... tid=605424

And our Patch Department (C)(TM) will have a look at it ;-)

Seriously, there was an idea to add "addons" to cegui, just like Ogre does for example. We need to give that another shot...

Posted: Mon May 08, 2006 16:24
by lindquist
We already have a cegui addons cvs repository. I could see this in there :)

re

Posted: Mon May 08, 2006 16:29
by Nitro
I am a little afraid that almost nobody knows o bothers about that addon repository and most stuff in there just rots while new cegui versions are released. Seen from this perspective it would probably be better in the main trunk, but I also understand that this may clutter the main cegui part too much. Anyways, what should I do to add this now? Submit a patch against latest SVN, submit a patch against 4.1 (that's what i used so far) or just dump the code into that addons repository?

-Matthias

Posted: Mon May 08, 2006 16:37
by lindquist
I agree that the addons rep is severly under-advertised. We could try to change this though.
As CEGUI grows bigger, addons will become more and more relevant.
I'm not not completely against adding a new scripting module to the trunk, but it would need to be maintained.

By giving cvs write acces to a addon module would make it very easy for you to maintain it.

Another thing is that we're going to be changing to the MIT license, so all new code that goes in the trunk must be MIT. Whether or not this is an issue you would know.

Either way you could post a zip,patch or whatever you like so we can all have a look :)

re

Posted: Wed May 10, 2006 17:47
by Nitro
Hey lindquist,

I've zipped everything up here: http://www.dr-code.org/nitro/cegui_mk2.zip . Read the notes.txt in the toplevel folder.
Does it run for you (and others)? Anything that I should add/change?

-Matthias

Posted: Thu May 11, 2006 08:53
by Kris
Hello. I'm experimenting with different engines/renderers/GUIs for my project, and CEGUI looks the best -- but I'm using Python, and would like to have the option of using Pygame (ie. SDL). I know CEGUI works with PyOGRE now, but will the code in this thread let me use it with Pygame? If so, how?