diff options
Diffstat (limited to 'Modules/clinic/_tkinter.c.h')
-rw-r--r-- | Modules/clinic/_tkinter.c.h | 38 |
1 files changed, 7 insertions, 31 deletions
diff --git a/Modules/clinic/_tkinter.c.h b/Modules/clinic/_tkinter.c.h index fde92c0..040a745 100644 --- a/Modules/clinic/_tkinter.c.h +++ b/Modules/clinic/_tkinter.c.h @@ -263,16 +263,12 @@ _tkinter_tkapp_createcommand_impl(TkappObject *self, const char *name, PyObject *func); static PyObject * -_tkinter_tkapp_createcommand(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_createcommand(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *name; PyObject *func; - if (!_PyArg_NoStackKeywords("createcommand", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "sO:createcommand", &name, &func)) { goto exit; @@ -324,17 +320,13 @@ _tkinter_tkapp_createfilehandler_impl(TkappObject *self, PyObject *file, int mask, PyObject *func); static PyObject * -_tkinter_tkapp_createfilehandler(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_createfilehandler(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; PyObject *file; int mask; PyObject *func; - if (!_PyArg_NoStackKeywords("createfilehandler", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "OiO:createfilehandler", &file, &mask, &func)) { goto exit; @@ -389,16 +381,12 @@ _tkinter_tkapp_createtimerhandler_impl(TkappObject *self, int milliseconds, PyObject *func); static PyObject * -_tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int milliseconds; PyObject *func; - if (!_PyArg_NoStackKeywords("createtimerhandler", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "iO:createtimerhandler", &milliseconds, &func)) { goto exit; @@ -421,15 +409,11 @@ static PyObject * _tkinter_tkapp_mainloop_impl(TkappObject *self, int threshold); static PyObject * -_tkinter_tkapp_mainloop(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_mainloop(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int threshold = 0; - if (!_PyArg_NoStackKeywords("mainloop", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "|i:mainloop", &threshold)) { goto exit; @@ -452,15 +436,11 @@ static PyObject * _tkinter_tkapp_dooneevent_impl(TkappObject *self, int flags); static PyObject * -_tkinter_tkapp_dooneevent(TkappObject *self, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_tkapp_dooneevent(TkappObject *self, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; int flags = 0; - if (!_PyArg_NoStackKeywords("dooneevent", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "|i:dooneevent", &flags)) { goto exit; @@ -572,7 +552,7 @@ _tkinter_create_impl(PyObject *module, const char *screenName, const char *use); static PyObject * -_tkinter_create(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) +_tkinter_create(PyObject *module, PyObject **args, Py_ssize_t nargs) { PyObject *return_value = NULL; const char *screenName = NULL; @@ -584,10 +564,6 @@ _tkinter_create(PyObject *module, PyObject **args, Py_ssize_t nargs, PyObject *k int sync = 0; const char *use = NULL; - if (!_PyArg_NoStackKeywords("create", kwnames)) { - goto exit; - } - if (!_PyArg_ParseStack(args, nargs, "|zssiiiiz:create", &screenName, &baseName, &className, &interactive, &wantobjects, &wantTk, &sync, &use)) { goto exit; @@ -662,4 +638,4 @@ exit: #ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF #endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */ -/*[clinic end generated code: output=ed14e0bb0cd9c8e0 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=3b9241f7c703ae4f input=a9049054013a1b77]*/ |