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