blob: edd53800058dab55336ec39ccaf63bcbb13108ea [file] [log] [blame]
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +03001/*[clinic input]
2preserve
3[clinic start generated code]*/
4
5PyDoc_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
13static PyObject *
14_tkinter_tkapp_eval_impl(TkappObject *self, const char *script);
15
16static PyObject *
17_tkinter_tkapp_eval(TkappObject *self, PyObject *arg)
18{
19 PyObject *return_value = NULL;
20 const char *script;
21
Serhiy Storchaka5dee6552016-06-09 16:16:06 +030022 if (!PyArg_Parse(arg, "s:eval", &script)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +030023 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +030024 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +030025 return_value = _tkinter_tkapp_eval_impl(self, script);
26
27exit:
28 return return_value;
29}
30
31PyDoc_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
39static PyObject *
40_tkinter_tkapp_evalfile_impl(TkappObject *self, const char *fileName);
41
42static PyObject *
43_tkinter_tkapp_evalfile(TkappObject *self, PyObject *arg)
44{
45 PyObject *return_value = NULL;
46 const char *fileName;
47
Serhiy Storchaka5dee6552016-06-09 16:16:06 +030048 if (!PyArg_Parse(arg, "s:evalfile", &fileName)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +030049 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +030050 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +030051 return_value = _tkinter_tkapp_evalfile_impl(self, fileName);
52
53exit:
54 return return_value;
55}
56
57PyDoc_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
65static PyObject *
66_tkinter_tkapp_record_impl(TkappObject *self, const char *script);
67
68static PyObject *
69_tkinter_tkapp_record(TkappObject *self, PyObject *arg)
70{
71 PyObject *return_value = NULL;
72 const char *script;
73
Serhiy Storchaka5dee6552016-06-09 16:16:06 +030074 if (!PyArg_Parse(arg, "s:record", &script)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +030075 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +030076 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +030077 return_value = _tkinter_tkapp_record_impl(self, script);
78
79exit:
80 return return_value;
81}
82
83PyDoc_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
91static PyObject *
92_tkinter_tkapp_adderrinfo_impl(TkappObject *self, const char *msg);
93
94static PyObject *
95_tkinter_tkapp_adderrinfo(TkappObject *self, PyObject *arg)
96{
97 PyObject *return_value = NULL;
98 const char *msg;
99
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300100 if (!PyArg_Parse(arg, "s:adderrinfo", &msg)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300101 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300102 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300103 return_value = _tkinter_tkapp_adderrinfo_impl(self, msg);
104
105exit:
106 return return_value;
107}
108
109PyDoc_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
117PyDoc_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
125PyDoc_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
133PyDoc_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
141static PyObject *
142_tkinter_tkapp_exprstring_impl(TkappObject *self, const char *s);
143
144static PyObject *
145_tkinter_tkapp_exprstring(TkappObject *self, PyObject *arg)
146{
147 PyObject *return_value = NULL;
148 const char *s;
149
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300150 if (!PyArg_Parse(arg, "s:exprstring", &s)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300151 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300152 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300153 return_value = _tkinter_tkapp_exprstring_impl(self, s);
154
155exit:
156 return return_value;
157}
158
159PyDoc_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
167static PyObject *
168_tkinter_tkapp_exprlong_impl(TkappObject *self, const char *s);
169
170static PyObject *
171_tkinter_tkapp_exprlong(TkappObject *self, PyObject *arg)
172{
173 PyObject *return_value = NULL;
174 const char *s;
175
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300176 if (!PyArg_Parse(arg, "s:exprlong", &s)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300177 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300178 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300179 return_value = _tkinter_tkapp_exprlong_impl(self, s);
180
181exit:
182 return return_value;
183}
184
185PyDoc_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
193static PyObject *
194_tkinter_tkapp_exprdouble_impl(TkappObject *self, const char *s);
195
196static PyObject *
197_tkinter_tkapp_exprdouble(TkappObject *self, PyObject *arg)
198{
199 PyObject *return_value = NULL;
200 const char *s;
201
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300202 if (!PyArg_Parse(arg, "s:exprdouble", &s)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300203 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300204 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300205 return_value = _tkinter_tkapp_exprdouble_impl(self, s);
206
207exit:
208 return return_value;
209}
210
211PyDoc_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
219static PyObject *
220_tkinter_tkapp_exprboolean_impl(TkappObject *self, const char *s);
221
222static PyObject *
223_tkinter_tkapp_exprboolean(TkappObject *self, PyObject *arg)
224{
225 PyObject *return_value = NULL;
226 const char *s;
227
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300228 if (!PyArg_Parse(arg, "s:exprboolean", &s)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300229 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300230 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300231 return_value = _tkinter_tkapp_exprboolean_impl(self, s);
232
233exit:
234 return return_value;
235}
236
237PyDoc_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
245PyDoc_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
253PyDoc_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
261static PyObject *
262_tkinter_tkapp_createcommand_impl(TkappObject *self, const char *name,
263 PyObject *func);
264
265static 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",
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300273 &name, &func)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300274 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300275 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300276 return_value = _tkinter_tkapp_createcommand_impl(self, name, func);
277
278exit:
279 return return_value;
280}
281
282PyDoc_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
290static PyObject *
291_tkinter_tkapp_deletecommand_impl(TkappObject *self, const char *name);
292
293static PyObject *
294_tkinter_tkapp_deletecommand(TkappObject *self, PyObject *arg)
295{
296 PyObject *return_value = NULL;
297 const char *name;
298
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300299 if (!PyArg_Parse(arg, "s:deletecommand", &name)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300300 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300301 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300302 return_value = _tkinter_tkapp_deletecommand_impl(self, name);
303
304exit:
305 return return_value;
306}
307
308#if defined(HAVE_CREATEFILEHANDLER)
309
310PyDoc_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
318static PyObject *
319_tkinter_tkapp_createfilehandler_impl(TkappObject *self, PyObject *file,
320 int mask, PyObject *func);
321
322static 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",
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300331 &file, &mask, &func)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300332 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300333 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300334 return_value = _tkinter_tkapp_createfilehandler_impl(self, file, mask, func);
335
336exit:
337 return return_value;
338}
339
340#endif /* defined(HAVE_CREATEFILEHANDLER) */
341
342#if defined(HAVE_CREATEFILEHANDLER)
343
344PyDoc_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
354PyDoc_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
362static PyObject *
363_tkinter_tktimertoken_deletetimerhandler_impl(TkttObject *self);
364
365static PyObject *
366_tkinter_tktimertoken_deletetimerhandler(TkttObject *self, PyObject *Py_UNUSED(ignored))
367{
368 return _tkinter_tktimertoken_deletetimerhandler_impl(self);
369}
370
371PyDoc_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
379static PyObject *
380_tkinter_tkapp_createtimerhandler_impl(TkappObject *self, int milliseconds,
381 PyObject *func);
382
383static 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",
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300391 &milliseconds, &func)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300392 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300393 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300394 return_value = _tkinter_tkapp_createtimerhandler_impl(self, milliseconds, func);
395
396exit:
397 return return_value;
398}
399
400PyDoc_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
408static PyObject *
409_tkinter_tkapp_mainloop_impl(TkappObject *self, int threshold);
410
411static 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",
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300418 &threshold)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300419 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300420 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300421 return_value = _tkinter_tkapp_mainloop_impl(self, threshold);
422
423exit:
424 return return_value;
425}
426
427PyDoc_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
435static PyObject *
436_tkinter_tkapp_dooneevent_impl(TkappObject *self, int flags);
437
438static 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",
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300445 &flags)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300446 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300447 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300448 return_value = _tkinter_tkapp_dooneevent_impl(self, flags);
449
450exit:
451 return return_value;
452}
453
454PyDoc_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
462static PyObject *
463_tkinter_tkapp_quit_impl(TkappObject *self);
464
465static PyObject *
466_tkinter_tkapp_quit(TkappObject *self, PyObject *Py_UNUSED(ignored))
467{
468 return _tkinter_tkapp_quit_impl(self);
469}
470
471PyDoc_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
479static PyObject *
480_tkinter_tkapp_interpaddr_impl(TkappObject *self);
481
482static PyObject *
483_tkinter_tkapp_interpaddr(TkappObject *self, PyObject *Py_UNUSED(ignored))
484{
485 return _tkinter_tkapp_interpaddr_impl(self);
486}
487
488PyDoc_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
496static PyObject *
497_tkinter_tkapp_loadtk_impl(TkappObject *self);
498
499static PyObject *
500_tkinter_tkapp_loadtk(TkappObject *self, PyObject *Py_UNUSED(ignored))
501{
502 return _tkinter_tkapp_loadtk_impl(self);
503}
504
505PyDoc_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
513static PyObject *
514_tkinter_tkapp_willdispatch_impl(TkappObject *self);
515
516static PyObject *
517_tkinter_tkapp_willdispatch(TkappObject *self, PyObject *Py_UNUSED(ignored))
518{
519 return _tkinter_tkapp_willdispatch_impl(self);
520}
521
522PyDoc_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
530PyDoc_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
548static PyObject *
Serhiy Storchaka1a2b24f2016-07-07 17:35:15 +0300549_tkinter_create_impl(PyObject *module, const char *screenName,
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300550 const char *baseName, const char *className,
551 int interactive, int wantobjects, int wantTk, int sync,
552 const char *use);
553
554static PyObject *
Serhiy Storchaka1a2b24f2016-07-07 17:35:15 +0300555_tkinter_create(PyObject *module, PyObject *args)
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300556{
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",
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300568 &screenName, &baseName, &className, &interactive, &wantobjects, &wantTk, &sync, &use)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300569 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300570 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300571 return_value = _tkinter_create_impl(module, screenName, baseName, className, interactive, wantobjects, wantTk, sync, use);
572
573exit:
574 return return_value;
575}
576
577PyDoc_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
588static PyObject *
Serhiy Storchaka1a2b24f2016-07-07 17:35:15 +0300589_tkinter_setbusywaitinterval_impl(PyObject *module, int new_val);
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300590
591static PyObject *
Serhiy Storchaka1a2b24f2016-07-07 17:35:15 +0300592_tkinter_setbusywaitinterval(PyObject *module, PyObject *arg)
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300593{
594 PyObject *return_value = NULL;
595 int new_val;
596
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300597 if (!PyArg_Parse(arg, "i:setbusywaitinterval", &new_val)) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300598 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300599 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300600 return_value = _tkinter_setbusywaitinterval_impl(module, new_val);
601
602exit:
603 return return_value;
604}
605
606PyDoc_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
615static int
Serhiy Storchaka1a2b24f2016-07-07 17:35:15 +0300616_tkinter_getbusywaitinterval_impl(PyObject *module);
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300617
618static PyObject *
Serhiy Storchaka1a2b24f2016-07-07 17:35:15 +0300619_tkinter_getbusywaitinterval(PyObject *module, PyObject *Py_UNUSED(ignored))
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300620{
621 PyObject *return_value = NULL;
622 int _return_value;
623
624 _return_value = _tkinter_getbusywaitinterval_impl(module);
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300625 if ((_return_value == -1) && PyErr_Occurred()) {
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300626 goto exit;
Serhiy Storchaka5dee6552016-06-09 16:16:06 +0300627 }
Serhiy Storchaka5abdf4842015-05-03 15:49:47 +0300628 return_value = PyLong_FromLong((long)_return_value);
629
630exit:
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) */
Serhiy Storchaka2954f832016-07-07 18:20:03 +0300641/*[clinic end generated code: output=836c578b71d69097 input=a9049054013a1b77]*/