I'm trying the following code: def myAdd(context, engine): a = context.argument(0) b = context.argument(1) return a.toNumber() + b.toNumber()
myEngine = QScriptEngine() fun = myEngine.newFunction(myAdd) and getting: AttributeError: 'PySide.QtScript.QScriptEngine' object has no attribute 'newFunction'
_______________________________________________ PySide mailing list PySide@qt-project.org http://lists.qt-project.org/mailman/listinfo/pyside