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