PySide binding

This commit is contained in:
wmayer
2013-06-30 15:14:02 +02:00
parent 873730effe
commit c6d23d1598
4 changed files with 44 additions and 13 deletions

View File

@@ -195,7 +195,7 @@ TaskWatcherPython::TaskWatcherPython(const Py::Object& o)
Py::List list(watcher.getAttr(std::string("widgets")));
Gui::PythonWrapper wrap;
if (wrap.loadModule()) {
if (wrap.loadCoreModule()) {
for (Py::List::iterator it = list.begin(); it != list.end(); ++it) {
QObject* object = wrap.toQObject(*it);
if (object) {
@@ -293,7 +293,7 @@ TaskDialogPython::TaskDialogPython(const Py::Object& o) : dlg(o)
}
Gui::PythonWrapper wrap;
if (wrap.loadModule()) {
if (wrap.loadCoreModule()) {
for (Py::List::iterator it = widgets.begin(); it != widgets.end(); ++it) {
QObject* object = wrap.toQObject(*it);
if (object) {