Added PyFont/mcrfpy.Font object

This commit is contained in:
John McCardle 2023-09-07 22:25:19 -04:00
commit bec2b3294d
2 changed files with 49 additions and 1 deletions

View file

@ -123,7 +123,7 @@ PyObject* PyInit_mcrfpy()
// This code runs, but Python segfaults when accessing the UIFrame type.
//std::cout << "Adding UIFrame object to module\n";
PyModule_AddType(m, &mcrfpydef::PyColorType);
PyModule_AddType(m, &mcrfpydef::PyFontType);
PyModule_AddType(m, &mcrfpydef::PyUICaptionType);
if (PyModule_AddType(m, &mcrfpydef::PyUIFrameType) < 0)