Export type objects to Python

This commit is contained in:
Jack Jansen 1997-09-20 17:40:22 +00:00
parent 6dd4868681
commit a755e68df6
19 changed files with 111 additions and 7 deletions

View file

@ -1402,6 +1402,10 @@ void initWin()
if (Win_Error == NULL ||
PyDict_SetItemString(d, "Error", Win_Error) != 0)
Py_FatalError("can't initialize Win.Error");
Window_Type.ob_type = &PyType_Type;
Py_INCREF(&Window_Type);
if (PyDict_SetItemString(d, "WindowType", (PyObject *)&Window_Type) != 0)
Py_FatalError("can't initialize WindowType");
}
/* ========================= End module Win ========================= */