mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Hacks to support being a Windows DLL
This commit is contained in:
parent
6cdc6f4146
commit
ae92f01029
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue