Successful use of a copy-modify-paste template of Python type (UIFrame -> PyUIFrameObject)

This commit is contained in:
John McCardle 2023-08-31 22:32:58 -04:00
commit 6fe7b842ef
2 changed files with 92 additions and 141 deletions

View file

@ -124,14 +124,14 @@ PyObject* PyInit_mcrfpy()
//std::cout << "Adding UIFrame object to module\n";
PyModule_AddType(m, &mcrfpydef::PyColorType);
/*
if (PyModule_AddType(m, &mcrfpydef::PyUIFrameType) < 0)
{
std::cout << "Error adding UIFrame type to module; aborting" << std::endl;
Py_DECREF(&mcrfpydef::PyUIFrameType);
return NULL;
}
*/
return m;
}