Commit ae92f010 authored by Guido van Rossum's avatar Guido van Rossum

Hacks to support being a Windows DLL

parent 6cdc6f41
...@@ -1059,7 +1059,7 @@ Tktt_GetAttr (self, name) ...@@ -1059,7 +1059,7 @@ Tktt_GetAttr (self, name)
static PyTypeObject Tktt_Type = static PyTypeObject Tktt_Type =
{ {
PyObject_HEAD_INIT (&PyType_Type) PyObject_HEAD_INIT (NULL)
0, /*ob_size */ 0, /*ob_size */
"tktimertoken", /*tp_name */ "tktimertoken", /*tp_name */
sizeof (TkttObject), /*tp_basicsize */ sizeof (TkttObject), /*tp_basicsize */
...@@ -1240,7 +1240,7 @@ Tkapp_GetAttr (self, name) ...@@ -1240,7 +1240,7 @@ Tkapp_GetAttr (self, name)
static PyTypeObject Tkapp_Type = static PyTypeObject Tkapp_Type =
{ {
PyObject_HEAD_INIT (&PyType_Type) PyObject_HEAD_INIT (NULL)
0, /*ob_size */ 0, /*ob_size */
"tkapp", /*tp_name */ "tkapp", /*tp_name */
sizeof (TkappObject), /*tp_basicsize */ sizeof (TkappObject), /*tp_basicsize */
...@@ -1335,6 +1335,9 @@ init_tkinter () ...@@ -1335,6 +1335,9 @@ init_tkinter ()
#endif /* WITH_READLINE */ #endif /* WITH_READLINE */
PyObject *m, *d, *v; PyObject *m, *d, *v;
Tkapp_Type.ob_type = &PyType_Type;
Tktt_Type.ob_type = &PyType_Type;
m = Py_InitModule ("_tkinter", moduleMethods); m = Py_InitModule ("_tkinter", moduleMethods);
d = PyModule_GetDict (m); d = PyModule_GetDict (m);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment