.Titan scrie:daddy202 scrie:*DIN GRESEALA
Lasă aici funcția asta PyObject* appCreate(PyObject* poSelf, PyObject* poArgs) din pythonapplicationmodule.cpp
PyObject* appCreate(PyObject* poSelf, PyObject* poArgs)
{
char* szName;
if (!PyTuple_GetString(poArgs, 0, &szName))
return Py_BuildException();
int width;
if (!PyTuple_GetInteger(poArgs, 1, &width))
return Py_BuildException();
int height;
if (!PyTuple_GetInteger(poArgs, 2, &height))
return Py_BuildException();
int Windowed;
if (!PyTuple_GetInteger(poArgs, 3, &Windowed))
return Py_BuildException();
CPythonApplication& rkApp=CPythonApplication::Instance();
if (!rkApp.Create(poSelf, szName, width, height, Windowed))
{
//return Py_BuildNone();
return NULL;
}
return Py_BuildNone();
}