summaryrefslogtreecommitdiffstats
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-05-03 21:49:19 (GMT)
committerLarry Hastings <larry@hastings.org>2015-05-03 21:49:19 (GMT)
commit2d0a69a456831f483a612fa97c7ed1b178b1bdd2 (patch)
treedf7ab45acba9be48875265bf7a55eb62820cc7d2 /Modules/_tkinter.c
parentb174b85c1a37ee7452d26d041c30519425e4d421 (diff)
downloadcpython-2d0a69a456831f483a612fa97c7ed1b178b1bdd2.zip
cpython-2d0a69a456831f483a612fa97c7ed1b178b1bdd2.tar.gz
cpython-2d0a69a456831f483a612fa97c7ed1b178b1bdd2.tar.bz2
Fix Windows build breakage from checkins on Issues #20148 and #20168.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c71
1 files changed, 33 insertions, 38 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 444b13a..1f21c03 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -2682,8 +2682,6 @@ _tkinter_tktimertoken_deletetimerhandler_impl(TkttObject *self)
Py_RETURN_NONE;
}
-static PyMethodDef Tktt_methods[];
-
static TkttObject *
Tktt_New(PyObject *func)
{
@@ -2725,22 +2723,6 @@ Tktt_Repr(PyObject *self)
v->func == NULL ? ", handler deleted" : "");
}
-static PyType_Slot Tktt_Type_slots[] = {
- {Py_tp_dealloc, Tktt_Dealloc},
- {Py_tp_repr, Tktt_Repr},
- {Py_tp_methods, Tktt_methods},
- {0, 0}
-};
-
-static PyType_Spec Tktt_Type_spec = {
- "_tkinter.tktimertoken",
- sizeof(TkttObject),
- 0,
- Py_TPFLAGS_DEFAULT,
- Tktt_Type_slots,
-};
-
-
/** Timer Handler **/
static void
@@ -3001,11 +2983,6 @@ _tkinter_tkapp_willdispatch_impl(TkappObject *self)
}
-/**** Tkapp Method List ****/
-
-static PyMethodDef Tkapp_methods[];
-
-
/**** Tkapp Type Methods ****/
static void
@@ -3021,21 +2998,6 @@ Tkapp_Dealloc(PyObject *self)
DisableEventHook();
}
-static PyType_Slot Tkapp_Type_slots[] = {
- {Py_tp_dealloc, Tkapp_Dealloc},
- {Py_tp_methods, Tkapp_methods},
- {0, 0}
-};
-
-
-static PyType_Spec Tkapp_Type_spec = {
- "_tkinter.tkapp",
- sizeof(TkappObject),
- 0,
- Py_TPFLAGS_DEFAULT,
- Tkapp_Type_slots,
-};
-
/**** Tkinter Module ****/
@@ -3218,6 +3180,24 @@ static PyMethodDef Tktt_methods[] =
{NULL, NULL}
};
+static PyType_Slot Tktt_Type_slots[] = {
+ {Py_tp_dealloc, Tktt_Dealloc},
+ {Py_tp_repr, Tktt_Repr},
+ {Py_tp_methods, Tktt_methods},
+ {0, 0}
+};
+
+static PyType_Spec Tktt_Type_spec = {
+ "_tkinter.tktimertoken",
+ sizeof(TkttObject),
+ 0,
+ Py_TPFLAGS_DEFAULT,
+ Tktt_Type_slots,
+};
+
+
+/**** Tkapp Method List ****/
+
static PyMethodDef Tkapp_methods[] =
{
_TKINTER_TKAPP_WILLDISPATCH_METHODDEF
@@ -3255,6 +3235,21 @@ static PyMethodDef Tkapp_methods[] =
{NULL, NULL}
};
+static PyType_Slot Tkapp_Type_slots[] = {
+ {Py_tp_dealloc, Tkapp_Dealloc},
+ {Py_tp_methods, Tkapp_methods},
+ {0, 0}
+};
+
+
+static PyType_Spec Tkapp_Type_spec = {
+ "_tkinter.tkapp",
+ sizeof(TkappObject),
+ 0,
+ Py_TPFLAGS_DEFAULT,
+ Tkapp_Type_slots,
+};
+
static PyMethodDef moduleMethods[] =
{
_TKINTER__FLATTEN_METHODDEF