]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/windows.cpp
updates of generated sources for wxGTK
[wxWidgets.git] / wxPython / src / gtk / windows.cpp
1 /*
2 * FILE : src/gtk/windows.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initwindowsc
55
56 #define SWIG_name "windowsc"
57
58 #include "helpers.h"
59 #include <wx/menuitem.h>
60
61 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
62 PyObject* o2;
63 if (!target) {
64 target = o;
65 } else if (target == Py_None) {
66 Py_DECREF(Py_None);
67 target = o;
68 } else {
69 if (!PyList_Check(target)) {
70 o2 = target;
71 target = PyList_New(0);
72 PyList_Append(target, o2);
73 Py_XDECREF(o2);
74 }
75 PyList_Append(target,o);
76 Py_XDECREF(o);
77 }
78 return target;
79 }
80
81 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
82 PyObject* o2;
83 PyObject* o3;
84
85 if (!target) {
86 target = o;
87 } else if (target == Py_None) {
88 Py_DECREF(Py_None);
89 target = o;
90 } else {
91 if (!PyTuple_Check(target)) {
92 o2 = target;
93 target = PyTuple_New(1);
94 PyTuple_SetItem(target, 0, o2);
95 }
96 o3 = PyTuple_New(1);
97 PyTuple_SetItem(o3, 0, o);
98
99 o2 = target;
100 target = PySequence_Concat(o2, o3);
101 Py_DECREF(o2);
102 Py_DECREF(o3);
103 }
104 return target;
105 }
106
107 static char* wxStringErrorMsg = "string type is required for parameter";
108
109 static wxString wxPyEmptyStr("");
110
111 bool wxValidator_IsSilent() {
112 return wxValidator::IsSilent();
113 }
114
115 void wxValidator_SetBellOnError(int doIt = TRUE) {
116 wxValidator::SetBellOnError(doIt);
117 }
118
119 class wxPyValidator : public wxValidator {
120 DECLARE_DYNAMIC_CLASS(wxPyValidator);
121 public:
122 wxPyValidator() {
123 }
124 // wxPyValidator(const wxPyValidator& other);
125
126 ~wxPyValidator() {
127 }
128
129 wxObject* wxPyValidator::Clone() const {
130 wxPyValidator* ptr = NULL;
131 wxPyValidator* self = (wxPyValidator*)this;
132
133 bool doSave = wxPyRestoreThread();
134 if (self->m_myInst.findCallback("Clone")) {
135 PyObject* ro;
136 ro = self->m_myInst.callCallbackObj(Py_BuildValue("()"));
137 if (ro) {
138 SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p");
139 Py_DECREF(ro);
140 }
141 }
142 // This is very dangerous!!! But is the only way I could find
143 // to squash a memory leak. Currently it is okay, but if the
144 // validator architecture in wxWindows ever changes, problems
145 // could arise.
146 delete self;
147
148 wxPySaveThread(doSave);
149 return ptr;
150 }
151
152 DEC_PYCALLBACK_BOOL_WXWIN(Validate);
153 DEC_PYCALLBACK_BOOL_(TransferToWindow);
154 DEC_PYCALLBACK_BOOL_(TransferFromWindow);
155
156 PYPRIVATE;
157 // PyObject* m_data;
158 };
159
160 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
161 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
162 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
163
164 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
165
166
167 wxWindow* wxWindow_FindFocus() {
168 return wxWindow::FindFocus();
169 }
170
171 int wxWindow_NewControlId() {
172 return wxWindow::NewControlId();
173 }
174 int wxWindow_NextControlId(int id) {
175 return wxWindow::NextControlId(id);
176 }
177 int wxWindow_PrevControlId(int id) {
178 return wxWindow::PrevControlId(id);
179 }
180 #ifdef __cplusplus
181 extern "C" {
182 #endif
183 static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
184 PyObject * _resultobj;
185 bool _result;
186 char *_kwnames[] = { NULL };
187
188 self = self;
189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames))
190 return NULL;
191 {
192 wxPy_BEGIN_ALLOW_THREADS;
193 _result = (bool )wxValidator_IsSilent();
194
195 wxPy_END_ALLOW_THREADS;
196 } _resultobj = Py_BuildValue("i",_result);
197 return _resultobj;
198 }
199
200 static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
201 PyObject * _resultobj;
202 int _arg0 = (int ) TRUE;
203 char *_kwnames[] = { "doIt", NULL };
204
205 self = self;
206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0))
207 return NULL;
208 {
209 wxPy_BEGIN_ALLOW_THREADS;
210 wxValidator_SetBellOnError(_arg0);
211
212 wxPy_END_ALLOW_THREADS;
213 } Py_INCREF(Py_None);
214 _resultobj = Py_None;
215 return _resultobj;
216 }
217
218 static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
219 PyObject * _resultobj;
220 wxWindow * _result;
221 char *_kwnames[] = { NULL };
222 char _ptemp[128];
223
224 self = self;
225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames))
226 return NULL;
227 {
228 wxPy_BEGIN_ALLOW_THREADS;
229 _result = (wxWindow *)wxWindow_FindFocus();
230
231 wxPy_END_ALLOW_THREADS;
232 } if (_result) {
233 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
234 _resultobj = Py_BuildValue("s",_ptemp);
235 } else {
236 Py_INCREF(Py_None);
237 _resultobj = Py_None;
238 }
239 return _resultobj;
240 }
241
242 static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
243 PyObject * _resultobj;
244 int _result;
245 char *_kwnames[] = { NULL };
246
247 self = self;
248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames))
249 return NULL;
250 {
251 wxPy_BEGIN_ALLOW_THREADS;
252 _result = (int )wxWindow_NewControlId();
253
254 wxPy_END_ALLOW_THREADS;
255 } _resultobj = Py_BuildValue("i",_result);
256 return _resultobj;
257 }
258
259 static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
260 PyObject * _resultobj;
261 int _result;
262 int _arg0;
263 char *_kwnames[] = { "id", NULL };
264
265 self = self;
266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0))
267 return NULL;
268 {
269 wxPy_BEGIN_ALLOW_THREADS;
270 _result = (int )wxWindow_NextControlId(_arg0);
271
272 wxPy_END_ALLOW_THREADS;
273 } _resultobj = Py_BuildValue("i",_result);
274 return _resultobj;
275 }
276
277 static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
278 PyObject * _resultobj;
279 int _result;
280 int _arg0;
281 char *_kwnames[] = { "id", NULL };
282
283 self = self;
284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0))
285 return NULL;
286 {
287 wxPy_BEGIN_ALLOW_THREADS;
288 _result = (int )wxWindow_PrevControlId(_arg0);
289
290 wxPy_END_ALLOW_THREADS;
291 } _resultobj = Py_BuildValue("i",_result);
292 return _resultobj;
293 }
294
295 #define new_wxEvtHandler() (new wxEvtHandler())
296 static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
297 PyObject * _resultobj;
298 wxEvtHandler * _result;
299 char *_kwnames[] = { NULL };
300 char _ptemp[128];
301
302 self = self;
303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames))
304 return NULL;
305 {
306 wxPy_BEGIN_ALLOW_THREADS;
307 _result = (wxEvtHandler *)new_wxEvtHandler();
308
309 wxPy_END_ALLOW_THREADS;
310 } if (_result) {
311 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
312 _resultobj = Py_BuildValue("s",_ptemp);
313 } else {
314 Py_INCREF(Py_None);
315 _resultobj = Py_None;
316 }
317 return _resultobj;
318 }
319
320 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
321 static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
322 PyObject * _resultobj;
323 bool _result;
324 wxEvtHandler * _arg0;
325 wxEvent * _arg1;
326 PyObject * _argo0 = 0;
327 PyObject * _argo1 = 0;
328 char *_kwnames[] = { "self","event", NULL };
329
330 self = self;
331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1))
332 return NULL;
333 if (_argo0) {
334 if (_argo0 == Py_None) { _arg0 = NULL; }
335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
337 return NULL;
338 }
339 }
340 if (_argo1) {
341 if (_argo1 == Py_None) { _arg1 = NULL; }
342 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
343 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
344 return NULL;
345 }
346 }
347 {
348 wxPy_BEGIN_ALLOW_THREADS;
349 _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1);
350
351 wxPy_END_ALLOW_THREADS;
352 } _resultobj = Py_BuildValue("i",_result);
353 return _resultobj;
354 }
355
356 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
357 static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
358 PyObject * _resultobj;
359 wxEvtHandler * _arg0;
360 wxEvent * _arg1;
361 PyObject * _argo0 = 0;
362 PyObject * _argo1 = 0;
363 char *_kwnames[] = { "self","event", NULL };
364
365 self = self;
366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1))
367 return NULL;
368 if (_argo0) {
369 if (_argo0 == Py_None) { _arg0 = NULL; }
370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
372 return NULL;
373 }
374 }
375 if (_argo1) {
376 if (_argo1 == Py_None) { _arg1 = NULL; }
377 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
378 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
379 return NULL;
380 }
381 }
382 {
383 wxPy_BEGIN_ALLOW_THREADS;
384 wxEvtHandler_AddPendingEvent(_arg0,*_arg1);
385
386 wxPy_END_ALLOW_THREADS;
387 } Py_INCREF(Py_None);
388 _resultobj = Py_None;
389 return _resultobj;
390 }
391
392 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
393 static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
394 PyObject * _resultobj;
395 bool _result;
396 wxEvtHandler * _arg0;
397 PyObject * _argo0 = 0;
398 char *_kwnames[] = { "self", NULL };
399
400 self = self;
401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0))
402 return NULL;
403 if (_argo0) {
404 if (_argo0 == Py_None) { _arg0 = NULL; }
405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
407 return NULL;
408 }
409 }
410 {
411 wxPy_BEGIN_ALLOW_THREADS;
412 _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0);
413
414 wxPy_END_ALLOW_THREADS;
415 } _resultobj = Py_BuildValue("i",_result);
416 return _resultobj;
417 }
418
419 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
420 static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
421 PyObject * _resultobj;
422 wxEvtHandler * _arg0;
423 bool _arg1;
424 PyObject * _argo0 = 0;
425 int tempbool1;
426 char *_kwnames[] = { "self","enabled", NULL };
427
428 self = self;
429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1))
430 return NULL;
431 if (_argo0) {
432 if (_argo0 == Py_None) { _arg0 = NULL; }
433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
435 return NULL;
436 }
437 }
438 _arg1 = (bool ) tempbool1;
439 {
440 wxPy_BEGIN_ALLOW_THREADS;
441 wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1);
442
443 wxPy_END_ALLOW_THREADS;
444 } Py_INCREF(Py_None);
445 _resultobj = Py_None;
446 return _resultobj;
447 }
448
449 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
450 static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
451 PyObject * _resultobj;
452 wxEvtHandler * _result;
453 wxEvtHandler * _arg0;
454 PyObject * _argo0 = 0;
455 char *_kwnames[] = { "self", NULL };
456 char _ptemp[128];
457
458 self = self;
459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0))
460 return NULL;
461 if (_argo0) {
462 if (_argo0 == Py_None) { _arg0 = NULL; }
463 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
464 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
465 return NULL;
466 }
467 }
468 {
469 wxPy_BEGIN_ALLOW_THREADS;
470 _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0);
471
472 wxPy_END_ALLOW_THREADS;
473 } if (_result) {
474 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
475 _resultobj = Py_BuildValue("s",_ptemp);
476 } else {
477 Py_INCREF(Py_None);
478 _resultobj = Py_None;
479 }
480 return _resultobj;
481 }
482
483 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
484 static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
485 PyObject * _resultobj;
486 wxEvtHandler * _result;
487 wxEvtHandler * _arg0;
488 PyObject * _argo0 = 0;
489 char *_kwnames[] = { "self", NULL };
490 char _ptemp[128];
491
492 self = self;
493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0))
494 return NULL;
495 if (_argo0) {
496 if (_argo0 == Py_None) { _arg0 = NULL; }
497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
499 return NULL;
500 }
501 }
502 {
503 wxPy_BEGIN_ALLOW_THREADS;
504 _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0);
505
506 wxPy_END_ALLOW_THREADS;
507 } if (_result) {
508 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
509 _resultobj = Py_BuildValue("s",_ptemp);
510 } else {
511 Py_INCREF(Py_None);
512 _resultobj = Py_None;
513 }
514 return _resultobj;
515 }
516
517 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
518 static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
519 PyObject * _resultobj;
520 wxEvtHandler * _arg0;
521 wxEvtHandler * _arg1;
522 PyObject * _argo0 = 0;
523 PyObject * _argo1 = 0;
524 char *_kwnames[] = { "self","handler", NULL };
525
526 self = self;
527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1))
528 return NULL;
529 if (_argo0) {
530 if (_argo0 == Py_None) { _arg0 = NULL; }
531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
533 return NULL;
534 }
535 }
536 if (_argo1) {
537 if (_argo1 == Py_None) { _arg1 = NULL; }
538 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
539 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
540 return NULL;
541 }
542 }
543 {
544 wxPy_BEGIN_ALLOW_THREADS;
545 wxEvtHandler_SetNextHandler(_arg0,_arg1);
546
547 wxPy_END_ALLOW_THREADS;
548 } Py_INCREF(Py_None);
549 _resultobj = Py_None;
550 return _resultobj;
551 }
552
553 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
554 static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
555 PyObject * _resultobj;
556 wxEvtHandler * _arg0;
557 wxEvtHandler * _arg1;
558 PyObject * _argo0 = 0;
559 PyObject * _argo1 = 0;
560 char *_kwnames[] = { "self","handler", NULL };
561
562 self = self;
563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1))
564 return NULL;
565 if (_argo0) {
566 if (_argo0 == Py_None) { _arg0 = NULL; }
567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
569 return NULL;
570 }
571 }
572 if (_argo1) {
573 if (_argo1 == Py_None) { _arg1 = NULL; }
574 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
575 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
576 return NULL;
577 }
578 }
579 {
580 wxPy_BEGIN_ALLOW_THREADS;
581 wxEvtHandler_SetPreviousHandler(_arg0,_arg1);
582
583 wxPy_END_ALLOW_THREADS;
584 } Py_INCREF(Py_None);
585 _resultobj = Py_None;
586 return _resultobj;
587 }
588
589 static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) {
590 if (PyCallable_Check(func)) {
591 self->Connect(id, lastId, eventType,
592 (wxObjectEventFunction) &wxPyCallback::EventThunker,
593 new wxPyCallback(func));
594 }
595 }
596 static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
597 PyObject * _resultobj;
598 wxEvtHandler * _arg0;
599 int _arg1;
600 int _arg2;
601 int _arg3;
602 PyObject * _arg4;
603 PyObject * _argo0 = 0;
604 PyObject * _obj4 = 0;
605 char *_kwnames[] = { "self","id","lastId","eventType","func", NULL };
606
607 self = self;
608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
609 return NULL;
610 if (_argo0) {
611 if (_argo0 == Py_None) { _arg0 = NULL; }
612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
614 return NULL;
615 }
616 }
617 {
618 _arg4 = _obj4;
619 }
620 {
621 wxPy_BEGIN_ALLOW_THREADS;
622 wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4);
623
624 wxPy_END_ALLOW_THREADS;
625 } Py_INCREF(Py_None);
626 _resultobj = Py_None;
627 return _resultobj;
628 }
629
630 static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) {
631 return self->Disconnect(id, lastId, eventType,
632 (wxObjectEventFunction)
633 &wxPyCallback::EventThunker);
634 }
635 static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
636 PyObject * _resultobj;
637 bool _result;
638 wxEvtHandler * _arg0;
639 int _arg1;
640 int _arg2 = (int ) -1;
641 wxEventType _arg3 = (wxEventType ) wxEVT_NULL;
642 PyObject * _argo0 = 0;
643 char *_kwnames[] = { "self","id","lastId","eventType", NULL };
644
645 self = self;
646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
647 return NULL;
648 if (_argo0) {
649 if (_argo0 == Py_None) { _arg0 = NULL; }
650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
652 return NULL;
653 }
654 }
655 {
656 wxPy_BEGIN_ALLOW_THREADS;
657 _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3);
658
659 wxPy_END_ALLOW_THREADS;
660 } _resultobj = Py_BuildValue("i",_result);
661 return _resultobj;
662 }
663
664 static void *SwigwxValidatorTowxEvtHandler(void *ptr) {
665 wxValidator *src;
666 wxEvtHandler *dest;
667 src = (wxValidator *) ptr;
668 dest = (wxEvtHandler *) src;
669 return (void *) dest;
670 }
671
672 #define new_wxValidator() (new wxValidator())
673 static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
674 PyObject * _resultobj;
675 wxValidator * _result;
676 char *_kwnames[] = { NULL };
677 char _ptemp[128];
678
679 self = self;
680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames))
681 return NULL;
682 {
683 wxPy_BEGIN_ALLOW_THREADS;
684 _result = (wxValidator *)new_wxValidator();
685
686 wxPy_END_ALLOW_THREADS;
687 } if (_result) {
688 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
689 _resultobj = Py_BuildValue("s",_ptemp);
690 } else {
691 Py_INCREF(Py_None);
692 _resultobj = Py_None;
693 }
694 return _resultobj;
695 }
696
697 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
698 static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
699 PyObject * _resultobj;
700 wxValidator * _result;
701 wxValidator * _arg0;
702 PyObject * _argo0 = 0;
703 char *_kwnames[] = { "self", NULL };
704 char _ptemp[128];
705
706 self = self;
707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0))
708 return NULL;
709 if (_argo0) {
710 if (_argo0 == Py_None) { _arg0 = NULL; }
711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
713 return NULL;
714 }
715 }
716 {
717 wxPy_BEGIN_ALLOW_THREADS;
718 _result = (wxValidator *)wxValidator_Clone(_arg0);
719
720 wxPy_END_ALLOW_THREADS;
721 } if (_result) {
722 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
723 _resultobj = Py_BuildValue("s",_ptemp);
724 } else {
725 Py_INCREF(Py_None);
726 _resultobj = Py_None;
727 }
728 return _resultobj;
729 }
730
731 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
732 static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
733 PyObject * _resultobj;
734 wxWindow * _result;
735 wxValidator * _arg0;
736 PyObject * _argo0 = 0;
737 char *_kwnames[] = { "self", NULL };
738 char _ptemp[128];
739
740 self = self;
741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0))
742 return NULL;
743 if (_argo0) {
744 if (_argo0 == Py_None) { _arg0 = NULL; }
745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
747 return NULL;
748 }
749 }
750 {
751 wxPy_BEGIN_ALLOW_THREADS;
752 _result = (wxWindow *)wxValidator_GetWindow(_arg0);
753
754 wxPy_END_ALLOW_THREADS;
755 } if (_result) {
756 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
757 _resultobj = Py_BuildValue("s",_ptemp);
758 } else {
759 Py_INCREF(Py_None);
760 _resultobj = Py_None;
761 }
762 return _resultobj;
763 }
764
765 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
766 static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
767 PyObject * _resultobj;
768 wxValidator * _arg0;
769 wxWindow * _arg1;
770 PyObject * _argo0 = 0;
771 PyObject * _argo1 = 0;
772 char *_kwnames[] = { "self","window", NULL };
773
774 self = self;
775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1))
776 return NULL;
777 if (_argo0) {
778 if (_argo0 == Py_None) { _arg0 = NULL; }
779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
781 return NULL;
782 }
783 }
784 if (_argo1) {
785 if (_argo1 == Py_None) { _arg1 = NULL; }
786 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
787 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
788 return NULL;
789 }
790 }
791 {
792 wxPy_BEGIN_ALLOW_THREADS;
793 wxValidator_SetWindow(_arg0,_arg1);
794
795 wxPy_END_ALLOW_THREADS;
796 } Py_INCREF(Py_None);
797 _resultobj = Py_None;
798 return _resultobj;
799 }
800
801 static void *SwigwxPyValidatorTowxValidator(void *ptr) {
802 wxPyValidator *src;
803 wxValidator *dest;
804 src = (wxPyValidator *) ptr;
805 dest = (wxValidator *) src;
806 return (void *) dest;
807 }
808
809 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) {
810 wxPyValidator *src;
811 wxEvtHandler *dest;
812 src = (wxPyValidator *) ptr;
813 dest = (wxEvtHandler *) src;
814 return (void *) dest;
815 }
816
817 #define new_wxPyValidator() (new wxPyValidator())
818 static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
819 PyObject * _resultobj;
820 wxPyValidator * _result;
821 char *_kwnames[] = { NULL };
822 char _ptemp[128];
823
824 self = self;
825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames))
826 return NULL;
827 {
828 wxPy_BEGIN_ALLOW_THREADS;
829 _result = (wxPyValidator *)new_wxPyValidator();
830
831 wxPy_END_ALLOW_THREADS;
832 } if (_result) {
833 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p");
834 _resultobj = Py_BuildValue("s",_ptemp);
835 } else {
836 Py_INCREF(Py_None);
837 _resultobj = Py_None;
838 }
839 return _resultobj;
840 }
841
842 static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; }
843 static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
844 PyObject * _resultobj;
845 wxPyValidator * _arg0;
846 PyObject * _argo0 = 0;
847 char *_kwnames[] = { "self", NULL };
848
849 self = self;
850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0))
851 return NULL;
852 if (_argo0) {
853 if (_argo0 == Py_None) { _arg0 = NULL; }
854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) {
855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p.");
856 return NULL;
857 }
858 }
859 {
860 wxPy_BEGIN_ALLOW_THREADS;
861 wxPyValidator_Destroy(_arg0);
862
863 wxPy_END_ALLOW_THREADS;
864 } Py_INCREF(Py_None);
865 _resultobj = Py_None;
866 return _resultobj;
867 }
868
869 #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2))
870 static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
871 PyObject * _resultobj;
872 wxPyValidator * _arg0;
873 PyObject * _arg1;
874 PyObject * _arg2;
875 int _arg3 = (int ) TRUE;
876 PyObject * _argo0 = 0;
877 PyObject * _obj1 = 0;
878 PyObject * _obj2 = 0;
879 char *_kwnames[] = { "self","self","_class","incref", NULL };
880
881 self = self;
882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
883 return NULL;
884 if (_argo0) {
885 if (_argo0 == Py_None) { _arg0 = NULL; }
886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) {
887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p.");
888 return NULL;
889 }
890 }
891 {
892 _arg1 = _obj1;
893 }
894 {
895 _arg2 = _obj2;
896 }
897 {
898 wxPy_BEGIN_ALLOW_THREADS;
899 wxPyValidator__setSelf(_arg0,_arg1,_arg2,_arg3);
900
901 wxPy_END_ALLOW_THREADS;
902 } Py_INCREF(Py_None);
903 _resultobj = Py_None;
904 return _resultobj;
905 }
906
907 static void *SwigwxWindowTowxEvtHandler(void *ptr) {
908 wxWindow *src;
909 wxEvtHandler *dest;
910 src = (wxWindow *) ptr;
911 dest = (wxEvtHandler *) src;
912 return (void *) dest;
913 }
914
915 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
916 static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
917 PyObject * _resultobj;
918 wxWindow * _result;
919 wxWindow * _arg0;
920 wxWindowID _arg1;
921 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
922 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
923 long _arg4 = (long ) 0;
924 char * _arg5 = (char *) "panel";
925 PyObject * _argo0 = 0;
926 wxPoint temp;
927 PyObject * _obj2 = 0;
928 wxSize temp0;
929 PyObject * _obj3 = 0;
930 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
931 char _ptemp[128];
932
933 self = self;
934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
935 return NULL;
936 if (_argo0) {
937 if (_argo0 == Py_None) { _arg0 = NULL; }
938 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
939 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
940 return NULL;
941 }
942 }
943 if (_obj2)
944 {
945 _arg2 = &temp;
946 if (! wxPoint_helper(_obj2, &_arg2))
947 return NULL;
948 }
949 if (_obj3)
950 {
951 _arg3 = &temp0;
952 if (! wxSize_helper(_obj3, &_arg3))
953 return NULL;
954 }
955 {
956 wxPy_BEGIN_ALLOW_THREADS;
957 _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
958
959 wxPy_END_ALLOW_THREADS;
960 } if (_result) {
961 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
962 _resultobj = Py_BuildValue("s",_ptemp);
963 } else {
964 Py_INCREF(Py_None);
965 _resultobj = Py_None;
966 }
967 return _resultobj;
968 }
969
970 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
971 static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
972 PyObject * _resultobj;
973 wxWindow * _arg0;
974 PyObject * _argo0 = 0;
975 char *_kwnames[] = { "self", NULL };
976
977 self = self;
978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0))
979 return NULL;
980 if (_argo0) {
981 if (_argo0 == Py_None) { _arg0 = NULL; }
982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
984 return NULL;
985 }
986 }
987 {
988 wxPy_BEGIN_ALLOW_THREADS;
989 wxWindow_CaptureMouse(_arg0);
990
991 wxPy_END_ALLOW_THREADS;
992 } Py_INCREF(Py_None);
993 _resultobj = Py_None;
994 return _resultobj;
995 }
996
997 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
998 static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
999 PyObject * _resultobj;
1000 wxWindow * _arg0;
1001 int _arg1 = (int ) wxBOTH;
1002 PyObject * _argo0 = 0;
1003 char *_kwnames[] = { "self","direction", NULL };
1004
1005 self = self;
1006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1))
1007 return NULL;
1008 if (_argo0) {
1009 if (_argo0 == Py_None) { _arg0 = NULL; }
1010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1012 return NULL;
1013 }
1014 }
1015 {
1016 wxPy_BEGIN_ALLOW_THREADS;
1017 wxWindow_Center(_arg0,_arg1);
1018
1019 wxPy_END_ALLOW_THREADS;
1020 } Py_INCREF(Py_None);
1021 _resultobj = Py_None;
1022 return _resultobj;
1023 }
1024
1025 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1026 static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
1027 PyObject * _resultobj;
1028 wxWindow * _arg0;
1029 int _arg1 = (int ) wxBOTH;
1030 PyObject * _argo0 = 0;
1031 char *_kwnames[] = { "self","direction", NULL };
1032
1033 self = self;
1034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1))
1035 return NULL;
1036 if (_argo0) {
1037 if (_argo0 == Py_None) { _arg0 = NULL; }
1038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1040 return NULL;
1041 }
1042 }
1043 {
1044 wxPy_BEGIN_ALLOW_THREADS;
1045 wxWindow_Centre(_arg0,_arg1);
1046
1047 wxPy_END_ALLOW_THREADS;
1048 } Py_INCREF(Py_None);
1049 _resultobj = Py_None;
1050 return _resultobj;
1051 }
1052
1053 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1054 static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1055 PyObject * _resultobj;
1056 wxWindow * _arg0;
1057 int _arg1 = (int ) wxBOTH;
1058 PyObject * _argo0 = 0;
1059 char *_kwnames[] = { "self","direction", NULL };
1060
1061 self = self;
1062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1))
1063 return NULL;
1064 if (_argo0) {
1065 if (_argo0 == Py_None) { _arg0 = NULL; }
1066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1068 return NULL;
1069 }
1070 }
1071 {
1072 wxPy_BEGIN_ALLOW_THREADS;
1073 wxWindow_CentreOnParent(_arg0,_arg1);
1074
1075 wxPy_END_ALLOW_THREADS;
1076 } Py_INCREF(Py_None);
1077 _resultobj = Py_None;
1078 return _resultobj;
1079 }
1080
1081 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1082 static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1083 PyObject * _resultobj;
1084 wxWindow * _arg0;
1085 int _arg1 = (int ) wxBOTH;
1086 PyObject * _argo0 = 0;
1087 char *_kwnames[] = { "self","direction", NULL };
1088
1089 self = self;
1090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1))
1091 return NULL;
1092 if (_argo0) {
1093 if (_argo0 == Py_None) { _arg0 = NULL; }
1094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1096 return NULL;
1097 }
1098 }
1099 {
1100 wxPy_BEGIN_ALLOW_THREADS;
1101 wxWindow_CenterOnParent(_arg0,_arg1);
1102
1103 wxPy_END_ALLOW_THREADS;
1104 } Py_INCREF(Py_None);
1105 _resultobj = Py_None;
1106 return _resultobj;
1107 }
1108
1109 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1110 static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1111 PyObject * _resultobj;
1112 wxWindow * _arg0;
1113 int _arg1 = (int ) wxBOTH;
1114 PyObject * _argo0 = 0;
1115 char *_kwnames[] = { "self","direction", NULL };
1116
1117 self = self;
1118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1))
1119 return NULL;
1120 if (_argo0) {
1121 if (_argo0 == Py_None) { _arg0 = NULL; }
1122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1124 return NULL;
1125 }
1126 }
1127 {
1128 wxPy_BEGIN_ALLOW_THREADS;
1129 wxWindow_CentreOnScreen(_arg0,_arg1);
1130
1131 wxPy_END_ALLOW_THREADS;
1132 } Py_INCREF(Py_None);
1133 _resultobj = Py_None;
1134 return _resultobj;
1135 }
1136
1137 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1138 static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1139 PyObject * _resultobj;
1140 wxWindow * _arg0;
1141 int _arg1 = (int ) wxBOTH;
1142 PyObject * _argo0 = 0;
1143 char *_kwnames[] = { "self","direction", NULL };
1144
1145 self = self;
1146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1))
1147 return NULL;
1148 if (_argo0) {
1149 if (_argo0 == Py_None) { _arg0 = NULL; }
1150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p.");
1152 return NULL;
1153 }
1154 }
1155 {
1156 wxPy_BEGIN_ALLOW_THREADS;
1157 wxWindow_CenterOnScreen(_arg0,_arg1);
1158
1159 wxPy_END_ALLOW_THREADS;
1160 } Py_INCREF(Py_None);
1161 _resultobj = Py_None;
1162 return _resultobj;
1163 }
1164
1165 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1166 static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject * _resultobj;
1168 wxWindow * _arg0;
1169 int * _arg1;
1170 int * _arg2;
1171 PyObject * _argo0 = 0;
1172 int temp;
1173 PyObject * _obj1 = 0;
1174 int temp0;
1175 PyObject * _obj2 = 0;
1176 char *_kwnames[] = { "self","x","y", NULL };
1177
1178 self = self;
1179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2))
1180 return NULL;
1181 if (_argo0) {
1182 if (_argo0 == Py_None) { _arg0 = NULL; }
1183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1185 return NULL;
1186 }
1187 }
1188 {
1189 temp = (int) PyInt_AsLong(_obj1);
1190 _arg1 = &temp;
1191 }
1192 {
1193 temp0 = (int) PyInt_AsLong(_obj2);
1194 _arg2 = &temp0;
1195 }
1196 {
1197 wxPy_BEGIN_ALLOW_THREADS;
1198 wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2);
1199
1200 wxPy_END_ALLOW_THREADS;
1201 } Py_INCREF(Py_None);
1202 _resultobj = Py_None;
1203 {
1204 PyObject *o;
1205 o = PyInt_FromLong((long) (*_arg1));
1206 _resultobj = t_output_helper(_resultobj, o);
1207 }
1208 {
1209 PyObject *o;
1210 o = PyInt_FromLong((long) (*_arg2));
1211 _resultobj = t_output_helper(_resultobj, o);
1212 }
1213 return _resultobj;
1214 }
1215
1216 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1217 static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1218 PyObject * _resultobj;
1219 wxPoint * _result;
1220 wxWindow * _arg0;
1221 wxPoint * _arg1;
1222 PyObject * _argo0 = 0;
1223 wxPoint temp;
1224 PyObject * _obj1 = 0;
1225 char *_kwnames[] = { "self","pt", NULL };
1226 char _ptemp[128];
1227
1228 self = self;
1229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1))
1230 return NULL;
1231 if (_argo0) {
1232 if (_argo0 == Py_None) { _arg0 = NULL; }
1233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1235 return NULL;
1236 }
1237 }
1238 {
1239 _arg1 = &temp;
1240 if (! wxPoint_helper(_obj1, &_arg1))
1241 return NULL;
1242 }
1243 {
1244 wxPy_BEGIN_ALLOW_THREADS;
1245 _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1));
1246
1247 wxPy_END_ALLOW_THREADS;
1248 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1249 _resultobj = Py_BuildValue("s",_ptemp);
1250 return _resultobj;
1251 }
1252
1253 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1254 static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
1255 PyObject * _resultobj;
1256 bool _result;
1257 wxWindow * _arg0;
1258 int _arg1 = (int ) FALSE;
1259 PyObject * _argo0 = 0;
1260 char *_kwnames[] = { "self","force", NULL };
1261
1262 self = self;
1263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1))
1264 return NULL;
1265 if (_argo0) {
1266 if (_argo0 == Py_None) { _arg0 = NULL; }
1267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1269 return NULL;
1270 }
1271 }
1272 {
1273 wxPy_BEGIN_ALLOW_THREADS;
1274 _result = (bool )wxWindow_Close(_arg0,_arg1);
1275
1276 wxPy_END_ALLOW_THREADS;
1277 } _resultobj = Py_BuildValue("i",_result);
1278 return _resultobj;
1279 }
1280
1281 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1282 static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1283 PyObject * _resultobj;
1284 bool _result;
1285 wxWindow * _arg0;
1286 PyObject * _argo0 = 0;
1287 char *_kwnames[] = { "self", NULL };
1288
1289 self = self;
1290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0))
1291 return NULL;
1292 if (_argo0) {
1293 if (_argo0 == Py_None) { _arg0 = NULL; }
1294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1296 return NULL;
1297 }
1298 }
1299 {
1300 wxPy_BEGIN_ALLOW_THREADS;
1301 _result = (bool )wxWindow_Destroy(_arg0);
1302
1303 wxPy_END_ALLOW_THREADS;
1304 } _resultobj = Py_BuildValue("i",_result);
1305 return _resultobj;
1306 }
1307
1308 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1309 static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1310 PyObject * _resultobj;
1311 wxWindow * _arg0;
1312 PyObject * _argo0 = 0;
1313 char *_kwnames[] = { "self", NULL };
1314
1315 self = self;
1316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0))
1317 return NULL;
1318 if (_argo0) {
1319 if (_argo0 == Py_None) { _arg0 = NULL; }
1320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1322 return NULL;
1323 }
1324 }
1325 {
1326 wxPy_BEGIN_ALLOW_THREADS;
1327 wxWindow_DestroyChildren(_arg0);
1328
1329 wxPy_END_ALLOW_THREADS;
1330 } Py_INCREF(Py_None);
1331 _resultobj = Py_None;
1332 return _resultobj;
1333 }
1334
1335 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1336 static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
1337 PyObject * _resultobj;
1338 wxWindow * _arg0;
1339 bool _arg1;
1340 PyObject * _argo0 = 0;
1341 int tempbool1;
1342 char *_kwnames[] = { "self","enable", NULL };
1343
1344 self = self;
1345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1))
1346 return NULL;
1347 if (_argo0) {
1348 if (_argo0 == Py_None) { _arg0 = NULL; }
1349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1351 return NULL;
1352 }
1353 }
1354 _arg1 = (bool ) tempbool1;
1355 {
1356 wxPy_BEGIN_ALLOW_THREADS;
1357 wxWindow_Enable(_arg0,_arg1);
1358
1359 wxPy_END_ALLOW_THREADS;
1360 } Py_INCREF(Py_None);
1361 _resultobj = Py_None;
1362 return _resultobj;
1363 }
1364
1365 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1366 static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
1367 PyObject * _resultobj;
1368 wxWindow * _result;
1369 wxWindow * _arg0;
1370 long _arg1;
1371 PyObject * _argo0 = 0;
1372 char *_kwnames[] = { "self","id", NULL };
1373 char _ptemp[128];
1374
1375 self = self;
1376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1))
1377 return NULL;
1378 if (_argo0) {
1379 if (_argo0 == Py_None) { _arg0 = NULL; }
1380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1382 return NULL;
1383 }
1384 }
1385 {
1386 wxPy_BEGIN_ALLOW_THREADS;
1387 _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1);
1388
1389 wxPy_END_ALLOW_THREADS;
1390 } if (_result) {
1391 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1392 _resultobj = Py_BuildValue("s",_ptemp);
1393 } else {
1394 Py_INCREF(Py_None);
1395 _resultobj = Py_None;
1396 }
1397 return _resultobj;
1398 }
1399
1400 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1401 static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
1402 PyObject * _resultobj;
1403 wxWindow * _result;
1404 wxWindow * _arg0;
1405 wxString * _arg1;
1406 PyObject * _argo0 = 0;
1407 PyObject * _obj1 = 0;
1408 char *_kwnames[] = { "self","name", NULL };
1409 char _ptemp[128];
1410
1411 self = self;
1412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1))
1413 return NULL;
1414 if (_argo0) {
1415 if (_argo0 == Py_None) { _arg0 = NULL; }
1416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1418 return NULL;
1419 }
1420 }
1421 {
1422 #if PYTHON_API_VERSION >= 1009
1423 char* tmpPtr; int tmpSize;
1424 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1425 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1426 return NULL;
1427 }
1428 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1429 return NULL;
1430 _arg1 = new wxString(tmpPtr, tmpSize);
1431 #else
1432 if (!PyString_Check(_obj1)) {
1433 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1434 return NULL;
1435 }
1436 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1437 #endif
1438 }
1439 {
1440 wxPy_BEGIN_ALLOW_THREADS;
1441 _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1);
1442
1443 wxPy_END_ALLOW_THREADS;
1444 } if (_result) {
1445 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1446 _resultobj = Py_BuildValue("s",_ptemp);
1447 } else {
1448 Py_INCREF(Py_None);
1449 _resultobj = Py_None;
1450 }
1451 {
1452 if (_obj1)
1453 delete _arg1;
1454 }
1455 return _resultobj;
1456 }
1457
1458 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1459 static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
1460 PyObject * _resultobj;
1461 wxWindow * _arg0;
1462 PyObject * _argo0 = 0;
1463 char *_kwnames[] = { "self", NULL };
1464
1465 self = self;
1466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0))
1467 return NULL;
1468 if (_argo0) {
1469 if (_argo0 == Py_None) { _arg0 = NULL; }
1470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1472 return NULL;
1473 }
1474 }
1475 {
1476 wxPy_BEGIN_ALLOW_THREADS;
1477 wxWindow_Fit(_arg0);
1478
1479 wxPy_END_ALLOW_THREADS;
1480 } Py_INCREF(Py_None);
1481 _resultobj = Py_None;
1482 return _resultobj;
1483 }
1484
1485 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1486 static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1487 PyObject * _resultobj;
1488 wxColour * _result;
1489 wxWindow * _arg0;
1490 PyObject * _argo0 = 0;
1491 char *_kwnames[] = { "self", NULL };
1492 char _ptemp[128];
1493
1494 self = self;
1495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0))
1496 return NULL;
1497 if (_argo0) {
1498 if (_argo0 == Py_None) { _arg0 = NULL; }
1499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1501 return NULL;
1502 }
1503 }
1504 {
1505 wxPy_BEGIN_ALLOW_THREADS;
1506 _result = new wxColour (wxWindow_GetBackgroundColour(_arg0));
1507
1508 wxPy_END_ALLOW_THREADS;
1509 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1510 _resultobj = Py_BuildValue("s",_ptemp);
1511 return _resultobj;
1512 }
1513
1514 static PyObject * wxWindow_GetChildren(wxWindow *self) {
1515 wxWindowList& list = self->GetChildren();
1516 return wxPy_ConvertList(&list, "wxWindow");
1517 }
1518 static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1519 PyObject * _resultobj;
1520 PyObject * _result;
1521 wxWindow * _arg0;
1522 PyObject * _argo0 = 0;
1523 char *_kwnames[] = { "self", NULL };
1524
1525 self = self;
1526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0))
1527 return NULL;
1528 if (_argo0) {
1529 if (_argo0 == Py_None) { _arg0 = NULL; }
1530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1532 return NULL;
1533 }
1534 }
1535 {
1536 wxPy_BEGIN_ALLOW_THREADS;
1537 _result = (PyObject *)wxWindow_GetChildren(_arg0);
1538
1539 wxPy_END_ALLOW_THREADS;
1540 }{
1541 _resultobj = _result;
1542 }
1543 return _resultobj;
1544 }
1545
1546 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1547 static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1548 PyObject * _resultobj;
1549 int _result;
1550 wxWindow * _arg0;
1551 PyObject * _argo0 = 0;
1552 char *_kwnames[] = { "self", NULL };
1553
1554 self = self;
1555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0))
1556 return NULL;
1557 if (_argo0) {
1558 if (_argo0 == Py_None) { _arg0 = NULL; }
1559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1561 return NULL;
1562 }
1563 }
1564 {
1565 wxPy_BEGIN_ALLOW_THREADS;
1566 _result = (int )wxWindow_GetCharHeight(_arg0);
1567
1568 wxPy_END_ALLOW_THREADS;
1569 } _resultobj = Py_BuildValue("i",_result);
1570 return _resultobj;
1571 }
1572
1573 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1574 static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1575 PyObject * _resultobj;
1576 int _result;
1577 wxWindow * _arg0;
1578 PyObject * _argo0 = 0;
1579 char *_kwnames[] = { "self", NULL };
1580
1581 self = self;
1582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0))
1583 return NULL;
1584 if (_argo0) {
1585 if (_argo0 == Py_None) { _arg0 = NULL; }
1586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1588 return NULL;
1589 }
1590 }
1591 {
1592 wxPy_BEGIN_ALLOW_THREADS;
1593 _result = (int )wxWindow_GetCharWidth(_arg0);
1594
1595 wxPy_END_ALLOW_THREADS;
1596 } _resultobj = Py_BuildValue("i",_result);
1597 return _resultobj;
1598 }
1599
1600 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1601 static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1602 PyObject * _resultobj;
1603 wxWindow * _arg0;
1604 int * _arg1;
1605 int temp;
1606 int * _arg2;
1607 int temp0;
1608 PyObject * _argo0 = 0;
1609 char *_kwnames[] = { "self", NULL };
1610
1611 self = self;
1612 {
1613 _arg1 = &temp;
1614 }
1615 {
1616 _arg2 = &temp0;
1617 }
1618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0))
1619 return NULL;
1620 if (_argo0) {
1621 if (_argo0 == Py_None) { _arg0 = NULL; }
1622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1624 return NULL;
1625 }
1626 }
1627 {
1628 wxPy_BEGIN_ALLOW_THREADS;
1629 wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2);
1630
1631 wxPy_END_ALLOW_THREADS;
1632 } Py_INCREF(Py_None);
1633 _resultobj = Py_None;
1634 {
1635 PyObject *o;
1636 o = PyInt_FromLong((long) (*_arg1));
1637 _resultobj = t_output_helper(_resultobj, o);
1638 }
1639 {
1640 PyObject *o;
1641 o = PyInt_FromLong((long) (*_arg2));
1642 _resultobj = t_output_helper(_resultobj, o);
1643 }
1644 return _resultobj;
1645 }
1646
1647 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1648 static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1649 PyObject * _resultobj;
1650 wxSize * _result;
1651 wxWindow * _arg0;
1652 PyObject * _argo0 = 0;
1653 char *_kwnames[] = { "self", NULL };
1654 char _ptemp[128];
1655
1656 self = self;
1657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0))
1658 return NULL;
1659 if (_argo0) {
1660 if (_argo0 == Py_None) { _arg0 = NULL; }
1661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1663 return NULL;
1664 }
1665 }
1666 {
1667 wxPy_BEGIN_ALLOW_THREADS;
1668 _result = new wxSize (wxWindow_GetClientSize(_arg0));
1669
1670 wxPy_END_ALLOW_THREADS;
1671 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1672 _resultobj = Py_BuildValue("s",_ptemp);
1673 return _resultobj;
1674 }
1675
1676 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1677 static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
1678 PyObject * _resultobj;
1679 wxLayoutConstraints * _result;
1680 wxWindow * _arg0;
1681 PyObject * _argo0 = 0;
1682 char *_kwnames[] = { "self", NULL };
1683 char _ptemp[128];
1684
1685 self = self;
1686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0))
1687 return NULL;
1688 if (_argo0) {
1689 if (_argo0 == Py_None) { _arg0 = NULL; }
1690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1692 return NULL;
1693 }
1694 }
1695 {
1696 wxPy_BEGIN_ALLOW_THREADS;
1697 _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0);
1698
1699 wxPy_END_ALLOW_THREADS;
1700 } if (_result) {
1701 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p");
1702 _resultobj = Py_BuildValue("s",_ptemp);
1703 } else {
1704 Py_INCREF(Py_None);
1705 _resultobj = Py_None;
1706 }
1707 return _resultobj;
1708 }
1709
1710 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1711 static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1712 PyObject * _resultobj;
1713 wxEvtHandler * _result;
1714 wxWindow * _arg0;
1715 PyObject * _argo0 = 0;
1716 char *_kwnames[] = { "self", NULL };
1717 char _ptemp[128];
1718
1719 self = self;
1720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0))
1721 return NULL;
1722 if (_argo0) {
1723 if (_argo0 == Py_None) { _arg0 = NULL; }
1724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1726 return NULL;
1727 }
1728 }
1729 {
1730 wxPy_BEGIN_ALLOW_THREADS;
1731 _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0);
1732
1733 wxPy_END_ALLOW_THREADS;
1734 } if (_result) {
1735 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
1736 _resultobj = Py_BuildValue("s",_ptemp);
1737 } else {
1738 Py_INCREF(Py_None);
1739 _resultobj = Py_None;
1740 }
1741 return _resultobj;
1742 }
1743
1744 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1745 static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject * _resultobj;
1747 wxFont * _result;
1748 wxWindow * _arg0;
1749 PyObject * _argo0 = 0;
1750 char *_kwnames[] = { "self", NULL };
1751 char _ptemp[128];
1752
1753 self = self;
1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0))
1755 return NULL;
1756 if (_argo0) {
1757 if (_argo0 == Py_None) { _arg0 = NULL; }
1758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1760 return NULL;
1761 }
1762 }
1763 {
1764 wxPy_BEGIN_ALLOW_THREADS;
1765 wxFont & _result_ref = wxWindow_GetFont(_arg0);
1766 _result = (wxFont *) &_result_ref;
1767
1768 wxPy_END_ALLOW_THREADS;
1769 } if (_result) {
1770 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
1771 _resultobj = Py_BuildValue("s",_ptemp);
1772 } else {
1773 Py_INCREF(Py_None);
1774 _resultobj = Py_None;
1775 }
1776 return _resultobj;
1777 }
1778
1779 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1780 static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1781 PyObject * _resultobj;
1782 wxColour * _result;
1783 wxWindow * _arg0;
1784 PyObject * _argo0 = 0;
1785 char *_kwnames[] = { "self", NULL };
1786 char _ptemp[128];
1787
1788 self = self;
1789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0))
1790 return NULL;
1791 if (_argo0) {
1792 if (_argo0 == Py_None) { _arg0 = NULL; }
1793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1795 return NULL;
1796 }
1797 }
1798 {
1799 wxPy_BEGIN_ALLOW_THREADS;
1800 _result = new wxColour (wxWindow_GetForegroundColour(_arg0));
1801
1802 wxPy_END_ALLOW_THREADS;
1803 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1804 _resultobj = Py_BuildValue("s",_ptemp);
1805 return _resultobj;
1806 }
1807
1808 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1809 static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1810 PyObject * _resultobj;
1811 wxWindow * _result;
1812 wxWindow * _arg0;
1813 PyObject * _argo0 = 0;
1814 char *_kwnames[] = { "self", NULL };
1815 char _ptemp[128];
1816
1817 self = self;
1818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0))
1819 return NULL;
1820 if (_argo0) {
1821 if (_argo0 == Py_None) { _arg0 = NULL; }
1822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1824 return NULL;
1825 }
1826 }
1827 {
1828 wxPy_BEGIN_ALLOW_THREADS;
1829 _result = (wxWindow *)wxWindow_GetGrandParent(_arg0);
1830
1831 wxPy_END_ALLOW_THREADS;
1832 } if (_result) {
1833 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1834 _resultobj = Py_BuildValue("s",_ptemp);
1835 } else {
1836 Py_INCREF(Py_None);
1837 _resultobj = Py_None;
1838 }
1839 return _resultobj;
1840 }
1841
1842 static long wxWindow_GetHandle(wxWindow *self) {
1843 return wxPyGetWinHandle(self); //(long)self->GetHandle();
1844 }
1845 static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject * _resultobj;
1847 long _result;
1848 wxWindow * _arg0;
1849 PyObject * _argo0 = 0;
1850 char *_kwnames[] = { "self", NULL };
1851
1852 self = self;
1853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0))
1854 return NULL;
1855 if (_argo0) {
1856 if (_argo0 == Py_None) { _arg0 = NULL; }
1857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1859 return NULL;
1860 }
1861 }
1862 {
1863 wxPy_BEGIN_ALLOW_THREADS;
1864 _result = (long )wxWindow_GetHandle(_arg0);
1865
1866 wxPy_END_ALLOW_THREADS;
1867 } _resultobj = Py_BuildValue("l",_result);
1868 return _resultobj;
1869 }
1870
1871 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1872 static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject * _resultobj;
1874 int _result;
1875 wxWindow * _arg0;
1876 PyObject * _argo0 = 0;
1877 char *_kwnames[] = { "self", NULL };
1878
1879 self = self;
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0))
1881 return NULL;
1882 if (_argo0) {
1883 if (_argo0 == Py_None) { _arg0 = NULL; }
1884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1886 return NULL;
1887 }
1888 }
1889 {
1890 wxPy_BEGIN_ALLOW_THREADS;
1891 _result = (int )wxWindow_GetId(_arg0);
1892
1893 wxPy_END_ALLOW_THREADS;
1894 } _resultobj = Py_BuildValue("i",_result);
1895 return _resultobj;
1896 }
1897
1898 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1899 static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1900 PyObject * _resultobj;
1901 wxString * _result;
1902 wxWindow * _arg0;
1903 PyObject * _argo0 = 0;
1904 char *_kwnames[] = { "self", NULL };
1905
1906 self = self;
1907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0))
1908 return NULL;
1909 if (_argo0) {
1910 if (_argo0 == Py_None) { _arg0 = NULL; }
1911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1913 return NULL;
1914 }
1915 }
1916 {
1917 wxPy_BEGIN_ALLOW_THREADS;
1918 _result = new wxString (wxWindow_GetLabel(_arg0));
1919
1920 wxPy_END_ALLOW_THREADS;
1921 }{
1922 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1923 }
1924 {
1925 delete _result;
1926 }
1927 return _resultobj;
1928 }
1929
1930 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1931 static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1932 PyObject * _resultobj;
1933 wxWindow * _arg0;
1934 wxString * _arg1;
1935 PyObject * _argo0 = 0;
1936 PyObject * _obj1 = 0;
1937 char *_kwnames[] = { "self","label", NULL };
1938
1939 self = self;
1940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1))
1941 return NULL;
1942 if (_argo0) {
1943 if (_argo0 == Py_None) { _arg0 = NULL; }
1944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
1946 return NULL;
1947 }
1948 }
1949 {
1950 #if PYTHON_API_VERSION >= 1009
1951 char* tmpPtr; int tmpSize;
1952 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1953 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
1954 return NULL;
1955 }
1956 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1957 return NULL;
1958 _arg1 = new wxString(tmpPtr, tmpSize);
1959 #else
1960 if (!PyString_Check(_obj1)) {
1961 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1962 return NULL;
1963 }
1964 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1965 #endif
1966 }
1967 {
1968 wxPy_BEGIN_ALLOW_THREADS;
1969 wxWindow_SetLabel(_arg0,*_arg1);
1970
1971 wxPy_END_ALLOW_THREADS;
1972 } Py_INCREF(Py_None);
1973 _resultobj = Py_None;
1974 {
1975 if (_obj1)
1976 delete _arg1;
1977 }
1978 return _resultobj;
1979 }
1980
1981 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
1982 static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
1983 PyObject * _resultobj;
1984 wxString * _result;
1985 wxWindow * _arg0;
1986 PyObject * _argo0 = 0;
1987 char *_kwnames[] = { "self", NULL };
1988
1989 self = self;
1990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0))
1991 return NULL;
1992 if (_argo0) {
1993 if (_argo0 == Py_None) { _arg0 = NULL; }
1994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
1996 return NULL;
1997 }
1998 }
1999 {
2000 wxPy_BEGIN_ALLOW_THREADS;
2001 _result = new wxString (wxWindow_GetName(_arg0));
2002
2003 wxPy_END_ALLOW_THREADS;
2004 }{
2005 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2006 }
2007 {
2008 delete _result;
2009 }
2010 return _resultobj;
2011 }
2012
2013 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2014 static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
2015 PyObject * _resultobj;
2016 wxWindow * _result;
2017 wxWindow * _arg0;
2018 PyObject * _argo0 = 0;
2019 char *_kwnames[] = { "self", NULL };
2020 char _ptemp[128];
2021
2022 self = self;
2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0))
2024 return NULL;
2025 if (_argo0) {
2026 if (_argo0 == Py_None) { _arg0 = NULL; }
2027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2029 return NULL;
2030 }
2031 }
2032 {
2033 wxPy_BEGIN_ALLOW_THREADS;
2034 _result = (wxWindow *)wxWindow_GetParent(_arg0);
2035
2036 wxPy_END_ALLOW_THREADS;
2037 } if (_result) {
2038 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
2039 _resultobj = Py_BuildValue("s",_ptemp);
2040 } else {
2041 Py_INCREF(Py_None);
2042 _resultobj = Py_None;
2043 }
2044 return _resultobj;
2045 }
2046
2047 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2048 static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2049 PyObject * _resultobj;
2050 wxWindow * _arg0;
2051 int * _arg1;
2052 int temp;
2053 int * _arg2;
2054 int temp0;
2055 PyObject * _argo0 = 0;
2056 char *_kwnames[] = { "self", NULL };
2057
2058 self = self;
2059 {
2060 _arg1 = &temp;
2061 }
2062 {
2063 _arg2 = &temp0;
2064 }
2065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0))
2066 return NULL;
2067 if (_argo0) {
2068 if (_argo0 == Py_None) { _arg0 = NULL; }
2069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2071 return NULL;
2072 }
2073 }
2074 {
2075 wxPy_BEGIN_ALLOW_THREADS;
2076 wxWindow_GetPositionTuple(_arg0,_arg1,_arg2);
2077
2078 wxPy_END_ALLOW_THREADS;
2079 } Py_INCREF(Py_None);
2080 _resultobj = Py_None;
2081 {
2082 PyObject *o;
2083 o = PyInt_FromLong((long) (*_arg1));
2084 _resultobj = t_output_helper(_resultobj, o);
2085 }
2086 {
2087 PyObject *o;
2088 o = PyInt_FromLong((long) (*_arg2));
2089 _resultobj = t_output_helper(_resultobj, o);
2090 }
2091 return _resultobj;
2092 }
2093
2094 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2095 static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2096 PyObject * _resultobj;
2097 wxPoint * _result;
2098 wxWindow * _arg0;
2099 PyObject * _argo0 = 0;
2100 char *_kwnames[] = { "self", NULL };
2101 char _ptemp[128];
2102
2103 self = self;
2104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0))
2105 return NULL;
2106 if (_argo0) {
2107 if (_argo0 == Py_None) { _arg0 = NULL; }
2108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2110 return NULL;
2111 }
2112 }
2113 {
2114 wxPy_BEGIN_ALLOW_THREADS;
2115 _result = new wxPoint (wxWindow_GetPosition(_arg0));
2116
2117 wxPy_END_ALLOW_THREADS;
2118 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2119 _resultobj = Py_BuildValue("s",_ptemp);
2120 return _resultobj;
2121 }
2122
2123 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2124 static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2125 PyObject * _resultobj;
2126 wxRect * _result;
2127 wxWindow * _arg0;
2128 PyObject * _argo0 = 0;
2129 char *_kwnames[] = { "self", NULL };
2130 char _ptemp[128];
2131
2132 self = self;
2133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0))
2134 return NULL;
2135 if (_argo0) {
2136 if (_argo0 == Py_None) { _arg0 = NULL; }
2137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2139 return NULL;
2140 }
2141 }
2142 {
2143 wxPy_BEGIN_ALLOW_THREADS;
2144 _result = new wxRect (wxWindow_GetRect(_arg0));
2145
2146 wxPy_END_ALLOW_THREADS;
2147 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
2148 _resultobj = Py_BuildValue("s",_ptemp);
2149 return _resultobj;
2150 }
2151
2152 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2153 static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
2154 PyObject * _resultobj;
2155 int _result;
2156 wxWindow * _arg0;
2157 int _arg1;
2158 PyObject * _argo0 = 0;
2159 char *_kwnames[] = { "self","orientation", NULL };
2160
2161 self = self;
2162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1))
2163 return NULL;
2164 if (_argo0) {
2165 if (_argo0 == Py_None) { _arg0 = NULL; }
2166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2168 return NULL;
2169 }
2170 }
2171 {
2172 wxPy_BEGIN_ALLOW_THREADS;
2173 _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1);
2174
2175 wxPy_END_ALLOW_THREADS;
2176 } _resultobj = Py_BuildValue("i",_result);
2177 return _resultobj;
2178 }
2179
2180 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2181 static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
2182 PyObject * _resultobj;
2183 int _result;
2184 wxWindow * _arg0;
2185 int _arg1;
2186 PyObject * _argo0 = 0;
2187 char *_kwnames[] = { "self","orientation", NULL };
2188
2189 self = self;
2190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1))
2191 return NULL;
2192 if (_argo0) {
2193 if (_argo0 == Py_None) { _arg0 = NULL; }
2194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2196 return NULL;
2197 }
2198 }
2199 {
2200 wxPy_BEGIN_ALLOW_THREADS;
2201 _result = (int )wxWindow_GetScrollPos(_arg0,_arg1);
2202
2203 wxPy_END_ALLOW_THREADS;
2204 } _resultobj = Py_BuildValue("i",_result);
2205 return _resultobj;
2206 }
2207
2208 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2209 static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject * _resultobj;
2211 int _result;
2212 wxWindow * _arg0;
2213 int _arg1;
2214 PyObject * _argo0 = 0;
2215 char *_kwnames[] = { "self","orientation", NULL };
2216
2217 self = self;
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1))
2219 return NULL;
2220 if (_argo0) {
2221 if (_argo0 == Py_None) { _arg0 = NULL; }
2222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2224 return NULL;
2225 }
2226 }
2227 {
2228 wxPy_BEGIN_ALLOW_THREADS;
2229 _result = (int )wxWindow_GetScrollRange(_arg0,_arg1);
2230
2231 wxPy_END_ALLOW_THREADS;
2232 } _resultobj = Py_BuildValue("i",_result);
2233 return _resultobj;
2234 }
2235
2236 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2237 static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2238 PyObject * _resultobj;
2239 wxWindow * _arg0;
2240 int * _arg1;
2241 int temp;
2242 int * _arg2;
2243 int temp0;
2244 PyObject * _argo0 = 0;
2245 char *_kwnames[] = { "self", NULL };
2246
2247 self = self;
2248 {
2249 _arg1 = &temp;
2250 }
2251 {
2252 _arg2 = &temp0;
2253 }
2254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0))
2255 return NULL;
2256 if (_argo0) {
2257 if (_argo0 == Py_None) { _arg0 = NULL; }
2258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2260 return NULL;
2261 }
2262 }
2263 {
2264 wxPy_BEGIN_ALLOW_THREADS;
2265 wxWindow_GetSizeTuple(_arg0,_arg1,_arg2);
2266
2267 wxPy_END_ALLOW_THREADS;
2268 } Py_INCREF(Py_None);
2269 _resultobj = Py_None;
2270 {
2271 PyObject *o;
2272 o = PyInt_FromLong((long) (*_arg1));
2273 _resultobj = t_output_helper(_resultobj, o);
2274 }
2275 {
2276 PyObject *o;
2277 o = PyInt_FromLong((long) (*_arg2));
2278 _resultobj = t_output_helper(_resultobj, o);
2279 }
2280 return _resultobj;
2281 }
2282
2283 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2284 static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2285 PyObject * _resultobj;
2286 wxSize * _result;
2287 wxWindow * _arg0;
2288 PyObject * _argo0 = 0;
2289 char *_kwnames[] = { "self", NULL };
2290 char _ptemp[128];
2291
2292 self = self;
2293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0))
2294 return NULL;
2295 if (_argo0) {
2296 if (_argo0 == Py_None) { _arg0 = NULL; }
2297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2299 return NULL;
2300 }
2301 }
2302 {
2303 wxPy_BEGIN_ALLOW_THREADS;
2304 _result = new wxSize (wxWindow_GetSize(_arg0));
2305
2306 wxPy_END_ALLOW_THREADS;
2307 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2308 _resultobj = Py_BuildValue("s",_ptemp);
2309 return _resultobj;
2310 }
2311
2312 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2313 static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2314 PyObject * _resultobj;
2315 wxWindow * _arg0;
2316 wxString * _arg1;
2317 int * _arg2;
2318 int temp;
2319 int * _arg3;
2320 int temp0;
2321 PyObject * _argo0 = 0;
2322 PyObject * _obj1 = 0;
2323 char *_kwnames[] = { "self","string", NULL };
2324
2325 self = self;
2326 {
2327 _arg2 = &temp;
2328 }
2329 {
2330 _arg3 = &temp0;
2331 }
2332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1))
2333 return NULL;
2334 if (_argo0) {
2335 if (_argo0 == Py_None) { _arg0 = NULL; }
2336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2338 return NULL;
2339 }
2340 }
2341 {
2342 #if PYTHON_API_VERSION >= 1009
2343 char* tmpPtr; int tmpSize;
2344 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2345 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
2346 return NULL;
2347 }
2348 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2349 return NULL;
2350 _arg1 = new wxString(tmpPtr, tmpSize);
2351 #else
2352 if (!PyString_Check(_obj1)) {
2353 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2354 return NULL;
2355 }
2356 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2357 #endif
2358 }
2359 {
2360 wxPy_BEGIN_ALLOW_THREADS;
2361 wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
2362
2363 wxPy_END_ALLOW_THREADS;
2364 } Py_INCREF(Py_None);
2365 _resultobj = Py_None;
2366 {
2367 PyObject *o;
2368 o = PyInt_FromLong((long) (*_arg2));
2369 _resultobj = t_output_helper(_resultobj, o);
2370 }
2371 {
2372 PyObject *o;
2373 o = PyInt_FromLong((long) (*_arg3));
2374 _resultobj = t_output_helper(_resultobj, o);
2375 }
2376 {
2377 if (_obj1)
2378 delete _arg1;
2379 }
2380 return _resultobj;
2381 }
2382
2383 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2384 static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2385 PyObject * _resultobj;
2386 wxWindow * _arg0;
2387 wxString * _arg1;
2388 int * _arg2;
2389 int temp;
2390 int * _arg3;
2391 int temp0;
2392 int * _arg4;
2393 int temp1;
2394 int * _arg5;
2395 int temp2;
2396 wxFont * _arg6 = (wxFont *) NULL;
2397 PyObject * _argo0 = 0;
2398 PyObject * _obj1 = 0;
2399 PyObject * _argo6 = 0;
2400 char *_kwnames[] = { "self","string","font", NULL };
2401
2402 self = self;
2403 {
2404 _arg2 = &temp;
2405 }
2406 {
2407 _arg3 = &temp0;
2408 }
2409 {
2410 _arg4 = &temp1;
2411 }
2412 {
2413 _arg5 = &temp2;
2414 }
2415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
2416 return NULL;
2417 if (_argo0) {
2418 if (_argo0 == Py_None) { _arg0 = NULL; }
2419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2421 return NULL;
2422 }
2423 }
2424 {
2425 #if PYTHON_API_VERSION >= 1009
2426 char* tmpPtr; int tmpSize;
2427 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2428 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
2429 return NULL;
2430 }
2431 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2432 return NULL;
2433 _arg1 = new wxString(tmpPtr, tmpSize);
2434 #else
2435 if (!PyString_Check(_obj1)) {
2436 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2437 return NULL;
2438 }
2439 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2440 #endif
2441 }
2442 if (_argo6) {
2443 if (_argo6 == Py_None) { _arg6 = NULL; }
2444 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
2445 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2446 return NULL;
2447 }
2448 }
2449 {
2450 wxPy_BEGIN_ALLOW_THREADS;
2451 wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2452
2453 wxPy_END_ALLOW_THREADS;
2454 } Py_INCREF(Py_None);
2455 _resultobj = Py_None;
2456 {
2457 PyObject *o;
2458 o = PyInt_FromLong((long) (*_arg2));
2459 _resultobj = t_output_helper(_resultobj, o);
2460 }
2461 {
2462 PyObject *o;
2463 o = PyInt_FromLong((long) (*_arg3));
2464 _resultobj = t_output_helper(_resultobj, o);
2465 }
2466 {
2467 PyObject *o;
2468 o = PyInt_FromLong((long) (*_arg4));
2469 _resultobj = t_output_helper(_resultobj, o);
2470 }
2471 {
2472 PyObject *o;
2473 o = PyInt_FromLong((long) (*_arg5));
2474 _resultobj = t_output_helper(_resultobj, o);
2475 }
2476 {
2477 if (_obj1)
2478 delete _arg1;
2479 }
2480 return _resultobj;
2481 }
2482
2483 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2484 static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
2485 PyObject * _resultobj;
2486 wxString * _result;
2487 wxWindow * _arg0;
2488 PyObject * _argo0 = 0;
2489 char *_kwnames[] = { "self", NULL };
2490
2491 self = self;
2492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0))
2493 return NULL;
2494 if (_argo0) {
2495 if (_argo0 == Py_None) { _arg0 = NULL; }
2496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2498 return NULL;
2499 }
2500 }
2501 {
2502 wxPy_BEGIN_ALLOW_THREADS;
2503 _result = new wxString (wxWindow_GetTitle(_arg0));
2504
2505 wxPy_END_ALLOW_THREADS;
2506 }{
2507 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2508 }
2509 {
2510 delete _result;
2511 }
2512 return _resultobj;
2513 }
2514
2515 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2516 static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject * _resultobj;
2518 wxRegion * _result;
2519 wxWindow * _arg0;
2520 PyObject * _argo0 = 0;
2521 char *_kwnames[] = { "self", NULL };
2522 char _ptemp[128];
2523
2524 self = self;
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0))
2526 return NULL;
2527 if (_argo0) {
2528 if (_argo0 == Py_None) { _arg0 = NULL; }
2529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2531 return NULL;
2532 }
2533 }
2534 {
2535 wxPy_BEGIN_ALLOW_THREADS;
2536 _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0));
2537
2538 wxPy_END_ALLOW_THREADS;
2539 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p");
2540 _resultobj = Py_BuildValue("s",_ptemp);
2541 return _resultobj;
2542 }
2543
2544 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2545 static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2546 PyObject * _resultobj;
2547 long _result;
2548 wxWindow * _arg0;
2549 PyObject * _argo0 = 0;
2550 char *_kwnames[] = { "self", NULL };
2551
2552 self = self;
2553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0))
2554 return NULL;
2555 if (_argo0) {
2556 if (_argo0 == Py_None) { _arg0 = NULL; }
2557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2559 return NULL;
2560 }
2561 }
2562 {
2563 wxPy_BEGIN_ALLOW_THREADS;
2564 _result = (long )wxWindow_GetWindowStyleFlag(_arg0);
2565
2566 wxPy_END_ALLOW_THREADS;
2567 } _resultobj = Py_BuildValue("l",_result);
2568 return _resultobj;
2569 }
2570
2571 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2572 static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2573 PyObject * _resultobj;
2574 wxWindow * _arg0;
2575 long _arg1;
2576 PyObject * _argo0 = 0;
2577 char *_kwnames[] = { "self","style", NULL };
2578
2579 self = self;
2580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
2581 return NULL;
2582 if (_argo0) {
2583 if (_argo0 == Py_None) { _arg0 = NULL; }
2584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2586 return NULL;
2587 }
2588 }
2589 {
2590 wxPy_BEGIN_ALLOW_THREADS;
2591 wxWindow_SetWindowStyleFlag(_arg0,_arg1);
2592
2593 wxPy_END_ALLOW_THREADS;
2594 } Py_INCREF(Py_None);
2595 _resultobj = Py_None;
2596 return _resultobj;
2597 }
2598
2599 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2600 static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2601 PyObject * _resultobj;
2602 wxWindow * _arg0;
2603 long _arg1;
2604 PyObject * _argo0 = 0;
2605 char *_kwnames[] = { "self","style", NULL };
2606
2607 self = self;
2608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1))
2609 return NULL;
2610 if (_argo0) {
2611 if (_argo0 == Py_None) { _arg0 = NULL; }
2612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2614 return NULL;
2615 }
2616 }
2617 {
2618 wxPy_BEGIN_ALLOW_THREADS;
2619 wxWindow_SetWindowStyle(_arg0,_arg1);
2620
2621 wxPy_END_ALLOW_THREADS;
2622 } Py_INCREF(Py_None);
2623 _resultobj = Py_None;
2624 return _resultobj;
2625 }
2626
2627 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2628 static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
2629 PyObject * _resultobj;
2630 bool _result;
2631 wxWindow * _arg0;
2632 PyObject * _argo0 = 0;
2633 char *_kwnames[] = { "self", NULL };
2634
2635 self = self;
2636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0))
2637 return NULL;
2638 if (_argo0) {
2639 if (_argo0 == Py_None) { _arg0 = NULL; }
2640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2642 return NULL;
2643 }
2644 }
2645 {
2646 wxPy_BEGIN_ALLOW_THREADS;
2647 _result = (bool )wxWindow_Hide(_arg0);
2648
2649 wxPy_END_ALLOW_THREADS;
2650 } _resultobj = Py_BuildValue("i",_result);
2651 return _resultobj;
2652 }
2653
2654 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2655 static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2656 PyObject * _resultobj;
2657 wxWindow * _arg0;
2658 PyObject * _argo0 = 0;
2659 char *_kwnames[] = { "self", NULL };
2660
2661 self = self;
2662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0))
2663 return NULL;
2664 if (_argo0) {
2665 if (_argo0 == Py_None) { _arg0 = NULL; }
2666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2668 return NULL;
2669 }
2670 }
2671 {
2672 wxPy_BEGIN_ALLOW_THREADS;
2673 wxWindow_InitDialog(_arg0);
2674
2675 wxPy_END_ALLOW_THREADS;
2676 } Py_INCREF(Py_None);
2677 _resultobj = Py_None;
2678 return _resultobj;
2679 }
2680
2681 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2682 static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
2683 PyObject * _resultobj;
2684 bool _result;
2685 wxWindow * _arg0;
2686 PyObject * _argo0 = 0;
2687 char *_kwnames[] = { "self", NULL };
2688
2689 self = self;
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0))
2691 return NULL;
2692 if (_argo0) {
2693 if (_argo0 == Py_None) { _arg0 = NULL; }
2694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2696 return NULL;
2697 }
2698 }
2699 {
2700 wxPy_BEGIN_ALLOW_THREADS;
2701 _result = (bool )wxWindow_IsEnabled(_arg0);
2702
2703 wxPy_END_ALLOW_THREADS;
2704 } _resultobj = Py_BuildValue("i",_result);
2705 return _resultobj;
2706 }
2707
2708 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2709 static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
2710 PyObject * _resultobj;
2711 bool _result;
2712 wxWindow * _arg0;
2713 int _arg1;
2714 int _arg2;
2715 int _arg3 = (int ) 0;
2716 int _arg4 = (int ) 0;
2717 PyObject * _argo0 = 0;
2718 char *_kwnames[] = { "self","x","y","w","h", NULL };
2719
2720 self = self;
2721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
2722 return NULL;
2723 if (_argo0) {
2724 if (_argo0 == Py_None) { _arg0 = NULL; }
2725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
2727 return NULL;
2728 }
2729 }
2730 {
2731 wxPy_BEGIN_ALLOW_THREADS;
2732 _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4);
2733
2734 wxPy_END_ALLOW_THREADS;
2735 } _resultobj = Py_BuildValue("i",_result);
2736 return _resultobj;
2737 }
2738
2739 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2740 static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2741 PyObject * _resultobj;
2742 bool _result;
2743 wxWindow * _arg0;
2744 wxPoint * _arg1;
2745 PyObject * _argo0 = 0;
2746 wxPoint temp;
2747 PyObject * _obj1 = 0;
2748 char *_kwnames[] = { "self","pt", NULL };
2749
2750 self = self;
2751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1))
2752 return NULL;
2753 if (_argo0) {
2754 if (_argo0 == Py_None) { _arg0 = NULL; }
2755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
2757 return NULL;
2758 }
2759 }
2760 {
2761 _arg1 = &temp;
2762 if (! wxPoint_helper(_obj1, &_arg1))
2763 return NULL;
2764 }
2765 {
2766 wxPy_BEGIN_ALLOW_THREADS;
2767 _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1);
2768
2769 wxPy_END_ALLOW_THREADS;
2770 } _resultobj = Py_BuildValue("i",_result);
2771 return _resultobj;
2772 }
2773
2774 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
2775 static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2776 PyObject * _resultobj;
2777 bool _result;
2778 wxWindow * _arg0;
2779 wxRect * _arg1;
2780 PyObject * _argo0 = 0;
2781 wxRect temp;
2782 PyObject * _obj1 = 0;
2783 char *_kwnames[] = { "self","rect", NULL };
2784
2785 self = self;
2786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1))
2787 return NULL;
2788 if (_argo0) {
2789 if (_argo0 == Py_None) { _arg0 = NULL; }
2790 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2791 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
2792 return NULL;
2793 }
2794 }
2795 {
2796 _arg1 = &temp;
2797 if (! wxRect_helper(_obj1, &_arg1))
2798 return NULL;
2799 }
2800 {
2801 wxPy_BEGIN_ALLOW_THREADS;
2802 _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1);
2803
2804 wxPy_END_ALLOW_THREADS;
2805 } _resultobj = Py_BuildValue("i",_result);
2806 return _resultobj;
2807 }
2808
2809 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2810 static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
2811 PyObject * _resultobj;
2812 bool _result;
2813 wxWindow * _arg0;
2814 PyObject * _argo0 = 0;
2815 char *_kwnames[] = { "self", NULL };
2816
2817 self = self;
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0))
2819 return NULL;
2820 if (_argo0) {
2821 if (_argo0 == Py_None) { _arg0 = NULL; }
2822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2824 return NULL;
2825 }
2826 }
2827 {
2828 wxPy_BEGIN_ALLOW_THREADS;
2829 _result = (bool )wxWindow_IsRetained(_arg0);
2830
2831 wxPy_END_ALLOW_THREADS;
2832 } _resultobj = Py_BuildValue("i",_result);
2833 return _resultobj;
2834 }
2835
2836 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2837 static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
2838 PyObject * _resultobj;
2839 bool _result;
2840 wxWindow * _arg0;
2841 PyObject * _argo0 = 0;
2842 char *_kwnames[] = { "self", NULL };
2843
2844 self = self;
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0))
2846 return NULL;
2847 if (_argo0) {
2848 if (_argo0 == Py_None) { _arg0 = NULL; }
2849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2851 return NULL;
2852 }
2853 }
2854 {
2855 wxPy_BEGIN_ALLOW_THREADS;
2856 _result = (bool )wxWindow_IsShown(_arg0);
2857
2858 wxPy_END_ALLOW_THREADS;
2859 } _resultobj = Py_BuildValue("i",_result);
2860 return _resultobj;
2861 }
2862
2863 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2864 static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
2865 PyObject * _resultobj;
2866 bool _result;
2867 wxWindow * _arg0;
2868 PyObject * _argo0 = 0;
2869 char *_kwnames[] = { "self", NULL };
2870
2871 self = self;
2872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0))
2873 return NULL;
2874 if (_argo0) {
2875 if (_argo0 == Py_None) { _arg0 = NULL; }
2876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
2878 return NULL;
2879 }
2880 }
2881 {
2882 wxPy_BEGIN_ALLOW_THREADS;
2883 _result = (bool )wxWindow_IsTopLevel(_arg0);
2884
2885 wxPy_END_ALLOW_THREADS;
2886 } _resultobj = Py_BuildValue("i",_result);
2887 return _resultobj;
2888 }
2889
2890 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2891 static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
2892 PyObject * _resultobj;
2893 wxWindow * _arg0;
2894 PyObject * _argo0 = 0;
2895 char *_kwnames[] = { "self", NULL };
2896
2897 self = self;
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0))
2899 return NULL;
2900 if (_argo0) {
2901 if (_argo0 == Py_None) { _arg0 = NULL; }
2902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2904 return NULL;
2905 }
2906 }
2907 {
2908 wxPy_BEGIN_ALLOW_THREADS;
2909 wxWindow_Layout(_arg0);
2910
2911 wxPy_END_ALLOW_THREADS;
2912 } Py_INCREF(Py_None);
2913 _resultobj = Py_None;
2914 return _resultobj;
2915 }
2916
2917 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
2918 static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) {
2919 PyObject * _resultobj;
2920 bool _result;
2921 wxWindow * _arg0;
2922 wxWindow * _arg1;
2923 wxString * _arg2;
2924 wxResourceTable * _arg3 = (wxResourceTable *) NULL;
2925 PyObject * _argo0 = 0;
2926 PyObject * _argo1 = 0;
2927 PyObject * _obj2 = 0;
2928 PyObject * _argo3 = 0;
2929 char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL };
2930
2931 self = self;
2932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3))
2933 return NULL;
2934 if (_argo0) {
2935 if (_argo0 == Py_None) { _arg0 = NULL; }
2936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2938 return NULL;
2939 }
2940 }
2941 if (_argo1) {
2942 if (_argo1 == Py_None) { _arg1 = NULL; }
2943 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2944 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2945 return NULL;
2946 }
2947 }
2948 {
2949 #if PYTHON_API_VERSION >= 1009
2950 char* tmpPtr; int tmpSize;
2951 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2952 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
2953 return NULL;
2954 }
2955 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2956 return NULL;
2957 _arg2 = new wxString(tmpPtr, tmpSize);
2958 #else
2959 if (!PyString_Check(_obj2)) {
2960 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2961 return NULL;
2962 }
2963 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2964 #endif
2965 }
2966 if (_argo3) {
2967 if (_argo3 == Py_None) { _arg3 = NULL; }
2968 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) {
2969 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
2970 return NULL;
2971 }
2972 }
2973 {
2974 wxPy_BEGIN_ALLOW_THREADS;
2975 _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3);
2976
2977 wxPy_END_ALLOW_THREADS;
2978 } _resultobj = Py_BuildValue("i",_result);
2979 {
2980 if (_obj2)
2981 delete _arg2;
2982 }
2983 return _resultobj;
2984 }
2985
2986 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
2987 static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
2988 PyObject * _resultobj;
2989 wxWindow * _arg0;
2990 PyObject * _argo0 = 0;
2991 char *_kwnames[] = { "self", NULL };
2992
2993 self = self;
2994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0))
2995 return NULL;
2996 if (_argo0) {
2997 if (_argo0 == Py_None) { _arg0 = NULL; }
2998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3000 return NULL;
3001 }
3002 }
3003 {
3004 wxPy_BEGIN_ALLOW_THREADS;
3005 wxWindow_Lower(_arg0);
3006
3007 wxPy_END_ALLOW_THREADS;
3008 } Py_INCREF(Py_None);
3009 _resultobj = Py_None;
3010 return _resultobj;
3011 }
3012
3013 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3014 static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
3015 PyObject * _resultobj;
3016 wxWindow * _arg0;
3017 bool _arg1;
3018 PyObject * _argo0 = 0;
3019 int tempbool1;
3020 char *_kwnames[] = { "self","flag", NULL };
3021
3022 self = self;
3023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1))
3024 return NULL;
3025 if (_argo0) {
3026 if (_argo0 == Py_None) { _arg0 = NULL; }
3027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3029 return NULL;
3030 }
3031 }
3032 _arg1 = (bool ) tempbool1;
3033 {
3034 wxPy_BEGIN_ALLOW_THREADS;
3035 wxWindow_MakeModal(_arg0,_arg1);
3036
3037 wxPy_END_ALLOW_THREADS;
3038 } Py_INCREF(Py_None);
3039 _resultobj = Py_None;
3040 return _resultobj;
3041 }
3042
3043 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3044 static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3045 PyObject * _resultobj;
3046 wxWindow * _arg0;
3047 int _arg1;
3048 int _arg2;
3049 PyObject * _argo0 = 0;
3050 char *_kwnames[] = { "self","x","y", NULL };
3051
3052 self = self;
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2))
3054 return NULL;
3055 if (_argo0) {
3056 if (_argo0 == Py_None) { _arg0 = NULL; }
3057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3059 return NULL;
3060 }
3061 }
3062 {
3063 wxPy_BEGIN_ALLOW_THREADS;
3064 wxWindow_MoveXY(_arg0,_arg1,_arg2);
3065
3066 wxPy_END_ALLOW_THREADS;
3067 } Py_INCREF(Py_None);
3068 _resultobj = Py_None;
3069 return _resultobj;
3070 }
3071
3072 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3073 static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
3074 PyObject * _resultobj;
3075 wxWindow * _arg0;
3076 wxPoint * _arg1;
3077 PyObject * _argo0 = 0;
3078 wxPoint temp;
3079 PyObject * _obj1 = 0;
3080 char *_kwnames[] = { "self","point", NULL };
3081
3082 self = self;
3083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1))
3084 return NULL;
3085 if (_argo0) {
3086 if (_argo0 == Py_None) { _arg0 = NULL; }
3087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3089 return NULL;
3090 }
3091 }
3092 {
3093 _arg1 = &temp;
3094 if (! wxPoint_helper(_obj1, &_arg1))
3095 return NULL;
3096 }
3097 {
3098 wxPy_BEGIN_ALLOW_THREADS;
3099 wxWindow_Move(_arg0,*_arg1);
3100
3101 wxPy_END_ALLOW_THREADS;
3102 } Py_INCREF(Py_None);
3103 _resultobj = Py_None;
3104 return _resultobj;
3105 }
3106
3107 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3108 static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3109 PyObject * _resultobj;
3110 wxEvtHandler * _result;
3111 wxWindow * _arg0;
3112 bool _arg1 = (bool ) FALSE;
3113 PyObject * _argo0 = 0;
3114 int tempbool1 = (int) FALSE;
3115 char *_kwnames[] = { "self","deleteHandler", NULL };
3116 char _ptemp[128];
3117
3118 self = self;
3119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1))
3120 return NULL;
3121 if (_argo0) {
3122 if (_argo0 == Py_None) { _arg0 = NULL; }
3123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3125 return NULL;
3126 }
3127 }
3128 _arg1 = (bool ) tempbool1;
3129 {
3130 wxPy_BEGIN_ALLOW_THREADS;
3131 _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1);
3132
3133 wxPy_END_ALLOW_THREADS;
3134 } if (_result) {
3135 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
3136 _resultobj = Py_BuildValue("s",_ptemp);
3137 } else {
3138 Py_INCREF(Py_None);
3139 _resultobj = Py_None;
3140 }
3141 return _resultobj;
3142 }
3143
3144 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3145 static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3146 PyObject * _resultobj;
3147 wxWindow * _arg0;
3148 wxEvtHandler * _arg1;
3149 PyObject * _argo0 = 0;
3150 PyObject * _argo1 = 0;
3151 char *_kwnames[] = { "self","handler", NULL };
3152
3153 self = self;
3154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1))
3155 return NULL;
3156 if (_argo0) {
3157 if (_argo0 == Py_None) { _arg0 = NULL; }
3158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3160 return NULL;
3161 }
3162 }
3163 if (_argo1) {
3164 if (_argo1 == Py_None) { _arg1 = NULL; }
3165 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
3166 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3167 return NULL;
3168 }
3169 }
3170 {
3171 wxPy_BEGIN_ALLOW_THREADS;
3172 wxWindow_PushEventHandler(_arg0,_arg1);
3173
3174 wxPy_END_ALLOW_THREADS;
3175 } Py_INCREF(Py_None);
3176 _resultobj = Py_None;
3177 return _resultobj;
3178 }
3179
3180 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3181 static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3182 PyObject * _resultobj;
3183 bool _result;
3184 wxWindow * _arg0;
3185 wxMenu * _arg1;
3186 int _arg2;
3187 int _arg3;
3188 PyObject * _argo0 = 0;
3189 PyObject * _argo1 = 0;
3190 char *_kwnames[] = { "self","menu","x","y", NULL };
3191
3192 self = self;
3193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
3194 return NULL;
3195 if (_argo0) {
3196 if (_argo0 == Py_None) { _arg0 = NULL; }
3197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
3199 return NULL;
3200 }
3201 }
3202 if (_argo1) {
3203 if (_argo1 == Py_None) { _arg1 = NULL; }
3204 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
3205 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3206 return NULL;
3207 }
3208 }
3209 {
3210 wxPy_BEGIN_ALLOW_THREADS;
3211 _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3);
3212
3213 wxPy_END_ALLOW_THREADS;
3214 } _resultobj = Py_BuildValue("i",_result);
3215 return _resultobj;
3216 }
3217
3218 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3219 static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
3220 PyObject * _resultobj;
3221 bool _result;
3222 wxWindow * _arg0;
3223 wxMenu * _arg1;
3224 wxPoint * _arg2;
3225 PyObject * _argo0 = 0;
3226 PyObject * _argo1 = 0;
3227 wxPoint temp;
3228 PyObject * _obj2 = 0;
3229 char *_kwnames[] = { "self","menu","pos", NULL };
3230
3231 self = self;
3232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2))
3233 return NULL;
3234 if (_argo0) {
3235 if (_argo0 == Py_None) { _arg0 = NULL; }
3236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3238 return NULL;
3239 }
3240 }
3241 if (_argo1) {
3242 if (_argo1 == Py_None) { _arg1 = NULL; }
3243 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
3244 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3245 return NULL;
3246 }
3247 }
3248 {
3249 _arg2 = &temp;
3250 if (! wxPoint_helper(_obj2, &_arg2))
3251 return NULL;
3252 }
3253 {
3254 wxPy_BEGIN_ALLOW_THREADS;
3255 _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2);
3256
3257 wxPy_END_ALLOW_THREADS;
3258 } _resultobj = Py_BuildValue("i",_result);
3259 return _resultobj;
3260 }
3261
3262 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3263 static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
3264 PyObject * _resultobj;
3265 wxWindow * _arg0;
3266 PyObject * _argo0 = 0;
3267 char *_kwnames[] = { "self", NULL };
3268
3269 self = self;
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0))
3271 return NULL;
3272 if (_argo0) {
3273 if (_argo0 == Py_None) { _arg0 = NULL; }
3274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3276 return NULL;
3277 }
3278 }
3279 {
3280 wxPy_BEGIN_ALLOW_THREADS;
3281 wxWindow_Raise(_arg0);
3282
3283 wxPy_END_ALLOW_THREADS;
3284 } Py_INCREF(Py_None);
3285 _resultobj = Py_None;
3286 return _resultobj;
3287 }
3288
3289 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3290 static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
3291 PyObject * _resultobj;
3292 wxWindow * _arg0;
3293 bool _arg1 = (bool ) TRUE;
3294 wxRect * _arg2 = (wxRect *) NULL;
3295 PyObject * _argo0 = 0;
3296 int tempbool1 = (int) TRUE;
3297 wxRect temp;
3298 PyObject * _obj2 = 0;
3299 char *_kwnames[] = { "self","eraseBackground","rect", NULL };
3300
3301 self = self;
3302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2))
3303 return NULL;
3304 if (_argo0) {
3305 if (_argo0 == Py_None) { _arg0 = NULL; }
3306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3308 return NULL;
3309 }
3310 }
3311 _arg1 = (bool ) tempbool1;
3312 if (_obj2)
3313 {
3314 _arg2 = &temp;
3315 if (! wxRect_helper(_obj2, &_arg2))
3316 return NULL;
3317 }
3318 {
3319 wxPy_BEGIN_ALLOW_THREADS;
3320 wxWindow_Refresh(_arg0,_arg1,_arg2);
3321
3322 wxPy_END_ALLOW_THREADS;
3323 } Py_INCREF(Py_None);
3324 _resultobj = Py_None;
3325 return _resultobj;
3326 }
3327
3328 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
3329 static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
3330 PyObject * _resultobj;
3331 wxWindow * _arg0;
3332 PyObject * _argo0 = 0;
3333 char *_kwnames[] = { "self", NULL };
3334
3335 self = self;
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0))
3337 return NULL;
3338 if (_argo0) {
3339 if (_argo0 == Py_None) { _arg0 = NULL; }
3340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
3342 return NULL;
3343 }
3344 }
3345 {
3346 wxPy_BEGIN_ALLOW_THREADS;
3347 wxWindow_ReleaseMouse(_arg0);
3348
3349 wxPy_END_ALLOW_THREADS;
3350 } Py_INCREF(Py_None);
3351 _resultobj = Py_None;
3352 return _resultobj;
3353 }
3354
3355 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3356 static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
3357 PyObject * _resultobj;
3358 wxWindow * _arg0;
3359 wxWindow * _arg1;
3360 PyObject * _argo0 = 0;
3361 PyObject * _argo1 = 0;
3362 char *_kwnames[] = { "self","child", NULL };
3363
3364 self = self;
3365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1))
3366 return NULL;
3367 if (_argo0) {
3368 if (_argo0 == Py_None) { _arg0 = NULL; }
3369 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3370 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3371 return NULL;
3372 }
3373 }
3374 if (_argo1) {
3375 if (_argo1 == Py_None) { _arg1 = NULL; }
3376 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3377 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3378 return NULL;
3379 }
3380 }
3381 {
3382 wxPy_BEGIN_ALLOW_THREADS;
3383 wxWindow_RemoveChild(_arg0,_arg1);
3384
3385 wxPy_END_ALLOW_THREADS;
3386 } Py_INCREF(Py_None);
3387 _resultobj = Py_None;
3388 return _resultobj;
3389 }
3390
3391 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3392 static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
3393 PyObject * _resultobj;
3394 bool _result;
3395 wxWindow * _arg0;
3396 wxWindow * _arg1;
3397 PyObject * _argo0 = 0;
3398 PyObject * _argo1 = 0;
3399 char *_kwnames[] = { "self","newParent", NULL };
3400
3401 self = self;
3402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1))
3403 return NULL;
3404 if (_argo0) {
3405 if (_argo0 == Py_None) { _arg0 = NULL; }
3406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3408 return NULL;
3409 }
3410 }
3411 if (_argo1) {
3412 if (_argo1 == Py_None) { _arg1 = NULL; }
3413 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3414 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3415 return NULL;
3416 }
3417 }
3418 {
3419 wxPy_BEGIN_ALLOW_THREADS;
3420 _result = (bool )wxWindow_Reparent(_arg0,_arg1);
3421
3422 wxPy_END_ALLOW_THREADS;
3423 } _resultobj = Py_BuildValue("i",_result);
3424 return _resultobj;
3425 }
3426
3427 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3428 static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3429 PyObject * _resultobj;
3430 wxWindow * _arg0;
3431 int * _arg1;
3432 int * _arg2;
3433 PyObject * _argo0 = 0;
3434 int temp;
3435 PyObject * _obj1 = 0;
3436 int temp0;
3437 PyObject * _obj2 = 0;
3438 char *_kwnames[] = { "self","x","y", NULL };
3439
3440 self = self;
3441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2))
3442 return NULL;
3443 if (_argo0) {
3444 if (_argo0 == Py_None) { _arg0 = NULL; }
3445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3447 return NULL;
3448 }
3449 }
3450 {
3451 temp = (int) PyInt_AsLong(_obj1);
3452 _arg1 = &temp;
3453 }
3454 {
3455 temp0 = (int) PyInt_AsLong(_obj2);
3456 _arg2 = &temp0;
3457 }
3458 {
3459 wxPy_BEGIN_ALLOW_THREADS;
3460 wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2);
3461
3462 wxPy_END_ALLOW_THREADS;
3463 } Py_INCREF(Py_None);
3464 _resultobj = Py_None;
3465 {
3466 PyObject *o;
3467 o = PyInt_FromLong((long) (*_arg1));
3468 _resultobj = t_output_helper(_resultobj, o);
3469 }
3470 {
3471 PyObject *o;
3472 o = PyInt_FromLong((long) (*_arg2));
3473 _resultobj = t_output_helper(_resultobj, o);
3474 }
3475 return _resultobj;
3476 }
3477
3478 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3479 static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
3480 PyObject * _resultobj;
3481 wxPoint * _result;
3482 wxWindow * _arg0;
3483 wxPoint * _arg1;
3484 PyObject * _argo0 = 0;
3485 wxPoint temp;
3486 PyObject * _obj1 = 0;
3487 char *_kwnames[] = { "self","pt", NULL };
3488 char _ptemp[128];
3489
3490 self = self;
3491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1))
3492 return NULL;
3493 if (_argo0) {
3494 if (_argo0 == Py_None) { _arg0 = NULL; }
3495 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3496 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3497 return NULL;
3498 }
3499 }
3500 {
3501 _arg1 = &temp;
3502 if (! wxPoint_helper(_obj1, &_arg1))
3503 return NULL;
3504 }
3505 {
3506 wxPy_BEGIN_ALLOW_THREADS;
3507 _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1));
3508
3509 wxPy_END_ALLOW_THREADS;
3510 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3511 _resultobj = Py_BuildValue("s",_ptemp);
3512 return _resultobj;
3513 }
3514
3515 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3516 static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3517 PyObject * _resultobj;
3518 wxWindow * _arg0;
3519 int _arg1;
3520 int _arg2;
3521 wxRect * _arg3 = (wxRect *) NULL;
3522 PyObject * _argo0 = 0;
3523 wxRect temp;
3524 PyObject * _obj3 = 0;
3525 char *_kwnames[] = { "self","dx","dy","rect", NULL };
3526
3527 self = self;
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
3529 return NULL;
3530 if (_argo0) {
3531 if (_argo0 == Py_None) { _arg0 = NULL; }
3532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3534 return NULL;
3535 }
3536 }
3537 if (_obj3)
3538 {
3539 _arg3 = &temp;
3540 if (! wxRect_helper(_obj3, &_arg3))
3541 return NULL;
3542 }
3543 {
3544 wxPy_BEGIN_ALLOW_THREADS;
3545 wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3);
3546
3547 wxPy_END_ALLOW_THREADS;
3548 } Py_INCREF(Py_None);
3549 _resultobj = Py_None;
3550 return _resultobj;
3551 }
3552
3553 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
3554 static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
3555 PyObject * _resultobj;
3556 wxWindow * _arg0;
3557 wxAcceleratorTable * _arg1;
3558 PyObject * _argo0 = 0;
3559 PyObject * _argo1 = 0;
3560 char *_kwnames[] = { "self","accel", NULL };
3561
3562 self = self;
3563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
3564 return NULL;
3565 if (_argo0) {
3566 if (_argo0 == Py_None) { _arg0 = NULL; }
3567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
3569 return NULL;
3570 }
3571 }
3572 if (_argo1) {
3573 if (_argo1 == Py_None) { _arg1 = NULL; }
3574 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
3575 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
3576 return NULL;
3577 }
3578 }
3579 {
3580 wxPy_BEGIN_ALLOW_THREADS;
3581 wxWindow_SetAcceleratorTable(_arg0,*_arg1);
3582
3583 wxPy_END_ALLOW_THREADS;
3584 } Py_INCREF(Py_None);
3585 _resultobj = Py_None;
3586 return _resultobj;
3587 }
3588
3589 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3590 static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3591 PyObject * _resultobj;
3592 wxWindow * _arg0;
3593 bool _arg1;
3594 PyObject * _argo0 = 0;
3595 int tempbool1;
3596 char *_kwnames[] = { "self","autoLayout", NULL };
3597
3598 self = self;
3599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1))
3600 return NULL;
3601 if (_argo0) {
3602 if (_argo0 == Py_None) { _arg0 = NULL; }
3603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3605 return NULL;
3606 }
3607 }
3608 _arg1 = (bool ) tempbool1;
3609 {
3610 wxPy_BEGIN_ALLOW_THREADS;
3611 wxWindow_SetAutoLayout(_arg0,_arg1);
3612
3613 wxPy_END_ALLOW_THREADS;
3614 } Py_INCREF(Py_None);
3615 _resultobj = Py_None;
3616 return _resultobj;
3617 }
3618
3619 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3620 static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3621 PyObject * _resultobj;
3622 bool _result;
3623 wxWindow * _arg0;
3624 PyObject * _argo0 = 0;
3625 char *_kwnames[] = { "self", NULL };
3626
3627 self = self;
3628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0))
3629 return NULL;
3630 if (_argo0) {
3631 if (_argo0 == Py_None) { _arg0 = NULL; }
3632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3634 return NULL;
3635 }
3636 }
3637 {
3638 wxPy_BEGIN_ALLOW_THREADS;
3639 _result = (bool )wxWindow_GetAutoLayout(_arg0);
3640
3641 wxPy_END_ALLOW_THREADS;
3642 } _resultobj = Py_BuildValue("i",_result);
3643 return _resultobj;
3644 }
3645
3646 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3647 static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3648 PyObject * _resultobj;
3649 wxWindow * _arg0;
3650 wxColour * _arg1;
3651 PyObject * _argo0 = 0;
3652 wxColour temp;
3653 PyObject * _obj1 = 0;
3654 char *_kwnames[] = { "self","colour", NULL };
3655
3656 self = self;
3657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
3658 return NULL;
3659 if (_argo0) {
3660 if (_argo0 == Py_None) { _arg0 = NULL; }
3661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3663 return NULL;
3664 }
3665 }
3666 {
3667 _arg1 = &temp;
3668 if (! wxColour_helper(_obj1, &_arg1))
3669 return NULL;
3670 }
3671 {
3672 wxPy_BEGIN_ALLOW_THREADS;
3673 wxWindow_SetBackgroundColour(_arg0,*_arg1);
3674
3675 wxPy_END_ALLOW_THREADS;
3676 } Py_INCREF(Py_None);
3677 _resultobj = Py_None;
3678 return _resultobj;
3679 }
3680
3681 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3682 static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
3683 PyObject * _resultobj;
3684 wxWindow * _arg0;
3685 wxLayoutConstraints * _arg1;
3686 PyObject * _argo0 = 0;
3687 PyObject * _argo1 = 0;
3688 char *_kwnames[] = { "self","constraints", NULL };
3689
3690 self = self;
3691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1))
3692 return NULL;
3693 if (_argo0) {
3694 if (_argo0 == Py_None) { _arg0 = NULL; }
3695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3697 return NULL;
3698 }
3699 }
3700 if (_argo1) {
3701 if (_argo1 == Py_None) { _arg1 = NULL; }
3702 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
3703 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3704 return NULL;
3705 }
3706 }
3707 {
3708 wxPy_BEGIN_ALLOW_THREADS;
3709 wxWindow_SetConstraints(_arg0,_arg1);
3710
3711 wxPy_END_ALLOW_THREADS;
3712 } Py_INCREF(Py_None);
3713 _resultobj = Py_None;
3714 return _resultobj;
3715 }
3716
3717 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3718 static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
3719 PyObject * _resultobj;
3720 wxWindow * _arg0;
3721 wxLayoutConstraints * _arg1;
3722 PyObject * _argo0 = 0;
3723 PyObject * _argo1 = 0;
3724 char *_kwnames[] = { "self","constraints", NULL };
3725
3726 self = self;
3727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1))
3728 return NULL;
3729 if (_argo0) {
3730 if (_argo0 == Py_None) { _arg0 = NULL; }
3731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3733 return NULL;
3734 }
3735 }
3736 if (_argo1) {
3737 if (_argo1 == Py_None) { _arg1 = NULL; }
3738 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
3739 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3740 return NULL;
3741 }
3742 }
3743 {
3744 wxPy_BEGIN_ALLOW_THREADS;
3745 wxWindow_UnsetConstraints(_arg0,_arg1);
3746
3747 wxPy_END_ALLOW_THREADS;
3748 } Py_INCREF(Py_None);
3749 _resultobj = Py_None;
3750 return _resultobj;
3751 }
3752
3753 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3754 static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
3755 PyObject * _resultobj;
3756 wxWindow * _arg0;
3757 PyObject * _argo0 = 0;
3758 char *_kwnames[] = { "self", NULL };
3759
3760 self = self;
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0))
3762 return NULL;
3763 if (_argo0) {
3764 if (_argo0 == Py_None) { _arg0 = NULL; }
3765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3767 return NULL;
3768 }
3769 }
3770 {
3771 wxPy_BEGIN_ALLOW_THREADS;
3772 wxWindow_SetFocus(_arg0);
3773
3774 wxPy_END_ALLOW_THREADS;
3775 } Py_INCREF(Py_None);
3776 _resultobj = Py_None;
3777 return _resultobj;
3778 }
3779
3780 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3781 static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
3782 PyObject * _resultobj;
3783 bool _result;
3784 wxWindow * _arg0;
3785 PyObject * _argo0 = 0;
3786 char *_kwnames[] = { "self", NULL };
3787
3788 self = self;
3789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0))
3790 return NULL;
3791 if (_argo0) {
3792 if (_argo0 == Py_None) { _arg0 = NULL; }
3793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3795 return NULL;
3796 }
3797 }
3798 {
3799 wxPy_BEGIN_ALLOW_THREADS;
3800 _result = (bool )wxWindow_AcceptsFocus(_arg0);
3801
3802 wxPy_END_ALLOW_THREADS;
3803 } _resultobj = Py_BuildValue("i",_result);
3804 return _resultobj;
3805 }
3806
3807 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3808 static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3809 PyObject * _resultobj;
3810 wxWindow * _arg0;
3811 wxFont * _arg1;
3812 PyObject * _argo0 = 0;
3813 PyObject * _argo1 = 0;
3814 char *_kwnames[] = { "self","font", NULL };
3815
3816 self = self;
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3823 return NULL;
3824 }
3825 }
3826 if (_argo1) {
3827 if (_argo1 == Py_None) { _arg1 = NULL; }
3828 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
3829 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3830 return NULL;
3831 }
3832 }
3833 {
3834 wxPy_BEGIN_ALLOW_THREADS;
3835 wxWindow_SetFont(_arg0,*_arg1);
3836
3837 wxPy_END_ALLOW_THREADS;
3838 } Py_INCREF(Py_None);
3839 _resultobj = Py_None;
3840 return _resultobj;
3841 }
3842
3843 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3844 static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject * _resultobj;
3846 wxWindow * _arg0;
3847 wxColour * _arg1;
3848 PyObject * _argo0 = 0;
3849 wxColour temp;
3850 PyObject * _obj1 = 0;
3851 char *_kwnames[] = { "self","colour", NULL };
3852
3853 self = self;
3854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1))
3855 return NULL;
3856 if (_argo0) {
3857 if (_argo0 == Py_None) { _arg0 = NULL; }
3858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3860 return NULL;
3861 }
3862 }
3863 {
3864 _arg1 = &temp;
3865 if (! wxColour_helper(_obj1, &_arg1))
3866 return NULL;
3867 }
3868 {
3869 wxPy_BEGIN_ALLOW_THREADS;
3870 wxWindow_SetForegroundColour(_arg0,*_arg1);
3871
3872 wxPy_END_ALLOW_THREADS;
3873 } Py_INCREF(Py_None);
3874 _resultobj = Py_None;
3875 return _resultobj;
3876 }
3877
3878 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3879 static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject * _resultobj;
3881 wxWindow * _arg0;
3882 int _arg1;
3883 PyObject * _argo0 = 0;
3884 char *_kwnames[] = { "self","id", NULL };
3885
3886 self = self;
3887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1))
3888 return NULL;
3889 if (_argo0) {
3890 if (_argo0 == Py_None) { _arg0 = NULL; }
3891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
3893 return NULL;
3894 }
3895 }
3896 {
3897 wxPy_BEGIN_ALLOW_THREADS;
3898 wxWindow_SetId(_arg0,_arg1);
3899
3900 wxPy_END_ALLOW_THREADS;
3901 } Py_INCREF(Py_None);
3902 _resultobj = Py_None;
3903 return _resultobj;
3904 }
3905
3906 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
3907 static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
3908 PyObject * _resultobj;
3909 wxWindow * _arg0;
3910 wxString * _arg1;
3911 PyObject * _argo0 = 0;
3912 PyObject * _obj1 = 0;
3913 char *_kwnames[] = { "self","name", NULL };
3914
3915 self = self;
3916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1))
3917 return NULL;
3918 if (_argo0) {
3919 if (_argo0 == Py_None) { _arg0 = NULL; }
3920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
3922 return NULL;
3923 }
3924 }
3925 {
3926 #if PYTHON_API_VERSION >= 1009
3927 char* tmpPtr; int tmpSize;
3928 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3929 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
3930 return NULL;
3931 }
3932 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3933 return NULL;
3934 _arg1 = new wxString(tmpPtr, tmpSize);
3935 #else
3936 if (!PyString_Check(_obj1)) {
3937 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3938 return NULL;
3939 }
3940 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3941 #endif
3942 }
3943 {
3944 wxPy_BEGIN_ALLOW_THREADS;
3945 wxWindow_SetName(_arg0,*_arg1);
3946
3947 wxPy_END_ALLOW_THREADS;
3948 } Py_INCREF(Py_None);
3949 _resultobj = Py_None;
3950 {
3951 if (_obj1)
3952 delete _arg1;
3953 }
3954 return _resultobj;
3955 }
3956
3957 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3958 static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
3959 PyObject * _resultobj;
3960 wxWindow * _arg0;
3961 int _arg1;
3962 int _arg2;
3963 int _arg3;
3964 int _arg4;
3965 int _arg5 = (int ) TRUE;
3966 PyObject * _argo0 = 0;
3967 char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL };
3968
3969 self = self;
3970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
3971 return NULL;
3972 if (_argo0) {
3973 if (_argo0 == Py_None) { _arg0 = NULL; }
3974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
3976 return NULL;
3977 }
3978 }
3979 {
3980 wxPy_BEGIN_ALLOW_THREADS;
3981 wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3982
3983 wxPy_END_ALLOW_THREADS;
3984 } Py_INCREF(Py_None);
3985 _resultobj = Py_None;
3986 return _resultobj;
3987 }
3988
3989 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
3990 static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
3991 PyObject * _resultobj;
3992 wxWindow * _arg0;
3993 int _arg1;
3994 int _arg2;
3995 bool _arg3 = (bool ) TRUE;
3996 PyObject * _argo0 = 0;
3997 int tempbool3 = (int) TRUE;
3998 char *_kwnames[] = { "self","orientation","pos","refresh", NULL };
3999
4000 self = self;
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3))
4002 return NULL;
4003 if (_argo0) {
4004 if (_argo0 == Py_None) { _arg0 = NULL; }
4005 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4006 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4007 return NULL;
4008 }
4009 }
4010 _arg3 = (bool ) tempbool3;
4011 {
4012 wxPy_BEGIN_ALLOW_THREADS;
4013 wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3);
4014
4015 wxPy_END_ALLOW_THREADS;
4016 } Py_INCREF(Py_None);
4017 _resultobj = Py_None;
4018 return _resultobj;
4019 }
4020
4021 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4022 static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
4023 PyObject * _resultobj;
4024 wxWindow * _arg0;
4025 int _arg1;
4026 int _arg2;
4027 int _arg3;
4028 int _arg4;
4029 int _arg5 = (int ) wxSIZE_AUTO;
4030 PyObject * _argo0 = 0;
4031 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
4032
4033 self = self;
4034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4035 return NULL;
4036 if (_argo0) {
4037 if (_argo0 == Py_None) { _arg0 = NULL; }
4038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4040 return NULL;
4041 }
4042 }
4043 {
4044 wxPy_BEGIN_ALLOW_THREADS;
4045 wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4046
4047 wxPy_END_ALLOW_THREADS;
4048 } Py_INCREF(Py_None);
4049 _resultobj = Py_None;
4050 return _resultobj;
4051 }
4052
4053 static void wxWindow_SetSize(wxWindow *self,const wxSize & size) {
4054 self->SetSize(size);
4055 }
4056 static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4057 PyObject * _resultobj;
4058 wxWindow * _arg0;
4059 wxSize * _arg1;
4060 PyObject * _argo0 = 0;
4061 wxSize temp;
4062 PyObject * _obj1 = 0;
4063 char *_kwnames[] = { "self","size", NULL };
4064
4065 self = self;
4066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1))
4067 return NULL;
4068 if (_argo0) {
4069 if (_argo0 == Py_None) { _arg0 = NULL; }
4070 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4072 return NULL;
4073 }
4074 }
4075 {
4076 _arg1 = &temp;
4077 if (! wxSize_helper(_obj1, &_arg1))
4078 return NULL;
4079 }
4080 {
4081 wxPy_BEGIN_ALLOW_THREADS;
4082 wxWindow_SetSize(_arg0,*_arg1);
4083
4084 wxPy_END_ALLOW_THREADS;
4085 } Py_INCREF(Py_None);
4086 _resultobj = Py_None;
4087 return _resultobj;
4088 }
4089
4090 static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) {
4091 self->Move(pos);
4092 }
4093 static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4094 PyObject * _resultobj;
4095 wxWindow * _arg0;
4096 wxPoint * _arg1;
4097 PyObject * _argo0 = 0;
4098 wxPoint temp;
4099 PyObject * _obj1 = 0;
4100 char *_kwnames[] = { "self","pos", NULL };
4101
4102 self = self;
4103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1))
4104 return NULL;
4105 if (_argo0) {
4106 if (_argo0 == Py_None) { _arg0 = NULL; }
4107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4109 return NULL;
4110 }
4111 }
4112 {
4113 _arg1 = &temp;
4114 if (! wxPoint_helper(_obj1, &_arg1))
4115 return NULL;
4116 }
4117 {
4118 wxPy_BEGIN_ALLOW_THREADS;
4119 wxWindow_SetPosition(_arg0,*_arg1);
4120
4121 wxPy_END_ALLOW_THREADS;
4122 } Py_INCREF(Py_None);
4123 _resultobj = Py_None;
4124 return _resultobj;
4125 }
4126
4127 static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) {
4128 self->SetSize(rect, sizeFlags);
4129 }
4130 static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4131 PyObject * _resultobj;
4132 wxWindow * _arg0;
4133 wxRect * _arg1;
4134 int _arg2 = (int ) wxSIZE_AUTO;
4135 PyObject * _argo0 = 0;
4136 wxRect temp;
4137 PyObject * _obj1 = 0;
4138 char *_kwnames[] = { "self","rect","sizeFlags", NULL };
4139
4140 self = self;
4141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2))
4142 return NULL;
4143 if (_argo0) {
4144 if (_argo0 == Py_None) { _arg0 = NULL; }
4145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4147 return NULL;
4148 }
4149 }
4150 {
4151 _arg1 = &temp;
4152 if (! wxRect_helper(_obj1, &_arg1))
4153 return NULL;
4154 }
4155 {
4156 wxPy_BEGIN_ALLOW_THREADS;
4157 wxWindow_SetRect(_arg0,*_arg1,_arg2);
4158
4159 wxPy_END_ALLOW_THREADS;
4160 } Py_INCREF(Py_None);
4161 _resultobj = Py_None;
4162 return _resultobj;
4163 }
4164
4165 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4166 static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
4167 PyObject * _resultobj;
4168 wxWindow * _arg0;
4169 int _arg1 = (int ) -1;
4170 int _arg2 = (int ) -1;
4171 int _arg3 = (int ) -1;
4172 int _arg4 = (int ) -1;
4173 int _arg5 = (int ) -1;
4174 int _arg6 = (int ) -1;
4175 PyObject * _argo0 = 0;
4176 char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL };
4177
4178 self = self;
4179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4180 return NULL;
4181 if (_argo0) {
4182 if (_argo0 == Py_None) { _arg0 = NULL; }
4183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4185 return NULL;
4186 }
4187 }
4188 {
4189 wxPy_BEGIN_ALLOW_THREADS;
4190 wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4191
4192 wxPy_END_ALLOW_THREADS;
4193 } Py_INCREF(Py_None);
4194 _resultobj = Py_None;
4195 return _resultobj;
4196 }
4197
4198 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4199 static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4200 PyObject * _resultobj;
4201 wxWindow * _arg0;
4202 int _arg1;
4203 int _arg2;
4204 PyObject * _argo0 = 0;
4205 char *_kwnames[] = { "self","width","height", NULL };
4206
4207 self = self;
4208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
4209 return NULL;
4210 if (_argo0) {
4211 if (_argo0 == Py_None) { _arg0 = NULL; }
4212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4214 return NULL;
4215 }
4216 }
4217 {
4218 wxPy_BEGIN_ALLOW_THREADS;
4219 wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2);
4220
4221 wxPy_END_ALLOW_THREADS;
4222 } Py_INCREF(Py_None);
4223 _resultobj = Py_None;
4224 return _resultobj;
4225 }
4226
4227 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4228 static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4229 PyObject * _resultobj;
4230 wxWindow * _arg0;
4231 wxSize * _arg1;
4232 PyObject * _argo0 = 0;
4233 wxSize temp;
4234 PyObject * _obj1 = 0;
4235 char *_kwnames[] = { "self","size", NULL };
4236
4237 self = self;
4238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1))
4239 return NULL;
4240 if (_argo0) {
4241 if (_argo0 == Py_None) { _arg0 = NULL; }
4242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4244 return NULL;
4245 }
4246 }
4247 {
4248 _arg1 = &temp;
4249 if (! wxSize_helper(_obj1, &_arg1))
4250 return NULL;
4251 }
4252 {
4253 wxPy_BEGIN_ALLOW_THREADS;
4254 wxWindow_SetClientSize(_arg0,*_arg1);
4255
4256 wxPy_END_ALLOW_THREADS;
4257 } Py_INCREF(Py_None);
4258 _resultobj = Py_None;
4259 return _resultobj;
4260 }
4261
4262 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4263 static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4264 PyObject * _resultobj;
4265 wxWindow * _arg0;
4266 wxCursor * _arg1;
4267 PyObject * _argo0 = 0;
4268 PyObject * _argo1 = 0;
4269 char *_kwnames[] = { "self","cursor", NULL };
4270
4271 self = self;
4272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1))
4273 return NULL;
4274 if (_argo0) {
4275 if (_argo0 == Py_None) { _arg0 = NULL; }
4276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4278 return NULL;
4279 }
4280 }
4281 if (_argo1) {
4282 if (_argo1 == Py_None) { _arg1 = NULL; }
4283 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
4284 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4285 return NULL;
4286 }
4287 }
4288 {
4289 wxPy_BEGIN_ALLOW_THREADS;
4290 wxWindow_SetCursor(_arg0,*_arg1);
4291
4292 wxPy_END_ALLOW_THREADS;
4293 } Py_INCREF(Py_None);
4294 _resultobj = Py_None;
4295 return _resultobj;
4296 }
4297
4298 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4299 static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
4300 PyObject * _resultobj;
4301 wxWindow * _arg0;
4302 wxEvtHandler * _arg1;
4303 PyObject * _argo0 = 0;
4304 PyObject * _argo1 = 0;
4305 char *_kwnames[] = { "self","handler", NULL };
4306
4307 self = self;
4308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1))
4309 return NULL;
4310 if (_argo0) {
4311 if (_argo0 == Py_None) { _arg0 = NULL; }
4312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4314 return NULL;
4315 }
4316 }
4317 if (_argo1) {
4318 if (_argo1 == Py_None) { _arg1 = NULL; }
4319 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
4320 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4321 return NULL;
4322 }
4323 }
4324 {
4325 wxPy_BEGIN_ALLOW_THREADS;
4326 wxWindow_SetEventHandler(_arg0,_arg1);
4327
4328 wxPy_END_ALLOW_THREADS;
4329 } Py_INCREF(Py_None);
4330 _resultobj = Py_None;
4331 return _resultobj;
4332 }
4333
4334 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4335 static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4336 PyObject * _resultobj;
4337 wxWindow * _arg0;
4338 long _arg1;
4339 PyObject * _argo0 = 0;
4340 char *_kwnames[] = { "self","exStyle", NULL };
4341
4342 self = self;
4343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1))
4344 return NULL;
4345 if (_argo0) {
4346 if (_argo0 == Py_None) { _arg0 = NULL; }
4347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4349 return NULL;
4350 }
4351 }
4352 {
4353 wxPy_BEGIN_ALLOW_THREADS;
4354 wxWindow_SetExtraStyle(_arg0,_arg1);
4355
4356 wxPy_END_ALLOW_THREADS;
4357 } Py_INCREF(Py_None);
4358 _resultobj = Py_None;
4359 return _resultobj;
4360 }
4361
4362 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4363 static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4364 PyObject * _resultobj;
4365 wxWindow * _arg0;
4366 wxString * _arg1;
4367 PyObject * _argo0 = 0;
4368 PyObject * _obj1 = 0;
4369 char *_kwnames[] = { "self","title", NULL };
4370
4371 self = self;
4372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1))
4373 return NULL;
4374 if (_argo0) {
4375 if (_argo0 == Py_None) { _arg0 = NULL; }
4376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4378 return NULL;
4379 }
4380 }
4381 {
4382 #if PYTHON_API_VERSION >= 1009
4383 char* tmpPtr; int tmpSize;
4384 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4385 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
4386 return NULL;
4387 }
4388 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4389 return NULL;
4390 _arg1 = new wxString(tmpPtr, tmpSize);
4391 #else
4392 if (!PyString_Check(_obj1)) {
4393 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4394 return NULL;
4395 }
4396 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4397 #endif
4398 }
4399 {
4400 wxPy_BEGIN_ALLOW_THREADS;
4401 wxWindow_SetTitle(_arg0,*_arg1);
4402
4403 wxPy_END_ALLOW_THREADS;
4404 } Py_INCREF(Py_None);
4405 _resultobj = Py_None;
4406 {
4407 if (_obj1)
4408 delete _arg1;
4409 }
4410 return _resultobj;
4411 }
4412
4413 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4414 static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4415 PyObject * _resultobj;
4416 bool _result;
4417 wxWindow * _arg0;
4418 bool _arg1;
4419 PyObject * _argo0 = 0;
4420 int tempbool1;
4421 char *_kwnames[] = { "self","show", NULL };
4422
4423 self = self;
4424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1))
4425 return NULL;
4426 if (_argo0) {
4427 if (_argo0 == Py_None) { _arg0 = NULL; }
4428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4430 return NULL;
4431 }
4432 }
4433 _arg1 = (bool ) tempbool1;
4434 {
4435 wxPy_BEGIN_ALLOW_THREADS;
4436 _result = (bool )wxWindow_Show(_arg0,_arg1);
4437
4438 wxPy_END_ALLOW_THREADS;
4439 } _resultobj = Py_BuildValue("i",_result);
4440 return _resultobj;
4441 }
4442
4443 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4444 static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4445 PyObject * _resultobj;
4446 bool _result;
4447 wxWindow * _arg0;
4448 PyObject * _argo0 = 0;
4449 char *_kwnames[] = { "self", NULL };
4450
4451 self = self;
4452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0))
4453 return NULL;
4454 if (_argo0) {
4455 if (_argo0 == Py_None) { _arg0 = NULL; }
4456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4458 return NULL;
4459 }
4460 }
4461 {
4462 wxPy_BEGIN_ALLOW_THREADS;
4463 _result = (bool )wxWindow_TransferDataFromWindow(_arg0);
4464
4465 wxPy_END_ALLOW_THREADS;
4466 } _resultobj = Py_BuildValue("i",_result);
4467 return _resultobj;
4468 }
4469
4470 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4471 static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4472 PyObject * _resultobj;
4473 bool _result;
4474 wxWindow * _arg0;
4475 PyObject * _argo0 = 0;
4476 char *_kwnames[] = { "self", NULL };
4477
4478 self = self;
4479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0))
4480 return NULL;
4481 if (_argo0) {
4482 if (_argo0 == Py_None) { _arg0 = NULL; }
4483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4485 return NULL;
4486 }
4487 }
4488 {
4489 wxPy_BEGIN_ALLOW_THREADS;
4490 _result = (bool )wxWindow_TransferDataToWindow(_arg0);
4491
4492 wxPy_END_ALLOW_THREADS;
4493 } _resultobj = Py_BuildValue("i",_result);
4494 return _resultobj;
4495 }
4496
4497 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4498 static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
4499 PyObject * _resultobj;
4500 bool _result;
4501 wxWindow * _arg0;
4502 PyObject * _argo0 = 0;
4503 char *_kwnames[] = { "self", NULL };
4504
4505 self = self;
4506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0))
4507 return NULL;
4508 if (_argo0) {
4509 if (_argo0 == Py_None) { _arg0 = NULL; }
4510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4512 return NULL;
4513 }
4514 }
4515 {
4516 wxPy_BEGIN_ALLOW_THREADS;
4517 _result = (bool )wxWindow_Validate(_arg0);
4518
4519 wxPy_END_ALLOW_THREADS;
4520 } _resultobj = Py_BuildValue("i",_result);
4521 return _resultobj;
4522 }
4523
4524 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4525 static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
4526 PyObject * _resultobj;
4527 wxWindow * _arg0;
4528 int _arg1;
4529 int _arg2;
4530 PyObject * _argo0 = 0;
4531 char *_kwnames[] = { "self","x","y", NULL };
4532
4533 self = self;
4534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2))
4535 return NULL;
4536 if (_argo0) {
4537 if (_argo0 == Py_None) { _arg0 = NULL; }
4538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4540 return NULL;
4541 }
4542 }
4543 {
4544 wxPy_BEGIN_ALLOW_THREADS;
4545 wxWindow_WarpPointer(_arg0,_arg1,_arg2);
4546
4547 wxPy_END_ALLOW_THREADS;
4548 } Py_INCREF(Py_None);
4549 _resultobj = Py_None;
4550 return _resultobj;
4551 }
4552
4553 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4554 static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4555 PyObject * _resultobj;
4556 wxPoint * _result;
4557 wxWindow * _arg0;
4558 wxPoint * _arg1;
4559 PyObject * _argo0 = 0;
4560 wxPoint temp;
4561 PyObject * _obj1 = 0;
4562 char *_kwnames[] = { "self","pt", NULL };
4563 char _ptemp[128];
4564
4565 self = self;
4566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1))
4567 return NULL;
4568 if (_argo0) {
4569 if (_argo0 == Py_None) { _arg0 = NULL; }
4570 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4571 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4572 return NULL;
4573 }
4574 }
4575 {
4576 _arg1 = &temp;
4577 if (! wxPoint_helper(_obj1, &_arg1))
4578 return NULL;
4579 }
4580 {
4581 wxPy_BEGIN_ALLOW_THREADS;
4582 _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1));
4583
4584 wxPy_END_ALLOW_THREADS;
4585 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4586 _resultobj = Py_BuildValue("s",_ptemp);
4587 return _resultobj;
4588 }
4589
4590 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4591 static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4592 PyObject * _resultobj;
4593 wxSize * _result;
4594 wxWindow * _arg0;
4595 wxSize * _arg1;
4596 PyObject * _argo0 = 0;
4597 wxSize temp;
4598 PyObject * _obj1 = 0;
4599 char *_kwnames[] = { "self","sz", NULL };
4600 char _ptemp[128];
4601
4602 self = self;
4603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1))
4604 return NULL;
4605 if (_argo0) {
4606 if (_argo0 == Py_None) { _arg0 = NULL; }
4607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4609 return NULL;
4610 }
4611 }
4612 {
4613 _arg1 = &temp;
4614 if (! wxSize_helper(_obj1, &_arg1))
4615 return NULL;
4616 }
4617 {
4618 wxPy_BEGIN_ALLOW_THREADS;
4619 _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1));
4620
4621 wxPy_END_ALLOW_THREADS;
4622 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4623 _resultobj = Py_BuildValue("s",_ptemp);
4624 return _resultobj;
4625 }
4626
4627 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4628 static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4629 PyObject * _resultobj;
4630 wxPoint * _result;
4631 wxWindow * _arg0;
4632 wxPoint * _arg1;
4633 PyObject * _argo0 = 0;
4634 wxPoint temp;
4635 PyObject * _obj1 = 0;
4636 char *_kwnames[] = { "self","pt", NULL };
4637 char _ptemp[128];
4638
4639 self = self;
4640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1))
4641 return NULL;
4642 if (_argo0) {
4643 if (_argo0 == Py_None) { _arg0 = NULL; }
4644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4646 return NULL;
4647 }
4648 }
4649 {
4650 _arg1 = &temp;
4651 if (! wxPoint_helper(_obj1, &_arg1))
4652 return NULL;
4653 }
4654 {
4655 wxPy_BEGIN_ALLOW_THREADS;
4656 _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1));
4657
4658 wxPy_END_ALLOW_THREADS;
4659 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4660 _resultobj = Py_BuildValue("s",_ptemp);
4661 return _resultobj;
4662 }
4663
4664 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4665 static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4666 PyObject * _resultobj;
4667 wxSize * _result;
4668 wxWindow * _arg0;
4669 wxSize * _arg1;
4670 PyObject * _argo0 = 0;
4671 wxSize temp;
4672 PyObject * _obj1 = 0;
4673 char *_kwnames[] = { "self","sz", NULL };
4674 char _ptemp[128];
4675
4676 self = self;
4677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1))
4678 return NULL;
4679 if (_argo0) {
4680 if (_argo0 == Py_None) { _arg0 = NULL; }
4681 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4682 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4683 return NULL;
4684 }
4685 }
4686 {
4687 _arg1 = &temp;
4688 if (! wxSize_helper(_obj1, &_arg1))
4689 return NULL;
4690 }
4691 {
4692 wxPy_BEGIN_ALLOW_THREADS;
4693 _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1));
4694
4695 wxPy_END_ALLOW_THREADS;
4696 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4697 _resultobj = Py_BuildValue("s",_ptemp);
4698 return _resultobj;
4699 }
4700
4701 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4702 static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
4703 PyObject * _resultobj;
4704 wxWindow * _arg0;
4705 wxString * _arg1;
4706 PyObject * _argo0 = 0;
4707 PyObject * _obj1 = 0;
4708 char *_kwnames[] = { "self","tip", NULL };
4709
4710 self = self;
4711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1))
4712 return NULL;
4713 if (_argo0) {
4714 if (_argo0 == Py_None) { _arg0 = NULL; }
4715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4717 return NULL;
4718 }
4719 }
4720 {
4721 #if PYTHON_API_VERSION >= 1009
4722 char* tmpPtr; int tmpSize;
4723 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4724 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
4725 return NULL;
4726 }
4727 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4728 return NULL;
4729 _arg1 = new wxString(tmpPtr, tmpSize);
4730 #else
4731 if (!PyString_Check(_obj1)) {
4732 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4733 return NULL;
4734 }
4735 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4736 #endif
4737 }
4738 {
4739 wxPy_BEGIN_ALLOW_THREADS;
4740 wxWindow_SetToolTipString(_arg0,*_arg1);
4741
4742 wxPy_END_ALLOW_THREADS;
4743 } Py_INCREF(Py_None);
4744 _resultobj = Py_None;
4745 {
4746 if (_obj1)
4747 delete _arg1;
4748 }
4749 return _resultobj;
4750 }
4751
4752 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4753 static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4754 PyObject * _resultobj;
4755 wxWindow * _arg0;
4756 wxToolTip * _arg1;
4757 PyObject * _argo0 = 0;
4758 PyObject * _argo1 = 0;
4759 char *_kwnames[] = { "self","tooltip", NULL };
4760
4761 self = self;
4762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1))
4763 return NULL;
4764 if (_argo0) {
4765 if (_argo0 == Py_None) { _arg0 = NULL; }
4766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4768 return NULL;
4769 }
4770 }
4771 if (_argo1) {
4772 if (_argo1 == Py_None) { _arg1 = NULL; }
4773 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) {
4774 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4775 return NULL;
4776 }
4777 }
4778 {
4779 wxPy_BEGIN_ALLOW_THREADS;
4780 wxWindow_SetToolTip(_arg0,_arg1);
4781
4782 wxPy_END_ALLOW_THREADS;
4783 } Py_INCREF(Py_None);
4784 _resultobj = Py_None;
4785 return _resultobj;
4786 }
4787
4788 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4789 static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4790 PyObject * _resultobj;
4791 wxToolTip * _result;
4792 wxWindow * _arg0;
4793 PyObject * _argo0 = 0;
4794 char *_kwnames[] = { "self", NULL };
4795 char _ptemp[128];
4796
4797 self = self;
4798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
4799 return NULL;
4800 if (_argo0) {
4801 if (_argo0 == Py_None) { _arg0 = NULL; }
4802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4804 return NULL;
4805 }
4806 }
4807 {
4808 wxPy_BEGIN_ALLOW_THREADS;
4809 _result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
4810
4811 wxPy_END_ALLOW_THREADS;
4812 } if (_result) {
4813 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p");
4814 _resultobj = Py_BuildValue("s",_ptemp);
4815 } else {
4816 Py_INCREF(Py_None);
4817 _resultobj = Py_None;
4818 }
4819 return _resultobj;
4820 }
4821
4822 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4823 static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
4824 PyObject * _resultobj;
4825 wxWindow * _arg0;
4826 wxSizer * _arg1;
4827 PyObject * _argo0 = 0;
4828 PyObject * _argo1 = 0;
4829 char *_kwnames[] = { "self","sizer", NULL };
4830
4831 self = self;
4832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1))
4833 return NULL;
4834 if (_argo0) {
4835 if (_argo0 == Py_None) { _arg0 = NULL; }
4836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4838 return NULL;
4839 }
4840 }
4841 if (_argo1) {
4842 if (_argo1 == Py_None) { _arg1 = NULL; }
4843 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
4844 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4845 return NULL;
4846 }
4847 }
4848 {
4849 wxPy_BEGIN_ALLOW_THREADS;
4850 wxWindow_SetSizer(_arg0,_arg1);
4851
4852 wxPy_END_ALLOW_THREADS;
4853 } Py_INCREF(Py_None);
4854 _resultobj = Py_None;
4855 return _resultobj;
4856 }
4857
4858 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
4859 static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
4860 PyObject * _resultobj;
4861 wxSizer * _result;
4862 wxWindow * _arg0;
4863 PyObject * _argo0 = 0;
4864 char *_kwnames[] = { "self", NULL };
4865 char _ptemp[128];
4866
4867 self = self;
4868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0))
4869 return NULL;
4870 if (_argo0) {
4871 if (_argo0 == Py_None) { _arg0 = NULL; }
4872 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4873 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
4874 return NULL;
4875 }
4876 }
4877 {
4878 wxPy_BEGIN_ALLOW_THREADS;
4879 _result = (wxSizer *)wxWindow_GetSizer(_arg0);
4880
4881 wxPy_END_ALLOW_THREADS;
4882 } if (_result) {
4883 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
4884 _resultobj = Py_BuildValue("s",_ptemp);
4885 } else {
4886 Py_INCREF(Py_None);
4887 _resultobj = Py_None;
4888 }
4889 return _resultobj;
4890 }
4891
4892 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
4893 static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
4894 PyObject * _resultobj;
4895 wxValidator * _result;
4896 wxWindow * _arg0;
4897 PyObject * _argo0 = 0;
4898 char *_kwnames[] = { "self", NULL };
4899 char _ptemp[128];
4900
4901 self = self;
4902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0))
4903 return NULL;
4904 if (_argo0) {
4905 if (_argo0 == Py_None) { _arg0 = NULL; }
4906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
4908 return NULL;
4909 }
4910 }
4911 {
4912 wxPy_BEGIN_ALLOW_THREADS;
4913 _result = (wxValidator *)wxWindow_GetValidator(_arg0);
4914
4915 wxPy_END_ALLOW_THREADS;
4916 } if (_result) {
4917 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
4918 _resultobj = Py_BuildValue("s",_ptemp);
4919 } else {
4920 Py_INCREF(Py_None);
4921 _resultobj = Py_None;
4922 }
4923 return _resultobj;
4924 }
4925
4926 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
4927 static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
4928 PyObject * _resultobj;
4929 wxWindow * _arg0;
4930 wxValidator * _arg1;
4931 PyObject * _argo0 = 0;
4932 PyObject * _argo1 = 0;
4933 char *_kwnames[] = { "self","validator", NULL };
4934
4935 self = self;
4936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1))
4937 return NULL;
4938 if (_argo0) {
4939 if (_argo0 == Py_None) { _arg0 = NULL; }
4940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
4942 return NULL;
4943 }
4944 }
4945 if (_argo1) {
4946 if (_argo1 == Py_None) { _arg1 = NULL; }
4947 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) {
4948 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
4949 return NULL;
4950 }
4951 }
4952 {
4953 wxPy_BEGIN_ALLOW_THREADS;
4954 wxWindow_SetValidator(_arg0,*_arg1);
4955
4956 wxPy_END_ALLOW_THREADS;
4957 } Py_INCREF(Py_None);
4958 _resultobj = Py_None;
4959 return _resultobj;
4960 }
4961
4962 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
4963 static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4964 PyObject * _resultobj;
4965 wxWindow * _arg0;
4966 wxDropTarget * _arg1;
4967 PyObject * _argo0 = 0;
4968 PyObject * _argo1 = 0;
4969 char *_kwnames[] = { "self","target", NULL };
4970
4971 self = self;
4972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1))
4973 return NULL;
4974 if (_argo0) {
4975 if (_argo0 == Py_None) { _arg0 = NULL; }
4976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
4978 return NULL;
4979 }
4980 }
4981 if (_argo1) {
4982 if (_argo1 == Py_None) { _arg1 = NULL; }
4983 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) {
4984 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
4985 return NULL;
4986 }
4987 }
4988 {
4989 wxPy_BEGIN_ALLOW_THREADS;
4990 wxWindow_SetDropTarget(_arg0,_arg1);
4991
4992 wxPy_END_ALLOW_THREADS;
4993 } Py_INCREF(Py_None);
4994 _resultobj = Py_None;
4995 return _resultobj;
4996 }
4997
4998 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
4999 static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
5000 PyObject * _resultobj;
5001 wxDropTarget * _result;
5002 wxWindow * _arg0;
5003 PyObject * _argo0 = 0;
5004 char *_kwnames[] = { "self", NULL };
5005 char _ptemp[128];
5006
5007 self = self;
5008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0))
5009 return NULL;
5010 if (_argo0) {
5011 if (_argo0 == Py_None) { _arg0 = NULL; }
5012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5014 return NULL;
5015 }
5016 }
5017 {
5018 wxPy_BEGIN_ALLOW_THREADS;
5019 _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0);
5020
5021 wxPy_END_ALLOW_THREADS;
5022 } if (_result) {
5023 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p");
5024 _resultobj = Py_BuildValue("s",_ptemp);
5025 } else {
5026 Py_INCREF(Py_None);
5027 _resultobj = Py_None;
5028 }
5029 return _resultobj;
5030 }
5031
5032 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5033 static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5034 PyObject * _resultobj;
5035 wxSize * _result;
5036 wxWindow * _arg0;
5037 PyObject * _argo0 = 0;
5038 char *_kwnames[] = { "self", NULL };
5039 char _ptemp[128];
5040
5041 self = self;
5042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0))
5043 return NULL;
5044 if (_argo0) {
5045 if (_argo0 == Py_None) { _arg0 = NULL; }
5046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5048 return NULL;
5049 }
5050 }
5051 {
5052 wxPy_BEGIN_ALLOW_THREADS;
5053 _result = new wxSize (wxWindow_GetBestSize(_arg0));
5054
5055 wxPy_END_ALLOW_THREADS;
5056 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5057 _resultobj = Py_BuildValue("s",_ptemp);
5058 return _resultobj;
5059 }
5060
5061 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5062 static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5063 PyObject * _resultobj;
5064 wxWindow * _arg0;
5065 wxCaret * _arg1;
5066 PyObject * _argo0 = 0;
5067 PyObject * _argo1 = 0;
5068 char *_kwnames[] = { "self","caret", NULL };
5069
5070 self = self;
5071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1))
5072 return NULL;
5073 if (_argo0) {
5074 if (_argo0 == Py_None) { _arg0 = NULL; }
5075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5077 return NULL;
5078 }
5079 }
5080 if (_argo1) {
5081 if (_argo1 == Py_None) { _arg1 = NULL; }
5082 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) {
5083 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5084 return NULL;
5085 }
5086 }
5087 {
5088 wxPy_BEGIN_ALLOW_THREADS;
5089 wxWindow_SetCaret(_arg0,_arg1);
5090
5091 wxPy_END_ALLOW_THREADS;
5092 } Py_INCREF(Py_None);
5093 _resultobj = Py_None;
5094 return _resultobj;
5095 }
5096
5097 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5098 static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5099 PyObject * _resultobj;
5100 wxCaret * _result;
5101 wxWindow * _arg0;
5102 PyObject * _argo0 = 0;
5103 char *_kwnames[] = { "self", NULL };
5104 char _ptemp[128];
5105
5106 self = self;
5107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0))
5108 return NULL;
5109 if (_argo0) {
5110 if (_argo0 == Py_None) { _arg0 = NULL; }
5111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5113 return NULL;
5114 }
5115 }
5116 {
5117 wxPy_BEGIN_ALLOW_THREADS;
5118 _result = (wxCaret *)wxWindow_GetCaret(_arg0);
5119
5120 wxPy_END_ALLOW_THREADS;
5121 } if (_result) {
5122 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p");
5123 _resultobj = Py_BuildValue("s",_ptemp);
5124 } else {
5125 Py_INCREF(Py_None);
5126 _resultobj = Py_None;
5127 }
5128 return _resultobj;
5129 }
5130
5131 static void *SwigwxPanelTowxWindow(void *ptr) {
5132 wxPanel *src;
5133 wxWindow *dest;
5134 src = (wxPanel *) ptr;
5135 dest = (wxWindow *) src;
5136 return (void *) dest;
5137 }
5138
5139 static void *SwigwxPanelTowxEvtHandler(void *ptr) {
5140 wxPanel *src;
5141 wxEvtHandler *dest;
5142 src = (wxPanel *) ptr;
5143 dest = (wxEvtHandler *) src;
5144 return (void *) dest;
5145 }
5146
5147 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5148 static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
5149 PyObject * _resultobj;
5150 wxPanel * _result;
5151 wxWindow * _arg0;
5152 wxWindowID _arg1;
5153 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5154 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5155 long _arg4 = (long ) wxTAB_TRAVERSAL;
5156 char * _arg5 = (char *) "panel";
5157 PyObject * _argo0 = 0;
5158 wxPoint temp;
5159 PyObject * _obj2 = 0;
5160 wxSize temp0;
5161 PyObject * _obj3 = 0;
5162 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
5163 char _ptemp[128];
5164
5165 self = self;
5166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
5167 return NULL;
5168 if (_argo0) {
5169 if (_argo0 == Py_None) { _arg0 = NULL; }
5170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5172 return NULL;
5173 }
5174 }
5175 if (_obj2)
5176 {
5177 _arg2 = &temp;
5178 if (! wxPoint_helper(_obj2, &_arg2))
5179 return NULL;
5180 }
5181 if (_obj3)
5182 {
5183 _arg3 = &temp0;
5184 if (! wxSize_helper(_obj3, &_arg3))
5185 return NULL;
5186 }
5187 {
5188 wxPy_BEGIN_ALLOW_THREADS;
5189 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
5190
5191 wxPy_END_ALLOW_THREADS;
5192 } if (_result) {
5193 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
5194 _resultobj = Py_BuildValue("s",_ptemp);
5195 } else {
5196 Py_INCREF(Py_None);
5197 _resultobj = Py_None;
5198 }
5199 return _resultobj;
5200 }
5201
5202 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5203 static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
5204 PyObject * _resultobj;
5205 wxPanel * _arg0;
5206 PyObject * _argo0 = 0;
5207 char *_kwnames[] = { "self", NULL };
5208
5209 self = self;
5210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0))
5211 return NULL;
5212 if (_argo0) {
5213 if (_argo0 == Py_None) { _arg0 = NULL; }
5214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
5215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5216 return NULL;
5217 }
5218 }
5219 {
5220 wxPy_BEGIN_ALLOW_THREADS;
5221 wxPanel_InitDialog(_arg0);
5222
5223 wxPy_END_ALLOW_THREADS;
5224 } Py_INCREF(Py_None);
5225 _resultobj = Py_None;
5226 return _resultobj;
5227 }
5228
5229 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5230 static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5231 PyObject * _resultobj;
5232 wxButton * _result;
5233 wxPanel * _arg0;
5234 PyObject * _argo0 = 0;
5235 char *_kwnames[] = { "self", NULL };
5236 char _ptemp[128];
5237
5238 self = self;
5239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0))
5240 return NULL;
5241 if (_argo0) {
5242 if (_argo0 == Py_None) { _arg0 = NULL; }
5243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
5244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5245 return NULL;
5246 }
5247 }
5248 {
5249 wxPy_BEGIN_ALLOW_THREADS;
5250 _result = (wxButton *)wxPanel_GetDefaultItem(_arg0);
5251
5252 wxPy_END_ALLOW_THREADS;
5253 } if (_result) {
5254 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
5255 _resultobj = Py_BuildValue("s",_ptemp);
5256 } else {
5257 Py_INCREF(Py_None);
5258 _resultobj = Py_None;
5259 }
5260 return _resultobj;
5261 }
5262
5263 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5264 static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5265 PyObject * _resultobj;
5266 wxPanel * _arg0;
5267 wxButton * _arg1;
5268 PyObject * _argo0 = 0;
5269 PyObject * _argo1 = 0;
5270 char *_kwnames[] = { "self","btn", NULL };
5271
5272 self = self;
5273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1))
5274 return NULL;
5275 if (_argo0) {
5276 if (_argo0 == Py_None) { _arg0 = NULL; }
5277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
5278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5279 return NULL;
5280 }
5281 }
5282 if (_argo1) {
5283 if (_argo1 == Py_None) { _arg1 = NULL; }
5284 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) {
5285 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5286 return NULL;
5287 }
5288 }
5289 {
5290 wxPy_BEGIN_ALLOW_THREADS;
5291 wxPanel_SetDefaultItem(_arg0,_arg1);
5292
5293 wxPy_END_ALLOW_THREADS;
5294 } Py_INCREF(Py_None);
5295 _resultobj = Py_None;
5296 return _resultobj;
5297 }
5298
5299 static void *SwigwxDialogTowxPanel(void *ptr) {
5300 wxDialog *src;
5301 wxPanel *dest;
5302 src = (wxDialog *) ptr;
5303 dest = (wxPanel *) src;
5304 return (void *) dest;
5305 }
5306
5307 static void *SwigwxDialogTowxWindow(void *ptr) {
5308 wxDialog *src;
5309 wxWindow *dest;
5310 src = (wxDialog *) ptr;
5311 dest = (wxWindow *) src;
5312 return (void *) dest;
5313 }
5314
5315 static void *SwigwxDialogTowxEvtHandler(void *ptr) {
5316 wxDialog *src;
5317 wxEvtHandler *dest;
5318 src = (wxDialog *) ptr;
5319 dest = (wxEvtHandler *) src;
5320 return (void *) dest;
5321 }
5322
5323 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5324 static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
5325 PyObject * _resultobj;
5326 wxDialog * _result;
5327 wxWindow * _arg0;
5328 wxWindowID _arg1;
5329 wxString * _arg2;
5330 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5331 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5332 long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE;
5333 char * _arg6 = (char *) "dialogBox";
5334 PyObject * _argo0 = 0;
5335 PyObject * _obj2 = 0;
5336 wxPoint temp;
5337 PyObject * _obj3 = 0;
5338 wxSize temp0;
5339 PyObject * _obj4 = 0;
5340 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
5341 char _ptemp[128];
5342
5343 self = self;
5344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
5345 return NULL;
5346 if (_argo0) {
5347 if (_argo0 == Py_None) { _arg0 = NULL; }
5348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
5350 return NULL;
5351 }
5352 }
5353 {
5354 #if PYTHON_API_VERSION >= 1009
5355 char* tmpPtr; int tmpSize;
5356 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
5357 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
5358 return NULL;
5359 }
5360 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
5361 return NULL;
5362 _arg2 = new wxString(tmpPtr, tmpSize);
5363 #else
5364 if (!PyString_Check(_obj2)) {
5365 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5366 return NULL;
5367 }
5368 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
5369 #endif
5370 }
5371 if (_obj3)
5372 {
5373 _arg3 = &temp;
5374 if (! wxPoint_helper(_obj3, &_arg3))
5375 return NULL;
5376 }
5377 if (_obj4)
5378 {
5379 _arg4 = &temp0;
5380 if (! wxSize_helper(_obj4, &_arg4))
5381 return NULL;
5382 }
5383 {
5384 wxPy_BEGIN_ALLOW_THREADS;
5385 _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
5386
5387 wxPy_END_ALLOW_THREADS;
5388 } if (_result) {
5389 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
5390 _resultobj = Py_BuildValue("s",_ptemp);
5391 } else {
5392 Py_INCREF(Py_None);
5393 _resultobj = Py_None;
5394 }
5395 {
5396 if (_obj2)
5397 delete _arg2;
5398 }
5399 return _resultobj;
5400 }
5401
5402 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
5403 static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
5404 PyObject * _resultobj;
5405 wxDialog * _arg0;
5406 int _arg1 = (int ) wxBOTH;
5407 PyObject * _argo0 = 0;
5408 char *_kwnames[] = { "self","direction", NULL };
5409
5410 self = self;
5411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1))
5412 return NULL;
5413 if (_argo0) {
5414 if (_argo0 == Py_None) { _arg0 = NULL; }
5415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
5417 return NULL;
5418 }
5419 }
5420 {
5421 wxPy_BEGIN_ALLOW_THREADS;
5422 wxDialog_Centre(_arg0,_arg1);
5423
5424 wxPy_END_ALLOW_THREADS;
5425 } Py_INCREF(Py_None);
5426 _resultobj = Py_None;
5427 return _resultobj;
5428 }
5429
5430 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
5431 static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) {
5432 PyObject * _resultobj;
5433 wxDialog * _arg0;
5434 int _arg1;
5435 PyObject * _argo0 = 0;
5436 char *_kwnames[] = { "self","retCode", NULL };
5437
5438 self = self;
5439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1))
5440 return NULL;
5441 if (_argo0) {
5442 if (_argo0 == Py_None) { _arg0 = NULL; }
5443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
5445 return NULL;
5446 }
5447 }
5448 {
5449 wxPy_BEGIN_ALLOW_THREADS;
5450 wxDialog_EndModal(_arg0,_arg1);
5451
5452 wxPy_END_ALLOW_THREADS;
5453 } Py_INCREF(Py_None);
5454 _resultobj = Py_None;
5455 return _resultobj;
5456 }
5457
5458 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
5459 static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
5460 PyObject * _resultobj;
5461 wxString * _result;
5462 wxDialog * _arg0;
5463 PyObject * _argo0 = 0;
5464 char *_kwnames[] = { "self", NULL };
5465
5466 self = self;
5467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0))
5468 return NULL;
5469 if (_argo0) {
5470 if (_argo0 == Py_None) { _arg0 = NULL; }
5471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
5473 return NULL;
5474 }
5475 }
5476 {
5477 wxPy_BEGIN_ALLOW_THREADS;
5478 _result = new wxString (wxDialog_GetTitle(_arg0));
5479
5480 wxPy_END_ALLOW_THREADS;
5481 }{
5482 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5483 }
5484 {
5485 delete _result;
5486 }
5487 return _resultobj;
5488 }
5489
5490 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
5491 static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) {
5492 PyObject * _resultobj;
5493 wxDialog * _arg0;
5494 bool _arg1;
5495 PyObject * _argo0 = 0;
5496 int tempbool1;
5497 char *_kwnames[] = { "self","iconize", NULL };
5498
5499 self = self;
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1))
5501 return NULL;
5502 if (_argo0) {
5503 if (_argo0 == Py_None) { _arg0 = NULL; }
5504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
5506 return NULL;
5507 }
5508 }
5509 _arg1 = (bool ) tempbool1;
5510 {
5511 wxPy_BEGIN_ALLOW_THREADS;
5512 wxDialog_Iconize(_arg0,_arg1);
5513
5514 wxPy_END_ALLOW_THREADS;
5515 } Py_INCREF(Py_None);
5516 _resultobj = Py_None;
5517 return _resultobj;
5518 }
5519
5520 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
5521 static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) {
5522 PyObject * _resultobj;
5523 bool _result;
5524 wxDialog * _arg0;
5525 PyObject * _argo0 = 0;
5526 char *_kwnames[] = { "self", NULL };
5527
5528 self = self;
5529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0))
5530 return NULL;
5531 if (_argo0) {
5532 if (_argo0 == Py_None) { _arg0 = NULL; }
5533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
5535 return NULL;
5536 }
5537 }
5538 {
5539 wxPy_BEGIN_ALLOW_THREADS;
5540 _result = (bool )wxDialog_IsIconized(_arg0);
5541
5542 wxPy_END_ALLOW_THREADS;
5543 } _resultobj = Py_BuildValue("i",_result);
5544 return _resultobj;
5545 }
5546
5547 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
5548 static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
5549 PyObject * _resultobj;
5550 wxDialog * _arg0;
5551 bool _arg1;
5552 PyObject * _argo0 = 0;
5553 int tempbool1;
5554 char *_kwnames[] = { "self","flag", NULL };
5555
5556 self = self;
5557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1))
5558 return NULL;
5559 if (_argo0) {
5560 if (_argo0 == Py_None) { _arg0 = NULL; }
5561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
5563 return NULL;
5564 }
5565 }
5566 _arg1 = (bool ) tempbool1;
5567 {
5568 wxPy_BEGIN_ALLOW_THREADS;
5569 wxDialog_SetModal(_arg0,_arg1);
5570
5571 wxPy_END_ALLOW_THREADS;
5572 } Py_INCREF(Py_None);
5573 _resultobj = Py_None;
5574 return _resultobj;
5575 }
5576
5577 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
5578 static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
5579 PyObject * _resultobj;
5580 bool _result;
5581 wxDialog * _arg0;
5582 PyObject * _argo0 = 0;
5583 char *_kwnames[] = { "self", NULL };
5584
5585 self = self;
5586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0))
5587 return NULL;
5588 if (_argo0) {
5589 if (_argo0 == Py_None) { _arg0 = NULL; }
5590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
5592 return NULL;
5593 }
5594 }
5595 {
5596 wxPy_BEGIN_ALLOW_THREADS;
5597 _result = (bool )wxDialog_IsModal(_arg0);
5598
5599 wxPy_END_ALLOW_THREADS;
5600 } _resultobj = Py_BuildValue("i",_result);
5601 return _resultobj;
5602 }
5603
5604 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
5605 static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
5606 PyObject * _resultobj;
5607 wxDialog * _arg0;
5608 wxString * _arg1;
5609 PyObject * _argo0 = 0;
5610 PyObject * _obj1 = 0;
5611 char *_kwnames[] = { "self","title", NULL };
5612
5613 self = self;
5614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1))
5615 return NULL;
5616 if (_argo0) {
5617 if (_argo0 == Py_None) { _arg0 = NULL; }
5618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
5620 return NULL;
5621 }
5622 }
5623 {
5624 #if PYTHON_API_VERSION >= 1009
5625 char* tmpPtr; int tmpSize;
5626 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5627 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
5628 return NULL;
5629 }
5630 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5631 return NULL;
5632 _arg1 = new wxString(tmpPtr, tmpSize);
5633 #else
5634 if (!PyString_Check(_obj1)) {
5635 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5636 return NULL;
5637 }
5638 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5639 #endif
5640 }
5641 {
5642 wxPy_BEGIN_ALLOW_THREADS;
5643 wxDialog_SetTitle(_arg0,*_arg1);
5644
5645 wxPy_END_ALLOW_THREADS;
5646 } Py_INCREF(Py_None);
5647 _resultobj = Py_None;
5648 {
5649 if (_obj1)
5650 delete _arg1;
5651 }
5652 return _resultobj;
5653 }
5654
5655 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5656 static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5657 PyObject * _resultobj;
5658 bool _result;
5659 wxDialog * _arg0;
5660 bool _arg1;
5661 PyObject * _argo0 = 0;
5662 int tempbool1;
5663 char *_kwnames[] = { "self","show", NULL };
5664
5665 self = self;
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1))
5667 return NULL;
5668 if (_argo0) {
5669 if (_argo0 == Py_None) { _arg0 = NULL; }
5670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
5672 return NULL;
5673 }
5674 }
5675 _arg1 = (bool ) tempbool1;
5676 {
5677 wxPy_BEGIN_ALLOW_THREADS;
5678 _result = (bool )wxDialog_Show(_arg0,_arg1);
5679
5680 wxPy_END_ALLOW_THREADS;
5681 } _resultobj = Py_BuildValue("i",_result);
5682 return _resultobj;
5683 }
5684
5685 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
5686 static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
5687 PyObject * _resultobj;
5688 int _result;
5689 wxDialog * _arg0;
5690 PyObject * _argo0 = 0;
5691 char *_kwnames[] = { "self", NULL };
5692
5693 self = self;
5694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0))
5695 return NULL;
5696 if (_argo0) {
5697 if (_argo0 == Py_None) { _arg0 = NULL; }
5698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
5700 return NULL;
5701 }
5702 }
5703 {
5704 wxPy_BEGIN_ALLOW_THREADS;
5705 _result = (int )wxDialog_ShowModal(_arg0);
5706
5707 wxPy_END_ALLOW_THREADS;
5708 } _resultobj = Py_BuildValue("i",_result);
5709 return _resultobj;
5710 }
5711
5712 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
5713 static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5714 PyObject * _resultobj;
5715 int _result;
5716 wxDialog * _arg0;
5717 PyObject * _argo0 = 0;
5718 char *_kwnames[] = { "self", NULL };
5719
5720 self = self;
5721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0))
5722 return NULL;
5723 if (_argo0) {
5724 if (_argo0 == Py_None) { _arg0 = NULL; }
5725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
5727 return NULL;
5728 }
5729 }
5730 {
5731 wxPy_BEGIN_ALLOW_THREADS;
5732 _result = (int )wxDialog_GetReturnCode(_arg0);
5733
5734 wxPy_END_ALLOW_THREADS;
5735 } _resultobj = Py_BuildValue("i",_result);
5736 return _resultobj;
5737 }
5738
5739 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
5740 static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5741 PyObject * _resultobj;
5742 wxDialog * _arg0;
5743 int _arg1;
5744 PyObject * _argo0 = 0;
5745 char *_kwnames[] = { "self","retCode", NULL };
5746
5747 self = self;
5748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1))
5749 return NULL;
5750 if (_argo0) {
5751 if (_argo0 == Py_None) { _arg0 = NULL; }
5752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
5754 return NULL;
5755 }
5756 }
5757 {
5758 wxPy_BEGIN_ALLOW_THREADS;
5759 wxDialog_SetReturnCode(_arg0,_arg1);
5760
5761 wxPy_END_ALLOW_THREADS;
5762 } Py_INCREF(Py_None);
5763 _resultobj = Py_None;
5764 return _resultobj;
5765 }
5766
5767 #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
5768 static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5769 PyObject * _resultobj;
5770 wxSizer * _result;
5771 wxDialog * _arg0;
5772 wxString * _arg1;
5773 PyObject * _argo0 = 0;
5774 PyObject * _obj1 = 0;
5775 char *_kwnames[] = { "self","message", NULL };
5776 char _ptemp[128];
5777
5778 self = self;
5779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1))
5780 return NULL;
5781 if (_argo0) {
5782 if (_argo0 == Py_None) { _arg0 = NULL; }
5783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p.");
5785 return NULL;
5786 }
5787 }
5788 {
5789 #if PYTHON_API_VERSION >= 1009
5790 char* tmpPtr; int tmpSize;
5791 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5792 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
5793 return NULL;
5794 }
5795 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5796 return NULL;
5797 _arg1 = new wxString(tmpPtr, tmpSize);
5798 #else
5799 if (!PyString_Check(_obj1)) {
5800 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5801 return NULL;
5802 }
5803 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5804 #endif
5805 }
5806 {
5807 wxPy_BEGIN_ALLOW_THREADS;
5808 _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1);
5809
5810 wxPy_END_ALLOW_THREADS;
5811 } if (_result) {
5812 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
5813 _resultobj = Py_BuildValue("s",_ptemp);
5814 } else {
5815 Py_INCREF(Py_None);
5816 _resultobj = Py_None;
5817 }
5818 {
5819 if (_obj1)
5820 delete _arg1;
5821 }
5822 return _resultobj;
5823 }
5824
5825 #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
5826 static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5827 PyObject * _resultobj;
5828 wxSizer * _result;
5829 wxDialog * _arg0;
5830 long _arg1;
5831 PyObject * _argo0 = 0;
5832 char *_kwnames[] = { "self","flags", NULL };
5833 char _ptemp[128];
5834
5835 self = self;
5836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1))
5837 return NULL;
5838 if (_argo0) {
5839 if (_argo0 == Py_None) { _arg0 = NULL; }
5840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
5842 return NULL;
5843 }
5844 }
5845 {
5846 wxPy_BEGIN_ALLOW_THREADS;
5847 _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1);
5848
5849 wxPy_END_ALLOW_THREADS;
5850 } if (_result) {
5851 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
5852 _resultobj = Py_BuildValue("s",_ptemp);
5853 } else {
5854 Py_INCREF(Py_None);
5855 _resultobj = Py_None;
5856 }
5857 return _resultobj;
5858 }
5859
5860 static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
5861 wxScrolledWindow *src;
5862 wxPanel *dest;
5863 src = (wxScrolledWindow *) ptr;
5864 dest = (wxPanel *) src;
5865 return (void *) dest;
5866 }
5867
5868 static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
5869 wxScrolledWindow *src;
5870 wxWindow *dest;
5871 src = (wxScrolledWindow *) ptr;
5872 dest = (wxWindow *) src;
5873 return (void *) dest;
5874 }
5875
5876 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
5877 wxScrolledWindow *src;
5878 wxEvtHandler *dest;
5879 src = (wxScrolledWindow *) ptr;
5880 dest = (wxEvtHandler *) src;
5881 return (void *) dest;
5882 }
5883
5884 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5885 static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5886 PyObject * _resultobj;
5887 wxScrolledWindow * _result;
5888 wxWindow * _arg0;
5889 wxWindowID _arg1 = (wxWindowID ) -1;
5890 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5891 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5892 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
5893 char * _arg5 = (char *) "scrolledWindow";
5894 PyObject * _argo0 = 0;
5895 wxPoint temp;
5896 PyObject * _obj2 = 0;
5897 wxSize temp0;
5898 PyObject * _obj3 = 0;
5899 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
5900 char _ptemp[128];
5901
5902 self = self;
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
5904 return NULL;
5905 if (_argo0) {
5906 if (_argo0 == Py_None) { _arg0 = NULL; }
5907 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5908 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
5909 return NULL;
5910 }
5911 }
5912 if (_obj2)
5913 {
5914 _arg2 = &temp;
5915 if (! wxPoint_helper(_obj2, &_arg2))
5916 return NULL;
5917 }
5918 if (_obj3)
5919 {
5920 _arg3 = &temp0;
5921 if (! wxSize_helper(_obj3, &_arg3))
5922 return NULL;
5923 }
5924 {
5925 wxPy_BEGIN_ALLOW_THREADS;
5926 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
5927
5928 wxPy_END_ALLOW_THREADS;
5929 } if (_result) {
5930 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
5931 _resultobj = Py_BuildValue("s",_ptemp);
5932 } else {
5933 Py_INCREF(Py_None);
5934 _resultobj = Py_None;
5935 }
5936 return _resultobj;
5937 }
5938
5939 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
5940 static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
5941 PyObject * _resultobj;
5942 wxScrolledWindow * _arg0;
5943 bool _arg1;
5944 bool _arg2;
5945 PyObject * _argo0 = 0;
5946 int tempbool1;
5947 int tempbool2;
5948 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
5949
5950 self = self;
5951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
5952 return NULL;
5953 if (_argo0) {
5954 if (_argo0 == Py_None) { _arg0 = NULL; }
5955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
5957 return NULL;
5958 }
5959 }
5960 _arg1 = (bool ) tempbool1;
5961 _arg2 = (bool ) tempbool2;
5962 {
5963 wxPy_BEGIN_ALLOW_THREADS;
5964 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
5965
5966 wxPy_END_ALLOW_THREADS;
5967 } Py_INCREF(Py_None);
5968 _resultobj = Py_None;
5969 return _resultobj;
5970 }
5971
5972 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
5973 static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5974 PyObject * _resultobj;
5975 int _result;
5976 wxScrolledWindow * _arg0;
5977 int _arg1;
5978 PyObject * _argo0 = 0;
5979 char *_kwnames[] = { "self","orient", NULL };
5980
5981 self = self;
5982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1))
5983 return NULL;
5984 if (_argo0) {
5985 if (_argo0 == Py_None) { _arg0 = NULL; }
5986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
5988 return NULL;
5989 }
5990 }
5991 {
5992 wxPy_BEGIN_ALLOW_THREADS;
5993 _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1);
5994
5995 wxPy_END_ALLOW_THREADS;
5996 } _resultobj = Py_BuildValue("i",_result);
5997 return _resultobj;
5998 }
5999
6000 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6001 static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
6002 PyObject * _resultobj;
6003 wxScrolledWindow * _arg0;
6004 int * _arg1;
6005 int temp;
6006 int * _arg2;
6007 int temp0;
6008 PyObject * _argo0 = 0;
6009 char *_kwnames[] = { "self", NULL };
6010
6011 self = self;
6012 {
6013 _arg1 = &temp;
6014 }
6015 {
6016 _arg2 = &temp0;
6017 }
6018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
6019 return NULL;
6020 if (_argo0) {
6021 if (_argo0 == Py_None) { _arg0 = NULL; }
6022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6024 return NULL;
6025 }
6026 }
6027 {
6028 wxPy_BEGIN_ALLOW_THREADS;
6029 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
6030
6031 wxPy_END_ALLOW_THREADS;
6032 } Py_INCREF(Py_None);
6033 _resultobj = Py_None;
6034 {
6035 PyObject *o;
6036 o = PyInt_FromLong((long) (*_arg1));
6037 _resultobj = t_output_helper(_resultobj, o);
6038 }
6039 {
6040 PyObject *o;
6041 o = PyInt_FromLong((long) (*_arg2));
6042 _resultobj = t_output_helper(_resultobj, o);
6043 }
6044 return _resultobj;
6045 }
6046
6047 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6048 static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6049 PyObject * _resultobj;
6050 wxWindow * _result;
6051 wxScrolledWindow * _arg0;
6052 PyObject * _argo0 = 0;
6053 char *_kwnames[] = { "self", NULL };
6054 char _ptemp[128];
6055
6056 self = self;
6057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0))
6058 return NULL;
6059 if (_argo0) {
6060 if (_argo0 == Py_None) { _arg0 = NULL; }
6061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6063 return NULL;
6064 }
6065 }
6066 {
6067 wxPy_BEGIN_ALLOW_THREADS;
6068 _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0);
6069
6070 wxPy_END_ALLOW_THREADS;
6071 } if (_result) {
6072 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
6073 _resultobj = Py_BuildValue("s",_ptemp);
6074 } else {
6075 Py_INCREF(Py_None);
6076 _resultobj = Py_None;
6077 }
6078 return _resultobj;
6079 }
6080
6081 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6082 static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6083 PyObject * _resultobj;
6084 wxScrolledWindow * _arg0;
6085 int * _arg1;
6086 int temp;
6087 int * _arg2;
6088 int temp0;
6089 PyObject * _argo0 = 0;
6090 char *_kwnames[] = { "self", NULL };
6091
6092 self = self;
6093 {
6094 _arg1 = &temp;
6095 }
6096 {
6097 _arg2 = &temp0;
6098 }
6099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0))
6100 return NULL;
6101 if (_argo0) {
6102 if (_argo0 == Py_None) { _arg0 = NULL; }
6103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6105 return NULL;
6106 }
6107 }
6108 {
6109 wxPy_BEGIN_ALLOW_THREADS;
6110 wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2);
6111
6112 wxPy_END_ALLOW_THREADS;
6113 } Py_INCREF(Py_None);
6114 _resultobj = Py_None;
6115 {
6116 PyObject *o;
6117 o = PyInt_FromLong((long) (*_arg1));
6118 _resultobj = t_output_helper(_resultobj, o);
6119 }
6120 {
6121 PyObject *o;
6122 o = PyInt_FromLong((long) (*_arg2));
6123 _resultobj = t_output_helper(_resultobj, o);
6124 }
6125 return _resultobj;
6126 }
6127
6128 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6129 static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
6130 PyObject * _resultobj;
6131 bool _result;
6132 wxScrolledWindow * _arg0;
6133 PyObject * _argo0 = 0;
6134 char *_kwnames[] = { "self", NULL };
6135
6136 self = self;
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
6138 return NULL;
6139 if (_argo0) {
6140 if (_argo0 == Py_None) { _arg0 = NULL; }
6141 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6142 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6143 return NULL;
6144 }
6145 }
6146 {
6147 wxPy_BEGIN_ALLOW_THREADS;
6148 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
6149
6150 wxPy_END_ALLOW_THREADS;
6151 } _resultobj = Py_BuildValue("i",_result);
6152 return _resultobj;
6153 }
6154
6155 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6156 static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6157 PyObject * _resultobj;
6158 wxScrolledWindow * _arg0;
6159 wxDC * _arg1;
6160 PyObject * _argo0 = 0;
6161 PyObject * _argo1 = 0;
6162 char *_kwnames[] = { "self","dc", NULL };
6163
6164 self = self;
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
6166 return NULL;
6167 if (_argo0) {
6168 if (_argo0 == Py_None) { _arg0 = NULL; }
6169 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6170 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6171 return NULL;
6172 }
6173 }
6174 if (_argo1) {
6175 if (_argo1 == Py_None) { _arg1 = NULL; }
6176 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
6177 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6178 return NULL;
6179 }
6180 }
6181 {
6182 wxPy_BEGIN_ALLOW_THREADS;
6183 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
6184
6185 wxPy_END_ALLOW_THREADS;
6186 } Py_INCREF(Py_None);
6187 _resultobj = Py_None;
6188 return _resultobj;
6189 }
6190
6191 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6192 static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
6193 PyObject * _resultobj;
6194 wxScrolledWindow * _arg0;
6195 int _arg1;
6196 int _arg2;
6197 PyObject * _argo0 = 0;
6198 char *_kwnames[] = { "self","x","y", NULL };
6199
6200 self = self;
6201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
6202 return NULL;
6203 if (_argo0) {
6204 if (_argo0 == Py_None) { _arg0 = NULL; }
6205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6207 return NULL;
6208 }
6209 }
6210 {
6211 wxPy_BEGIN_ALLOW_THREADS;
6212 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
6213
6214 wxPy_END_ALLOW_THREADS;
6215 } Py_INCREF(Py_None);
6216 _resultobj = Py_None;
6217 return _resultobj;
6218 }
6219
6220 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6221 static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
6222 PyObject * _resultobj;
6223 wxScrolledWindow * _arg0;
6224 int _arg1;
6225 int _arg2;
6226 int _arg3;
6227 int _arg4;
6228 int _arg5 = (int ) 0;
6229 int _arg6 = (int ) 0;
6230 int _arg7 = (int ) FALSE;
6231 PyObject * _argo0 = 0;
6232 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL };
6233
6234 self = self;
6235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7))
6236 return NULL;
6237 if (_argo0) {
6238 if (_argo0 == Py_None) { _arg0 = NULL; }
6239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6241 return NULL;
6242 }
6243 }
6244 {
6245 wxPy_BEGIN_ALLOW_THREADS;
6246 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
6247
6248 wxPy_END_ALLOW_THREADS;
6249 } Py_INCREF(Py_None);
6250 _resultobj = Py_None;
6251 return _resultobj;
6252 }
6253
6254 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6255 static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6256 PyObject * _resultobj;
6257 wxScrolledWindow * _arg0;
6258 int _arg1;
6259 int _arg2;
6260 PyObject * _argo0 = 0;
6261 char *_kwnames[] = { "self","orient","pageSize", NULL };
6262
6263 self = self;
6264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2))
6265 return NULL;
6266 if (_argo0) {
6267 if (_argo0 == Py_None) { _arg0 = NULL; }
6268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6270 return NULL;
6271 }
6272 }
6273 {
6274 wxPy_BEGIN_ALLOW_THREADS;
6275 wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2);
6276
6277 wxPy_END_ALLOW_THREADS;
6278 } Py_INCREF(Py_None);
6279 _resultobj = Py_None;
6280 return _resultobj;
6281 }
6282
6283 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6284 static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6285 PyObject * _resultobj;
6286 wxScrolledWindow * _arg0;
6287 wxWindow * _arg1;
6288 PyObject * _argo0 = 0;
6289 PyObject * _argo1 = 0;
6290 char *_kwnames[] = { "self","window", NULL };
6291
6292 self = self;
6293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1))
6294 return NULL;
6295 if (_argo0) {
6296 if (_argo0 == Py_None) { _arg0 = NULL; }
6297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6299 return NULL;
6300 }
6301 }
6302 if (_argo1) {
6303 if (_argo1 == Py_None) { _arg1 = NULL; }
6304 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6305 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6306 return NULL;
6307 }
6308 }
6309 {
6310 wxPy_BEGIN_ALLOW_THREADS;
6311 wxScrolledWindow_SetTargetWindow(_arg0,_arg1);
6312
6313 wxPy_END_ALLOW_THREADS;
6314 } Py_INCREF(Py_None);
6315 _resultobj = Py_None;
6316 return _resultobj;
6317 }
6318
6319 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6320 static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
6321 PyObject * _resultobj;
6322 wxScrolledWindow * _arg0;
6323 int * _arg1;
6324 int temp;
6325 int * _arg2;
6326 int temp0;
6327 PyObject * _argo0 = 0;
6328 char *_kwnames[] = { "self", NULL };
6329
6330 self = self;
6331 {
6332 _arg1 = &temp;
6333 }
6334 {
6335 _arg2 = &temp0;
6336 }
6337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0))
6338 return NULL;
6339 if (_argo0) {
6340 if (_argo0 == Py_None) { _arg0 = NULL; }
6341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6343 return NULL;
6344 }
6345 }
6346 {
6347 wxPy_BEGIN_ALLOW_THREADS;
6348 wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2);
6349
6350 wxPy_END_ALLOW_THREADS;
6351 } Py_INCREF(Py_None);
6352 _resultobj = Py_None;
6353 {
6354 PyObject *o;
6355 o = PyInt_FromLong((long) (*_arg1));
6356 _resultobj = t_output_helper(_resultobj, o);
6357 }
6358 {
6359 PyObject *o;
6360 o = PyInt_FromLong((long) (*_arg2));
6361 _resultobj = t_output_helper(_resultobj, o);
6362 }
6363 return _resultobj;
6364 }
6365
6366 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
6367 static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
6368 PyObject * _resultobj;
6369 wxScrolledWindow * _arg0;
6370 int * _arg1;
6371 int temp;
6372 int * _arg2;
6373 int temp0;
6374 PyObject * _argo0 = 0;
6375 char *_kwnames[] = { "self", NULL };
6376
6377 self = self;
6378 {
6379 _arg1 = &temp;
6380 }
6381 {
6382 _arg2 = &temp0;
6383 }
6384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0))
6385 return NULL;
6386 if (_argo0) {
6387 if (_argo0 == Py_None) { _arg0 = NULL; }
6388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
6390 return NULL;
6391 }
6392 }
6393 {
6394 wxPy_BEGIN_ALLOW_THREADS;
6395 wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2);
6396
6397 wxPy_END_ALLOW_THREADS;
6398 } Py_INCREF(Py_None);
6399 _resultobj = Py_None;
6400 {
6401 PyObject *o;
6402 o = PyInt_FromLong((long) (*_arg1));
6403 _resultobj = t_output_helper(_resultobj, o);
6404 }
6405 {
6406 PyObject *o;
6407 o = PyInt_FromLong((long) (*_arg2));
6408 _resultobj = t_output_helper(_resultobj, o);
6409 }
6410 return _resultobj;
6411 }
6412
6413 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6414 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6415 PyObject * _resultobj;
6416 wxScrolledWindow * _arg0;
6417 int _arg1;
6418 int _arg2;
6419 int * _arg3;
6420 int temp;
6421 int * _arg4;
6422 int temp0;
6423 PyObject * _argo0 = 0;
6424 char *_kwnames[] = { "self","x","y", NULL };
6425
6426 self = self;
6427 {
6428 _arg3 = &temp;
6429 }
6430 {
6431 _arg4 = &temp0;
6432 }
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
6434 return NULL;
6435 if (_argo0) {
6436 if (_argo0 == Py_None) { _arg0 = NULL; }
6437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6439 return NULL;
6440 }
6441 }
6442 {
6443 wxPy_BEGIN_ALLOW_THREADS;
6444 wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
6445
6446 wxPy_END_ALLOW_THREADS;
6447 } Py_INCREF(Py_None);
6448 _resultobj = Py_None;
6449 {
6450 PyObject *o;
6451 o = PyInt_FromLong((long) (*_arg3));
6452 _resultobj = t_output_helper(_resultobj, o);
6453 }
6454 {
6455 PyObject *o;
6456 o = PyInt_FromLong((long) (*_arg4));
6457 _resultobj = t_output_helper(_resultobj, o);
6458 }
6459 return _resultobj;
6460 }
6461
6462 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6463 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6464 PyObject * _resultobj;
6465 wxScrolledWindow * _arg0;
6466 int _arg1;
6467 int _arg2;
6468 int * _arg3;
6469 int temp;
6470 int * _arg4;
6471 int temp0;
6472 PyObject * _argo0 = 0;
6473 char *_kwnames[] = { "self","x","y", NULL };
6474
6475 self = self;
6476 {
6477 _arg3 = &temp;
6478 }
6479 {
6480 _arg4 = &temp0;
6481 }
6482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
6483 return NULL;
6484 if (_argo0) {
6485 if (_argo0 == Py_None) { _arg0 = NULL; }
6486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6488 return NULL;
6489 }
6490 }
6491 {
6492 wxPy_BEGIN_ALLOW_THREADS;
6493 wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
6494
6495 wxPy_END_ALLOW_THREADS;
6496 } Py_INCREF(Py_None);
6497 _resultobj = Py_None;
6498 {
6499 PyObject *o;
6500 o = PyInt_FromLong((long) (*_arg3));
6501 _resultobj = t_output_helper(_resultobj, o);
6502 }
6503 {
6504 PyObject *o;
6505 o = PyInt_FromLong((long) (*_arg4));
6506 _resultobj = t_output_helper(_resultobj, o);
6507 }
6508 return _resultobj;
6509 }
6510
6511 static void *SwigwxMenuTowxEvtHandler(void *ptr) {
6512 wxMenu *src;
6513 wxEvtHandler *dest;
6514 src = (wxMenu *) ptr;
6515 dest = (wxEvtHandler *) src;
6516 return (void *) dest;
6517 }
6518
6519 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6520 static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6521 PyObject * _resultobj;
6522 wxMenu * _result;
6523 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
6524 long _arg1 = (long ) 0;
6525 PyObject * _obj0 = 0;
6526 char *_kwnames[] = { "title","style", NULL };
6527 char _ptemp[128];
6528
6529 self = self;
6530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
6531 return NULL;
6532 if (_obj0)
6533 {
6534 #if PYTHON_API_VERSION >= 1009
6535 char* tmpPtr; int tmpSize;
6536 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
6537 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
6538 return NULL;
6539 }
6540 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
6541 return NULL;
6542 _arg0 = new wxString(tmpPtr, tmpSize);
6543 #else
6544 if (!PyString_Check(_obj0)) {
6545 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6546 return NULL;
6547 }
6548 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
6549 #endif
6550 }
6551 {
6552 wxPy_BEGIN_ALLOW_THREADS;
6553 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
6554
6555 wxPy_END_ALLOW_THREADS;
6556 } if (_result) {
6557 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
6558 _resultobj = Py_BuildValue("s",_ptemp);
6559 } else {
6560 Py_INCREF(Py_None);
6561 _resultobj = Py_None;
6562 }
6563 {
6564 if (_obj0)
6565 delete _arg0;
6566 }
6567 return _resultobj;
6568 }
6569
6570 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6571 static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
6572 PyObject * _resultobj;
6573 wxMenu * _arg0;
6574 int _arg1;
6575 wxString * _arg2;
6576 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
6577 bool _arg4 = (bool ) FALSE;
6578 PyObject * _argo0 = 0;
6579 PyObject * _obj2 = 0;
6580 PyObject * _obj3 = 0;
6581 int tempbool4 = (int) FALSE;
6582 char *_kwnames[] = { "self","id","item","helpString","checkable", NULL };
6583
6584 self = self;
6585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4))
6586 return NULL;
6587 if (_argo0) {
6588 if (_argo0 == Py_None) { _arg0 = NULL; }
6589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6591 return NULL;
6592 }
6593 }
6594 {
6595 #if PYTHON_API_VERSION >= 1009
6596 char* tmpPtr; int tmpSize;
6597 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
6598 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
6599 return NULL;
6600 }
6601 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
6602 return NULL;
6603 _arg2 = new wxString(tmpPtr, tmpSize);
6604 #else
6605 if (!PyString_Check(_obj2)) {
6606 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6607 return NULL;
6608 }
6609 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
6610 #endif
6611 }
6612 if (_obj3)
6613 {
6614 #if PYTHON_API_VERSION >= 1009
6615 char* tmpPtr; int tmpSize;
6616 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
6617 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
6618 return NULL;
6619 }
6620 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
6621 return NULL;
6622 _arg3 = new wxString(tmpPtr, tmpSize);
6623 #else
6624 if (!PyString_Check(_obj3)) {
6625 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6626 return NULL;
6627 }
6628 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
6629 #endif
6630 }
6631 _arg4 = (bool ) tempbool4;
6632 {
6633 wxPy_BEGIN_ALLOW_THREADS;
6634 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
6635
6636 wxPy_END_ALLOW_THREADS;
6637 } Py_INCREF(Py_None);
6638 _resultobj = Py_None;
6639 {
6640 if (_obj2)
6641 delete _arg2;
6642 }
6643 {
6644 if (_obj3)
6645 delete _arg3;
6646 }
6647 return _resultobj;
6648 }
6649
6650 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6651 static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6652 PyObject * _resultobj;
6653 wxMenu * _arg0;
6654 int _arg1;
6655 wxString * _arg2;
6656 wxMenu * _arg3;
6657 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
6658 PyObject * _argo0 = 0;
6659 PyObject * _obj2 = 0;
6660 PyObject * _argo3 = 0;
6661 PyObject * _obj4 = 0;
6662 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
6663
6664 self = self;
6665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
6666 return NULL;
6667 if (_argo0) {
6668 if (_argo0 == Py_None) { _arg0 = NULL; }
6669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6671 return NULL;
6672 }
6673 }
6674 {
6675 #if PYTHON_API_VERSION >= 1009
6676 char* tmpPtr; int tmpSize;
6677 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
6678 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
6679 return NULL;
6680 }
6681 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
6682 return NULL;
6683 _arg2 = new wxString(tmpPtr, tmpSize);
6684 #else
6685 if (!PyString_Check(_obj2)) {
6686 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6687 return NULL;
6688 }
6689 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
6690 #endif
6691 }
6692 if (_argo3) {
6693 if (_argo3 == Py_None) { _arg3 = NULL; }
6694 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
6695 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6696 return NULL;
6697 }
6698 }
6699 if (_obj4)
6700 {
6701 #if PYTHON_API_VERSION >= 1009
6702 char* tmpPtr; int tmpSize;
6703 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
6704 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
6705 return NULL;
6706 }
6707 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
6708 return NULL;
6709 _arg4 = new wxString(tmpPtr, tmpSize);
6710 #else
6711 if (!PyString_Check(_obj4)) {
6712 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6713 return NULL;
6714 }
6715 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
6716 #endif
6717 }
6718 {
6719 wxPy_BEGIN_ALLOW_THREADS;
6720 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
6721
6722 wxPy_END_ALLOW_THREADS;
6723 } Py_INCREF(Py_None);
6724 _resultobj = Py_None;
6725 {
6726 if (_obj2)
6727 delete _arg2;
6728 }
6729 {
6730 if (_obj4)
6731 delete _arg4;
6732 }
6733 return _resultobj;
6734 }
6735
6736 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
6737 static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6738 PyObject * _resultobj;
6739 wxMenu * _arg0;
6740 wxMenuItem * _arg1;
6741 PyObject * _argo0 = 0;
6742 PyObject * _argo1 = 0;
6743 char *_kwnames[] = { "self","item", NULL };
6744
6745 self = self;
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
6747 return NULL;
6748 if (_argo0) {
6749 if (_argo0 == Py_None) { _arg0 = NULL; }
6750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
6752 return NULL;
6753 }
6754 }
6755 if (_argo1) {
6756 if (_argo1 == Py_None) { _arg1 = NULL; }
6757 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
6758 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
6759 return NULL;
6760 }
6761 }
6762 {
6763 wxPy_BEGIN_ALLOW_THREADS;
6764 wxMenu_AppendItem(_arg0,_arg1);
6765
6766 wxPy_END_ALLOW_THREADS;
6767 } Py_INCREF(Py_None);
6768 _resultobj = Py_None;
6769 return _resultobj;
6770 }
6771
6772 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
6773 static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
6774 PyObject * _resultobj;
6775 wxMenu * _arg0;
6776 PyObject * _argo0 = 0;
6777 char *_kwnames[] = { "self", NULL };
6778
6779 self = self;
6780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
6781 return NULL;
6782 if (_argo0) {
6783 if (_argo0 == Py_None) { _arg0 = NULL; }
6784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
6786 return NULL;
6787 }
6788 }
6789 {
6790 wxPy_BEGIN_ALLOW_THREADS;
6791 wxMenu_AppendSeparator(_arg0);
6792
6793 wxPy_END_ALLOW_THREADS;
6794 } Py_INCREF(Py_None);
6795 _resultobj = Py_None;
6796 return _resultobj;
6797 }
6798
6799 #define wxMenu_Break(_swigobj) (_swigobj->Break())
6800 static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject * _resultobj;
6802 wxMenu * _arg0;
6803 PyObject * _argo0 = 0;
6804 char *_kwnames[] = { "self", NULL };
6805
6806 self = self;
6807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
6808 return NULL;
6809 if (_argo0) {
6810 if (_argo0 == Py_None) { _arg0 = NULL; }
6811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
6813 return NULL;
6814 }
6815 }
6816 {
6817 wxPy_BEGIN_ALLOW_THREADS;
6818 wxMenu_Break(_arg0);
6819
6820 wxPy_END_ALLOW_THREADS;
6821 } Py_INCREF(Py_None);
6822 _resultobj = Py_None;
6823 return _resultobj;
6824 }
6825
6826 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
6827 static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6828 PyObject * _resultobj;
6829 wxMenu * _arg0;
6830 int _arg1;
6831 bool _arg2;
6832 PyObject * _argo0 = 0;
6833 int tempbool2;
6834 char *_kwnames[] = { "self","id","flag", NULL };
6835
6836 self = self;
6837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
6838 return NULL;
6839 if (_argo0) {
6840 if (_argo0 == Py_None) { _arg0 = NULL; }
6841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
6843 return NULL;
6844 }
6845 }
6846 _arg2 = (bool ) tempbool2;
6847 {
6848 wxPy_BEGIN_ALLOW_THREADS;
6849 wxMenu_Check(_arg0,_arg1,_arg2);
6850
6851 wxPy_END_ALLOW_THREADS;
6852 } Py_INCREF(Py_None);
6853 _resultobj = Py_None;
6854 return _resultobj;
6855 }
6856
6857 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
6858 static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6859 PyObject * _resultobj;
6860 bool _result;
6861 wxMenu * _arg0;
6862 int _arg1;
6863 PyObject * _argo0 = 0;
6864 char *_kwnames[] = { "self","id", NULL };
6865
6866 self = self;
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
6868 return NULL;
6869 if (_argo0) {
6870 if (_argo0 == Py_None) { _arg0 = NULL; }
6871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
6873 return NULL;
6874 }
6875 }
6876 {
6877 wxPy_BEGIN_ALLOW_THREADS;
6878 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
6879
6880 wxPy_END_ALLOW_THREADS;
6881 } _resultobj = Py_BuildValue("i",_result);
6882 return _resultobj;
6883 }
6884
6885 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
6886 static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
6887 PyObject * _resultobj;
6888 wxMenu * _arg0;
6889 int _arg1;
6890 bool _arg2;
6891 PyObject * _argo0 = 0;
6892 int tempbool2;
6893 char *_kwnames[] = { "self","id","enable", NULL };
6894
6895 self = self;
6896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
6897 return NULL;
6898 if (_argo0) {
6899 if (_argo0 == Py_None) { _arg0 = NULL; }
6900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
6902 return NULL;
6903 }
6904 }
6905 _arg2 = (bool ) tempbool2;
6906 {
6907 wxPy_BEGIN_ALLOW_THREADS;
6908 wxMenu_Enable(_arg0,_arg1,_arg2);
6909
6910 wxPy_END_ALLOW_THREADS;
6911 } Py_INCREF(Py_None);
6912 _resultobj = Py_None;
6913 return _resultobj;
6914 }
6915
6916 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
6917 static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6918 PyObject * _resultobj;
6919 bool _result;
6920 wxMenu * _arg0;
6921 int _arg1;
6922 PyObject * _argo0 = 0;
6923 char *_kwnames[] = { "self","id", NULL };
6924
6925 self = self;
6926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
6927 return NULL;
6928 if (_argo0) {
6929 if (_argo0 == Py_None) { _arg0 = NULL; }
6930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
6932 return NULL;
6933 }
6934 }
6935 {
6936 wxPy_BEGIN_ALLOW_THREADS;
6937 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
6938
6939 wxPy_END_ALLOW_THREADS;
6940 } _resultobj = Py_BuildValue("i",_result);
6941 return _resultobj;
6942 }
6943
6944 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
6945 static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6946 PyObject * _resultobj;
6947 int _result;
6948 wxMenu * _arg0;
6949 wxString * _arg1;
6950 PyObject * _argo0 = 0;
6951 PyObject * _obj1 = 0;
6952 char *_kwnames[] = { "self","itemString", NULL };
6953
6954 self = self;
6955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
6956 return NULL;
6957 if (_argo0) {
6958 if (_argo0 == Py_None) { _arg0 = NULL; }
6959 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6960 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
6961 return NULL;
6962 }
6963 }
6964 {
6965 #if PYTHON_API_VERSION >= 1009
6966 char* tmpPtr; int tmpSize;
6967 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6968 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
6969 return NULL;
6970 }
6971 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6972 return NULL;
6973 _arg1 = new wxString(tmpPtr, tmpSize);
6974 #else
6975 if (!PyString_Check(_obj1)) {
6976 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6977 return NULL;
6978 }
6979 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6980 #endif
6981 }
6982 {
6983 wxPy_BEGIN_ALLOW_THREADS;
6984 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
6985
6986 wxPy_END_ALLOW_THREADS;
6987 } _resultobj = Py_BuildValue("i",_result);
6988 {
6989 if (_obj1)
6990 delete _arg1;
6991 }
6992 return _resultobj;
6993 }
6994
6995 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
6996 static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
6997 PyObject * _resultobj;
6998 wxMenuItem * _result;
6999 wxMenu * _arg0;
7000 int _arg1;
7001 PyObject * _argo0 = 0;
7002 char *_kwnames[] = { "self","id", NULL };
7003 char _ptemp[128];
7004
7005 self = self;
7006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1))
7007 return NULL;
7008 if (_argo0) {
7009 if (_argo0 == Py_None) { _arg0 = NULL; }
7010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7012 return NULL;
7013 }
7014 }
7015 {
7016 wxPy_BEGIN_ALLOW_THREADS;
7017 _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1);
7018
7019 wxPy_END_ALLOW_THREADS;
7020 } if (_result) {
7021 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
7022 _resultobj = Py_BuildValue("s",_ptemp);
7023 } else {
7024 Py_INCREF(Py_None);
7025 _resultobj = Py_None;
7026 }
7027 return _resultobj;
7028 }
7029
7030 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7031 static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7032 PyObject * _resultobj;
7033 wxString * _result;
7034 wxMenu * _arg0;
7035 PyObject * _argo0 = 0;
7036 char *_kwnames[] = { "self", NULL };
7037
7038 self = self;
7039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
7040 return NULL;
7041 if (_argo0) {
7042 if (_argo0 == Py_None) { _arg0 = NULL; }
7043 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7044 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7045 return NULL;
7046 }
7047 }
7048 {
7049 wxPy_BEGIN_ALLOW_THREADS;
7050 _result = new wxString (wxMenu_GetTitle(_arg0));
7051
7052 wxPy_END_ALLOW_THREADS;
7053 }{
7054 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7055 }
7056 {
7057 delete _result;
7058 }
7059 return _resultobj;
7060 }
7061
7062 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7063 static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7064 PyObject * _resultobj;
7065 wxMenu * _arg0;
7066 wxString * _arg1;
7067 PyObject * _argo0 = 0;
7068 PyObject * _obj1 = 0;
7069 char *_kwnames[] = { "self","title", NULL };
7070
7071 self = self;
7072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
7073 return NULL;
7074 if (_argo0) {
7075 if (_argo0 == Py_None) { _arg0 = NULL; }
7076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7078 return NULL;
7079 }
7080 }
7081 {
7082 #if PYTHON_API_VERSION >= 1009
7083 char* tmpPtr; int tmpSize;
7084 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7085 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
7086 return NULL;
7087 }
7088 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7089 return NULL;
7090 _arg1 = new wxString(tmpPtr, tmpSize);
7091 #else
7092 if (!PyString_Check(_obj1)) {
7093 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7094 return NULL;
7095 }
7096 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7097 #endif
7098 }
7099 {
7100 wxPy_BEGIN_ALLOW_THREADS;
7101 wxMenu_SetTitle(_arg0,*_arg1);
7102
7103 wxPy_END_ALLOW_THREADS;
7104 } Py_INCREF(Py_None);
7105 _resultobj = Py_None;
7106 {
7107 if (_obj1)
7108 delete _arg1;
7109 }
7110 return _resultobj;
7111 }
7112
7113 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7114 static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject * _resultobj;
7116 wxString * _result;
7117 wxMenu * _arg0;
7118 int _arg1;
7119 PyObject * _argo0 = 0;
7120 char *_kwnames[] = { "self","id", NULL };
7121
7122 self = self;
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
7124 return NULL;
7125 if (_argo0) {
7126 if (_argo0 == Py_None) { _arg0 = NULL; }
7127 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7128 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7129 return NULL;
7130 }
7131 }
7132 {
7133 wxPy_BEGIN_ALLOW_THREADS;
7134 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
7135
7136 wxPy_END_ALLOW_THREADS;
7137 }{
7138 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7139 }
7140 {
7141 delete _result;
7142 }
7143 return _resultobj;
7144 }
7145
7146 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7147 static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7148 PyObject * _resultobj;
7149 wxMenu * _arg0;
7150 int _arg1;
7151 wxString * _arg2;
7152 PyObject * _argo0 = 0;
7153 PyObject * _obj2 = 0;
7154 char *_kwnames[] = { "self","id","label", NULL };
7155
7156 self = self;
7157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
7158 return NULL;
7159 if (_argo0) {
7160 if (_argo0 == Py_None) { _arg0 = NULL; }
7161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7163 return NULL;
7164 }
7165 }
7166 {
7167 #if PYTHON_API_VERSION >= 1009
7168 char* tmpPtr; int tmpSize;
7169 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7170 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
7171 return NULL;
7172 }
7173 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7174 return NULL;
7175 _arg2 = new wxString(tmpPtr, tmpSize);
7176 #else
7177 if (!PyString_Check(_obj2)) {
7178 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7179 return NULL;
7180 }
7181 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7182 #endif
7183 }
7184 {
7185 wxPy_BEGIN_ALLOW_THREADS;
7186 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
7187
7188 wxPy_END_ALLOW_THREADS;
7189 } Py_INCREF(Py_None);
7190 _resultobj = Py_None;
7191 {
7192 if (_obj2)
7193 delete _arg2;
7194 }
7195 return _resultobj;
7196 }
7197
7198 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7199 static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
7200 PyObject * _resultobj;
7201 wxString * _result;
7202 wxMenu * _arg0;
7203 int _arg1;
7204 PyObject * _argo0 = 0;
7205 char *_kwnames[] = { "self","id", NULL };
7206
7207 self = self;
7208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
7209 return NULL;
7210 if (_argo0) {
7211 if (_argo0 == Py_None) { _arg0 = NULL; }
7212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7214 return NULL;
7215 }
7216 }
7217 {
7218 wxPy_BEGIN_ALLOW_THREADS;
7219 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
7220
7221 wxPy_END_ALLOW_THREADS;
7222 }{
7223 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7224 }
7225 {
7226 delete _result;
7227 }
7228 return _resultobj;
7229 }
7230
7231 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7232 static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
7233 PyObject * _resultobj;
7234 wxMenu * _arg0;
7235 int _arg1;
7236 wxString * _arg2;
7237 PyObject * _argo0 = 0;
7238 PyObject * _obj2 = 0;
7239 char *_kwnames[] = { "self","id","helpString", NULL };
7240
7241 self = self;
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
7243 return NULL;
7244 if (_argo0) {
7245 if (_argo0 == Py_None) { _arg0 = NULL; }
7246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7248 return NULL;
7249 }
7250 }
7251 {
7252 #if PYTHON_API_VERSION >= 1009
7253 char* tmpPtr; int tmpSize;
7254 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7255 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
7256 return NULL;
7257 }
7258 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7259 return NULL;
7260 _arg2 = new wxString(tmpPtr, tmpSize);
7261 #else
7262 if (!PyString_Check(_obj2)) {
7263 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7264 return NULL;
7265 }
7266 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7267 #endif
7268 }
7269 {
7270 wxPy_BEGIN_ALLOW_THREADS;
7271 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
7272
7273 wxPy_END_ALLOW_THREADS;
7274 } Py_INCREF(Py_None);
7275 _resultobj = Py_None;
7276 {
7277 if (_obj2)
7278 delete _arg2;
7279 }
7280 return _resultobj;
7281 }
7282
7283 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7284 static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
7285 PyObject * _resultobj;
7286 wxMenu * _arg0;
7287 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
7288 PyObject * _argo0 = 0;
7289 PyObject * _argo1 = 0;
7290 char *_kwnames[] = { "self","source", NULL };
7291
7292 self = self;
7293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
7294 return NULL;
7295 if (_argo0) {
7296 if (_argo0 == Py_None) { _arg0 = NULL; }
7297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7299 return NULL;
7300 }
7301 }
7302 if (_argo1) {
7303 if (_argo1 == Py_None) { _arg1 = NULL; }
7304 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
7305 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7306 return NULL;
7307 }
7308 }
7309 {
7310 wxPy_BEGIN_ALLOW_THREADS;
7311 wxMenu_UpdateUI(_arg0,_arg1);
7312
7313 wxPy_END_ALLOW_THREADS;
7314 } Py_INCREF(Py_None);
7315 _resultobj = Py_None;
7316 return _resultobj;
7317 }
7318
7319 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7320 static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
7321 PyObject * _resultobj;
7322 bool _result;
7323 wxMenu * _arg0;
7324 int _arg1;
7325 PyObject * _argo0 = 0;
7326 char *_kwnames[] = { "self","id", NULL };
7327
7328 self = self;
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1))
7330 return NULL;
7331 if (_argo0) {
7332 if (_argo0 == Py_None) { _arg0 = NULL; }
7333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7335 return NULL;
7336 }
7337 }
7338 {
7339 wxPy_BEGIN_ALLOW_THREADS;
7340 _result = (bool )wxMenu_Delete(_arg0,_arg1);
7341
7342 wxPy_END_ALLOW_THREADS;
7343 } _resultobj = Py_BuildValue("i",_result);
7344 return _resultobj;
7345 }
7346
7347 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7348 static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7349 PyObject * _resultobj;
7350 bool _result;
7351 wxMenu * _arg0;
7352 wxMenuItem * _arg1;
7353 PyObject * _argo0 = 0;
7354 PyObject * _argo1 = 0;
7355 char *_kwnames[] = { "self","item", NULL };
7356
7357 self = self;
7358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1))
7359 return NULL;
7360 if (_argo0) {
7361 if (_argo0 == Py_None) { _arg0 = NULL; }
7362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7364 return NULL;
7365 }
7366 }
7367 if (_argo1) {
7368 if (_argo1 == Py_None) { _arg1 = NULL; }
7369 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7370 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7371 return NULL;
7372 }
7373 }
7374 {
7375 wxPy_BEGIN_ALLOW_THREADS;
7376 _result = (bool )wxMenu_DeleteItem(_arg0,_arg1);
7377
7378 wxPy_END_ALLOW_THREADS;
7379 } _resultobj = Py_BuildValue("i",_result);
7380 return _resultobj;
7381 }
7382
7383 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7384 static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
7385 PyObject * _resultobj;
7386 bool _result;
7387 wxMenu * _arg0;
7388 size_t _arg1;
7389 wxMenuItem * _arg2;
7390 PyObject * _argo0 = 0;
7391 PyObject * _argo2 = 0;
7392 char *_kwnames[] = { "self","pos","item", NULL };
7393
7394 self = self;
7395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2))
7396 return NULL;
7397 if (_argo0) {
7398 if (_argo0 == Py_None) { _arg0 = NULL; }
7399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7401 return NULL;
7402 }
7403 }
7404 if (_argo2) {
7405 if (_argo2 == Py_None) { _arg2 = NULL; }
7406 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) {
7407 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7408 return NULL;
7409 }
7410 }
7411 {
7412 wxPy_BEGIN_ALLOW_THREADS;
7413 _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2);
7414
7415 wxPy_END_ALLOW_THREADS;
7416 } _resultobj = Py_BuildValue("i",_result);
7417 return _resultobj;
7418 }
7419
7420 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7421 static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
7422 PyObject * _resultobj;
7423 wxMenuItem * _result;
7424 wxMenu * _arg0;
7425 int _arg1;
7426 PyObject * _argo0 = 0;
7427 char *_kwnames[] = { "self","id", NULL };
7428 char _ptemp[128];
7429
7430 self = self;
7431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1))
7432 return NULL;
7433 if (_argo0) {
7434 if (_argo0 == Py_None) { _arg0 = NULL; }
7435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7437 return NULL;
7438 }
7439 }
7440 {
7441 wxPy_BEGIN_ALLOW_THREADS;
7442 _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1);
7443
7444 wxPy_END_ALLOW_THREADS;
7445 } if (_result) {
7446 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
7447 _resultobj = Py_BuildValue("s",_ptemp);
7448 } else {
7449 Py_INCREF(Py_None);
7450 _resultobj = Py_None;
7451 }
7452 return _resultobj;
7453 }
7454
7455 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7456 static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7457 PyObject * _resultobj;
7458 wxMenuItem * _result;
7459 wxMenu * _arg0;
7460 wxMenuItem * _arg1;
7461 PyObject * _argo0 = 0;
7462 PyObject * _argo1 = 0;
7463 char *_kwnames[] = { "self","item", NULL };
7464 char _ptemp[128];
7465
7466 self = self;
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1))
7468 return NULL;
7469 if (_argo0) {
7470 if (_argo0 == Py_None) { _arg0 = NULL; }
7471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7473 return NULL;
7474 }
7475 }
7476 if (_argo1) {
7477 if (_argo1 == Py_None) { _arg1 = NULL; }
7478 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7479 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7480 return NULL;
7481 }
7482 }
7483 {
7484 wxPy_BEGIN_ALLOW_THREADS;
7485 _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1);
7486
7487 wxPy_END_ALLOW_THREADS;
7488 } if (_result) {
7489 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
7490 _resultobj = Py_BuildValue("s",_ptemp);
7491 } else {
7492 Py_INCREF(Py_None);
7493 _resultobj = Py_None;
7494 }
7495 return _resultobj;
7496 }
7497
7498 static void wxMenu_Destroy(wxMenu *self) { delete self; }
7499 static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7500 PyObject * _resultobj;
7501 wxMenu * _arg0;
7502 PyObject * _argo0 = 0;
7503 char *_kwnames[] = { "self", NULL };
7504
7505 self = self;
7506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
7507 return NULL;
7508 if (_argo0) {
7509 if (_argo0 == Py_None) { _arg0 = NULL; }
7510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7512 return NULL;
7513 }
7514 }
7515 {
7516 wxPy_BEGIN_ALLOW_THREADS;
7517 wxMenu_Destroy(_arg0);
7518
7519 wxPy_END_ALLOW_THREADS;
7520 } Py_INCREF(Py_None);
7521 _resultobj = Py_None;
7522 return _resultobj;
7523 }
7524
7525 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7526 static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
7527 PyObject * _resultobj;
7528 bool _result;
7529 wxMenu * _arg0;
7530 int _arg1;
7531 PyObject * _argo0 = 0;
7532 char *_kwnames[] = { "self","id", NULL };
7533
7534 self = self;
7535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1))
7536 return NULL;
7537 if (_argo0) {
7538 if (_argo0 == Py_None) { _arg0 = NULL; }
7539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7541 return NULL;
7542 }
7543 }
7544 {
7545 wxPy_BEGIN_ALLOW_THREADS;
7546 _result = (bool )wxMenu_DestroyId(_arg0,_arg1);
7547
7548 wxPy_END_ALLOW_THREADS;
7549 } _resultobj = Py_BuildValue("i",_result);
7550 return _resultobj;
7551 }
7552
7553 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7554 static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7555 PyObject * _resultobj;
7556 bool _result;
7557 wxMenu * _arg0;
7558 wxMenuItem * _arg1;
7559 PyObject * _argo0 = 0;
7560 PyObject * _argo1 = 0;
7561 char *_kwnames[] = { "self","item", NULL };
7562
7563 self = self;
7564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1))
7565 return NULL;
7566 if (_argo0) {
7567 if (_argo0 == Py_None) { _arg0 = NULL; }
7568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7570 return NULL;
7571 }
7572 }
7573 if (_argo1) {
7574 if (_argo1 == Py_None) { _arg1 = NULL; }
7575 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7576 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7577 return NULL;
7578 }
7579 }
7580 {
7581 wxPy_BEGIN_ALLOW_THREADS;
7582 _result = (bool )wxMenu_DestroyItem(_arg0,_arg1);
7583
7584 wxPy_END_ALLOW_THREADS;
7585 } _resultobj = Py_BuildValue("i",_result);
7586 return _resultobj;
7587 }
7588
7589 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7590 static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7591 PyObject * _resultobj;
7592 size_t _result;
7593 wxMenu * _arg0;
7594 PyObject * _argo0 = 0;
7595 char *_kwnames[] = { "self", NULL };
7596
7597 self = self;
7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0))
7599 return NULL;
7600 if (_argo0) {
7601 if (_argo0 == Py_None) { _arg0 = NULL; }
7602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7604 return NULL;
7605 }
7606 }
7607 {
7608 wxPy_BEGIN_ALLOW_THREADS;
7609 _result = (size_t )wxMenu_GetMenuItemCount(_arg0);
7610
7611 wxPy_END_ALLOW_THREADS;
7612 } _resultobj = Py_BuildValue("i",_result);
7613 return _resultobj;
7614 }
7615
7616 static PyObject * wxMenu_GetMenuItems(wxMenu *self) {
7617 wxMenuItemList& list = self->GetMenuItems();
7618 return wxPy_ConvertList(&list, "wxMenuItem");
7619 }
7620 static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
7621 PyObject * _resultobj;
7622 PyObject * _result;
7623 wxMenu * _arg0;
7624 PyObject * _argo0 = 0;
7625 char *_kwnames[] = { "self", NULL };
7626
7627 self = self;
7628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0))
7629 return NULL;
7630 if (_argo0) {
7631 if (_argo0 == Py_None) { _arg0 = NULL; }
7632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7634 return NULL;
7635 }
7636 }
7637 {
7638 wxPy_BEGIN_ALLOW_THREADS;
7639 _result = (PyObject *)wxMenu_GetMenuItems(_arg0);
7640
7641 wxPy_END_ALLOW_THREADS;
7642 }{
7643 _resultobj = _result;
7644 }
7645 return _resultobj;
7646 }
7647
7648 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7649 static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7650 PyObject * _resultobj;
7651 wxMenu * _arg0;
7652 wxEvtHandler * _arg1;
7653 PyObject * _argo0 = 0;
7654 PyObject * _argo1 = 0;
7655 char *_kwnames[] = { "self","handler", NULL };
7656
7657 self = self;
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1))
7659 return NULL;
7660 if (_argo0) {
7661 if (_argo0 == Py_None) { _arg0 = NULL; }
7662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7664 return NULL;
7665 }
7666 }
7667 if (_argo1) {
7668 if (_argo1 == Py_None) { _arg1 = NULL; }
7669 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
7670 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7671 return NULL;
7672 }
7673 }
7674 {
7675 wxPy_BEGIN_ALLOW_THREADS;
7676 wxMenu_SetEventHandler(_arg0,_arg1);
7677
7678 wxPy_END_ALLOW_THREADS;
7679 } Py_INCREF(Py_None);
7680 _resultobj = Py_None;
7681 return _resultobj;
7682 }
7683
7684 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7685 static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7686 PyObject * _resultobj;
7687 wxEvtHandler * _result;
7688 wxMenu * _arg0;
7689 PyObject * _argo0 = 0;
7690 char *_kwnames[] = { "self", NULL };
7691 char _ptemp[128];
7692
7693 self = self;
7694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0))
7695 return NULL;
7696 if (_argo0) {
7697 if (_argo0 == Py_None) { _arg0 = NULL; }
7698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
7700 return NULL;
7701 }
7702 }
7703 {
7704 wxPy_BEGIN_ALLOW_THREADS;
7705 _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0);
7706
7707 wxPy_END_ALLOW_THREADS;
7708 } if (_result) {
7709 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
7710 _resultobj = Py_BuildValue("s",_ptemp);
7711 } else {
7712 Py_INCREF(Py_None);
7713 _resultobj = Py_None;
7714 }
7715 return _resultobj;
7716 }
7717
7718 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
7719 static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7720 PyObject * _resultobj;
7721 wxMenu * _arg0;
7722 wxWindow * _arg1;
7723 PyObject * _argo0 = 0;
7724 PyObject * _argo1 = 0;
7725 char *_kwnames[] = { "self","win", NULL };
7726
7727 self = self;
7728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1))
7729 return NULL;
7730 if (_argo0) {
7731 if (_argo0 == Py_None) { _arg0 = NULL; }
7732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
7734 return NULL;
7735 }
7736 }
7737 if (_argo1) {
7738 if (_argo1 == Py_None) { _arg1 = NULL; }
7739 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7740 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
7741 return NULL;
7742 }
7743 }
7744 {
7745 wxPy_BEGIN_ALLOW_THREADS;
7746 wxMenu_SetInvokingWindow(_arg0,_arg1);
7747
7748 wxPy_END_ALLOW_THREADS;
7749 } Py_INCREF(Py_None);
7750 _resultobj = Py_None;
7751 return _resultobj;
7752 }
7753
7754 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
7755 static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7756 PyObject * _resultobj;
7757 wxWindow * _result;
7758 wxMenu * _arg0;
7759 PyObject * _argo0 = 0;
7760 char *_kwnames[] = { "self", NULL };
7761 char _ptemp[128];
7762
7763 self = self;
7764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0))
7765 return NULL;
7766 if (_argo0) {
7767 if (_argo0 == Py_None) { _arg0 = NULL; }
7768 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7769 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
7770 return NULL;
7771 }
7772 }
7773 {
7774 wxPy_BEGIN_ALLOW_THREADS;
7775 _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0);
7776
7777 wxPy_END_ALLOW_THREADS;
7778 } if (_result) {
7779 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
7780 _resultobj = Py_BuildValue("s",_ptemp);
7781 } else {
7782 Py_INCREF(Py_None);
7783 _resultobj = Py_None;
7784 }
7785 return _resultobj;
7786 }
7787
7788 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
7789 static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7790 PyObject * _resultobj;
7791 long _result;
7792 wxMenu * _arg0;
7793 PyObject * _argo0 = 0;
7794 char *_kwnames[] = { "self", NULL };
7795
7796 self = self;
7797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0))
7798 return NULL;
7799 if (_argo0) {
7800 if (_argo0 == Py_None) { _arg0 = NULL; }
7801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
7803 return NULL;
7804 }
7805 }
7806 {
7807 wxPy_BEGIN_ALLOW_THREADS;
7808 _result = (long )wxMenu_GetStyle(_arg0);
7809
7810 wxPy_END_ALLOW_THREADS;
7811 } _resultobj = Py_BuildValue("l",_result);
7812 return _resultobj;
7813 }
7814
7815 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
7816 static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
7817 PyObject * _resultobj;
7818 bool _result;
7819 wxMenu * _arg0;
7820 PyObject * _argo0 = 0;
7821 char *_kwnames[] = { "self", NULL };
7822
7823 self = self;
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0))
7825 return NULL;
7826 if (_argo0) {
7827 if (_argo0 == Py_None) { _arg0 = NULL; }
7828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
7830 return NULL;
7831 }
7832 }
7833 {
7834 wxPy_BEGIN_ALLOW_THREADS;
7835 _result = (bool )wxMenu_IsAttached(_arg0);
7836
7837 wxPy_END_ALLOW_THREADS;
7838 } _resultobj = Py_BuildValue("i",_result);
7839 return _resultobj;
7840 }
7841
7842 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
7843 static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7844 PyObject * _resultobj;
7845 wxMenu * _arg0;
7846 wxMenu * _arg1;
7847 PyObject * _argo0 = 0;
7848 PyObject * _argo1 = 0;
7849 char *_kwnames[] = { "self","parent", NULL };
7850
7851 self = self;
7852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1))
7853 return NULL;
7854 if (_argo0) {
7855 if (_argo0 == Py_None) { _arg0 = NULL; }
7856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
7858 return NULL;
7859 }
7860 }
7861 if (_argo1) {
7862 if (_argo1 == Py_None) { _arg1 = NULL; }
7863 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
7864 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
7865 return NULL;
7866 }
7867 }
7868 {
7869 wxPy_BEGIN_ALLOW_THREADS;
7870 wxMenu_SetParent(_arg0,_arg1);
7871
7872 wxPy_END_ALLOW_THREADS;
7873 } Py_INCREF(Py_None);
7874 _resultobj = Py_None;
7875 return _resultobj;
7876 }
7877
7878 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
7879 static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7880 PyObject * _resultobj;
7881 wxMenu * _result;
7882 wxMenu * _arg0;
7883 PyObject * _argo0 = 0;
7884 char *_kwnames[] = { "self", NULL };
7885 char _ptemp[128];
7886
7887 self = self;
7888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0))
7889 return NULL;
7890 if (_argo0) {
7891 if (_argo0 == Py_None) { _arg0 = NULL; }
7892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
7894 return NULL;
7895 }
7896 }
7897 {
7898 wxPy_BEGIN_ALLOW_THREADS;
7899 _result = (wxMenu *)wxMenu_GetParent(_arg0);
7900
7901 wxPy_END_ALLOW_THREADS;
7902 } if (_result) {
7903 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7904 _resultobj = Py_BuildValue("s",_ptemp);
7905 } else {
7906 Py_INCREF(Py_None);
7907 _resultobj = Py_None;
7908 }
7909 return _resultobj;
7910 }
7911
7912 static void *SwigwxMenuBarTowxWindow(void *ptr) {
7913 wxMenuBar *src;
7914 wxWindow *dest;
7915 src = (wxMenuBar *) ptr;
7916 dest = (wxWindow *) src;
7917 return (void *) dest;
7918 }
7919
7920 static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
7921 wxMenuBar *src;
7922 wxEvtHandler *dest;
7923 src = (wxMenuBar *) ptr;
7924 dest = (wxEvtHandler *) src;
7925 return (void *) dest;
7926 }
7927
7928 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
7929 static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
7930 PyObject * _resultobj;
7931 wxMenuBar * _result;
7932 long _arg0 = (long ) 0;
7933 char *_kwnames[] = { "style", NULL };
7934 char _ptemp[128];
7935
7936 self = self;
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0))
7938 return NULL;
7939 {
7940 wxPy_BEGIN_ALLOW_THREADS;
7941 _result = (wxMenuBar *)new_wxMenuBar(_arg0);
7942
7943 wxPy_END_ALLOW_THREADS;
7944 } if (_result) {
7945 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
7946 _resultobj = Py_BuildValue("s",_ptemp);
7947 } else {
7948 Py_INCREF(Py_None);
7949 _resultobj = Py_None;
7950 }
7951 return _resultobj;
7952 }
7953
7954 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
7955 static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject * _resultobj;
7957 bool _result;
7958 wxMenuBar * _arg0;
7959 wxMenu * _arg1;
7960 wxString * _arg2;
7961 PyObject * _argo0 = 0;
7962 PyObject * _argo1 = 0;
7963 PyObject * _obj2 = 0;
7964 char *_kwnames[] = { "self","menu","title", NULL };
7965
7966 self = self;
7967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
7968 return NULL;
7969 if (_argo0) {
7970 if (_argo0 == Py_None) { _arg0 = NULL; }
7971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
7973 return NULL;
7974 }
7975 }
7976 if (_argo1) {
7977 if (_argo1 == Py_None) { _arg1 = NULL; }
7978 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
7979 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
7980 return NULL;
7981 }
7982 }
7983 {
7984 #if PYTHON_API_VERSION >= 1009
7985 char* tmpPtr; int tmpSize;
7986 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7987 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
7988 return NULL;
7989 }
7990 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7991 return NULL;
7992 _arg2 = new wxString(tmpPtr, tmpSize);
7993 #else
7994 if (!PyString_Check(_obj2)) {
7995 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7996 return NULL;
7997 }
7998 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7999 #endif
8000 }
8001 {
8002 wxPy_BEGIN_ALLOW_THREADS;
8003 _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2);
8004
8005 wxPy_END_ALLOW_THREADS;
8006 } _resultobj = Py_BuildValue("i",_result);
8007 {
8008 if (_obj2)
8009 delete _arg2;
8010 }
8011 return _resultobj;
8012 }
8013
8014 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8015 static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
8016 PyObject * _resultobj;
8017 bool _result;
8018 wxMenuBar * _arg0;
8019 size_t _arg1;
8020 wxMenu * _arg2;
8021 wxString * _arg3;
8022 PyObject * _argo0 = 0;
8023 PyObject * _argo2 = 0;
8024 PyObject * _obj3 = 0;
8025 char *_kwnames[] = { "self","pos","menu","title", NULL };
8026
8027 self = self;
8028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
8029 return NULL;
8030 if (_argo0) {
8031 if (_argo0 == Py_None) { _arg0 = NULL; }
8032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8034 return NULL;
8035 }
8036 }
8037 if (_argo2) {
8038 if (_argo2 == Py_None) { _arg2 = NULL; }
8039 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
8040 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8041 return NULL;
8042 }
8043 }
8044 {
8045 #if PYTHON_API_VERSION >= 1009
8046 char* tmpPtr; int tmpSize;
8047 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8048 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8049 return NULL;
8050 }
8051 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8052 return NULL;
8053 _arg3 = new wxString(tmpPtr, tmpSize);
8054 #else
8055 if (!PyString_Check(_obj3)) {
8056 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8057 return NULL;
8058 }
8059 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8060 #endif
8061 }
8062 {
8063 wxPy_BEGIN_ALLOW_THREADS;
8064 _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3);
8065
8066 wxPy_END_ALLOW_THREADS;
8067 } _resultobj = Py_BuildValue("i",_result);
8068 {
8069 if (_obj3)
8070 delete _arg3;
8071 }
8072 return _resultobj;
8073 }
8074
8075 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8076 static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8077 PyObject * _resultobj;
8078 size_t _result;
8079 wxMenuBar * _arg0;
8080 PyObject * _argo0 = 0;
8081 char *_kwnames[] = { "self", NULL };
8082
8083 self = self;
8084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
8085 return NULL;
8086 if (_argo0) {
8087 if (_argo0 == Py_None) { _arg0 = NULL; }
8088 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8089 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8090 return NULL;
8091 }
8092 }
8093 {
8094 wxPy_BEGIN_ALLOW_THREADS;
8095 _result = (size_t )wxMenuBar_GetMenuCount(_arg0);
8096
8097 wxPy_END_ALLOW_THREADS;
8098 } _resultobj = Py_BuildValue("i",_result);
8099 return _resultobj;
8100 }
8101
8102 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8103 static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8104 PyObject * _resultobj;
8105 wxMenu * _result;
8106 wxMenuBar * _arg0;
8107 size_t _arg1;
8108 PyObject * _argo0 = 0;
8109 char *_kwnames[] = { "self","pos", NULL };
8110 char _ptemp[128];
8111
8112 self = self;
8113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
8114 return NULL;
8115 if (_argo0) {
8116 if (_argo0 == Py_None) { _arg0 = NULL; }
8117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8119 return NULL;
8120 }
8121 }
8122 {
8123 wxPy_BEGIN_ALLOW_THREADS;
8124 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
8125
8126 wxPy_END_ALLOW_THREADS;
8127 } if (_result) {
8128 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
8129 _resultobj = Py_BuildValue("s",_ptemp);
8130 } else {
8131 Py_INCREF(Py_None);
8132 _resultobj = Py_None;
8133 }
8134 return _resultobj;
8135 }
8136
8137 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8138 static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8139 PyObject * _resultobj;
8140 wxMenu * _result;
8141 wxMenuBar * _arg0;
8142 size_t _arg1;
8143 wxMenu * _arg2;
8144 wxString * _arg3;
8145 PyObject * _argo0 = 0;
8146 PyObject * _argo2 = 0;
8147 PyObject * _obj3 = 0;
8148 char *_kwnames[] = { "self","pos","menu","title", NULL };
8149 char _ptemp[128];
8150
8151 self = self;
8152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
8153 return NULL;
8154 if (_argo0) {
8155 if (_argo0 == Py_None) { _arg0 = NULL; }
8156 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8157 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8158 return NULL;
8159 }
8160 }
8161 if (_argo2) {
8162 if (_argo2 == Py_None) { _arg2 = NULL; }
8163 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
8164 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8165 return NULL;
8166 }
8167 }
8168 {
8169 #if PYTHON_API_VERSION >= 1009
8170 char* tmpPtr; int tmpSize;
8171 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8172 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8173 return NULL;
8174 }
8175 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8176 return NULL;
8177 _arg3 = new wxString(tmpPtr, tmpSize);
8178 #else
8179 if (!PyString_Check(_obj3)) {
8180 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8181 return NULL;
8182 }
8183 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8184 #endif
8185 }
8186 {
8187 wxPy_BEGIN_ALLOW_THREADS;
8188 _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3);
8189
8190 wxPy_END_ALLOW_THREADS;
8191 } if (_result) {
8192 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
8193 _resultobj = Py_BuildValue("s",_ptemp);
8194 } else {
8195 Py_INCREF(Py_None);
8196 _resultobj = Py_None;
8197 }
8198 {
8199 if (_obj3)
8200 delete _arg3;
8201 }
8202 return _resultobj;
8203 }
8204
8205 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8206 static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8207 PyObject * _resultobj;
8208 wxMenu * _result;
8209 wxMenuBar * _arg0;
8210 size_t _arg1;
8211 PyObject * _argo0 = 0;
8212 char *_kwnames[] = { "self","pos", NULL };
8213 char _ptemp[128];
8214
8215 self = self;
8216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1))
8217 return NULL;
8218 if (_argo0) {
8219 if (_argo0 == Py_None) { _arg0 = NULL; }
8220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8222 return NULL;
8223 }
8224 }
8225 {
8226 wxPy_BEGIN_ALLOW_THREADS;
8227 _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1);
8228
8229 wxPy_END_ALLOW_THREADS;
8230 } if (_result) {
8231 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
8232 _resultobj = Py_BuildValue("s",_ptemp);
8233 } else {
8234 Py_INCREF(Py_None);
8235 _resultobj = Py_None;
8236 }
8237 return _resultobj;
8238 }
8239
8240 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8241 static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8242 PyObject * _resultobj;
8243 wxMenuBar * _arg0;
8244 size_t _arg1;
8245 bool _arg2;
8246 PyObject * _argo0 = 0;
8247 int tempbool2;
8248 char *_kwnames[] = { "self","pos","enable", NULL };
8249
8250 self = self;
8251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
8252 return NULL;
8253 if (_argo0) {
8254 if (_argo0 == Py_None) { _arg0 = NULL; }
8255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8257 return NULL;
8258 }
8259 }
8260 _arg2 = (bool ) tempbool2;
8261 {
8262 wxPy_BEGIN_ALLOW_THREADS;
8263 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
8264
8265 wxPy_END_ALLOW_THREADS;
8266 } Py_INCREF(Py_None);
8267 _resultobj = Py_None;
8268 return _resultobj;
8269 }
8270
8271 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8272 static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8273 PyObject * _resultobj;
8274 wxMenuBar * _arg0;
8275 size_t _arg1;
8276 wxString * _arg2;
8277 PyObject * _argo0 = 0;
8278 PyObject * _obj2 = 0;
8279 char *_kwnames[] = { "self","pos","label", NULL };
8280
8281 self = self;
8282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
8283 return NULL;
8284 if (_argo0) {
8285 if (_argo0 == Py_None) { _arg0 = NULL; }
8286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8288 return NULL;
8289 }
8290 }
8291 {
8292 #if PYTHON_API_VERSION >= 1009
8293 char* tmpPtr; int tmpSize;
8294 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8295 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8296 return NULL;
8297 }
8298 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8299 return NULL;
8300 _arg2 = new wxString(tmpPtr, tmpSize);
8301 #else
8302 if (!PyString_Check(_obj2)) {
8303 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8304 return NULL;
8305 }
8306 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8307 #endif
8308 }
8309 {
8310 wxPy_BEGIN_ALLOW_THREADS;
8311 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
8312
8313 wxPy_END_ALLOW_THREADS;
8314 } Py_INCREF(Py_None);
8315 _resultobj = Py_None;
8316 {
8317 if (_obj2)
8318 delete _arg2;
8319 }
8320 return _resultobj;
8321 }
8322
8323 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8324 static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8325 PyObject * _resultobj;
8326 wxString * _result;
8327 wxMenuBar * _arg0;
8328 size_t _arg1;
8329 PyObject * _argo0 = 0;
8330 char *_kwnames[] = { "self","pos", NULL };
8331
8332 self = self;
8333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
8334 return NULL;
8335 if (_argo0) {
8336 if (_argo0 == Py_None) { _arg0 = NULL; }
8337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8339 return NULL;
8340 }
8341 }
8342 {
8343 wxPy_BEGIN_ALLOW_THREADS;
8344 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
8345
8346 wxPy_END_ALLOW_THREADS;
8347 }{
8348 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8349 }
8350 {
8351 delete _result;
8352 }
8353 return _resultobj;
8354 }
8355
8356 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8357 static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8358 PyObject * _resultobj;
8359 int _result;
8360 wxMenuBar * _arg0;
8361 wxString * _arg1;
8362 wxString * _arg2;
8363 PyObject * _argo0 = 0;
8364 PyObject * _obj1 = 0;
8365 PyObject * _obj2 = 0;
8366 char *_kwnames[] = { "self","menuString","itemString", NULL };
8367
8368 self = self;
8369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
8370 return NULL;
8371 if (_argo0) {
8372 if (_argo0 == Py_None) { _arg0 = NULL; }
8373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8375 return NULL;
8376 }
8377 }
8378 {
8379 #if PYTHON_API_VERSION >= 1009
8380 char* tmpPtr; int tmpSize;
8381 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8382 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8383 return NULL;
8384 }
8385 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8386 return NULL;
8387 _arg1 = new wxString(tmpPtr, tmpSize);
8388 #else
8389 if (!PyString_Check(_obj1)) {
8390 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8391 return NULL;
8392 }
8393 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8394 #endif
8395 }
8396 {
8397 #if PYTHON_API_VERSION >= 1009
8398 char* tmpPtr; int tmpSize;
8399 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8400 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8401 return NULL;
8402 }
8403 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8404 return NULL;
8405 _arg2 = new wxString(tmpPtr, tmpSize);
8406 #else
8407 if (!PyString_Check(_obj2)) {
8408 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8409 return NULL;
8410 }
8411 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8412 #endif
8413 }
8414 {
8415 wxPy_BEGIN_ALLOW_THREADS;
8416 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
8417
8418 wxPy_END_ALLOW_THREADS;
8419 } _resultobj = Py_BuildValue("i",_result);
8420 {
8421 if (_obj1)
8422 delete _arg1;
8423 }
8424 {
8425 if (_obj2)
8426 delete _arg2;
8427 }
8428 return _resultobj;
8429 }
8430
8431 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8432 static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
8433 PyObject * _resultobj;
8434 wxMenuItem * _result;
8435 wxMenuBar * _arg0;
8436 int _arg1;
8437 PyObject * _argo0 = 0;
8438 char *_kwnames[] = { "self","id", NULL };
8439 char _ptemp[128];
8440
8441 self = self;
8442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1))
8443 return NULL;
8444 if (_argo0) {
8445 if (_argo0 == Py_None) { _arg0 = NULL; }
8446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8448 return NULL;
8449 }
8450 }
8451 {
8452 wxPy_BEGIN_ALLOW_THREADS;
8453 _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1);
8454
8455 wxPy_END_ALLOW_THREADS;
8456 } if (_result) {
8457 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
8458 _resultobj = Py_BuildValue("s",_ptemp);
8459 } else {
8460 Py_INCREF(Py_None);
8461 _resultobj = Py_None;
8462 }
8463 return _resultobj;
8464 }
8465
8466 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8467 static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
8468 PyObject * _resultobj;
8469 wxMenuBar * _arg0;
8470 int _arg1;
8471 bool _arg2;
8472 PyObject * _argo0 = 0;
8473 int tempbool2;
8474 char *_kwnames[] = { "self","id","enable", NULL };
8475
8476 self = self;
8477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
8478 return NULL;
8479 if (_argo0) {
8480 if (_argo0 == Py_None) { _arg0 = NULL; }
8481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8483 return NULL;
8484 }
8485 }
8486 _arg2 = (bool ) tempbool2;
8487 {
8488 wxPy_BEGIN_ALLOW_THREADS;
8489 wxMenuBar_Enable(_arg0,_arg1,_arg2);
8490
8491 wxPy_END_ALLOW_THREADS;
8492 } Py_INCREF(Py_None);
8493 _resultobj = Py_None;
8494 return _resultobj;
8495 }
8496
8497 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8498 static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
8499 PyObject * _resultobj;
8500 wxMenuBar * _arg0;
8501 int _arg1;
8502 bool _arg2;
8503 PyObject * _argo0 = 0;
8504 int tempbool2;
8505 char *_kwnames[] = { "self","id","check", NULL };
8506
8507 self = self;
8508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
8509 return NULL;
8510 if (_argo0) {
8511 if (_argo0 == Py_None) { _arg0 = NULL; }
8512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8514 return NULL;
8515 }
8516 }
8517 _arg2 = (bool ) tempbool2;
8518 {
8519 wxPy_BEGIN_ALLOW_THREADS;
8520 wxMenuBar_Check(_arg0,_arg1,_arg2);
8521
8522 wxPy_END_ALLOW_THREADS;
8523 } Py_INCREF(Py_None);
8524 _resultobj = Py_None;
8525 return _resultobj;
8526 }
8527
8528 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8529 static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
8530 PyObject * _resultobj;
8531 bool _result;
8532 wxMenuBar * _arg0;
8533 int _arg1;
8534 PyObject * _argo0 = 0;
8535 char *_kwnames[] = { "self","id", NULL };
8536
8537 self = self;
8538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1))
8539 return NULL;
8540 if (_argo0) {
8541 if (_argo0 == Py_None) { _arg0 = NULL; }
8542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8544 return NULL;
8545 }
8546 }
8547 {
8548 wxPy_BEGIN_ALLOW_THREADS;
8549 _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1);
8550
8551 wxPy_END_ALLOW_THREADS;
8552 } _resultobj = Py_BuildValue("i",_result);
8553 return _resultobj;
8554 }
8555
8556 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8557 static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8558 PyObject * _resultobj;
8559 bool _result;
8560 wxMenuBar * _arg0;
8561 int _arg1;
8562 PyObject * _argo0 = 0;
8563 char *_kwnames[] = { "self","id", NULL };
8564
8565 self = self;
8566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1))
8567 return NULL;
8568 if (_argo0) {
8569 if (_argo0 == Py_None) { _arg0 = NULL; }
8570 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8571 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8572 return NULL;
8573 }
8574 }
8575 {
8576 wxPy_BEGIN_ALLOW_THREADS;
8577 _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1);
8578
8579 wxPy_END_ALLOW_THREADS;
8580 } _resultobj = Py_BuildValue("i",_result);
8581 return _resultobj;
8582 }
8583
8584 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8585 static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8586 PyObject * _resultobj;
8587 wxMenuBar * _arg0;
8588 int _arg1;
8589 wxString * _arg2;
8590 PyObject * _argo0 = 0;
8591 PyObject * _obj2 = 0;
8592 char *_kwnames[] = { "self","id","label", NULL };
8593
8594 self = self;
8595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
8596 return NULL;
8597 if (_argo0) {
8598 if (_argo0 == Py_None) { _arg0 = NULL; }
8599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8601 return NULL;
8602 }
8603 }
8604 {
8605 #if PYTHON_API_VERSION >= 1009
8606 char* tmpPtr; int tmpSize;
8607 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8608 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8609 return NULL;
8610 }
8611 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8612 return NULL;
8613 _arg2 = new wxString(tmpPtr, tmpSize);
8614 #else
8615 if (!PyString_Check(_obj2)) {
8616 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8617 return NULL;
8618 }
8619 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8620 #endif
8621 }
8622 {
8623 wxPy_BEGIN_ALLOW_THREADS;
8624 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
8625
8626 wxPy_END_ALLOW_THREADS;
8627 } Py_INCREF(Py_None);
8628 _resultobj = Py_None;
8629 {
8630 if (_obj2)
8631 delete _arg2;
8632 }
8633 return _resultobj;
8634 }
8635
8636 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8637 static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8638 PyObject * _resultobj;
8639 wxString * _result;
8640 wxMenuBar * _arg0;
8641 int _arg1;
8642 PyObject * _argo0 = 0;
8643 char *_kwnames[] = { "self","id", NULL };
8644
8645 self = self;
8646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
8647 return NULL;
8648 if (_argo0) {
8649 if (_argo0 == Py_None) { _arg0 = NULL; }
8650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8652 return NULL;
8653 }
8654 }
8655 {
8656 wxPy_BEGIN_ALLOW_THREADS;
8657 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
8658
8659 wxPy_END_ALLOW_THREADS;
8660 }{
8661 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8662 }
8663 {
8664 delete _result;
8665 }
8666 return _resultobj;
8667 }
8668
8669 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8670 static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
8671 PyObject * _resultobj;
8672 wxMenuBar * _arg0;
8673 int _arg1;
8674 wxString * _arg2;
8675 PyObject * _argo0 = 0;
8676 PyObject * _obj2 = 0;
8677 char *_kwnames[] = { "self","id","helpString", NULL };
8678
8679 self = self;
8680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
8681 return NULL;
8682 if (_argo0) {
8683 if (_argo0 == Py_None) { _arg0 = NULL; }
8684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8686 return NULL;
8687 }
8688 }
8689 {
8690 #if PYTHON_API_VERSION >= 1009
8691 char* tmpPtr; int tmpSize;
8692 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8693 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8694 return NULL;
8695 }
8696 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8697 return NULL;
8698 _arg2 = new wxString(tmpPtr, tmpSize);
8699 #else
8700 if (!PyString_Check(_obj2)) {
8701 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8702 return NULL;
8703 }
8704 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8705 #endif
8706 }
8707 {
8708 wxPy_BEGIN_ALLOW_THREADS;
8709 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
8710
8711 wxPy_END_ALLOW_THREADS;
8712 } Py_INCREF(Py_None);
8713 _resultobj = Py_None;
8714 {
8715 if (_obj2)
8716 delete _arg2;
8717 }
8718 return _resultobj;
8719 }
8720
8721 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
8722 static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
8723 PyObject * _resultobj;
8724 wxString * _result;
8725 wxMenuBar * _arg0;
8726 int _arg1;
8727 PyObject * _argo0 = 0;
8728 char *_kwnames[] = { "self","id", NULL };
8729
8730 self = self;
8731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
8732 return NULL;
8733 if (_argo0) {
8734 if (_argo0 == Py_None) { _arg0 = NULL; }
8735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
8737 return NULL;
8738 }
8739 }
8740 {
8741 wxPy_BEGIN_ALLOW_THREADS;
8742 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
8743
8744 wxPy_END_ALLOW_THREADS;
8745 }{
8746 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8747 }
8748 {
8749 delete _result;
8750 }
8751 return _resultobj;
8752 }
8753
8754 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8755 static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8756 PyObject * _resultobj;
8757 wxMenuItem * _result;
8758 wxMenu * _arg0 = (wxMenu *) NULL;
8759 int _arg1 = (int ) wxID_SEPARATOR;
8760 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
8761 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
8762 bool _arg4 = (bool ) FALSE;
8763 wxMenu * _arg5 = (wxMenu *) NULL;
8764 PyObject * _argo0 = 0;
8765 PyObject * _obj2 = 0;
8766 PyObject * _obj3 = 0;
8767 int tempbool4 = (int) FALSE;
8768 PyObject * _argo5 = 0;
8769 char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL };
8770 char _ptemp[128];
8771
8772 self = self;
8773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5))
8774 return NULL;
8775 if (_argo0) {
8776 if (_argo0 == Py_None) { _arg0 = NULL; }
8777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
8779 return NULL;
8780 }
8781 }
8782 if (_obj2)
8783 {
8784 #if PYTHON_API_VERSION >= 1009
8785 char* tmpPtr; int tmpSize;
8786 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8787 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8788 return NULL;
8789 }
8790 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8791 return NULL;
8792 _arg2 = new wxString(tmpPtr, tmpSize);
8793 #else
8794 if (!PyString_Check(_obj2)) {
8795 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8796 return NULL;
8797 }
8798 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8799 #endif
8800 }
8801 if (_obj3)
8802 {
8803 #if PYTHON_API_VERSION >= 1009
8804 char* tmpPtr; int tmpSize;
8805 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8806 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8807 return NULL;
8808 }
8809 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8810 return NULL;
8811 _arg3 = new wxString(tmpPtr, tmpSize);
8812 #else
8813 if (!PyString_Check(_obj3)) {
8814 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8815 return NULL;
8816 }
8817 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8818 #endif
8819 }
8820 _arg4 = (bool ) tempbool4;
8821 if (_argo5) {
8822 if (_argo5 == Py_None) { _arg5 = NULL; }
8823 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
8824 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
8825 return NULL;
8826 }
8827 }
8828 {
8829 wxPy_BEGIN_ALLOW_THREADS;
8830 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
8831
8832 wxPy_END_ALLOW_THREADS;
8833 } if (_result) {
8834 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
8835 _resultobj = Py_BuildValue("s",_ptemp);
8836 } else {
8837 Py_INCREF(Py_None);
8838 _resultobj = Py_None;
8839 }
8840 {
8841 if (_obj2)
8842 delete _arg2;
8843 }
8844 {
8845 if (_obj3)
8846 delete _arg3;
8847 }
8848 return _resultobj;
8849 }
8850
8851 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
8852 static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8853 PyObject * _resultobj;
8854 wxMenu * _result;
8855 wxMenuItem * _arg0;
8856 PyObject * _argo0 = 0;
8857 char *_kwnames[] = { "self", NULL };
8858 char _ptemp[128];
8859
8860 self = self;
8861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0))
8862 return NULL;
8863 if (_argo0) {
8864 if (_argo0 == Py_None) { _arg0 = NULL; }
8865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
8867 return NULL;
8868 }
8869 }
8870 {
8871 wxPy_BEGIN_ALLOW_THREADS;
8872 _result = (wxMenu *)wxMenuItem_GetMenu(_arg0);
8873
8874 wxPy_END_ALLOW_THREADS;
8875 } if (_result) {
8876 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
8877 _resultobj = Py_BuildValue("s",_ptemp);
8878 } else {
8879 Py_INCREF(Py_None);
8880 _resultobj = Py_None;
8881 }
8882 return _resultobj;
8883 }
8884
8885 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
8886 static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
8887 PyObject * _resultobj;
8888 wxMenuItem * _arg0;
8889 int _arg1;
8890 PyObject * _argo0 = 0;
8891 char *_kwnames[] = { "self","id", NULL };
8892
8893 self = self;
8894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1))
8895 return NULL;
8896 if (_argo0) {
8897 if (_argo0 == Py_None) { _arg0 = NULL; }
8898 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8899 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
8900 return NULL;
8901 }
8902 }
8903 {
8904 wxPy_BEGIN_ALLOW_THREADS;
8905 wxMenuItem_SetId(_arg0,_arg1);
8906
8907 wxPy_END_ALLOW_THREADS;
8908 } Py_INCREF(Py_None);
8909 _resultobj = Py_None;
8910 return _resultobj;
8911 }
8912
8913 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
8914 static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
8915 PyObject * _resultobj;
8916 int _result;
8917 wxMenuItem * _arg0;
8918 PyObject * _argo0 = 0;
8919 char *_kwnames[] = { "self", NULL };
8920
8921 self = self;
8922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
8923 return NULL;
8924 if (_argo0) {
8925 if (_argo0 == Py_None) { _arg0 = NULL; }
8926 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8927 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
8928 return NULL;
8929 }
8930 }
8931 {
8932 wxPy_BEGIN_ALLOW_THREADS;
8933 _result = (int )wxMenuItem_GetId(_arg0);
8934
8935 wxPy_END_ALLOW_THREADS;
8936 } _resultobj = Py_BuildValue("i",_result);
8937 return _resultobj;
8938 }
8939
8940 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
8941 static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
8942 PyObject * _resultobj;
8943 bool _result;
8944 wxMenuItem * _arg0;
8945 PyObject * _argo0 = 0;
8946 char *_kwnames[] = { "self", NULL };
8947
8948 self = self;
8949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
8950 return NULL;
8951 if (_argo0) {
8952 if (_argo0 == Py_None) { _arg0 = NULL; }
8953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
8955 return NULL;
8956 }
8957 }
8958 {
8959 wxPy_BEGIN_ALLOW_THREADS;
8960 _result = (bool )wxMenuItem_IsSeparator(_arg0);
8961
8962 wxPy_END_ALLOW_THREADS;
8963 } _resultobj = Py_BuildValue("i",_result);
8964 return _resultobj;
8965 }
8966
8967 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
8968 static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
8969 PyObject * _resultobj;
8970 wxMenuItem * _arg0;
8971 wxString * _arg1;
8972 PyObject * _argo0 = 0;
8973 PyObject * _obj1 = 0;
8974 char *_kwnames[] = { "self","str", NULL };
8975
8976 self = self;
8977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1))
8978 return NULL;
8979 if (_argo0) {
8980 if (_argo0 == Py_None) { _arg0 = NULL; }
8981 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8982 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
8983 return NULL;
8984 }
8985 }
8986 {
8987 #if PYTHON_API_VERSION >= 1009
8988 char* tmpPtr; int tmpSize;
8989 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8990 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
8991 return NULL;
8992 }
8993 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8994 return NULL;
8995 _arg1 = new wxString(tmpPtr, tmpSize);
8996 #else
8997 if (!PyString_Check(_obj1)) {
8998 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8999 return NULL;
9000 }
9001 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9002 #endif
9003 }
9004 {
9005 wxPy_BEGIN_ALLOW_THREADS;
9006 wxMenuItem_SetText(_arg0,*_arg1);
9007
9008 wxPy_END_ALLOW_THREADS;
9009 } Py_INCREF(Py_None);
9010 _resultobj = Py_None;
9011 {
9012 if (_obj1)
9013 delete _arg1;
9014 }
9015 return _resultobj;
9016 }
9017
9018 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9019 static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9020 PyObject * _resultobj;
9021 wxString * _result;
9022 wxMenuItem * _arg0;
9023 PyObject * _argo0 = 0;
9024 char *_kwnames[] = { "self", NULL };
9025
9026 self = self;
9027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0))
9028 return NULL;
9029 if (_argo0) {
9030 if (_argo0 == Py_None) { _arg0 = NULL; }
9031 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9032 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9033 return NULL;
9034 }
9035 }
9036 {
9037 wxPy_BEGIN_ALLOW_THREADS;
9038 _result = new wxString (wxMenuItem_GetLabel(_arg0));
9039
9040 wxPy_END_ALLOW_THREADS;
9041 }{
9042 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9043 }
9044 {
9045 delete _result;
9046 }
9047 return _resultobj;
9048 }
9049
9050 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9051 static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
9052 PyObject * _resultobj;
9053 wxString * _result;
9054 wxMenuItem * _arg0;
9055 PyObject * _argo0 = 0;
9056 char *_kwnames[] = { "self", NULL };
9057
9058 self = self;
9059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0))
9060 return NULL;
9061 if (_argo0) {
9062 if (_argo0 == Py_None) { _arg0 = NULL; }
9063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9065 return NULL;
9066 }
9067 }
9068 {
9069 wxPy_BEGIN_ALLOW_THREADS;
9070 const wxString & _result_ref = wxMenuItem_GetText(_arg0);
9071 _result = (wxString *) &_result_ref;
9072
9073 wxPy_END_ALLOW_THREADS;
9074 }{
9075 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9076 }
9077 return _resultobj;
9078 }
9079
9080 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9081 static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
9082 PyObject * _resultobj;
9083 wxMenuItem * _arg0;
9084 bool _arg1;
9085 PyObject * _argo0 = 0;
9086 int tempbool1;
9087 char *_kwnames[] = { "self","checkable", NULL };
9088
9089 self = self;
9090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1))
9091 return NULL;
9092 if (_argo0) {
9093 if (_argo0 == Py_None) { _arg0 = NULL; }
9094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9096 return NULL;
9097 }
9098 }
9099 _arg1 = (bool ) tempbool1;
9100 {
9101 wxPy_BEGIN_ALLOW_THREADS;
9102 wxMenuItem_SetCheckable(_arg0,_arg1);
9103
9104 wxPy_END_ALLOW_THREADS;
9105 } Py_INCREF(Py_None);
9106 _resultobj = Py_None;
9107 return _resultobj;
9108 }
9109
9110 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9111 static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
9112 PyObject * _resultobj;
9113 bool _result;
9114 wxMenuItem * _arg0;
9115 PyObject * _argo0 = 0;
9116 char *_kwnames[] = { "self", NULL };
9117
9118 self = self;
9119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0))
9120 return NULL;
9121 if (_argo0) {
9122 if (_argo0 == Py_None) { _arg0 = NULL; }
9123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9125 return NULL;
9126 }
9127 }
9128 {
9129 wxPy_BEGIN_ALLOW_THREADS;
9130 _result = (bool )wxMenuItem_IsCheckable(_arg0);
9131
9132 wxPy_END_ALLOW_THREADS;
9133 } _resultobj = Py_BuildValue("i",_result);
9134 return _resultobj;
9135 }
9136
9137 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9138 static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9139 PyObject * _resultobj;
9140 bool _result;
9141 wxMenuItem * _arg0;
9142 PyObject * _argo0 = 0;
9143 char *_kwnames[] = { "self", NULL };
9144
9145 self = self;
9146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0))
9147 return NULL;
9148 if (_argo0) {
9149 if (_argo0 == Py_None) { _arg0 = NULL; }
9150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9152 return NULL;
9153 }
9154 }
9155 {
9156 wxPy_BEGIN_ALLOW_THREADS;
9157 _result = (bool )wxMenuItem_IsSubMenu(_arg0);
9158
9159 wxPy_END_ALLOW_THREADS;
9160 } _resultobj = Py_BuildValue("i",_result);
9161 return _resultobj;
9162 }
9163
9164 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9165 static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9166 PyObject * _resultobj;
9167 wxMenuItem * _arg0;
9168 wxMenu * _arg1;
9169 PyObject * _argo0 = 0;
9170 PyObject * _argo1 = 0;
9171 char *_kwnames[] = { "self","menu", NULL };
9172
9173 self = self;
9174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1))
9175 return NULL;
9176 if (_argo0) {
9177 if (_argo0 == Py_None) { _arg0 = NULL; }
9178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9180 return NULL;
9181 }
9182 }
9183 if (_argo1) {
9184 if (_argo1 == Py_None) { _arg1 = NULL; }
9185 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9186 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9187 return NULL;
9188 }
9189 }
9190 {
9191 wxPy_BEGIN_ALLOW_THREADS;
9192 wxMenuItem_SetSubMenu(_arg0,_arg1);
9193
9194 wxPy_END_ALLOW_THREADS;
9195 } Py_INCREF(Py_None);
9196 _resultobj = Py_None;
9197 return _resultobj;
9198 }
9199
9200 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9201 static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9202 PyObject * _resultobj;
9203 wxMenu * _result;
9204 wxMenuItem * _arg0;
9205 PyObject * _argo0 = 0;
9206 char *_kwnames[] = { "self", NULL };
9207 char _ptemp[128];
9208
9209 self = self;
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
9211 return NULL;
9212 if (_argo0) {
9213 if (_argo0 == Py_None) { _arg0 = NULL; }
9214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9216 return NULL;
9217 }
9218 }
9219 {
9220 wxPy_BEGIN_ALLOW_THREADS;
9221 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
9222
9223 wxPy_END_ALLOW_THREADS;
9224 } if (_result) {
9225 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
9226 _resultobj = Py_BuildValue("s",_ptemp);
9227 } else {
9228 Py_INCREF(Py_None);
9229 _resultobj = Py_None;
9230 }
9231 return _resultobj;
9232 }
9233
9234 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9235 static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
9236 PyObject * _resultobj;
9237 wxMenuItem * _arg0;
9238 bool _arg1 = (bool ) TRUE;
9239 PyObject * _argo0 = 0;
9240 int tempbool1 = (int) TRUE;
9241 char *_kwnames[] = { "self","enable", NULL };
9242
9243 self = self;
9244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
9245 return NULL;
9246 if (_argo0) {
9247 if (_argo0 == Py_None) { _arg0 = NULL; }
9248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9250 return NULL;
9251 }
9252 }
9253 _arg1 = (bool ) tempbool1;
9254 {
9255 wxPy_BEGIN_ALLOW_THREADS;
9256 wxMenuItem_Enable(_arg0,_arg1);
9257
9258 wxPy_END_ALLOW_THREADS;
9259 } Py_INCREF(Py_None);
9260 _resultobj = Py_None;
9261 return _resultobj;
9262 }
9263
9264 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9265 static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
9266 PyObject * _resultobj;
9267 bool _result;
9268 wxMenuItem * _arg0;
9269 PyObject * _argo0 = 0;
9270 char *_kwnames[] = { "self", NULL };
9271
9272 self = self;
9273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
9274 return NULL;
9275 if (_argo0) {
9276 if (_argo0 == Py_None) { _arg0 = NULL; }
9277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9279 return NULL;
9280 }
9281 }
9282 {
9283 wxPy_BEGIN_ALLOW_THREADS;
9284 _result = (bool )wxMenuItem_IsEnabled(_arg0);
9285
9286 wxPy_END_ALLOW_THREADS;
9287 } _resultobj = Py_BuildValue("i",_result);
9288 return _resultobj;
9289 }
9290
9291 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9292 static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
9293 PyObject * _resultobj;
9294 wxMenuItem * _arg0;
9295 bool _arg1 = (bool ) TRUE;
9296 PyObject * _argo0 = 0;
9297 int tempbool1 = (int) TRUE;
9298 char *_kwnames[] = { "self","check", NULL };
9299
9300 self = self;
9301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
9302 return NULL;
9303 if (_argo0) {
9304 if (_argo0 == Py_None) { _arg0 = NULL; }
9305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9307 return NULL;
9308 }
9309 }
9310 _arg1 = (bool ) tempbool1;
9311 {
9312 wxPy_BEGIN_ALLOW_THREADS;
9313 wxMenuItem_Check(_arg0,_arg1);
9314
9315 wxPy_END_ALLOW_THREADS;
9316 } Py_INCREF(Py_None);
9317 _resultobj = Py_None;
9318 return _resultobj;
9319 }
9320
9321 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9322 static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
9323 PyObject * _resultobj;
9324 bool _result;
9325 wxMenuItem * _arg0;
9326 PyObject * _argo0 = 0;
9327 char *_kwnames[] = { "self", NULL };
9328
9329 self = self;
9330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
9331 return NULL;
9332 if (_argo0) {
9333 if (_argo0 == Py_None) { _arg0 = NULL; }
9334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9336 return NULL;
9337 }
9338 }
9339 {
9340 wxPy_BEGIN_ALLOW_THREADS;
9341 _result = (bool )wxMenuItem_IsChecked(_arg0);
9342
9343 wxPy_END_ALLOW_THREADS;
9344 } _resultobj = Py_BuildValue("i",_result);
9345 return _resultobj;
9346 }
9347
9348 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9349 static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
9350 PyObject * _resultobj;
9351 wxMenuItem * _arg0;
9352 PyObject * _argo0 = 0;
9353 char *_kwnames[] = { "self", NULL };
9354
9355 self = self;
9356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0))
9357 return NULL;
9358 if (_argo0) {
9359 if (_argo0 == Py_None) { _arg0 = NULL; }
9360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9362 return NULL;
9363 }
9364 }
9365 {
9366 wxPy_BEGIN_ALLOW_THREADS;
9367 wxMenuItem_Toggle(_arg0);
9368
9369 wxPy_END_ALLOW_THREADS;
9370 } Py_INCREF(Py_None);
9371 _resultobj = Py_None;
9372 return _resultobj;
9373 }
9374
9375 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9376 static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
9377 PyObject * _resultobj;
9378 wxMenuItem * _arg0;
9379 wxString * _arg1;
9380 PyObject * _argo0 = 0;
9381 PyObject * _obj1 = 0;
9382 char *_kwnames[] = { "self","str", NULL };
9383
9384 self = self;
9385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
9386 return NULL;
9387 if (_argo0) {
9388 if (_argo0 == Py_None) { _arg0 = NULL; }
9389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9391 return NULL;
9392 }
9393 }
9394 {
9395 #if PYTHON_API_VERSION >= 1009
9396 char* tmpPtr; int tmpSize;
9397 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9398 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
9399 return NULL;
9400 }
9401 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9402 return NULL;
9403 _arg1 = new wxString(tmpPtr, tmpSize);
9404 #else
9405 if (!PyString_Check(_obj1)) {
9406 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9407 return NULL;
9408 }
9409 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9410 #endif
9411 }
9412 {
9413 wxPy_BEGIN_ALLOW_THREADS;
9414 wxMenuItem_SetHelp(_arg0,*_arg1);
9415
9416 wxPy_END_ALLOW_THREADS;
9417 } Py_INCREF(Py_None);
9418 _resultobj = Py_None;
9419 {
9420 if (_obj1)
9421 delete _arg1;
9422 }
9423 return _resultobj;
9424 }
9425
9426 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9427 static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
9428 PyObject * _resultobj;
9429 wxString * _result;
9430 wxMenuItem * _arg0;
9431 PyObject * _argo0 = 0;
9432 char *_kwnames[] = { "self", NULL };
9433
9434 self = self;
9435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
9436 return NULL;
9437 if (_argo0) {
9438 if (_argo0 == Py_None) { _arg0 = NULL; }
9439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9441 return NULL;
9442 }
9443 }
9444 {
9445 wxPy_BEGIN_ALLOW_THREADS;
9446 const wxString & _result_ref = wxMenuItem_GetHelp(_arg0);
9447 _result = (wxString *) &_result_ref;
9448
9449 wxPy_END_ALLOW_THREADS;
9450 }{
9451 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9452 }
9453 return _resultobj;
9454 }
9455
9456 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9457 static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
9458 PyObject * _resultobj;
9459 wxAcceleratorEntry * _result;
9460 wxMenuItem * _arg0;
9461 PyObject * _argo0 = 0;
9462 char *_kwnames[] = { "self", NULL };
9463 char _ptemp[128];
9464
9465 self = self;
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0))
9467 return NULL;
9468 if (_argo0) {
9469 if (_argo0 == Py_None) { _arg0 = NULL; }
9470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9472 return NULL;
9473 }
9474 }
9475 {
9476 wxPy_BEGIN_ALLOW_THREADS;
9477 _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0);
9478
9479 wxPy_END_ALLOW_THREADS;
9480 } if (_result) {
9481 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
9482 _resultobj = Py_BuildValue("s",_ptemp);
9483 } else {
9484 Py_INCREF(Py_None);
9485 _resultobj = Py_None;
9486 }
9487 return _resultobj;
9488 }
9489
9490 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9491 static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
9492 PyObject * _resultobj;
9493 wxMenuItem * _arg0;
9494 wxAcceleratorEntry * _arg1;
9495 PyObject * _argo0 = 0;
9496 PyObject * _argo1 = 0;
9497 char *_kwnames[] = { "self","accel", NULL };
9498
9499 self = self;
9500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1))
9501 return NULL;
9502 if (_argo0) {
9503 if (_argo0 == Py_None) { _arg0 = NULL; }
9504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9506 return NULL;
9507 }
9508 }
9509 if (_argo1) {
9510 if (_argo1 == Py_None) { _arg1 = NULL; }
9511 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) {
9512 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9513 return NULL;
9514 }
9515 }
9516 {
9517 wxPy_BEGIN_ALLOW_THREADS;
9518 wxMenuItem_SetAccel(_arg0,_arg1);
9519
9520 wxPy_END_ALLOW_THREADS;
9521 } Py_INCREF(Py_None);
9522 _resultobj = Py_None;
9523 return _resultobj;
9524 }
9525
9526 static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
9527 PyObject * _resultobj;
9528 wxString * _result;
9529 wxString * _arg0;
9530 PyObject * _obj0 = 0;
9531 char *_kwnames[] = { "text", NULL };
9532
9533 self = self;
9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0))
9535 return NULL;
9536 {
9537 #if PYTHON_API_VERSION >= 1009
9538 char* tmpPtr; int tmpSize;
9539 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
9540 PyErr_SetString(PyExc_TypeError, "String or Unicode type required");
9541 return NULL;
9542 }
9543 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
9544 return NULL;
9545 _arg0 = new wxString(tmpPtr, tmpSize);
9546 #else
9547 if (!PyString_Check(_obj0)) {
9548 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9549 return NULL;
9550 }
9551 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
9552 #endif
9553 }
9554 {
9555 wxPy_BEGIN_ALLOW_THREADS;
9556 _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0));
9557
9558 wxPy_END_ALLOW_THREADS;
9559 }{
9560 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9561 }
9562 {
9563 if (_obj0)
9564 delete _arg0;
9565 }
9566 {
9567 delete _result;
9568 }
9569 return _resultobj;
9570 }
9571
9572 static PyMethodDef windowscMethods[] = {
9573 { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
9574 { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
9575 { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
9576 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
9577 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
9578 { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
9579 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
9580 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
9581 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
9582 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
9583 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
9584 { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
9585 { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
9586 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
9587 { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
9588 { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
9589 { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
9590 { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
9591 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
9592 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
9593 { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
9594 { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
9595 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
9596 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
9597 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
9598 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
9599 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
9600 { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
9601 { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
9602 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
9603 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
9604 { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
9605 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
9606 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
9607 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
9608 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
9609 { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
9610 { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
9611 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
9612 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
9613 { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
9614 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
9615 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
9616 { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS },
9617 { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS },
9618 { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS },
9619 { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS },
9620 { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
9621 { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
9622 { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
9623 { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
9624 { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
9625 { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
9626 { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
9627 { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS },
9628 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
9629 { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
9630 { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS },
9631 { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS },
9632 { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
9633 { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS },
9634 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
9635 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
9636 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
9637 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
9638 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
9639 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
9640 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
9641 { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS },
9642 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
9643 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
9644 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
9645 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
9646 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
9647 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
9648 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
9649 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
9650 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
9651 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
9652 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
9653 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS },
9654 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS },
9655 { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS },
9656 { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS },
9657 { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS },
9658 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
9659 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
9660 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
9661 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
9662 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
9663 { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
9664 { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS },
9665 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
9666 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
9667 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
9668 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
9669 { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS },
9670 { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS },
9671 { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS },
9672 { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
9673 { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
9674 { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS },
9675 { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS },
9676 { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS },
9677 { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS },
9678 { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS },
9679 { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS },
9680 { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS },
9681 { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS },
9682 { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS },
9683 { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
9684 { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
9685 { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
9686 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
9687 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
9688 { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS },
9689 { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS },
9690 { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS },
9691 { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
9692 { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
9693 { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
9694 { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
9695 { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS },
9696 { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
9697 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
9698 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
9699 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
9700 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
9701 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
9702 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
9703 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
9704 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
9705 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
9706 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
9707 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
9708 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
9709 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
9710 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
9711 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
9712 { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
9713 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
9714 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
9715 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
9716 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
9717 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
9718 { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS },
9719 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
9720 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
9721 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
9722 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
9723 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
9724 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
9725 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
9726 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
9727 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
9728 { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
9729 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
9730 { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS },
9731 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
9732 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9733 { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
9734 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
9735 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
9736 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
9737 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
9738 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
9739 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
9740 { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS },
9741 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
9742 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
9743 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
9744 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
9745 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
9746 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
9747 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
9748 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
9749 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
9750 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
9751 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
9752 { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS },
9753 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
9754 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
9755 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
9756 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
9757 { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
9758 { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
9759 { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS },
9760 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
9761 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
9762 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
9763 { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS },
9764 { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
9765 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
9766 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
9767 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
9768 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
9769 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
9770 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
9771 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
9772 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
9773 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
9774 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
9775 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
9776 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
9777 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
9778 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
9779 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
9780 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
9781 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
9782 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
9783 { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS },
9784 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
9785 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
9786 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
9787 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
9788 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
9789 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
9790 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
9791 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
9792 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
9793 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
9794 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
9795 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
9796 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
9797 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
9798 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
9799 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
9800 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
9801 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
9802 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
9803 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
9804 { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
9805 { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS },
9806 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
9807 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
9808 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
9809 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
9810 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
9811 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
9812 { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS },
9813 { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS },
9814 { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
9815 { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
9816 { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
9817 { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
9818 { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
9819 { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
9820 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
9821 { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
9822 { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
9823 { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
9824 { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
9825 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
9826 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
9827 { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
9828 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
9829 { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS },
9830 { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS },
9831 { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
9832 { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS },
9833 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
9834 { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
9835 { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
9836 { NULL, NULL }
9837 };
9838 #ifdef __cplusplus
9839 }
9840 #endif
9841 /*
9842 * This table is used by the pointer type-checker
9843 */
9844 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
9845 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
9846 { "_signed_long","_long",0},
9847 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
9848 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
9849 { "_wxPrintQuality","_wxCoord",0},
9850 { "_wxPrintQuality","_int",0},
9851 { "_wxPrintQuality","_signed_int",0},
9852 { "_wxPrintQuality","_unsigned_int",0},
9853 { "_wxPrintQuality","_wxWindowID",0},
9854 { "_wxPrintQuality","_uint",0},
9855 { "_wxPrintQuality","_EBool",0},
9856 { "_wxPrintQuality","_size_t",0},
9857 { "_wxPrintQuality","_time_t",0},
9858 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
9859 { "_class_wxRegionIterator","_wxRegionIterator",0},
9860 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
9861 { "_class_wxMenuBar","_wxMenuBar",0},
9862 { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
9863 { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
9864 { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
9865 { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
9866 { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
9867 { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
9868 { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
9869 { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
9870 { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
9871 { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
9872 { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
9873 { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
9874 { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
9875 { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
9876 { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler},
9877 { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
9878 { "_class_wxEvtHandler","_wxEvtHandler",0},
9879 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
9880 { "_wxCursor","_class_wxCursor",0},
9881 { "_wxMask","_class_wxMask",0},
9882 { "_wxPen","_class_wxPen",0},
9883 { "_byte","_unsigned_char",0},
9884 { "_wxDataObject","_class_wxDataObject",0},
9885 { "_wxColourDatabase","_class_wxColourDatabase",0},
9886 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
9887 { "_wxPyDropSource","_class_wxPyDropSource",0},
9888 { "_long","_unsigned_long",0},
9889 { "_long","_signed_long",0},
9890 { "_wxImageList","_class_wxImageList",0},
9891 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
9892 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
9893 { "_class_wxClipboard","_wxClipboard",0},
9894 { "_wxDC","_class_wxDC",0},
9895 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
9896 { "_size_t","_wxCoord",0},
9897 { "_size_t","_wxPrintQuality",0},
9898 { "_size_t","_time_t",0},
9899 { "_size_t","_unsigned_int",0},
9900 { "_size_t","_int",0},
9901 { "_size_t","_wxWindowID",0},
9902 { "_size_t","_uint",0},
9903 { "_class_wxRealPoint","_wxRealPoint",0},
9904 { "_class_wxMenuItem","_wxMenuItem",0},
9905 { "_class_wxPostScriptDC","_wxPostScriptDC",0},
9906 { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
9907 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
9908 { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
9909 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
9910 { "_wxPanel","_class_wxPanel",0},
9911 { "_class_wxMask","_wxMask",0},
9912 { "_wxTextDataObject","_class_wxTextDataObject",0},
9913 { "_wxColour","_class_wxColour",0},
9914 { "_class_wxDialog","_wxDialog",0},
9915 { "_class_wxFileDataObject","_wxFileDataObject",0},
9916 { "_class_wxDataObject","_wxDataObject",0},
9917 { "_wxBrush","_class_wxBrush",0},
9918 { "_wxDataFormat","_class_wxDataFormat",0},
9919 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
9920 { "_uint","_wxCoord",0},
9921 { "_uint","_wxPrintQuality",0},
9922 { "_uint","_time_t",0},
9923 { "_uint","_size_t",0},
9924 { "_uint","_unsigned_int",0},
9925 { "_uint","_int",0},
9926 { "_uint","_wxWindowID",0},
9927 { "_wxChar","_char",0},
9928 { "_wxPyValidator","_class_wxPyValidator",0},
9929 { "_wxRect","_class_wxRect",0},
9930 { "_wxPoint","_class_wxPoint",0},
9931 { "_char","_wxChar",0},
9932 { "_wxBitmap","_class_wxBitmap",0},
9933 { "_wxPenList","_class_wxPenList",0},
9934 { "_wxWindowDC","_class_wxWindowDC",0},
9935 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
9936 { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator},
9937 { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
9938 { "_class_wxValidator","_wxValidator",0},
9939 { "_wxDropTarget","_class_wxDropTarget",0},
9940 { "_class_wxColourDatabase","_wxColourDatabase",0},
9941 { "_EBool","_wxCoord",0},
9942 { "_EBool","_wxPrintQuality",0},
9943 { "_EBool","_signed_int",0},
9944 { "_EBool","_int",0},
9945 { "_EBool","_wxWindowID",0},
9946 { "_class_wxRegion","_wxRegion",0},
9947 { "_class_wxDataFormat","_wxDataFormat",0},
9948 { "_wxFont","_class_wxFont",0},
9949 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
9950 { "_unsigned_long","_long",0},
9951 { "_class_wxRect","_wxRect",0},
9952 { "_class_wxDC","_wxDC",0},
9953 { "_class_wxBrushList","_wxBrushList",0},
9954 { "_class_wxPenList","_wxPenList",0},
9955 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
9956 { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
9957 { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
9958 { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
9959 { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
9960 { "_class_wxPanel","_wxPanel",0},
9961 { "_signed_int","_wxCoord",0},
9962 { "_signed_int","_wxPrintQuality",0},
9963 { "_signed_int","_EBool",0},
9964 { "_signed_int","_wxWindowID",0},
9965 { "_signed_int","_int",0},
9966 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
9967 { "_class_wxTextDataObject","_wxTextDataObject",0},
9968 { "_wxMenu","_class_wxMenu",0},
9969 { "_wxScreenDC","_class_wxScreenDC",0},
9970 { "_WXTYPE","_short",0},
9971 { "_WXTYPE","_signed_short",0},
9972 { "_WXTYPE","_unsigned_short",0},
9973 { "_class_wxDropTarget","_wxDropTarget",0},
9974 { "_class_wxBrush","_wxBrush",0},
9975 { "_unsigned_short","_WXTYPE",0},
9976 { "_unsigned_short","_short",0},
9977 { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow},
9978 { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
9979 { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
9980 { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
9981 { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
9982 { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
9983 { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
9984 { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
9985 { "_class_wxWindow","_wxWindow",0},
9986 { "_class_wxFont","_wxFont",0},
9987 { "_wxClipboard","_class_wxClipboard",0},
9988 { "_class_wxPyValidator","_wxPyValidator",0},
9989 { "_wxBusyInfo","_class_wxBusyInfo",0},
9990 { "_wxFontList","_class_wxFontList",0},
9991 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
9992 { "_wxClientDC","_class_wxClientDC",0},
9993 { "_class_wxPoint","_wxPoint",0},
9994 { "_wxRealPoint","_class_wxRealPoint",0},
9995 { "_signed_short","_WXTYPE",0},
9996 { "_signed_short","_short",0},
9997 { "_wxMemoryDC","_class_wxMemoryDC",0},
9998 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
9999 { "_wxPaintDC","_class_wxPaintDC",0},
10000 { "_class_wxWindowDC","_wxWindowDC",0},
10001 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
10002 { "_class_wxCursor","_wxCursor",0},
10003 { "_wxPostScriptDC","_class_wxPostScriptDC",0},
10004 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
10005 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
10006 { "_unsigned_char","_byte",0},
10007 { "_class_wxMenu","_wxMenu",0},
10008 { "_unsigned_int","_wxCoord",0},
10009 { "_unsigned_int","_wxPrintQuality",0},
10010 { "_unsigned_int","_time_t",0},
10011 { "_unsigned_int","_size_t",0},
10012 { "_unsigned_int","_uint",0},
10013 { "_unsigned_int","_wxWindowID",0},
10014 { "_unsigned_int","_int",0},
10015 { "_wxIcon","_class_wxIcon",0},
10016 { "_wxDialog","_class_wxDialog",0},
10017 { "_class_wxPen","_wxPen",0},
10018 { "_short","_WXTYPE",0},
10019 { "_short","_unsigned_short",0},
10020 { "_short","_signed_short",0},
10021 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
10022 { "_class_wxPyDropSource","_wxPyDropSource",0},
10023 { "_class_wxImageList","_wxImageList",0},
10024 { "_wxWindowID","_wxCoord",0},
10025 { "_wxWindowID","_wxPrintQuality",0},
10026 { "_wxWindowID","_time_t",0},
10027 { "_wxWindowID","_size_t",0},
10028 { "_wxWindowID","_EBool",0},
10029 { "_wxWindowID","_uint",0},
10030 { "_wxWindowID","_int",0},
10031 { "_wxWindowID","_signed_int",0},
10032 { "_wxWindowID","_unsigned_int",0},
10033 { "_int","_wxCoord",0},
10034 { "_int","_wxPrintQuality",0},
10035 { "_int","_time_t",0},
10036 { "_int","_size_t",0},
10037 { "_int","_EBool",0},
10038 { "_int","_uint",0},
10039 { "_int","_wxWindowID",0},
10040 { "_int","_unsigned_int",0},
10041 { "_int","_signed_int",0},
10042 { "_time_t","_wxCoord",0},
10043 { "_time_t","_wxPrintQuality",0},
10044 { "_time_t","_unsigned_int",0},
10045 { "_time_t","_int",0},
10046 { "_time_t","_wxWindowID",0},
10047 { "_time_t","_uint",0},
10048 { "_time_t","_size_t",0},
10049 { "_wxSize","_class_wxSize",0},
10050 { "_wxRegionIterator","_class_wxRegionIterator",0},
10051 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
10052 { "_class_wxPaintDC","_wxPaintDC",0},
10053 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
10054 { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator},
10055 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
10056 { "_wxValidator","_class_wxValidator",0},
10057 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
10058 { "_class_wxIcon","_wxIcon",0},
10059 { "_class_wxColour","_wxColour",0},
10060 { "_class_wxScreenDC","_wxScreenDC",0},
10061 { "_wxPalette","_class_wxPalette",0},
10062 { "_wxCoord","_int",0},
10063 { "_wxCoord","_signed_int",0},
10064 { "_wxCoord","_unsigned_int",0},
10065 { "_wxCoord","_wxWindowID",0},
10066 { "_wxCoord","_uint",0},
10067 { "_wxCoord","_EBool",0},
10068 { "_wxCoord","_size_t",0},
10069 { "_wxCoord","_time_t",0},
10070 { "_wxCoord","_wxPrintQuality",0},
10071 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
10072 { "_wxRegion","_class_wxRegion",0},
10073 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
10074 { "_class_wxBusyInfo","_wxBusyInfo",0},
10075 { "_class_wxFontList","_wxFontList",0},
10076 { "_class_wxClientDC","_wxClientDC",0},
10077 { "_wxBrushList","_class_wxBrushList",0},
10078 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
10079 { "_class_wxSize","_wxSize",0},
10080 { "_class_wxBitmap","_wxBitmap",0},
10081 { "_class_wxMemoryDC","_wxMemoryDC",0},
10082 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
10083 { "_wxMenuBar","_class_wxMenuBar",0},
10084 { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
10085 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
10086 { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
10087 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
10088 { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
10089 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
10090 { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
10091 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
10092 { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
10093 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
10094 { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
10095 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
10096 { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
10097 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
10098 { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler},
10099 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
10100 { "_wxEvtHandler","_class_wxEvtHandler",0},
10101 { "_wxMenuItem","_class_wxMenuItem",0},
10102 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
10103 { "_class_wxPalette","_wxPalette",0},
10104 { "_wxFileDataObject","_class_wxFileDataObject",0},
10105 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
10106 { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow},
10107 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
10108 { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
10109 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
10110 { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
10111 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
10112 { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
10113 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
10114 { "_wxWindow","_class_wxWindow",0},
10115 {0,0,0}};
10116
10117 static PyObject *SWIG_globals;
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 SWIGEXPORT(void) initwindowsc() {
10122 PyObject *m, *d;
10123 SWIG_globals = SWIG_newvarlink();
10124 m = Py_InitModule("windowsc", windowscMethods);
10125 d = PyModule_GetDict(m);
10126 {
10127 int i;
10128 for (i = 0; _swig_mapping[i].n1; i++)
10129 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10130 }
10131 }