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