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