diff options
author | Guido van Rossum <guido@python.org> | 1996-08-21 19:03:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-21 19:03:36 (GMT) |
commit | ae92f01029341f45f82132534eba172a8c4e3e86 (patch) | |
tree | 0b5b59f141945cdb02323358881eeb90efafeb02 /Modules | |
parent | 6cdc6f41465e88344b5ed62e45b036cf502f3770 (diff) | |
download | cpython-ae92f01029341f45f82132534eba172a8c4e3e86.zip cpython-ae92f01029341f45f82132534eba172a8c4e3e86.tar.gz cpython-ae92f01029341f45f82132534eba172a8c4e3e86.tar.bz2 |
Hacks to support being a Windows DLL
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tkinter.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 566bf77..48916a5 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -1059,7 +1059,7 @@ Tktt_GetAttr (self, name) static PyTypeObject Tktt_Type = { - PyObject_HEAD_INIT (&PyType_Type) + PyObject_HEAD_INIT (NULL) 0, /*ob_size */ "tktimertoken", /*tp_name */ sizeof (TkttObject), /*tp_basicsize */ @@ -1240,7 +1240,7 @@ Tkapp_GetAttr (self, name) static PyTypeObject Tkapp_Type = { - PyObject_HEAD_INIT (&PyType_Type) + PyObject_HEAD_INIT (NULL) 0, /*ob_size */ "tkapp", /*tp_name */ sizeof (TkappObject), /*tp_basicsize */ @@ -1335,6 +1335,9 @@ init_tkinter () #endif /* WITH_READLINE */ PyObject *m, *d, *v; + Tkapp_Type.ob_type = &PyType_Type; + Tktt_Type.ob_type = &PyType_Type; + m = Py_InitModule ("_tkinter", moduleMethods); d = PyModule_GetDict (m); |