Function is in testfile.py and it have name functocall ...
What i tryed:
Code:
PyObject* args = PyTuple_New(0);
PyObject* ret = PyObject_Call(PyObject_GetAttrString(PyImport_ImportModule("testfile"), "functocall"), args, NULL);
Py_DECREF(ret);
Py_XDECREF(args);
Code:
import uiCommon
def functocall():
alertbox=uiCommon.PopupDialog()
alertbox.SetText("message")
alertbox.Open()





