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