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