Successful use of a copy-modify-paste template of Python type (UIFrame -> PyUIFrameObject)
This commit is contained in:
parent
50d926fe37
commit
6fe7b842ef
2 changed files with 92 additions and 141 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue