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