Home | History | Annotate | Download | only in clinic
      1 /*[clinic input]
      2 preserve
      3 [clinic start generated code]*/
      4 
      5 PyDoc_STRVAR(_tkinter_tkapp_eval__doc__,
      6 "eval($self, script, /)\n"
      7 "--\n"
      8 "\n");
      9 
     10 #define _TKINTER_TKAPP_EVAL_METHODDEF    \
     11     {"eval", (PyCFunction)_tkinter_tkapp_eval, METH_O, _tkinter_tkapp_eval__doc__},
     12 
     13 static PyObject *
     14 _tkinter_tkapp_eval_impl(TkappObject *self, const char *script);
     15 
     16 static PyObject *
     17 _tkinter_tkapp_eval(TkappObject *self, PyObject *arg)
     18 {
     19     PyObject *return_value = NULL;
     20     const char *script;
     21 
     22     if (!PyArg_Parse(arg, "s:eval", &script)) {
     23         goto exit;
     24     }
     25     return_value = _tkinter_tkapp_eval_impl(self, script);
     26 
     27 exit:
     28     return return_value;
     29 }
     30 
     31 PyDoc_STRVAR(_tkinter_tkapp_evalfile__doc__,
     32 "evalfile($self, fileName, /)\n"
     33 "--\n"
     34 "\n");
     35 
     36 #define _TKINTER_TKAPP_EVALFILE_METHODDEF    \
     37     {"evalfile", (PyCFunction)_tkinter_tkapp_evalfile, METH_O, _tkinter_tkapp_evalfile__doc__},
     38 
     39 static PyObject *
     40 _tkinter_tkapp_evalfile_impl(TkappObject *self, const char *fileName);
     41 
     42 static PyObject *
     43 _tkinter_tkapp_evalfile(TkappObject *self, PyObject *arg)
     44 {
     45     PyObject *return_value = NULL;
     46     const char *fileName;
     47 
     48     if (!PyArg_Parse(arg, "s:evalfile", &fileName)) {
     49         goto exit;
     50     }
     51     return_value = _tkinter_tkapp_evalfile_impl(self, fileName);
     52 
     53 exit:
     54     return return_value;
     55 }
     56 
     57 PyDoc_STRVAR(_tkinter_tkapp_record__doc__,
     58 "record($self, script, /)\n"
     59 "--\n"
     60 "\n");
     61 
     62 #define _TKINTER_TKAPP_RECORD_METHODDEF    \
     63     {"record", (PyCFunction)_tkinter_tkapp_record, METH_O, _tkinter_tkapp_record__doc__},
     64 
     65 static PyObject *
     66 _tkinter_tkapp_record_impl(TkappObject *self, const char *script);
     67 
     68 static PyObject *
     69 _tkinter_tkapp_record(TkappObject *self, PyObject *arg)
     70 {
     71     PyObject *return_value = NULL;
     72     const char *script;
     73 
     74     if (!PyArg_Parse(arg, "s:record", &script)) {
     75         goto exit;
     76     }
     77     return_value = _tkinter_tkapp_record_impl(self, script);
     78 
     79 exit:
     80     return return_value;
     81 }
     82 
     83 PyDoc_STRVAR(_tkinter_tkapp_adderrinfo__doc__,
     84 "adderrinfo($self, msg, /)\n"
     85 "--\n"
     86 "\n");
     87 
     88 #define _TKINTER_TKAPP_ADDERRINFO_METHODDEF    \
     89     {"adderrinfo", (PyCFunction)_tkinter_tkapp_adderrinfo, METH_O, _tkinter_tkapp_adderrinfo__doc__},
     90 
     91 static PyObject *
     92 _tkinter_tkapp_adderrinfo_impl(TkappObject *self, const char *msg);
     93 
     94 static PyObject *
     95 _tkinter_tkapp_adderrinfo(TkappObject *self, PyObject *arg)
     96 {
     97     PyObject *return_value = NULL;
     98     const char *msg;
     99 
    100     if (!PyArg_Parse(arg, "s:adderrinfo", &msg)) {
    101         goto exit;
    102     }
    103     return_value = _tkinter_tkapp_adderrinfo_impl(self, msg);
    104 
    105 exit:
    106     return return_value;
    107 }
    108 
    109 PyDoc_STRVAR(_tkinter_tkapp_getint__doc__,
    110 "getint($self, arg, /)\n"
    111 "--\n"
    112 "\n");
    113 
    114 #define _TKINTER_TKAPP_GETINT_METHODDEF    \
    115     {"getint", (PyCFunction)_tkinter_tkapp_getint, METH_O, _tkinter_tkapp_getint__doc__},
    116 
    117 PyDoc_STRVAR(_tkinter_tkapp_getdouble__doc__,
    118 "getdouble($self, arg, /)\n"
    119 "--\n"
    120 "\n");
    121 
    122 #define _TKINTER_TKAPP_GETDOUBLE_METHODDEF    \
    123     {"getdouble", (PyCFunction)_tkinter_tkapp_getdouble, METH_O, _tkinter_tkapp_getdouble__doc__},
    124 
    125 PyDoc_STRVAR(_tkinter_tkapp_getboolean__doc__,
    126 "getboolean($self, arg, /)\n"
    127 "--\n"
    128 "\n");
    129 
    130 #define _TKINTER_TKAPP_GETBOOLEAN_METHODDEF    \
    131     {"getboolean", (PyCFunction)_tkinter_tkapp_getboolean, METH_O, _tkinter_tkapp_getboolean__doc__},
    132 
    133 PyDoc_STRVAR(_tkinter_tkapp_exprstring__doc__,
    134 "exprstring($self, s, /)\n"
    135 "--\n"
    136 "\n");
    137 
    138 #define _TKINTER_TKAPP_EXPRSTRING_METHODDEF    \
    139     {"exprstring", (PyCFunction)_tkinter_tkapp_exprstring, METH_O, _tkinter_tkapp_exprstring__doc__},
    140 
    141 static PyObject *
    142 _tkinter_tkapp_exprstring_impl(TkappObject *self, const char *s);
    143 
    144 static PyObject *
    145 _tkinter_tkapp_exprstring(TkappObject *self, PyObject *arg)
    146 {
    147     PyObject *return_value = NULL;
    148     const char *s;
    149 
    150     if (!PyArg_Parse(arg, "s:exprstring", &s)) {
    151         goto exit;
    152     }
    153     return_value = _tkinter_tkapp_exprstring_impl(self, s);
    154 
    155 exit:
    156     return return_value;
    157 }
    158 
    159 PyDoc_STRVAR(_tkinter_tkapp_exprlong__doc__,
    160 "exprlong($self, s, /)\n"
    161 "--\n"
    162 "\n");
    163 
    164 #define _TKINTER_TKAPP_EXPRLONG_METHODDEF    \
    165     {"exprlong", (PyCFunction)_tkinter_tkapp_exprlong, METH_O, _tkinter_tkapp_exprlong__doc__},
    166 
    167 static PyObject *
    168 _tkinter_tkapp_exprlong_impl(TkappObject *self, const char *s);
    169 
    170 static PyObject *
    171 _tkinter_tkapp_exprlong(TkappObject *self, PyObject *arg)
    172 {
    173     PyObject *return_value = NULL;
    174     const char *s;
    175 
    176     if (!PyArg_Parse(arg, "s:exprlong", &s)) {
    177         goto exit;
    178     }
    179     return_value = _tkinter_tkapp_exprlong_impl(self, s);
    180 
    181 exit:
    182     return return_value;
    183 }
    184 
    185 PyDoc_STRVAR(_tkinter_tkapp_exprdouble__doc__,
    186 "exprdouble($self, s, /)\n"
    187 "--\n"
    188 "\n");
    189 
    190 #define _TKINTER_TKAPP_EXPRDOUBLE_METHODDEF    \
    191     {"exprdouble", (PyCFunction)_tkinter_tkapp_exprdouble, METH_O, _tkinter_tkapp_exprdouble__doc__},
    192 
    193 static PyObject *
    194 _tkinter_tkapp_exprdouble_impl(TkappObject *self, const char *s);
    195 
    196 static PyObject *
    197 _tkinter_tkapp_exprdouble(TkappObject *self, PyObject *arg)
    198 {
    199     PyObject *return_value = NULL;
    200     const char *s;
    201 
    202     if (!PyArg_Parse(arg, "s:exprdouble", &s)) {
    203         goto exit;
    204     }
    205     return_value = _tkinter_tkapp_exprdouble_impl(self, s);
    206 
    207 exit:
    208     return return_value;
    209 }
    210 
    211 PyDoc_STRVAR(_tkinter_tkapp_exprboolean__doc__,
    212 "exprboolean($self, s, /)\n"
    213 "--\n"
    214 "\n");
    215 
    216 #define _TKINTER_TKAPP_EXPRBOOLEAN_METHODDEF    \
    217     {"exprboolean", (PyCFunction)_tkinter_tkapp_exprboolean, METH_O, _tkinter_tkapp_exprboolean__doc__},
    218 
    219 static PyObject *
    220 _tkinter_tkapp_exprboolean_impl(TkappObject *self, const char *s);
    221 
    222 static PyObject *
    223 _tkinter_tkapp_exprboolean(TkappObject *self, PyObject *arg)
    224 {
    225     PyObject *return_value = NULL;
    226     const char *s;
    227 
    228     if (!PyArg_Parse(arg, "s:exprboolean", &s)) {
    229         goto exit;
    230     }
    231     return_value = _tkinter_tkapp_exprboolean_impl(self, s);
    232 
    233 exit:
    234     return return_value;
    235 }
    236 
    237 PyDoc_STRVAR(_tkinter_tkapp_splitlist__doc__,
    238 "splitlist($self, arg, /)\n"
    239 "--\n"
    240 "\n");
    241 
    242 #define _TKINTER_TKAPP_SPLITLIST_METHODDEF    \
    243     {"splitlist", (PyCFunction)_tkinter_tkapp_splitlist, METH_O, _tkinter_tkapp_splitlist__doc__},
    244 
    245 PyDoc_STRVAR(_tkinter_tkapp_split__doc__,
    246 "split($self, arg, /)\n"
    247 "--\n"
    248 "\n");
    249 
    250 #define _TKINTER_TKAPP_SPLIT_METHODDEF    \
    251     {"split", (PyCFunction)_tkinter_tkapp_split, METH_O, _tkinter_tkapp_split__doc__},
    252 
    253 PyDoc_STRVAR(_tkinter_tkapp_createcommand__doc__,
    254 "createcommand($self, name, func, /)\n"
    255 "--\n"
    256 "\n");
    257 
    258 #define _TKINTER_TKAPP_CREATECOMMAND_METHODDEF    \
    259     {"createcommand", (PyCFunction)_tkinter_tkapp_createcommand, METH_VARARGS, _tkinter_tkapp_createcommand__doc__},
    260 
    261 static PyObject *
    262 _tkinter_tkapp_createcommand_impl(TkappObject *self, const char *name,
    263                                   PyObject *func);
    264 
    265 static PyObject *
    266 _tkinter_tkapp_createcommand(TkappObject *self, PyObject *args)
    267 {
    268     PyObject *return_value = NULL;
    269     const char *name;
    270     PyObject *func;
    271 
    272     if (!PyArg_ParseTuple(args, "sO:createcommand",
    273         &name, &func)) {
    274         goto exit;
    275     }
    276     return_value = _tkinter_tkapp_createcommand_impl(self, name, func);
    277 
    278 exit:
    279     return return_value;
    280 }
    281 
    282 PyDoc_STRVAR(_tkinter_tkapp_deletecommand__doc__,
    283 "deletecommand($self, name, /)\n"
    284 "--\n"
    285 "\n");
    286 
    287 #define _TKINTER_TKAPP_DELETECOMMAND_METHODDEF    \
    288     {"deletecommand", (PyCFunction)_tkinter_tkapp_deletecommand, METH_O, _tkinter_tkapp_deletecommand__doc__},
    289 
    290 static PyObject *
    291 _tkinter_tkapp_deletecommand_impl(TkappObject *self, const char *name);
    292 
    293 static PyObject *
    294 _tkinter_tkapp_deletecommand(TkappObject *self, PyObject *arg)
    295 {
    296     PyObject *return_value = NULL;
    297     const char *name;
    298 
    299     if (!PyArg_Parse(arg, "s:deletecommand", &name)) {
    300         goto exit;
    301     }
    302     return_value = _tkinter_tkapp_deletecommand_impl(self, name);
    303 
    304 exit:
    305     return return_value;
    306 }
    307 
    308 #if defined(HAVE_CREATEFILEHANDLER)
    309 
    310 PyDoc_STRVAR(_tkinter_tkapp_createfilehandler__doc__,
    311 "createfilehandler($self, file, mask, func, /)\n"
    312 "--\n"
    313 "\n");
    314 
    315 #define _TKINTER_TKAPP_CREATEFILEHANDLER_METHODDEF    \
    316     {"createfilehandler", (PyCFunction)_tkinter_tkapp_createfilehandler, METH_VARARGS, _tkinter_tkapp_createfilehandler__doc__},
    317 
    318 static PyObject *
    319 _tkinter_tkapp_createfilehandler_impl(TkappObject *self, PyObject *file,
    320                                       int mask, PyObject *func);
    321 
    322 static PyObject *
    323 _tkinter_tkapp_createfilehandler(TkappObject *self, PyObject *args)
    324 {
    325     PyObject *return_value = NULL;
    326     PyObject *file;
    327     int mask;
    328     PyObject *func;
    329 
    330     if (!PyArg_ParseTuple(args, "OiO:createfilehandler",
    331         &file, &mask, &func)) {
    332         goto exit;
    333     }
    334     return_value = _tkinter_tkapp_createfilehandler_impl(self, file, mask, func);
    335 
    336 exit:
    337     return return_value;
    338 }
    339 
    340 #endif /* defined(HAVE_CREATEFILEHANDLER) */
    341 
    342 #if defined(HAVE_CREATEFILEHANDLER)
    343 
    344 PyDoc_STRVAR(_tkinter_tkapp_deletefilehandler__doc__,
    345 "deletefilehandler($self, file, /)\n"
    346 "--\n"
    347 "\n");
    348 
    349 #define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF    \
    350     {"deletefilehandler", (PyCFunction)_tkinter_tkapp_deletefilehandler, METH_O, _tkinter_tkapp_deletefilehandler__doc__},
    351 
    352 #endif /* defined(HAVE_CREATEFILEHANDLER) */
    353 
    354 PyDoc_STRVAR(_tkinter_tktimertoken_deletetimerhandler__doc__,
    355 "deletetimerhandler($self, /)\n"
    356 "--\n"
    357 "\n");
    358 
    359 #define _TKINTER_TKTIMERTOKEN_DELETETIMERHANDLER_METHODDEF    \
    360     {"deletetimerhandler", (PyCFunction)_tkinter_tktimertoken_deletetimerhandler, METH_NOARGS, _tkinter_tktimertoken_deletetimerhandler__doc__},
    361 
    362 static PyObject *
    363 _tkinter_tktimertoken_deletetimerhandler_impl(TkttObject *self);
    364 
    365 static PyObject *
    366 _tkinter_tktimertoken_deletetimerhandler(TkttObject *self, PyObject *Py_UNUSED(ignored))
    367 {
    368     return _tkinter_tktimertoken_deletetimerhandler_impl(self);
    369 }
    370 
    371 PyDoc_STRVAR(_tkinter_tkapp_createtimerhandler__doc__,
    372 "createtimerhandler($self, milliseconds, func, /)\n"
    373 "--\n"
    374 "\n");
    375 
    376 #define _TKINTER_TKAPP_CREATETIMERHANDLER_METHODDEF    \
    377     {"createtimerhandler", (PyCFunction)_tkinter_tkapp_createtimerhandler, METH_VARARGS, _tkinter_tkapp_createtimerhandler__doc__},
    378 
    379 static PyObject *
    380 _tkinter_tkapp_createtimerhandler_impl(TkappObject *self, int milliseconds,
    381                                        PyObject *func);
    382 
    383 static PyObject *
    384 _tkinter_tkapp_createtimerhandler(TkappObject *self, PyObject *args)
    385 {
    386     PyObject *return_value = NULL;
    387     int milliseconds;
    388     PyObject *func;
    389 
    390     if (!PyArg_ParseTuple(args, "iO:createtimerhandler",
    391         &milliseconds, &func)) {
    392         goto exit;
    393     }
    394     return_value = _tkinter_tkapp_createtimerhandler_impl(self, milliseconds, func);
    395 
    396 exit:
    397     return return_value;
    398 }
    399 
    400 PyDoc_STRVAR(_tkinter_tkapp_mainloop__doc__,
    401 "mainloop($self, threshold=0, /)\n"
    402 "--\n"
    403 "\n");
    404 
    405 #define _TKINTER_TKAPP_MAINLOOP_METHODDEF    \
    406     {"mainloop", (PyCFunction)_tkinter_tkapp_mainloop, METH_VARARGS, _tkinter_tkapp_mainloop__doc__},
    407 
    408 static PyObject *
    409 _tkinter_tkapp_mainloop_impl(TkappObject *self, int threshold);
    410 
    411 static PyObject *
    412 _tkinter_tkapp_mainloop(TkappObject *self, PyObject *args)
    413 {
    414     PyObject *return_value = NULL;
    415     int threshold = 0;
    416 
    417     if (!PyArg_ParseTuple(args, "|i:mainloop",
    418         &threshold)) {
    419         goto exit;
    420     }
    421     return_value = _tkinter_tkapp_mainloop_impl(self, threshold);
    422 
    423 exit:
    424     return return_value;
    425 }
    426 
    427 PyDoc_STRVAR(_tkinter_tkapp_dooneevent__doc__,
    428 "dooneevent($self, flags=0, /)\n"
    429 "--\n"
    430 "\n");
    431 
    432 #define _TKINTER_TKAPP_DOONEEVENT_METHODDEF    \
    433     {"dooneevent", (PyCFunction)_tkinter_tkapp_dooneevent, METH_VARARGS, _tkinter_tkapp_dooneevent__doc__},
    434 
    435 static PyObject *
    436 _tkinter_tkapp_dooneevent_impl(TkappObject *self, int flags);
    437 
    438 static PyObject *
    439 _tkinter_tkapp_dooneevent(TkappObject *self, PyObject *args)
    440 {
    441     PyObject *return_value = NULL;
    442     int flags = 0;
    443 
    444     if (!PyArg_ParseTuple(args, "|i:dooneevent",
    445         &flags)) {
    446         goto exit;
    447     }
    448     return_value = _tkinter_tkapp_dooneevent_impl(self, flags);
    449 
    450 exit:
    451     return return_value;
    452 }
    453 
    454 PyDoc_STRVAR(_tkinter_tkapp_quit__doc__,
    455 "quit($self, /)\n"
    456 "--\n"
    457 "\n");
    458 
    459 #define _TKINTER_TKAPP_QUIT_METHODDEF    \
    460     {"quit", (PyCFunction)_tkinter_tkapp_quit, METH_NOARGS, _tkinter_tkapp_quit__doc__},
    461 
    462 static PyObject *
    463 _tkinter_tkapp_quit_impl(TkappObject *self);
    464 
    465 static PyObject *
    466 _tkinter_tkapp_quit(TkappObject *self, PyObject *Py_UNUSED(ignored))
    467 {
    468     return _tkinter_tkapp_quit_impl(self);
    469 }
    470 
    471 PyDoc_STRVAR(_tkinter_tkapp_interpaddr__doc__,
    472 "interpaddr($self, /)\n"
    473 "--\n"
    474 "\n");
    475 
    476 #define _TKINTER_TKAPP_INTERPADDR_METHODDEF    \
    477     {"interpaddr", (PyCFunction)_tkinter_tkapp_interpaddr, METH_NOARGS, _tkinter_tkapp_interpaddr__doc__},
    478 
    479 static PyObject *
    480 _tkinter_tkapp_interpaddr_impl(TkappObject *self);
    481 
    482 static PyObject *
    483 _tkinter_tkapp_interpaddr(TkappObject *self, PyObject *Py_UNUSED(ignored))
    484 {
    485     return _tkinter_tkapp_interpaddr_impl(self);
    486 }
    487 
    488 PyDoc_STRVAR(_tkinter_tkapp_loadtk__doc__,
    489 "loadtk($self, /)\n"
    490 "--\n"
    491 "\n");
    492 
    493 #define _TKINTER_TKAPP_LOADTK_METHODDEF    \
    494     {"loadtk", (PyCFunction)_tkinter_tkapp_loadtk, METH_NOARGS, _tkinter_tkapp_loadtk__doc__},
    495 
    496 static PyObject *
    497 _tkinter_tkapp_loadtk_impl(TkappObject *self);
    498 
    499 static PyObject *
    500 _tkinter_tkapp_loadtk(TkappObject *self, PyObject *Py_UNUSED(ignored))
    501 {
    502     return _tkinter_tkapp_loadtk_impl(self);
    503 }
    504 
    505 PyDoc_STRVAR(_tkinter_tkapp_willdispatch__doc__,
    506 "willdispatch($self, /)\n"
    507 "--\n"
    508 "\n");
    509 
    510 #define _TKINTER_TKAPP_WILLDISPATCH_METHODDEF    \
    511     {"willdispatch", (PyCFunction)_tkinter_tkapp_willdispatch, METH_NOARGS, _tkinter_tkapp_willdispatch__doc__},
    512 
    513 static PyObject *
    514 _tkinter_tkapp_willdispatch_impl(TkappObject *self);
    515 
    516 static PyObject *
    517 _tkinter_tkapp_willdispatch(TkappObject *self, PyObject *Py_UNUSED(ignored))
    518 {
    519     return _tkinter_tkapp_willdispatch_impl(self);
    520 }
    521 
    522 PyDoc_STRVAR(_tkinter__flatten__doc__,
    523 "_flatten($module, item, /)\n"
    524 "--\n"
    525 "\n");
    526 
    527 #define _TKINTER__FLATTEN_METHODDEF    \
    528     {"_flatten", (PyCFunction)_tkinter__flatten, METH_O, _tkinter__flatten__doc__},
    529 
    530 PyDoc_STRVAR(_tkinter_create__doc__,
    531 "create($module, screenName=None, baseName=None, className=\'Tk\',\n"
    532 "       interactive=False, wantobjects=False, wantTk=True, sync=False,\n"
    533 "       use=None, /)\n"
    534 "--\n"
    535 "\n"
    536 "\n"
    537 "\n"
    538 "  wantTk\n"
    539 "    if false, then Tk_Init() doesn\'t get called\n"
    540 "  sync\n"
    541 "    if true, then pass -sync to wish\n"
    542 "  use\n"
    543 "    if not None, then pass -use to wish");
    544 
    545 #define _TKINTER_CREATE_METHODDEF    \
    546     {"create", (PyCFunction)_tkinter_create, METH_VARARGS, _tkinter_create__doc__},
    547 
    548 static PyObject *
    549 _tkinter_create_impl(PyObject *module, const char *screenName,
    550                      const char *baseName, const char *className,
    551                      int interactive, int wantobjects, int wantTk, int sync,
    552                      const char *use);
    553 
    554 static PyObject *
    555 _tkinter_create(PyObject *module, PyObject *args)
    556 {
    557     PyObject *return_value = NULL;
    558     const char *screenName = NULL;
    559     const char *baseName = NULL;
    560     const char *className = "Tk";
    561     int interactive = 0;
    562     int wantobjects = 0;
    563     int wantTk = 1;
    564     int sync = 0;
    565     const char *use = NULL;
    566 
    567     if (!PyArg_ParseTuple(args, "|zssiiiiz:create",
    568         &screenName, &baseName, &className, &interactive, &wantobjects, &wantTk, &sync, &use)) {
    569         goto exit;
    570     }
    571     return_value = _tkinter_create_impl(module, screenName, baseName, className, interactive, wantobjects, wantTk, sync, use);
    572 
    573 exit:
    574     return return_value;
    575 }
    576 
    577 PyDoc_STRVAR(_tkinter_setbusywaitinterval__doc__,
    578 "setbusywaitinterval($module, new_val, /)\n"
    579 "--\n"
    580 "\n"
    581 "Set the busy-wait interval in milliseconds between successive calls to Tcl_DoOneEvent in a threaded Python interpreter.\n"
    582 "\n"
    583 "It should be set to a divisor of the maximum time between frames in an animation.");
    584 
    585 #define _TKINTER_SETBUSYWAITINTERVAL_METHODDEF    \
    586     {"setbusywaitinterval", (PyCFunction)_tkinter_setbusywaitinterval, METH_O, _tkinter_setbusywaitinterval__doc__},
    587 
    588 static PyObject *
    589 _tkinter_setbusywaitinterval_impl(PyObject *module, int new_val);
    590 
    591 static PyObject *
    592 _tkinter_setbusywaitinterval(PyObject *module, PyObject *arg)
    593 {
    594     PyObject *return_value = NULL;
    595     int new_val;
    596 
    597     if (!PyArg_Parse(arg, "i:setbusywaitinterval", &new_val)) {
    598         goto exit;
    599     }
    600     return_value = _tkinter_setbusywaitinterval_impl(module, new_val);
    601 
    602 exit:
    603     return return_value;
    604 }
    605 
    606 PyDoc_STRVAR(_tkinter_getbusywaitinterval__doc__,
    607 "getbusywaitinterval($module, /)\n"
    608 "--\n"
    609 "\n"
    610 "Return the current busy-wait interval between successive calls to Tcl_DoOneEvent in a threaded Python interpreter.");
    611 
    612 #define _TKINTER_GETBUSYWAITINTERVAL_METHODDEF    \
    613     {"getbusywaitinterval", (PyCFunction)_tkinter_getbusywaitinterval, METH_NOARGS, _tkinter_getbusywaitinterval__doc__},
    614 
    615 static int
    616 _tkinter_getbusywaitinterval_impl(PyObject *module);
    617 
    618 static PyObject *
    619 _tkinter_getbusywaitinterval(PyObject *module, PyObject *Py_UNUSED(ignored))
    620 {
    621     PyObject *return_value = NULL;
    622     int _return_value;
    623 
    624     _return_value = _tkinter_getbusywaitinterval_impl(module);
    625     if ((_return_value == -1) && PyErr_Occurred()) {
    626         goto exit;
    627     }
    628     return_value = PyLong_FromLong((long)_return_value);
    629 
    630 exit:
    631     return return_value;
    632 }
    633 
    634 #ifndef _TKINTER_TKAPP_CREATEFILEHANDLER_METHODDEF
    635     #define _TKINTER_TKAPP_CREATEFILEHANDLER_METHODDEF
    636 #endif /* !defined(_TKINTER_TKAPP_CREATEFILEHANDLER_METHODDEF) */
    637 
    638 #ifndef _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
    639     #define _TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF
    640 #endif /* !defined(_TKINTER_TKAPP_DELETEFILEHANDLER_METHODDEF) */
    641 /*[clinic end generated code: output=836c578b71d69097 input=a9049054013a1b77]*/
    642