+ Add PySideUic helper module

This commit is contained in:
wmayer
2014-01-09 13:35:42 +01:00
parent c30c898257
commit cfbde5d334
3 changed files with 78 additions and 0 deletions

View File

@@ -368,6 +368,11 @@ Application::Application(bool GUIenabled)
Base::Interpreter().addType(UiLoaderPy::type_object(),
module,"UiLoader");
// PySide additions
PySideUicModule* pySide = new PySideUicModule();
Py_INCREF(pySide->module().ptr());
PyModule_AddObject(module, "PySideUic", pySide->module().ptr());
//insert Selection module
PyObject* pSelectionModule = Py_InitModule3("Selection", SelectionSingleton::Methods,
"Selection module");