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