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