Index: Modules/_tkinter.c =================================================================== --- Modules/_tkinter.c (revision 68155) +++ Modules/_tkinter.c (working copy) @@ -2255,6 +2255,12 @@ PyObject *file, *func; int mask, tfile; + if (!self && Py_Py3kWarningFlag) { + if (PyErr_Warn(PyExc_DeprecationWarning, + "_tkinter.createfilehandler is gone in 3.x") < 0) + return NULL; + } + if (!PyArg_ParseTuple(args, "OiO:createfilehandler", &file, &mask, &func)) return NULL; @@ -2299,6 +2305,12 @@ PyObject *file; int tfile; + if (!self && Py_Py3kWarningFlag) { + if (PyErr_Warn(PyExc_DeprecationWarning, + "_tkinter.deletefilehandler is gone in 3.x") < 0) + return NULL; + } + if (!PyArg_ParseTuple(args, "O:deletefilehandler", &file)) return NULL; @@ -2472,6 +2484,12 @@ PyObject *func; TkttObject *v; + if (!self && Py_Py3kWarningFlag) { + if (PyErr_Warn(PyExc_DeprecationWarning, + "_tkinter.createtimerhandler is gone in 3.x") < 0) + return NULL; + } + if (!PyArg_ParseTuple(args, "iO:createtimerhandler", &milliseconds, &func)) return NULL; @@ -2515,6 +2533,12 @@ PyThreadState *tstate = PyThreadState_Get(); #endif + if (!self && Py_Py3kWarningFlag) { + if (PyErr_Warn(PyExc_DeprecationWarning, + "_tkinter.mainloop is gone in 3.x") < 0) + return NULL; + } + if (!PyArg_ParseTuple(args, "|i:mainloop", &threshold)) return NULL;