diff options
Diffstat (limited to 'Mac/Modules/ctl/Ctlmodule.c')
-rw-r--r-- | Mac/Modules/ctl/Ctlmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mac/Modules/ctl/Ctlmodule.c b/Mac/Modules/ctl/Ctlmodule.c index 654f671..573f581 100644 --- a/Mac/Modules/ctl/Ctlmodule.c +++ b/Mac/Modules/ctl/Ctlmodule.c @@ -733,6 +733,10 @@ void initCtl() if (Ctl_Error == NULL || PyDict_SetItemString(d, "Error", Ctl_Error) != 0) Py_FatalError("can't initialize Ctl.Error"); + Control_Type.ob_type = &PyType_Type; + Py_INCREF(&Control_Type); + if (PyDict_SetItemString(d, "ControlType", (PyObject *)&Control_Type) != 0) + Py_FatalError("can't initialize ControlType"); } /* ========================= End module Ctl ========================= */ |