Converted py_instance to a macro (don't ask me why it doesn't work as a function) and first pass at UICaption functionality. UISprite C++ tests.
This commit is contained in:
parent
5267287b05
commit
9486104377
5 changed files with 337 additions and 44 deletions
|
|
@ -124,6 +124,7 @@ PyObject* PyInit_mcrfpy()
|
|||
//std::cout << "Adding UIFrame object to module\n";
|
||||
PyModule_AddType(m, &mcrfpydef::PyColorType);
|
||||
|
||||
PyModule_AddType(m, &mcrfpydef::PyUICaptionType);
|
||||
|
||||
if (PyModule_AddType(m, &mcrfpydef::PyUIFrameType) < 0)
|
||||
{
|
||||
|
|
@ -133,6 +134,7 @@ PyObject* PyInit_mcrfpy()
|
|||
}
|
||||
PyModule_AddType(m, &mcrfpydef::PyUICollectionType);
|
||||
PyModule_AddType(m, &mcrfpydef::PyUICollectionIterType);
|
||||
|
||||
|
||||
|
||||
return m;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue