19#define GETSTATE(m) ((struct module_state*)PyModule_GetState(m))
25 PyObject*
debug(PyObject* , PyObject* args)
29 if (PyArg_ParseTuple(args,
"s", &text))
38 return PyLong_FromLong(QT_VERSION_MAJOR);
44 PyMethodDef pykritaMethods[] = {
49 ,
"True KDE way to show debug info"
55 ,
"Qt major version number"
65 ,
"The pykrita module"
74#define INITERROR return NULL
78 PyObject *pykritaModule = PyModule_Create(&
moduledef);
80 if (pykritaModule == NULL)
83 PyModule_AddStringConstant(pykritaModule,
"__file__", __FILE__);
static struct PyModuleDef moduledef
PyMODINIT_FUNC PYKRITA_INIT()
PyObject * qt_major_version(PyObject *, PyObject *args)
PyObject * debug(PyObject *, PyObject *args)