1 /*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 4.19.16
5 *
6 * Copyright: (c) 2018 by Total Control Software
7 * License: wxWindows License
8 */
9
10 #include "sipAPI_core.h"
11
12 #include <wx/textentry.h>
13
14 #include <wx/gdicmn.h>
15 #include <wx/textcompleter.h>
16
17
18 PyDoc_STRVAR(doc_wxTextEntry_SetMargins, "SetMargins(pt) -> bool\n"
19 "SetMargins(left, top=-1) -> bool\n"
20 "\n"
21 "Attempts to set the control margins.\n"
22 "");
23
24 extern "C" {static PyObject *meth_wxTextEntry_SetMargins(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_SetMargins(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)25 static PyObject *meth_wxTextEntry_SetMargins(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
26 {
27 PyObject *sipParseErr = SIP_NULLPTR;
28
29 {
30 const ::wxPoint* pt;
31 int ptState = 0;
32 ::wxTextEntry *sipCpp;
33
34 static const char *sipKwdList[] = {
35 sipName_pt,
36 };
37
38 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTextEntry, &sipCpp, sipType_wxPoint, &pt, &ptState))
39 {
40 bool sipRes;
41
42 PyErr_Clear();
43
44 Py_BEGIN_ALLOW_THREADS
45 sipRes = sipCpp->SetMargins(*pt);
46 Py_END_ALLOW_THREADS
47 sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
48
49 if (PyErr_Occurred())
50 return 0;
51
52 return PyBool_FromLong(sipRes);
53 }
54 }
55
56 {
57 ::wxCoord left;
58 ::wxCoord top = -1;
59 ::wxTextEntry *sipCpp;
60
61 static const char *sipKwdList[] = {
62 sipName_left,
63 sipName_top,
64 };
65
66 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi|i", &sipSelf, sipType_wxTextEntry, &sipCpp, &left, &top))
67 {
68 bool sipRes;
69
70 PyErr_Clear();
71
72 Py_BEGIN_ALLOW_THREADS
73 sipRes = sipCpp->SetMargins(left,top);
74 Py_END_ALLOW_THREADS
75
76 if (PyErr_Occurred())
77 return 0;
78
79 return PyBool_FromLong(sipRes);
80 }
81 }
82
83 /* Raise an exception if the arguments couldn't be parsed. */
84 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SetMargins, SIP_NULLPTR);
85
86 return SIP_NULLPTR;
87 }
88
89
90 PyDoc_STRVAR(doc_wxTextEntry_AppendText, "AppendText(text)\n"
91 "\n"
92 "Appends the text to the end of the text control.");
93
94 extern "C" {static PyObject *meth_wxTextEntry_AppendText(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_AppendText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)95 static PyObject *meth_wxTextEntry_AppendText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
96 {
97 PyObject *sipParseErr = SIP_NULLPTR;
98
99 {
100 const ::wxString* text;
101 int textState = 0;
102 ::wxTextEntry *sipCpp;
103
104 static const char *sipKwdList[] = {
105 sipName_text,
106 };
107
108 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTextEntry, &sipCpp, sipType_wxString,&text, &textState))
109 {
110 PyErr_Clear();
111
112 Py_BEGIN_ALLOW_THREADS
113 sipCpp->AppendText(*text);
114 Py_END_ALLOW_THREADS
115 sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
116
117 if (PyErr_Occurred())
118 return 0;
119
120 Py_INCREF(Py_None);
121 return Py_None;
122 }
123 }
124
125 /* Raise an exception if the arguments couldn't be parsed. */
126 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_AppendText, SIP_NULLPTR);
127
128 return SIP_NULLPTR;
129 }
130
131
132 PyDoc_STRVAR(doc_wxTextEntry_AutoComplete, "AutoComplete(choices) -> bool\n"
133 "AutoComplete(completer) -> bool\n"
134 "\n"
135 "Call this function to enable auto-completion of the text typed in a\n"
136 "single-line text control using the given choices.\n"
137 "");
138
139 extern "C" {static PyObject *meth_wxTextEntry_AutoComplete(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_AutoComplete(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)140 static PyObject *meth_wxTextEntry_AutoComplete(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
141 {
142 PyObject *sipParseErr = SIP_NULLPTR;
143
144 {
145 const ::wxArrayString* choices;
146 int choicesState = 0;
147 ::wxTextEntry *sipCpp;
148
149 static const char *sipKwdList[] = {
150 sipName_choices,
151 };
152
153 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTextEntry, &sipCpp, sipType_wxArrayString,&choices, &choicesState))
154 {
155 bool sipRes;
156
157 PyErr_Clear();
158
159 Py_BEGIN_ALLOW_THREADS
160 sipRes = sipCpp->AutoComplete(*choices);
161 Py_END_ALLOW_THREADS
162 sipReleaseType(const_cast< ::wxArrayString *>(choices),sipType_wxArrayString,choicesState);
163
164 if (PyErr_Occurred())
165 return 0;
166
167 return PyBool_FromLong(sipRes);
168 }
169 }
170
171 {
172 ::wxTextCompleter* completer;
173 ::wxTextEntry *sipCpp;
174
175 static const char *sipKwdList[] = {
176 sipName_completer,
177 };
178
179 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxTextEntry, &sipCpp, sipType_wxTextCompleter, &completer))
180 {
181 bool sipRes;
182
183 PyErr_Clear();
184
185 Py_BEGIN_ALLOW_THREADS
186 sipRes = sipCpp->AutoComplete(completer);
187 Py_END_ALLOW_THREADS
188
189 if (PyErr_Occurred())
190 return 0;
191
192 return PyBool_FromLong(sipRes);
193 }
194 }
195
196 /* Raise an exception if the arguments couldn't be parsed. */
197 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_AutoComplete, SIP_NULLPTR);
198
199 return SIP_NULLPTR;
200 }
201
202
203 PyDoc_STRVAR(doc_wxTextEntry_AutoCompleteFileNames, "AutoCompleteFileNames() -> bool\n"
204 "\n"
205 "Call this function to enable auto-completion of the text typed in a\n"
206 "single-line text control using all valid file system paths.");
207
208 extern "C" {static PyObject *meth_wxTextEntry_AutoCompleteFileNames(PyObject *, PyObject *);}
meth_wxTextEntry_AutoCompleteFileNames(PyObject * sipSelf,PyObject * sipArgs)209 static PyObject *meth_wxTextEntry_AutoCompleteFileNames(PyObject *sipSelf, PyObject *sipArgs)
210 {
211 PyObject *sipParseErr = SIP_NULLPTR;
212
213 {
214 ::wxTextEntry *sipCpp;
215
216 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
217 {
218 bool sipRes;
219
220 PyErr_Clear();
221
222 Py_BEGIN_ALLOW_THREADS
223 sipRes = sipCpp->AutoCompleteFileNames();
224 Py_END_ALLOW_THREADS
225
226 if (PyErr_Occurred())
227 return 0;
228
229 return PyBool_FromLong(sipRes);
230 }
231 }
232
233 /* Raise an exception if the arguments couldn't be parsed. */
234 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_AutoCompleteFileNames, SIP_NULLPTR);
235
236 return SIP_NULLPTR;
237 }
238
239
240 PyDoc_STRVAR(doc_wxTextEntry_AutoCompleteDirectories, "AutoCompleteDirectories() -> bool\n"
241 "\n"
242 "Call this function to enable auto-completion of the text using the\n"
243 "file system directories.");
244
245 extern "C" {static PyObject *meth_wxTextEntry_AutoCompleteDirectories(PyObject *, PyObject *);}
meth_wxTextEntry_AutoCompleteDirectories(PyObject * sipSelf,PyObject * sipArgs)246 static PyObject *meth_wxTextEntry_AutoCompleteDirectories(PyObject *sipSelf, PyObject *sipArgs)
247 {
248 PyObject *sipParseErr = SIP_NULLPTR;
249
250 {
251 ::wxTextEntry *sipCpp;
252
253 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
254 {
255 bool sipRes;
256
257 PyErr_Clear();
258
259 Py_BEGIN_ALLOW_THREADS
260 sipRes = sipCpp->AutoCompleteDirectories();
261 Py_END_ALLOW_THREADS
262
263 if (PyErr_Occurred())
264 return 0;
265
266 return PyBool_FromLong(sipRes);
267 }
268 }
269
270 /* Raise an exception if the arguments couldn't be parsed. */
271 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_AutoCompleteDirectories, SIP_NULLPTR);
272
273 return SIP_NULLPTR;
274 }
275
276
277 PyDoc_STRVAR(doc_wxTextEntry_CanCopy, "CanCopy() -> bool\n"
278 "\n"
279 "Returns true if the selection can be copied to the clipboard.");
280
281 extern "C" {static PyObject *meth_wxTextEntry_CanCopy(PyObject *, PyObject *);}
meth_wxTextEntry_CanCopy(PyObject * sipSelf,PyObject * sipArgs)282 static PyObject *meth_wxTextEntry_CanCopy(PyObject *sipSelf, PyObject *sipArgs)
283 {
284 PyObject *sipParseErr = SIP_NULLPTR;
285 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
286
287 {
288 const ::wxTextEntry *sipCpp;
289
290 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
291 {
292 bool sipRes;
293
294 PyErr_Clear();
295
296 Py_BEGIN_ALLOW_THREADS
297 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTextEntry::CanCopy() : sipCpp->CanCopy());
298 Py_END_ALLOW_THREADS
299
300 if (PyErr_Occurred())
301 return 0;
302
303 return PyBool_FromLong(sipRes);
304 }
305 }
306
307 /* Raise an exception if the arguments couldn't be parsed. */
308 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_CanCopy, SIP_NULLPTR);
309
310 return SIP_NULLPTR;
311 }
312
313
314 PyDoc_STRVAR(doc_wxTextEntry_CanCut, "CanCut() -> bool\n"
315 "\n"
316 "Returns true if the selection can be cut to the clipboard.");
317
318 extern "C" {static PyObject *meth_wxTextEntry_CanCut(PyObject *, PyObject *);}
meth_wxTextEntry_CanCut(PyObject * sipSelf,PyObject * sipArgs)319 static PyObject *meth_wxTextEntry_CanCut(PyObject *sipSelf, PyObject *sipArgs)
320 {
321 PyObject *sipParseErr = SIP_NULLPTR;
322 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
323
324 {
325 const ::wxTextEntry *sipCpp;
326
327 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
328 {
329 bool sipRes;
330
331 PyErr_Clear();
332
333 Py_BEGIN_ALLOW_THREADS
334 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTextEntry::CanCut() : sipCpp->CanCut());
335 Py_END_ALLOW_THREADS
336
337 if (PyErr_Occurred())
338 return 0;
339
340 return PyBool_FromLong(sipRes);
341 }
342 }
343
344 /* Raise an exception if the arguments couldn't be parsed. */
345 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_CanCut, SIP_NULLPTR);
346
347 return SIP_NULLPTR;
348 }
349
350
351 PyDoc_STRVAR(doc_wxTextEntry_CanPaste, "CanPaste() -> bool\n"
352 "\n"
353 "Returns true if the contents of the clipboard can be pasted into the\n"
354 "text control.");
355
356 extern "C" {static PyObject *meth_wxTextEntry_CanPaste(PyObject *, PyObject *);}
meth_wxTextEntry_CanPaste(PyObject * sipSelf,PyObject * sipArgs)357 static PyObject *meth_wxTextEntry_CanPaste(PyObject *sipSelf, PyObject *sipArgs)
358 {
359 PyObject *sipParseErr = SIP_NULLPTR;
360 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
361
362 {
363 const ::wxTextEntry *sipCpp;
364
365 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
366 {
367 bool sipRes;
368
369 PyErr_Clear();
370
371 Py_BEGIN_ALLOW_THREADS
372 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTextEntry::CanPaste() : sipCpp->CanPaste());
373 Py_END_ALLOW_THREADS
374
375 if (PyErr_Occurred())
376 return 0;
377
378 return PyBool_FromLong(sipRes);
379 }
380 }
381
382 /* Raise an exception if the arguments couldn't be parsed. */
383 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_CanPaste, SIP_NULLPTR);
384
385 return SIP_NULLPTR;
386 }
387
388
389 PyDoc_STRVAR(doc_wxTextEntry_CanRedo, "CanRedo() -> bool\n"
390 "\n"
391 "Returns true if there is a redo facility available and the last\n"
392 "operation can be redone.");
393
394 extern "C" {static PyObject *meth_wxTextEntry_CanRedo(PyObject *, PyObject *);}
meth_wxTextEntry_CanRedo(PyObject * sipSelf,PyObject * sipArgs)395 static PyObject *meth_wxTextEntry_CanRedo(PyObject *sipSelf, PyObject *sipArgs)
396 {
397 PyObject *sipParseErr = SIP_NULLPTR;
398 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
399
400 {
401 const ::wxTextEntry *sipCpp;
402
403 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
404 {
405 bool sipRes;
406
407 PyErr_Clear();
408
409 Py_BEGIN_ALLOW_THREADS
410 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTextEntry::CanRedo() : sipCpp->CanRedo());
411 Py_END_ALLOW_THREADS
412
413 if (PyErr_Occurred())
414 return 0;
415
416 return PyBool_FromLong(sipRes);
417 }
418 }
419
420 /* Raise an exception if the arguments couldn't be parsed. */
421 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_CanRedo, SIP_NULLPTR);
422
423 return SIP_NULLPTR;
424 }
425
426
427 PyDoc_STRVAR(doc_wxTextEntry_CanUndo, "CanUndo() -> bool\n"
428 "\n"
429 "Returns true if there is an undo facility available and the last\n"
430 "operation can be undone.");
431
432 extern "C" {static PyObject *meth_wxTextEntry_CanUndo(PyObject *, PyObject *);}
meth_wxTextEntry_CanUndo(PyObject * sipSelf,PyObject * sipArgs)433 static PyObject *meth_wxTextEntry_CanUndo(PyObject *sipSelf, PyObject *sipArgs)
434 {
435 PyObject *sipParseErr = SIP_NULLPTR;
436 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
437
438 {
439 const ::wxTextEntry *sipCpp;
440
441 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
442 {
443 bool sipRes;
444
445 PyErr_Clear();
446
447 Py_BEGIN_ALLOW_THREADS
448 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTextEntry::CanUndo() : sipCpp->CanUndo());
449 Py_END_ALLOW_THREADS
450
451 if (PyErr_Occurred())
452 return 0;
453
454 return PyBool_FromLong(sipRes);
455 }
456 }
457
458 /* Raise an exception if the arguments couldn't be parsed. */
459 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_CanUndo, SIP_NULLPTR);
460
461 return SIP_NULLPTR;
462 }
463
464
465 PyDoc_STRVAR(doc_wxTextEntry_ChangeValue, "ChangeValue(value)\n"
466 "\n"
467 "Sets the new text control value.");
468
469 extern "C" {static PyObject *meth_wxTextEntry_ChangeValue(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_ChangeValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)470 static PyObject *meth_wxTextEntry_ChangeValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
471 {
472 PyObject *sipParseErr = SIP_NULLPTR;
473
474 {
475 const ::wxString* value;
476 int valueState = 0;
477 ::wxTextEntry *sipCpp;
478
479 static const char *sipKwdList[] = {
480 sipName_value,
481 };
482
483 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTextEntry, &sipCpp, sipType_wxString,&value, &valueState))
484 {
485 PyErr_Clear();
486
487 Py_BEGIN_ALLOW_THREADS
488 sipCpp->ChangeValue(*value);
489 Py_END_ALLOW_THREADS
490 sipReleaseType(const_cast< ::wxString *>(value),sipType_wxString,valueState);
491
492 if (PyErr_Occurred())
493 return 0;
494
495 Py_INCREF(Py_None);
496 return Py_None;
497 }
498 }
499
500 /* Raise an exception if the arguments couldn't be parsed. */
501 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_ChangeValue, SIP_NULLPTR);
502
503 return SIP_NULLPTR;
504 }
505
506
507 PyDoc_STRVAR(doc_wxTextEntry_Clear, "Clear()\n"
508 "\n"
509 "Clears the text in the control.");
510
511 extern "C" {static PyObject *meth_wxTextEntry_Clear(PyObject *, PyObject *);}
meth_wxTextEntry_Clear(PyObject * sipSelf,PyObject * sipArgs)512 static PyObject *meth_wxTextEntry_Clear(PyObject *sipSelf, PyObject *sipArgs)
513 {
514 PyObject *sipParseErr = SIP_NULLPTR;
515
516 {
517 ::wxTextEntry *sipCpp;
518
519 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
520 {
521 PyErr_Clear();
522
523 Py_BEGIN_ALLOW_THREADS
524 sipCpp->Clear();
525 Py_END_ALLOW_THREADS
526
527 if (PyErr_Occurred())
528 return 0;
529
530 Py_INCREF(Py_None);
531 return Py_None;
532 }
533 }
534
535 /* Raise an exception if the arguments couldn't be parsed. */
536 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_Clear, SIP_NULLPTR);
537
538 return SIP_NULLPTR;
539 }
540
541
542 PyDoc_STRVAR(doc_wxTextEntry_Copy, "Copy()\n"
543 "\n"
544 "Copies the selected text to the clipboard.");
545
546 extern "C" {static PyObject *meth_wxTextEntry_Copy(PyObject *, PyObject *);}
meth_wxTextEntry_Copy(PyObject * sipSelf,PyObject * sipArgs)547 static PyObject *meth_wxTextEntry_Copy(PyObject *sipSelf, PyObject *sipArgs)
548 {
549 PyObject *sipParseErr = SIP_NULLPTR;
550 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
551
552 {
553 ::wxTextEntry *sipCpp;
554
555 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
556 {
557 PyErr_Clear();
558
559 Py_BEGIN_ALLOW_THREADS
560 (sipSelfWasArg ? sipCpp-> ::wxTextEntry::Copy() : sipCpp->Copy());
561 Py_END_ALLOW_THREADS
562
563 if (PyErr_Occurred())
564 return 0;
565
566 Py_INCREF(Py_None);
567 return Py_None;
568 }
569 }
570
571 /* Raise an exception if the arguments couldn't be parsed. */
572 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_Copy, SIP_NULLPTR);
573
574 return SIP_NULLPTR;
575 }
576
577
578 PyDoc_STRVAR(doc_wxTextEntry_Cut, "Cut()\n"
579 "\n"
580 "Copies the selected text to the clipboard and removes it from the\n"
581 "control.");
582
583 extern "C" {static PyObject *meth_wxTextEntry_Cut(PyObject *, PyObject *);}
meth_wxTextEntry_Cut(PyObject * sipSelf,PyObject * sipArgs)584 static PyObject *meth_wxTextEntry_Cut(PyObject *sipSelf, PyObject *sipArgs)
585 {
586 PyObject *sipParseErr = SIP_NULLPTR;
587 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
588
589 {
590 ::wxTextEntry *sipCpp;
591
592 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
593 {
594 PyErr_Clear();
595
596 Py_BEGIN_ALLOW_THREADS
597 (sipSelfWasArg ? sipCpp-> ::wxTextEntry::Cut() : sipCpp->Cut());
598 Py_END_ALLOW_THREADS
599
600 if (PyErr_Occurred())
601 return 0;
602
603 Py_INCREF(Py_None);
604 return Py_None;
605 }
606 }
607
608 /* Raise an exception if the arguments couldn't be parsed. */
609 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_Cut, SIP_NULLPTR);
610
611 return SIP_NULLPTR;
612 }
613
614
615 PyDoc_STRVAR(doc_wxTextEntry_GetInsertionPoint, "GetInsertionPoint() -> long\n"
616 "\n"
617 "Returns the insertion point, or cursor, position.");
618
619 extern "C" {static PyObject *meth_wxTextEntry_GetInsertionPoint(PyObject *, PyObject *);}
meth_wxTextEntry_GetInsertionPoint(PyObject * sipSelf,PyObject * sipArgs)620 static PyObject *meth_wxTextEntry_GetInsertionPoint(PyObject *sipSelf, PyObject *sipArgs)
621 {
622 PyObject *sipParseErr = SIP_NULLPTR;
623
624 {
625 const ::wxTextEntry *sipCpp;
626
627 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
628 {
629 long sipRes;
630
631 PyErr_Clear();
632
633 Py_BEGIN_ALLOW_THREADS
634 sipRes = sipCpp->GetInsertionPoint();
635 Py_END_ALLOW_THREADS
636
637 if (PyErr_Occurred())
638 return 0;
639
640 return PyLong_FromLong(sipRes);
641 }
642 }
643
644 /* Raise an exception if the arguments couldn't be parsed. */
645 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_GetInsertionPoint, SIP_NULLPTR);
646
647 return SIP_NULLPTR;
648 }
649
650
651 PyDoc_STRVAR(doc_wxTextEntry_GetLastPosition, "GetLastPosition() -> TextPos\n"
652 "\n"
653 "Returns the zero based index of the last position in the text control,\n"
654 "which is equal to the number of characters in the control.");
655
656 extern "C" {static PyObject *meth_wxTextEntry_GetLastPosition(PyObject *, PyObject *);}
meth_wxTextEntry_GetLastPosition(PyObject * sipSelf,PyObject * sipArgs)657 static PyObject *meth_wxTextEntry_GetLastPosition(PyObject *sipSelf, PyObject *sipArgs)
658 {
659 PyObject *sipParseErr = SIP_NULLPTR;
660
661 {
662 const ::wxTextEntry *sipCpp;
663
664 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
665 {
666 ::wxTextPos sipRes;
667
668 PyErr_Clear();
669
670 Py_BEGIN_ALLOW_THREADS
671 sipRes = sipCpp->GetLastPosition();
672 Py_END_ALLOW_THREADS
673
674 if (PyErr_Occurred())
675 return 0;
676
677 return PyLong_FromLong(sipRes);
678 }
679 }
680
681 /* Raise an exception if the arguments couldn't be parsed. */
682 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_GetLastPosition, SIP_NULLPTR);
683
684 return SIP_NULLPTR;
685 }
686
687
688 PyDoc_STRVAR(doc_wxTextEntry_GetRange, "GetRange(from_, to_) -> String\n"
689 "\n"
690 "Returns the string containing the text starting in the positions from\n"
691 "and up to to in the control.");
692
693 extern "C" {static PyObject *meth_wxTextEntry_GetRange(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_GetRange(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)694 static PyObject *meth_wxTextEntry_GetRange(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
695 {
696 PyObject *sipParseErr = SIP_NULLPTR;
697
698 {
699 long from_;
700 long to_;
701 const ::wxTextEntry *sipCpp;
702
703 static const char *sipKwdList[] = {
704 sipName_from_,
705 sipName_to_,
706 };
707
708 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bll", &sipSelf, sipType_wxTextEntry, &sipCpp, &from_, &to_))
709 {
710 ::wxString*sipRes;
711
712 PyErr_Clear();
713
714 Py_BEGIN_ALLOW_THREADS
715 sipRes = new ::wxString(sipCpp->GetRange(from_,to_));
716 Py_END_ALLOW_THREADS
717
718 if (PyErr_Occurred())
719 return 0;
720
721 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
722 }
723 }
724
725 /* Raise an exception if the arguments couldn't be parsed. */
726 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_GetRange, SIP_NULLPTR);
727
728 return SIP_NULLPTR;
729 }
730
731
732 PyDoc_STRVAR(doc_wxTextEntry_GetSelection, "GetSelection() -> (from, to)\n"
733 "\n"
734 "Gets the current selection span.");
735
736 extern "C" {static PyObject *meth_wxTextEntry_GetSelection(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_GetSelection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)737 static PyObject *meth_wxTextEntry_GetSelection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
738 {
739 PyObject *sipParseErr = SIP_NULLPTR;
740
741 {
742 long from;
743 long to;
744 const ::wxTextEntry *sipCpp;
745
746 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
747 {
748 PyErr_Clear();
749
750 Py_BEGIN_ALLOW_THREADS
751 sipCpp->GetSelection(&from,&to);
752 Py_END_ALLOW_THREADS
753
754 if (PyErr_Occurred())
755 return 0;
756
757 return sipBuildResult(0,"(ll)",from,to);
758 }
759 }
760
761 /* Raise an exception if the arguments couldn't be parsed. */
762 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_GetSelection, SIP_NULLPTR);
763
764 return SIP_NULLPTR;
765 }
766
767
768 PyDoc_STRVAR(doc_wxTextEntry_GetStringSelection, "GetStringSelection() -> String\n"
769 "\n"
770 "Gets the text currently selected in the control.");
771
772 extern "C" {static PyObject *meth_wxTextEntry_GetStringSelection(PyObject *, PyObject *);}
meth_wxTextEntry_GetStringSelection(PyObject * sipSelf,PyObject * sipArgs)773 static PyObject *meth_wxTextEntry_GetStringSelection(PyObject *sipSelf, PyObject *sipArgs)
774 {
775 PyObject *sipParseErr = SIP_NULLPTR;
776
777 {
778 const ::wxTextEntry *sipCpp;
779
780 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
781 {
782 ::wxString*sipRes;
783
784 PyErr_Clear();
785
786 Py_BEGIN_ALLOW_THREADS
787 sipRes = new ::wxString(sipCpp->GetStringSelection());
788 Py_END_ALLOW_THREADS
789
790 if (PyErr_Occurred())
791 return 0;
792
793 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
794 }
795 }
796
797 /* Raise an exception if the arguments couldn't be parsed. */
798 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_GetStringSelection, SIP_NULLPTR);
799
800 return SIP_NULLPTR;
801 }
802
803
804 PyDoc_STRVAR(doc_wxTextEntry_GetValue, "GetValue() -> String\n"
805 "\n"
806 "Gets the contents of the control.");
807
808 extern "C" {static PyObject *meth_wxTextEntry_GetValue(PyObject *, PyObject *);}
meth_wxTextEntry_GetValue(PyObject * sipSelf,PyObject * sipArgs)809 static PyObject *meth_wxTextEntry_GetValue(PyObject *sipSelf, PyObject *sipArgs)
810 {
811 PyObject *sipParseErr = SIP_NULLPTR;
812
813 {
814 const ::wxTextEntry *sipCpp;
815
816 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
817 {
818 ::wxString*sipRes;
819
820 PyErr_Clear();
821
822 Py_BEGIN_ALLOW_THREADS
823 sipRes = new ::wxString(sipCpp->GetValue());
824 Py_END_ALLOW_THREADS
825
826 if (PyErr_Occurred())
827 return 0;
828
829 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
830 }
831 }
832
833 /* Raise an exception if the arguments couldn't be parsed. */
834 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_GetValue, SIP_NULLPTR);
835
836 return SIP_NULLPTR;
837 }
838
839
840 PyDoc_STRVAR(doc_wxTextEntry_IsEditable, "IsEditable() -> bool\n"
841 "\n"
842 "Returns true if the controls contents may be edited by user (note that\n"
843 "it always can be changed by the program).");
844
845 extern "C" {static PyObject *meth_wxTextEntry_IsEditable(PyObject *, PyObject *);}
meth_wxTextEntry_IsEditable(PyObject * sipSelf,PyObject * sipArgs)846 static PyObject *meth_wxTextEntry_IsEditable(PyObject *sipSelf, PyObject *sipArgs)
847 {
848 PyObject *sipParseErr = SIP_NULLPTR;
849
850 {
851 const ::wxTextEntry *sipCpp;
852
853 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
854 {
855 bool sipRes;
856
857 PyErr_Clear();
858
859 Py_BEGIN_ALLOW_THREADS
860 sipRes = sipCpp->IsEditable();
861 Py_END_ALLOW_THREADS
862
863 if (PyErr_Occurred())
864 return 0;
865
866 return PyBool_FromLong(sipRes);
867 }
868 }
869
870 /* Raise an exception if the arguments couldn't be parsed. */
871 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_IsEditable, SIP_NULLPTR);
872
873 return SIP_NULLPTR;
874 }
875
876
877 PyDoc_STRVAR(doc_wxTextEntry_IsEmpty, "IsEmpty() -> bool\n"
878 "\n"
879 "Returns true if the control is currently empty.");
880
881 extern "C" {static PyObject *meth_wxTextEntry_IsEmpty(PyObject *, PyObject *);}
meth_wxTextEntry_IsEmpty(PyObject * sipSelf,PyObject * sipArgs)882 static PyObject *meth_wxTextEntry_IsEmpty(PyObject *sipSelf, PyObject *sipArgs)
883 {
884 PyObject *sipParseErr = SIP_NULLPTR;
885
886 {
887 const ::wxTextEntry *sipCpp;
888
889 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
890 {
891 bool sipRes;
892
893 PyErr_Clear();
894
895 Py_BEGIN_ALLOW_THREADS
896 sipRes = sipCpp->IsEmpty();
897 Py_END_ALLOW_THREADS
898
899 if (PyErr_Occurred())
900 return 0;
901
902 return PyBool_FromLong(sipRes);
903 }
904 }
905
906 /* Raise an exception if the arguments couldn't be parsed. */
907 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_IsEmpty, SIP_NULLPTR);
908
909 return SIP_NULLPTR;
910 }
911
912
913 PyDoc_STRVAR(doc_wxTextEntry_Paste, "Paste()\n"
914 "\n"
915 "Pastes text from the clipboard to the text item.");
916
917 extern "C" {static PyObject *meth_wxTextEntry_Paste(PyObject *, PyObject *);}
meth_wxTextEntry_Paste(PyObject * sipSelf,PyObject * sipArgs)918 static PyObject *meth_wxTextEntry_Paste(PyObject *sipSelf, PyObject *sipArgs)
919 {
920 PyObject *sipParseErr = SIP_NULLPTR;
921 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
922
923 {
924 ::wxTextEntry *sipCpp;
925
926 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
927 {
928 PyErr_Clear();
929
930 Py_BEGIN_ALLOW_THREADS
931 (sipSelfWasArg ? sipCpp-> ::wxTextEntry::Paste() : sipCpp->Paste());
932 Py_END_ALLOW_THREADS
933
934 if (PyErr_Occurred())
935 return 0;
936
937 Py_INCREF(Py_None);
938 return Py_None;
939 }
940 }
941
942 /* Raise an exception if the arguments couldn't be parsed. */
943 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_Paste, SIP_NULLPTR);
944
945 return SIP_NULLPTR;
946 }
947
948
949 PyDoc_STRVAR(doc_wxTextEntry_Redo, "Redo()\n"
950 "\n"
951 "If there is a redo facility and the last operation can be redone,\n"
952 "redoes the last operation.");
953
954 extern "C" {static PyObject *meth_wxTextEntry_Redo(PyObject *, PyObject *);}
meth_wxTextEntry_Redo(PyObject * sipSelf,PyObject * sipArgs)955 static PyObject *meth_wxTextEntry_Redo(PyObject *sipSelf, PyObject *sipArgs)
956 {
957 PyObject *sipParseErr = SIP_NULLPTR;
958 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
959
960 {
961 ::wxTextEntry *sipCpp;
962
963 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
964 {
965 PyErr_Clear();
966
967 Py_BEGIN_ALLOW_THREADS
968 (sipSelfWasArg ? sipCpp-> ::wxTextEntry::Redo() : sipCpp->Redo());
969 Py_END_ALLOW_THREADS
970
971 if (PyErr_Occurred())
972 return 0;
973
974 Py_INCREF(Py_None);
975 return Py_None;
976 }
977 }
978
979 /* Raise an exception if the arguments couldn't be parsed. */
980 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_Redo, SIP_NULLPTR);
981
982 return SIP_NULLPTR;
983 }
984
985
986 PyDoc_STRVAR(doc_wxTextEntry_Remove, "Remove(from_, to_)\n"
987 "\n"
988 "Removes the text starting at the first given position up to (but not\n"
989 "including) the character at the last position.");
990
991 extern "C" {static PyObject *meth_wxTextEntry_Remove(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_Remove(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)992 static PyObject *meth_wxTextEntry_Remove(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
993 {
994 PyObject *sipParseErr = SIP_NULLPTR;
995
996 {
997 long from_;
998 long to_;
999 ::wxTextEntry *sipCpp;
1000
1001 static const char *sipKwdList[] = {
1002 sipName_from_,
1003 sipName_to_,
1004 };
1005
1006 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bll", &sipSelf, sipType_wxTextEntry, &sipCpp, &from_, &to_))
1007 {
1008 PyErr_Clear();
1009
1010 Py_BEGIN_ALLOW_THREADS
1011 sipCpp->Remove(from_,to_);
1012 Py_END_ALLOW_THREADS
1013
1014 if (PyErr_Occurred())
1015 return 0;
1016
1017 Py_INCREF(Py_None);
1018 return Py_None;
1019 }
1020 }
1021
1022 /* Raise an exception if the arguments couldn't be parsed. */
1023 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_Remove, SIP_NULLPTR);
1024
1025 return SIP_NULLPTR;
1026 }
1027
1028
1029 PyDoc_STRVAR(doc_wxTextEntry_Replace, "Replace(from_, to_, value)\n"
1030 "\n"
1031 "Replaces the text starting at the first position up to (but not\n"
1032 "including) the character at the last position with the given text.");
1033
1034 extern "C" {static PyObject *meth_wxTextEntry_Replace(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_Replace(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1035 static PyObject *meth_wxTextEntry_Replace(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1036 {
1037 PyObject *sipParseErr = SIP_NULLPTR;
1038
1039 {
1040 long from_;
1041 long to_;
1042 const ::wxString* value;
1043 int valueState = 0;
1044 ::wxTextEntry *sipCpp;
1045
1046 static const char *sipKwdList[] = {
1047 sipName_from_,
1048 sipName_to_,
1049 sipName_value,
1050 };
1051
1052 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BllJ1", &sipSelf, sipType_wxTextEntry, &sipCpp, &from_, &to_, sipType_wxString,&value, &valueState))
1053 {
1054 PyErr_Clear();
1055
1056 Py_BEGIN_ALLOW_THREADS
1057 sipCpp->Replace(from_,to_,*value);
1058 Py_END_ALLOW_THREADS
1059 sipReleaseType(const_cast< ::wxString *>(value),sipType_wxString,valueState);
1060
1061 if (PyErr_Occurred())
1062 return 0;
1063
1064 Py_INCREF(Py_None);
1065 return Py_None;
1066 }
1067 }
1068
1069 /* Raise an exception if the arguments couldn't be parsed. */
1070 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_Replace, SIP_NULLPTR);
1071
1072 return SIP_NULLPTR;
1073 }
1074
1075
1076 PyDoc_STRVAR(doc_wxTextEntry_SetEditable, "SetEditable(editable)\n"
1077 "\n"
1078 "Makes the text item editable or read-only, overriding the\n"
1079 "wxTE_READONLY flag.");
1080
1081 extern "C" {static PyObject *meth_wxTextEntry_SetEditable(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_SetEditable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1082 static PyObject *meth_wxTextEntry_SetEditable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1083 {
1084 PyObject *sipParseErr = SIP_NULLPTR;
1085
1086 {
1087 bool editable;
1088 ::wxTextEntry *sipCpp;
1089
1090 static const char *sipKwdList[] = {
1091 sipName_editable,
1092 };
1093
1094 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxTextEntry, &sipCpp, &editable))
1095 {
1096 PyErr_Clear();
1097
1098 Py_BEGIN_ALLOW_THREADS
1099 sipCpp->SetEditable(editable);
1100 Py_END_ALLOW_THREADS
1101
1102 if (PyErr_Occurred())
1103 return 0;
1104
1105 Py_INCREF(Py_None);
1106 return Py_None;
1107 }
1108 }
1109
1110 /* Raise an exception if the arguments couldn't be parsed. */
1111 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SetEditable, SIP_NULLPTR);
1112
1113 return SIP_NULLPTR;
1114 }
1115
1116
1117 PyDoc_STRVAR(doc_wxTextEntry_SetInsertionPoint, "SetInsertionPoint(pos)\n"
1118 "\n"
1119 "Sets the insertion point at the given position.");
1120
1121 extern "C" {static PyObject *meth_wxTextEntry_SetInsertionPoint(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_SetInsertionPoint(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1122 static PyObject *meth_wxTextEntry_SetInsertionPoint(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1123 {
1124 PyObject *sipParseErr = SIP_NULLPTR;
1125
1126 {
1127 long pos;
1128 ::wxTextEntry *sipCpp;
1129
1130 static const char *sipKwdList[] = {
1131 sipName_pos,
1132 };
1133
1134 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxTextEntry, &sipCpp, &pos))
1135 {
1136 PyErr_Clear();
1137
1138 Py_BEGIN_ALLOW_THREADS
1139 sipCpp->SetInsertionPoint(pos);
1140 Py_END_ALLOW_THREADS
1141
1142 if (PyErr_Occurred())
1143 return 0;
1144
1145 Py_INCREF(Py_None);
1146 return Py_None;
1147 }
1148 }
1149
1150 /* Raise an exception if the arguments couldn't be parsed. */
1151 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SetInsertionPoint, SIP_NULLPTR);
1152
1153 return SIP_NULLPTR;
1154 }
1155
1156
1157 PyDoc_STRVAR(doc_wxTextEntry_SetInsertionPointEnd, "SetInsertionPointEnd()\n"
1158 "\n"
1159 "Sets the insertion point at the end of the text control.");
1160
1161 extern "C" {static PyObject *meth_wxTextEntry_SetInsertionPointEnd(PyObject *, PyObject *);}
meth_wxTextEntry_SetInsertionPointEnd(PyObject * sipSelf,PyObject * sipArgs)1162 static PyObject *meth_wxTextEntry_SetInsertionPointEnd(PyObject *sipSelf, PyObject *sipArgs)
1163 {
1164 PyObject *sipParseErr = SIP_NULLPTR;
1165
1166 {
1167 ::wxTextEntry *sipCpp;
1168
1169 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
1170 {
1171 PyErr_Clear();
1172
1173 Py_BEGIN_ALLOW_THREADS
1174 sipCpp->SetInsertionPointEnd();
1175 Py_END_ALLOW_THREADS
1176
1177 if (PyErr_Occurred())
1178 return 0;
1179
1180 Py_INCREF(Py_None);
1181 return Py_None;
1182 }
1183 }
1184
1185 /* Raise an exception if the arguments couldn't be parsed. */
1186 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SetInsertionPointEnd, SIP_NULLPTR);
1187
1188 return SIP_NULLPTR;
1189 }
1190
1191
1192 PyDoc_STRVAR(doc_wxTextEntry_SetMaxLength, "SetMaxLength(len)\n"
1193 "\n"
1194 "This function sets the maximum number of characters the user can enter\n"
1195 "into the control.");
1196
1197 extern "C" {static PyObject *meth_wxTextEntry_SetMaxLength(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_SetMaxLength(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1198 static PyObject *meth_wxTextEntry_SetMaxLength(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1199 {
1200 PyObject *sipParseErr = SIP_NULLPTR;
1201
1202 {
1203 unsigned long len;
1204 ::wxTextEntry *sipCpp;
1205
1206 static const char *sipKwdList[] = {
1207 sipName_len,
1208 };
1209
1210 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bm", &sipSelf, sipType_wxTextEntry, &sipCpp, &len))
1211 {
1212 PyErr_Clear();
1213
1214 Py_BEGIN_ALLOW_THREADS
1215 sipCpp->SetMaxLength(len);
1216 Py_END_ALLOW_THREADS
1217
1218 if (PyErr_Occurred())
1219 return 0;
1220
1221 Py_INCREF(Py_None);
1222 return Py_None;
1223 }
1224 }
1225
1226 /* Raise an exception if the arguments couldn't be parsed. */
1227 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SetMaxLength, SIP_NULLPTR);
1228
1229 return SIP_NULLPTR;
1230 }
1231
1232
1233 PyDoc_STRVAR(doc_wxTextEntry_SetSelection, "SetSelection(from_, to_)\n"
1234 "\n"
1235 "Selects the text starting at the first position up to (but not\n"
1236 "including) the character at the last position.");
1237
1238 extern "C" {static PyObject *meth_wxTextEntry_SetSelection(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_SetSelection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1239 static PyObject *meth_wxTextEntry_SetSelection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1240 {
1241 PyObject *sipParseErr = SIP_NULLPTR;
1242
1243 {
1244 long from_;
1245 long to_;
1246 ::wxTextEntry *sipCpp;
1247
1248 static const char *sipKwdList[] = {
1249 sipName_from_,
1250 sipName_to_,
1251 };
1252
1253 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bll", &sipSelf, sipType_wxTextEntry, &sipCpp, &from_, &to_))
1254 {
1255 PyErr_Clear();
1256
1257 Py_BEGIN_ALLOW_THREADS
1258 sipCpp->SetSelection(from_,to_);
1259 Py_END_ALLOW_THREADS
1260
1261 if (PyErr_Occurred())
1262 return 0;
1263
1264 Py_INCREF(Py_None);
1265 return Py_None;
1266 }
1267 }
1268
1269 /* Raise an exception if the arguments couldn't be parsed. */
1270 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SetSelection, SIP_NULLPTR);
1271
1272 return SIP_NULLPTR;
1273 }
1274
1275
1276 PyDoc_STRVAR(doc_wxTextEntry_SelectAll, "SelectAll()\n"
1277 "\n"
1278 "Selects all text in the control.");
1279
1280 extern "C" {static PyObject *meth_wxTextEntry_SelectAll(PyObject *, PyObject *);}
meth_wxTextEntry_SelectAll(PyObject * sipSelf,PyObject * sipArgs)1281 static PyObject *meth_wxTextEntry_SelectAll(PyObject *sipSelf, PyObject *sipArgs)
1282 {
1283 PyObject *sipParseErr = SIP_NULLPTR;
1284
1285 {
1286 ::wxTextEntry *sipCpp;
1287
1288 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
1289 {
1290 PyErr_Clear();
1291
1292 Py_BEGIN_ALLOW_THREADS
1293 sipCpp->SelectAll();
1294 Py_END_ALLOW_THREADS
1295
1296 if (PyErr_Occurred())
1297 return 0;
1298
1299 Py_INCREF(Py_None);
1300 return Py_None;
1301 }
1302 }
1303
1304 /* Raise an exception if the arguments couldn't be parsed. */
1305 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SelectAll, SIP_NULLPTR);
1306
1307 return SIP_NULLPTR;
1308 }
1309
1310
1311 PyDoc_STRVAR(doc_wxTextEntry_SelectNone, "SelectNone()\n"
1312 "\n"
1313 "Deselects selected text in the control.");
1314
1315 extern "C" {static PyObject *meth_wxTextEntry_SelectNone(PyObject *, PyObject *);}
meth_wxTextEntry_SelectNone(PyObject * sipSelf,PyObject * sipArgs)1316 static PyObject *meth_wxTextEntry_SelectNone(PyObject *sipSelf, PyObject *sipArgs)
1317 {
1318 PyObject *sipParseErr = SIP_NULLPTR;
1319
1320 {
1321 ::wxTextEntry *sipCpp;
1322
1323 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
1324 {
1325 PyErr_Clear();
1326
1327 Py_BEGIN_ALLOW_THREADS
1328 sipCpp->SelectNone();
1329 Py_END_ALLOW_THREADS
1330
1331 if (PyErr_Occurred())
1332 return 0;
1333
1334 Py_INCREF(Py_None);
1335 return Py_None;
1336 }
1337 }
1338
1339 /* Raise an exception if the arguments couldn't be parsed. */
1340 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SelectNone, SIP_NULLPTR);
1341
1342 return SIP_NULLPTR;
1343 }
1344
1345
1346 PyDoc_STRVAR(doc_wxTextEntry_SetHint, "SetHint(hint) -> bool\n"
1347 "\n"
1348 "Sets a hint shown in an empty unfocused text control.");
1349
1350 extern "C" {static PyObject *meth_wxTextEntry_SetHint(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_SetHint(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1351 static PyObject *meth_wxTextEntry_SetHint(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1352 {
1353 PyObject *sipParseErr = SIP_NULLPTR;
1354
1355 {
1356 const ::wxString* hint;
1357 int hintState = 0;
1358 ::wxTextEntry *sipCpp;
1359
1360 static const char *sipKwdList[] = {
1361 sipName_hint,
1362 };
1363
1364 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTextEntry, &sipCpp, sipType_wxString,&hint, &hintState))
1365 {
1366 bool sipRes;
1367
1368 PyErr_Clear();
1369
1370 Py_BEGIN_ALLOW_THREADS
1371 sipRes = sipCpp->SetHint(*hint);
1372 Py_END_ALLOW_THREADS
1373 sipReleaseType(const_cast< ::wxString *>(hint),sipType_wxString,hintState);
1374
1375 if (PyErr_Occurred())
1376 return 0;
1377
1378 return PyBool_FromLong(sipRes);
1379 }
1380 }
1381
1382 /* Raise an exception if the arguments couldn't be parsed. */
1383 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SetHint, SIP_NULLPTR);
1384
1385 return SIP_NULLPTR;
1386 }
1387
1388
1389 PyDoc_STRVAR(doc_wxTextEntry_GetHint, "GetHint() -> String\n"
1390 "\n"
1391 "Returns the current hint string.");
1392
1393 extern "C" {static PyObject *meth_wxTextEntry_GetHint(PyObject *, PyObject *);}
meth_wxTextEntry_GetHint(PyObject * sipSelf,PyObject * sipArgs)1394 static PyObject *meth_wxTextEntry_GetHint(PyObject *sipSelf, PyObject *sipArgs)
1395 {
1396 PyObject *sipParseErr = SIP_NULLPTR;
1397
1398 {
1399 const ::wxTextEntry *sipCpp;
1400
1401 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
1402 {
1403 ::wxString*sipRes;
1404
1405 PyErr_Clear();
1406
1407 Py_BEGIN_ALLOW_THREADS
1408 sipRes = new ::wxString(sipCpp->GetHint());
1409 Py_END_ALLOW_THREADS
1410
1411 if (PyErr_Occurred())
1412 return 0;
1413
1414 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
1415 }
1416 }
1417
1418 /* Raise an exception if the arguments couldn't be parsed. */
1419 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_GetHint, SIP_NULLPTR);
1420
1421 return SIP_NULLPTR;
1422 }
1423
1424
1425 PyDoc_STRVAR(doc_wxTextEntry_GetMargins, "GetMargins() -> Point\n"
1426 "\n"
1427 "Returns the margins used by the control.");
1428
1429 extern "C" {static PyObject *meth_wxTextEntry_GetMargins(PyObject *, PyObject *);}
meth_wxTextEntry_GetMargins(PyObject * sipSelf,PyObject * sipArgs)1430 static PyObject *meth_wxTextEntry_GetMargins(PyObject *sipSelf, PyObject *sipArgs)
1431 {
1432 PyObject *sipParseErr = SIP_NULLPTR;
1433
1434 {
1435 const ::wxTextEntry *sipCpp;
1436
1437 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
1438 {
1439 ::wxPoint*sipRes;
1440
1441 PyErr_Clear();
1442
1443 Py_BEGIN_ALLOW_THREADS
1444 sipRes = new ::wxPoint(sipCpp->GetMargins());
1445 Py_END_ALLOW_THREADS
1446
1447 if (PyErr_Occurred())
1448 return 0;
1449
1450 return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
1451 }
1452 }
1453
1454 /* Raise an exception if the arguments couldn't be parsed. */
1455 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_GetMargins, SIP_NULLPTR);
1456
1457 return SIP_NULLPTR;
1458 }
1459
1460
1461 PyDoc_STRVAR(doc_wxTextEntry_SetValue, "SetValue(value)\n"
1462 "\n"
1463 "Sets the new text control value.");
1464
1465 extern "C" {static PyObject *meth_wxTextEntry_SetValue(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_SetValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1466 static PyObject *meth_wxTextEntry_SetValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1467 {
1468 PyObject *sipParseErr = SIP_NULLPTR;
1469
1470 {
1471 const ::wxString* value;
1472 int valueState = 0;
1473 ::wxTextEntry *sipCpp;
1474
1475 static const char *sipKwdList[] = {
1476 sipName_value,
1477 };
1478
1479 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTextEntry, &sipCpp, sipType_wxString,&value, &valueState))
1480 {
1481 PyErr_Clear();
1482
1483 Py_BEGIN_ALLOW_THREADS
1484 sipCpp->SetValue(*value);
1485 Py_END_ALLOW_THREADS
1486 sipReleaseType(const_cast< ::wxString *>(value),sipType_wxString,valueState);
1487
1488 if (PyErr_Occurred())
1489 return 0;
1490
1491 Py_INCREF(Py_None);
1492 return Py_None;
1493 }
1494 }
1495
1496 /* Raise an exception if the arguments couldn't be parsed. */
1497 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_SetValue, SIP_NULLPTR);
1498
1499 return SIP_NULLPTR;
1500 }
1501
1502
1503 PyDoc_STRVAR(doc_wxTextEntry_Undo, "Undo()\n"
1504 "\n"
1505 "If there is an undo facility and the last operation can be undone,\n"
1506 "undoes the last operation.");
1507
1508 extern "C" {static PyObject *meth_wxTextEntry_Undo(PyObject *, PyObject *);}
meth_wxTextEntry_Undo(PyObject * sipSelf,PyObject * sipArgs)1509 static PyObject *meth_wxTextEntry_Undo(PyObject *sipSelf, PyObject *sipArgs)
1510 {
1511 PyObject *sipParseErr = SIP_NULLPTR;
1512 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1513
1514 {
1515 ::wxTextEntry *sipCpp;
1516
1517 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTextEntry, &sipCpp))
1518 {
1519 PyErr_Clear();
1520
1521 Py_BEGIN_ALLOW_THREADS
1522 (sipSelfWasArg ? sipCpp-> ::wxTextEntry::Undo() : sipCpp->Undo());
1523 Py_END_ALLOW_THREADS
1524
1525 if (PyErr_Occurred())
1526 return 0;
1527
1528 Py_INCREF(Py_None);
1529 return Py_None;
1530 }
1531 }
1532
1533 /* Raise an exception if the arguments couldn't be parsed. */
1534 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_Undo, SIP_NULLPTR);
1535
1536 return SIP_NULLPTR;
1537 }
1538
1539
1540 PyDoc_STRVAR(doc_wxTextEntry_WriteText, "WriteText(text)\n"
1541 "\n"
1542 "Writes the text into the text control at the current insertion\n"
1543 "position.");
1544
1545 extern "C" {static PyObject *meth_wxTextEntry_WriteText(PyObject *, PyObject *, PyObject *);}
meth_wxTextEntry_WriteText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1546 static PyObject *meth_wxTextEntry_WriteText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1547 {
1548 PyObject *sipParseErr = SIP_NULLPTR;
1549
1550 {
1551 const ::wxString* text;
1552 int textState = 0;
1553 ::wxTextEntry *sipCpp;
1554
1555 static const char *sipKwdList[] = {
1556 sipName_text,
1557 };
1558
1559 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTextEntry, &sipCpp, sipType_wxString,&text, &textState))
1560 {
1561 PyErr_Clear();
1562
1563 Py_BEGIN_ALLOW_THREADS
1564 sipCpp->WriteText(*text);
1565 Py_END_ALLOW_THREADS
1566 sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1567
1568 if (PyErr_Occurred())
1569 return 0;
1570
1571 Py_INCREF(Py_None);
1572 return Py_None;
1573 }
1574 }
1575
1576 /* Raise an exception if the arguments couldn't be parsed. */
1577 sipNoMethod(sipParseErr, sipName_TextEntry, sipName_WriteText, SIP_NULLPTR);
1578
1579 return SIP_NULLPTR;
1580 }
1581
1582
1583 /* Call the instance's destructor. */
1584 extern "C" {static void release_wxTextEntry(void *, int);}
release_wxTextEntry(void * sipCppV,int)1585 static void release_wxTextEntry(void *sipCppV, int)
1586 {
1587 Py_BEGIN_ALLOW_THREADS
1588
1589 delete reinterpret_cast< ::wxTextEntry *>(sipCppV);
1590
1591 Py_END_ALLOW_THREADS
1592 }
1593
1594
1595 extern "C" {static void dealloc_wxTextEntry(sipSimpleWrapper *);}
dealloc_wxTextEntry(sipSimpleWrapper * sipSelf)1596 static void dealloc_wxTextEntry(sipSimpleWrapper *sipSelf)
1597 {
1598 if (sipIsOwnedByPython(sipSelf))
1599 {
1600 release_wxTextEntry(sipGetAddress(sipSelf), 0);
1601 }
1602 }
1603
1604
1605 static PyMethodDef methods_wxTextEntry[] = {
1606 {SIP_MLNAME_CAST(sipName_AppendText), SIP_MLMETH_CAST(meth_wxTextEntry_AppendText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_AppendText)},
1607 {SIP_MLNAME_CAST(sipName_AutoComplete), SIP_MLMETH_CAST(meth_wxTextEntry_AutoComplete), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_AutoComplete)},
1608 {SIP_MLNAME_CAST(sipName_AutoCompleteDirectories), meth_wxTextEntry_AutoCompleteDirectories, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_AutoCompleteDirectories)},
1609 {SIP_MLNAME_CAST(sipName_AutoCompleteFileNames), meth_wxTextEntry_AutoCompleteFileNames, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_AutoCompleteFileNames)},
1610 {SIP_MLNAME_CAST(sipName_CanCopy), meth_wxTextEntry_CanCopy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_CanCopy)},
1611 {SIP_MLNAME_CAST(sipName_CanCut), meth_wxTextEntry_CanCut, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_CanCut)},
1612 {SIP_MLNAME_CAST(sipName_CanPaste), meth_wxTextEntry_CanPaste, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_CanPaste)},
1613 {SIP_MLNAME_CAST(sipName_CanRedo), meth_wxTextEntry_CanRedo, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_CanRedo)},
1614 {SIP_MLNAME_CAST(sipName_CanUndo), meth_wxTextEntry_CanUndo, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_CanUndo)},
1615 {SIP_MLNAME_CAST(sipName_ChangeValue), SIP_MLMETH_CAST(meth_wxTextEntry_ChangeValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_ChangeValue)},
1616 {SIP_MLNAME_CAST(sipName_Clear), meth_wxTextEntry_Clear, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_Clear)},
1617 {SIP_MLNAME_CAST(sipName_Copy), meth_wxTextEntry_Copy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_Copy)},
1618 {SIP_MLNAME_CAST(sipName_Cut), meth_wxTextEntry_Cut, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_Cut)},
1619 {SIP_MLNAME_CAST(sipName_GetHint), meth_wxTextEntry_GetHint, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_GetHint)},
1620 {SIP_MLNAME_CAST(sipName_GetInsertionPoint), meth_wxTextEntry_GetInsertionPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_GetInsertionPoint)},
1621 {SIP_MLNAME_CAST(sipName_GetLastPosition), meth_wxTextEntry_GetLastPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_GetLastPosition)},
1622 {SIP_MLNAME_CAST(sipName_GetMargins), meth_wxTextEntry_GetMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_GetMargins)},
1623 {SIP_MLNAME_CAST(sipName_GetRange), SIP_MLMETH_CAST(meth_wxTextEntry_GetRange), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_GetRange)},
1624 {SIP_MLNAME_CAST(sipName_GetSelection), SIP_MLMETH_CAST(meth_wxTextEntry_GetSelection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_GetSelection)},
1625 {SIP_MLNAME_CAST(sipName_GetStringSelection), meth_wxTextEntry_GetStringSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_GetStringSelection)},
1626 {SIP_MLNAME_CAST(sipName_GetValue), meth_wxTextEntry_GetValue, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_GetValue)},
1627 {SIP_MLNAME_CAST(sipName_IsEditable), meth_wxTextEntry_IsEditable, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_IsEditable)},
1628 {SIP_MLNAME_CAST(sipName_IsEmpty), meth_wxTextEntry_IsEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_IsEmpty)},
1629 {SIP_MLNAME_CAST(sipName_Paste), meth_wxTextEntry_Paste, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_Paste)},
1630 {SIP_MLNAME_CAST(sipName_Redo), meth_wxTextEntry_Redo, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_Redo)},
1631 {SIP_MLNAME_CAST(sipName_Remove), SIP_MLMETH_CAST(meth_wxTextEntry_Remove), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_Remove)},
1632 {SIP_MLNAME_CAST(sipName_Replace), SIP_MLMETH_CAST(meth_wxTextEntry_Replace), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_Replace)},
1633 {SIP_MLNAME_CAST(sipName_SelectAll), meth_wxTextEntry_SelectAll, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_SelectAll)},
1634 {SIP_MLNAME_CAST(sipName_SelectNone), meth_wxTextEntry_SelectNone, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_SelectNone)},
1635 {SIP_MLNAME_CAST(sipName_SetEditable), SIP_MLMETH_CAST(meth_wxTextEntry_SetEditable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_SetEditable)},
1636 {SIP_MLNAME_CAST(sipName_SetHint), SIP_MLMETH_CAST(meth_wxTextEntry_SetHint), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_SetHint)},
1637 {SIP_MLNAME_CAST(sipName_SetInsertionPoint), SIP_MLMETH_CAST(meth_wxTextEntry_SetInsertionPoint), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_SetInsertionPoint)},
1638 {SIP_MLNAME_CAST(sipName_SetInsertionPointEnd), meth_wxTextEntry_SetInsertionPointEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_SetInsertionPointEnd)},
1639 {SIP_MLNAME_CAST(sipName_SetMargins), SIP_MLMETH_CAST(meth_wxTextEntry_SetMargins), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_SetMargins)},
1640 {SIP_MLNAME_CAST(sipName_SetMaxLength), SIP_MLMETH_CAST(meth_wxTextEntry_SetMaxLength), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_SetMaxLength)},
1641 {SIP_MLNAME_CAST(sipName_SetSelection), SIP_MLMETH_CAST(meth_wxTextEntry_SetSelection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_SetSelection)},
1642 {SIP_MLNAME_CAST(sipName_SetValue), SIP_MLMETH_CAST(meth_wxTextEntry_SetValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_SetValue)},
1643 {SIP_MLNAME_CAST(sipName_Undo), meth_wxTextEntry_Undo, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTextEntry_Undo)},
1644 {SIP_MLNAME_CAST(sipName_WriteText), SIP_MLMETH_CAST(meth_wxTextEntry_WriteText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTextEntry_WriteText)}
1645 };
1646
1647 sipVariableDef variables_wxTextEntry[] = {
1648 {PropertyVariable, sipName_Value, &methods_wxTextEntry[20], &methods_wxTextEntry[36], SIP_NULLPTR, SIP_NULLPTR},
1649 {PropertyVariable, sipName_StringSelection, &methods_wxTextEntry[19], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1650 {PropertyVariable, sipName_Margins, &methods_wxTextEntry[16], &methods_wxTextEntry[33], SIP_NULLPTR, SIP_NULLPTR},
1651 {PropertyVariable, sipName_LastPosition, &methods_wxTextEntry[15], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1652 {PropertyVariable, sipName_InsertionPoint, &methods_wxTextEntry[14], &methods_wxTextEntry[31], SIP_NULLPTR, SIP_NULLPTR},
1653 {PropertyVariable, sipName_Hint, &methods_wxTextEntry[13], &methods_wxTextEntry[30], SIP_NULLPTR, SIP_NULLPTR},
1654 };
1655
1656 PyDoc_STRVAR(doc_wxTextEntry, "Common base class for single line text entry fields.");
1657
1658
1659 sipClassTypeDef sipTypeDef__core_wxTextEntry = {
1660 {
1661 -1,
1662 SIP_NULLPTR,
1663 SIP_NULLPTR,
1664 SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
1665 sipNameNr_wxTextEntry,
1666 {SIP_NULLPTR},
1667 SIP_NULLPTR
1668 },
1669 {
1670 sipNameNr_TextEntry,
1671 {0, 0, 1},
1672 39, methods_wxTextEntry,
1673 0, SIP_NULLPTR,
1674 6, variables_wxTextEntry,
1675 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1676 },
1677 doc_wxTextEntry,
1678 -1,
1679 -1,
1680 SIP_NULLPTR,
1681 SIP_NULLPTR,
1682 SIP_NULLPTR,
1683 SIP_NULLPTR,
1684 SIP_NULLPTR,
1685 #if PY_MAJOR_VERSION >= 3
1686 SIP_NULLPTR,
1687 SIP_NULLPTR,
1688 #else
1689 SIP_NULLPTR,
1690 SIP_NULLPTR,
1691 SIP_NULLPTR,
1692 SIP_NULLPTR,
1693 #endif
1694 dealloc_wxTextEntry,
1695 SIP_NULLPTR,
1696 SIP_NULLPTR,
1697 SIP_NULLPTR,
1698 release_wxTextEntry,
1699 SIP_NULLPTR,
1700 SIP_NULLPTR,
1701 SIP_NULLPTR,
1702 SIP_NULLPTR,
1703 SIP_NULLPTR,
1704 SIP_NULLPTR,
1705 SIP_NULLPTR
1706 };
1707