CEGUI event subscription format

ichijoji

20-03-2008 21:00:48

Hi all,

I'm finally getting pyogre working for my game engine, but I've hit a snag with the cegui interface that -g -c cegui generates. It seems like the subscribeEvent function that is compiled with the library and the one that the demos think is there is totally different, and I get this error:

File "Demo_CEGUI_NewGui.py", line 133, in _createScene
btn.subscribeEvent(CEGUI.PushButton.EventClicked, self, "handleQuit")
Boost.Python.ArgumentError: Python argument types in
PushButton.subscribeEvent(PushButton, String, GuiApplication, str)
did not match C++ signature:
subscribeEvent(PushButton_wrapper {lvalue}, CEGUI::String name, unsigned int group, CEGUI::SubscriberSlot subscriber)
subscribeEvent(CEGUI::PushButton {lvalue}, CEGUI::String name, unsigned int group, CEGUI::SubscriberSlot subscriber)
subscribeEvent(PushButton_wrapper {lvalue}, CEGUI::String name, CEGUI::SubscriberSlot subscriber)
subscribeEvent(CEGUI::PushButton {lvalue}, CEGUI::String name, CEGUI::SubscriberSlot subscriber)


Is this some bug that's coming from how I'm building the python binding for cegui, or has the function changed since the demo was written? Any help is appreciated.