]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/windows.cpp
Added typemap for wxArrayString
[wxWidgets.git] / wxPython / src / mac / windows.cpp
1 /*
2 * FILE : src/mac/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_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5073 static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5074 PyObject * _resultobj;
5075 wxSize * _result;
5076 wxWindow * _arg0;
5077 PyObject * _argo0 = 0;
5078 char *_kwnames[] = { "self", NULL };
5079 char _ptemp[128];
5080
5081 self = self;
5082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0))
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_GetBestSize. Expected _wxWindow_p.");
5088 return NULL;
5089 }
5090 }
5091 {
5092 wxPy_BEGIN_ALLOW_THREADS;
5093 _result = new wxSize (wxWindow_GetBestSize(_arg0));
5094
5095 wxPy_END_ALLOW_THREADS;
5096 if (PyErr_Occurred()) return NULL;
5097 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5098 _resultobj = Py_BuildValue("s",_ptemp);
5099 return _resultobj;
5100 }
5101
5102 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5103 static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5104 PyObject * _resultobj;
5105 wxWindow * _arg0;
5106 wxCaret * _arg1;
5107 PyObject * _argo0 = 0;
5108 PyObject * _argo1 = 0;
5109 char *_kwnames[] = { "self","caret", NULL };
5110
5111 self = self;
5112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1))
5113 return NULL;
5114 if (_argo0) {
5115 if (_argo0 == Py_None) { _arg0 = NULL; }
5116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5118 return NULL;
5119 }
5120 }
5121 if (_argo1) {
5122 if (_argo1 == Py_None) { _arg1 = NULL; }
5123 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) {
5124 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5125 return NULL;
5126 }
5127 }
5128 {
5129 wxPy_BEGIN_ALLOW_THREADS;
5130 wxWindow_SetCaret(_arg0,_arg1);
5131
5132 wxPy_END_ALLOW_THREADS;
5133 if (PyErr_Occurred()) return NULL;
5134 } Py_INCREF(Py_None);
5135 _resultobj = Py_None;
5136 return _resultobj;
5137 }
5138
5139 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5140 static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5141 PyObject * _resultobj;
5142 wxCaret * _result;
5143 wxWindow * _arg0;
5144 PyObject * _argo0 = 0;
5145 char *_kwnames[] = { "self", NULL };
5146 char _ptemp[128];
5147
5148 self = self;
5149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0))
5150 return NULL;
5151 if (_argo0) {
5152 if (_argo0 == Py_None) { _arg0 = NULL; }
5153 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5154 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5155 return NULL;
5156 }
5157 }
5158 {
5159 wxPy_BEGIN_ALLOW_THREADS;
5160 _result = (wxCaret *)wxWindow_GetCaret(_arg0);
5161
5162 wxPy_END_ALLOW_THREADS;
5163 if (PyErr_Occurred()) return NULL;
5164 } if (_result) {
5165 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p");
5166 _resultobj = Py_BuildValue("s",_ptemp);
5167 } else {
5168 Py_INCREF(Py_None);
5169 _resultobj = Py_None;
5170 }
5171 return _resultobj;
5172 }
5173
5174 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5175 static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
5176 PyObject * _resultobj;
5177 wxWindow * _arg0;
5178 PyObject * _argo0 = 0;
5179 char *_kwnames[] = { "self", NULL };
5180
5181 self = self;
5182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0))
5183 return NULL;
5184 if (_argo0) {
5185 if (_argo0 == Py_None) { _arg0 = NULL; }
5186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5188 return NULL;
5189 }
5190 }
5191 {
5192 wxPy_BEGIN_ALLOW_THREADS;
5193 wxWindow_Freeze(_arg0);
5194
5195 wxPy_END_ALLOW_THREADS;
5196 if (PyErr_Occurred()) return NULL;
5197 } Py_INCREF(Py_None);
5198 _resultobj = Py_None;
5199 return _resultobj;
5200 }
5201
5202 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5203 static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
5204 PyObject * _resultobj;
5205 wxWindow * _arg0;
5206 PyObject * _argo0 = 0;
5207 char *_kwnames[] = { "self", NULL };
5208
5209 self = self;
5210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0))
5211 return NULL;
5212 if (_argo0) {
5213 if (_argo0 == Py_None) { _arg0 = NULL; }
5214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5216 return NULL;
5217 }
5218 }
5219 {
5220 wxPy_BEGIN_ALLOW_THREADS;
5221 wxWindow_Thaw(_arg0);
5222
5223 wxPy_END_ALLOW_THREADS;
5224 if (PyErr_Occurred()) return NULL;
5225 } Py_INCREF(Py_None);
5226 _resultobj = Py_None;
5227 return _resultobj;
5228 }
5229
5230 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5231 static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
5232 PyObject * _resultobj;
5233 wxWindow * _arg0;
5234 PyObject * _argo0 = 0;
5235 char *_kwnames[] = { "self", NULL };
5236
5237 self = self;
5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0))
5239 return NULL;
5240 if (_argo0) {
5241 if (_argo0 == Py_None) { _arg0 = NULL; }
5242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5244 return NULL;
5245 }
5246 }
5247 {
5248 wxPy_BEGIN_ALLOW_THREADS;
5249 wxWindow_Update(_arg0);
5250
5251 wxPy_END_ALLOW_THREADS;
5252 if (PyErr_Occurred()) return NULL;
5253 } Py_INCREF(Py_None);
5254 _resultobj = Py_None;
5255 return _resultobj;
5256 }
5257
5258 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5259 static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
5260 PyObject * _resultobj;
5261 wxString * _result;
5262 wxWindow * _arg0;
5263 PyObject * _argo0 = 0;
5264 char *_kwnames[] = { "self", NULL };
5265
5266 self = self;
5267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0))
5268 return NULL;
5269 if (_argo0) {
5270 if (_argo0 == Py_None) { _arg0 = NULL; }
5271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5273 return NULL;
5274 }
5275 }
5276 {
5277 wxPy_BEGIN_ALLOW_THREADS;
5278 _result = new wxString (wxWindow_GetHelpText(_arg0));
5279
5280 wxPy_END_ALLOW_THREADS;
5281 if (PyErr_Occurred()) return NULL;
5282 }{
5283 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5284 }
5285 {
5286 delete _result;
5287 }
5288 return _resultobj;
5289 }
5290
5291 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5292 static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject * _resultobj;
5294 wxWindow * _arg0;
5295 wxString * _arg1;
5296 PyObject * _argo0 = 0;
5297 PyObject * _obj1 = 0;
5298 char *_kwnames[] = { "self","helpText", NULL };
5299
5300 self = self;
5301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1))
5302 return NULL;
5303 if (_argo0) {
5304 if (_argo0 == Py_None) { _arg0 = NULL; }
5305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5307 return NULL;
5308 }
5309 }
5310 {
5311 #if PYTHON_API_VERSION >= 1009
5312 char* tmpPtr; int tmpSize;
5313 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5314 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5315 return NULL;
5316 }
5317 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5318 return NULL;
5319 _arg1 = new wxString(tmpPtr, tmpSize);
5320 #else
5321 if (!PyString_Check(_obj1)) {
5322 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5323 return NULL;
5324 }
5325 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5326 #endif
5327 }
5328 {
5329 wxPy_BEGIN_ALLOW_THREADS;
5330 wxWindow_SetHelpText(_arg0,*_arg1);
5331
5332 wxPy_END_ALLOW_THREADS;
5333 if (PyErr_Occurred()) return NULL;
5334 } Py_INCREF(Py_None);
5335 _resultobj = Py_None;
5336 {
5337 if (_obj1)
5338 delete _arg1;
5339 }
5340 return _resultobj;
5341 }
5342
5343 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5344 static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
5345 PyObject * _resultobj;
5346 bool _result;
5347 wxWindow * _arg0;
5348 int _arg1;
5349 PyObject * _argo0 = 0;
5350 char *_kwnames[] = { "self","lines", NULL };
5351
5352 self = self;
5353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1))
5354 return NULL;
5355 if (_argo0) {
5356 if (_argo0 == Py_None) { _arg0 = NULL; }
5357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5359 return NULL;
5360 }
5361 }
5362 {
5363 wxPy_BEGIN_ALLOW_THREADS;
5364 _result = (bool )wxWindow_ScrollLines(_arg0,_arg1);
5365
5366 wxPy_END_ALLOW_THREADS;
5367 if (PyErr_Occurred()) return NULL;
5368 } _resultobj = Py_BuildValue("i",_result);
5369 return _resultobj;
5370 }
5371
5372 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5373 static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
5374 PyObject * _resultobj;
5375 bool _result;
5376 wxWindow * _arg0;
5377 int _arg1;
5378 PyObject * _argo0 = 0;
5379 char *_kwnames[] = { "self","pages", NULL };
5380
5381 self = self;
5382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1))
5383 return NULL;
5384 if (_argo0) {
5385 if (_argo0 == Py_None) { _arg0 = NULL; }
5386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5388 return NULL;
5389 }
5390 }
5391 {
5392 wxPy_BEGIN_ALLOW_THREADS;
5393 _result = (bool )wxWindow_ScrollPages(_arg0,_arg1);
5394
5395 wxPy_END_ALLOW_THREADS;
5396 if (PyErr_Occurred()) return NULL;
5397 } _resultobj = Py_BuildValue("i",_result);
5398 return _resultobj;
5399 }
5400
5401 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5402 static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
5403 PyObject * _resultobj;
5404 bool _result;
5405 wxWindow * _arg0;
5406 PyObject * _argo0 = 0;
5407 char *_kwnames[] = { "self", NULL };
5408
5409 self = self;
5410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0))
5411 return NULL;
5412 if (_argo0) {
5413 if (_argo0 == Py_None) { _arg0 = NULL; }
5414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5416 return NULL;
5417 }
5418 }
5419 {
5420 wxPy_BEGIN_ALLOW_THREADS;
5421 _result = (bool )wxWindow_LineUp(_arg0);
5422
5423 wxPy_END_ALLOW_THREADS;
5424 if (PyErr_Occurred()) return NULL;
5425 } _resultobj = Py_BuildValue("i",_result);
5426 return _resultobj;
5427 }
5428
5429 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5430 static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
5431 PyObject * _resultobj;
5432 bool _result;
5433 wxWindow * _arg0;
5434 PyObject * _argo0 = 0;
5435 char *_kwnames[] = { "self", NULL };
5436
5437 self = self;
5438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0))
5439 return NULL;
5440 if (_argo0) {
5441 if (_argo0 == Py_None) { _arg0 = NULL; }
5442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5444 return NULL;
5445 }
5446 }
5447 {
5448 wxPy_BEGIN_ALLOW_THREADS;
5449 _result = (bool )wxWindow_LineDown(_arg0);
5450
5451 wxPy_END_ALLOW_THREADS;
5452 if (PyErr_Occurred()) return NULL;
5453 } _resultobj = Py_BuildValue("i",_result);
5454 return _resultobj;
5455 }
5456
5457 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5458 static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
5459 PyObject * _resultobj;
5460 bool _result;
5461 wxWindow * _arg0;
5462 PyObject * _argo0 = 0;
5463 char *_kwnames[] = { "self", NULL };
5464
5465 self = self;
5466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0))
5467 return NULL;
5468 if (_argo0) {
5469 if (_argo0 == Py_None) { _arg0 = NULL; }
5470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5472 return NULL;
5473 }
5474 }
5475 {
5476 wxPy_BEGIN_ALLOW_THREADS;
5477 _result = (bool )wxWindow_PageUp(_arg0);
5478
5479 wxPy_END_ALLOW_THREADS;
5480 if (PyErr_Occurred()) return NULL;
5481 } _resultobj = Py_BuildValue("i",_result);
5482 return _resultobj;
5483 }
5484
5485 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5486 static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
5487 PyObject * _resultobj;
5488 bool _result;
5489 wxWindow * _arg0;
5490 PyObject * _argo0 = 0;
5491 char *_kwnames[] = { "self", NULL };
5492
5493 self = self;
5494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0))
5495 return NULL;
5496 if (_argo0) {
5497 if (_argo0 == Py_None) { _arg0 = NULL; }
5498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5500 return NULL;
5501 }
5502 }
5503 {
5504 wxPy_BEGIN_ALLOW_THREADS;
5505 _result = (bool )wxWindow_PageDown(_arg0);
5506
5507 wxPy_END_ALLOW_THREADS;
5508 if (PyErr_Occurred()) return NULL;
5509 } _resultobj = Py_BuildValue("i",_result);
5510 return _resultobj;
5511 }
5512
5513 static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
5514 PyObject * _resultobj;
5515 wxWindow * _result;
5516 char *_kwnames[] = { NULL };
5517
5518 self = self;
5519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames))
5520 return NULL;
5521 {
5522 wxPy_BEGIN_ALLOW_THREADS;
5523 _result = (wxWindow *)wxWindow::FindFocus();
5524
5525 wxPy_END_ALLOW_THREADS;
5526 if (PyErr_Occurred()) return NULL;
5527 }{ _resultobj = wxPyMake_wxObject(_result); }
5528 return _resultobj;
5529 }
5530
5531 static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5532 PyObject * _resultobj;
5533 int _result;
5534 char *_kwnames[] = { NULL };
5535
5536 self = self;
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames))
5538 return NULL;
5539 {
5540 wxPy_BEGIN_ALLOW_THREADS;
5541 _result = (int )wxWindow::NewControlId();
5542
5543 wxPy_END_ALLOW_THREADS;
5544 if (PyErr_Occurred()) return NULL;
5545 } _resultobj = Py_BuildValue("i",_result);
5546 return _resultobj;
5547 }
5548
5549 static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5550 PyObject * _resultobj;
5551 int _result;
5552 int _arg0;
5553 char *_kwnames[] = { "id", NULL };
5554
5555 self = self;
5556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0))
5557 return NULL;
5558 {
5559 wxPy_BEGIN_ALLOW_THREADS;
5560 _result = (int )wxWindow::NextControlId(_arg0);
5561
5562 wxPy_END_ALLOW_THREADS;
5563 if (PyErr_Occurred()) return NULL;
5564 } _resultobj = Py_BuildValue("i",_result);
5565 return _resultobj;
5566 }
5567
5568 static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5569 PyObject * _resultobj;
5570 int _result;
5571 int _arg0;
5572 char *_kwnames[] = { "id", NULL };
5573
5574 self = self;
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0))
5576 return NULL;
5577 {
5578 wxPy_BEGIN_ALLOW_THREADS;
5579 _result = (int )wxWindow::PrevControlId(_arg0);
5580
5581 wxPy_END_ALLOW_THREADS;
5582 if (PyErr_Occurred()) return NULL;
5583 } _resultobj = Py_BuildValue("i",_result);
5584 return _resultobj;
5585 }
5586
5587 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5588 static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5589 PyObject * _resultobj;
5590 wxWindow * _arg0;
5591 wxAcceleratorTable * _arg1;
5592 PyObject * _argo0 = 0;
5593 PyObject * _argo1 = 0;
5594 char *_kwnames[] = { "self","accel", NULL };
5595
5596 self = self;
5597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
5598 return NULL;
5599 if (_argo0) {
5600 if (_argo0 == Py_None) { _arg0 = NULL; }
5601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
5603 return NULL;
5604 }
5605 }
5606 if (_argo1) {
5607 if (_argo1 == Py_None) { _arg1 = NULL; }
5608 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
5609 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5610 return NULL;
5611 }
5612 }
5613 {
5614 wxPy_BEGIN_ALLOW_THREADS;
5615 wxWindow_SetAcceleratorTable(_arg0,*_arg1);
5616
5617 wxPy_END_ALLOW_THREADS;
5618 if (PyErr_Occurred()) return NULL;
5619 } Py_INCREF(Py_None);
5620 _resultobj = Py_None;
5621 return _resultobj;
5622 }
5623
5624 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5625 static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject * _resultobj;
5627 wxAcceleratorTable * _result;
5628 wxWindow * _arg0;
5629 PyObject * _argo0 = 0;
5630 char *_kwnames[] = { "self", NULL };
5631 char _ptemp[128];
5632
5633 self = self;
5634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0))
5635 return NULL;
5636 if (_argo0) {
5637 if (_argo0 == Py_None) { _arg0 = NULL; }
5638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5640 return NULL;
5641 }
5642 }
5643 {
5644 wxPy_BEGIN_ALLOW_THREADS;
5645 _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0);
5646
5647 wxPy_END_ALLOW_THREADS;
5648 if (PyErr_Occurred()) return NULL;
5649 } if (_result) {
5650 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
5651 _resultobj = Py_BuildValue("s",_ptemp);
5652 } else {
5653 Py_INCREF(Py_None);
5654 _resultobj = Py_None;
5655 }
5656 return _resultobj;
5657 }
5658
5659 static void *SwigwxPanelTowxWindow(void *ptr) {
5660 wxPanel *src;
5661 wxWindow *dest;
5662 src = (wxPanel *) ptr;
5663 dest = (wxWindow *) src;
5664 return (void *) dest;
5665 }
5666
5667 static void *SwigwxPanelTowxEvtHandler(void *ptr) {
5668 wxPanel *src;
5669 wxEvtHandler *dest;
5670 src = (wxPanel *) ptr;
5671 dest = (wxEvtHandler *) src;
5672 return (void *) dest;
5673 }
5674
5675 static void *SwigwxPanelTowxObject(void *ptr) {
5676 wxPanel *src;
5677 wxObject *dest;
5678 src = (wxPanel *) ptr;
5679 dest = (wxObject *) src;
5680 return (void *) dest;
5681 }
5682
5683 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5684 static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
5685 PyObject * _resultobj;
5686 wxPanel * _result;
5687 wxWindow * _arg0;
5688 wxWindowID _arg1;
5689 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5690 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5691 long _arg4 = (long ) wxTAB_TRAVERSAL;
5692 char * _arg5 = (char *) "panel";
5693 PyObject * _argo0 = 0;
5694 wxPoint temp;
5695 PyObject * _obj2 = 0;
5696 wxSize temp0;
5697 PyObject * _obj3 = 0;
5698 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
5699 char _ptemp[128];
5700
5701 self = self;
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
5703 return NULL;
5704 if (_argo0) {
5705 if (_argo0 == Py_None) { _arg0 = NULL; }
5706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
5708 return NULL;
5709 }
5710 }
5711 if (_obj2)
5712 {
5713 _arg2 = &temp;
5714 if (! wxPoint_helper(_obj2, &_arg2))
5715 return NULL;
5716 }
5717 if (_obj3)
5718 {
5719 _arg3 = &temp0;
5720 if (! wxSize_helper(_obj3, &_arg3))
5721 return NULL;
5722 }
5723 {
5724 wxPy_BEGIN_ALLOW_THREADS;
5725 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
5726
5727 wxPy_END_ALLOW_THREADS;
5728 if (PyErr_Occurred()) return NULL;
5729 } if (_result) {
5730 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
5731 _resultobj = Py_BuildValue("s",_ptemp);
5732 } else {
5733 Py_INCREF(Py_None);
5734 _resultobj = Py_None;
5735 }
5736 return _resultobj;
5737 }
5738
5739 #define new_wxPrePanel() (new wxPanel())
5740 static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) {
5741 PyObject * _resultobj;
5742 wxPanel * _result;
5743 char *_kwnames[] = { NULL };
5744 char _ptemp[128];
5745
5746 self = self;
5747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames))
5748 return NULL;
5749 {
5750 wxPy_BEGIN_ALLOW_THREADS;
5751 _result = (wxPanel *)new_wxPrePanel();
5752
5753 wxPy_END_ALLOW_THREADS;
5754 if (PyErr_Occurred()) return NULL;
5755 } if (_result) {
5756 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
5757 _resultobj = Py_BuildValue("s",_ptemp);
5758 } else {
5759 Py_INCREF(Py_None);
5760 _resultobj = Py_None;
5761 }
5762 return _resultobj;
5763 }
5764
5765 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5766 static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5767 PyObject * _resultobj;
5768 bool _result;
5769 wxPanel * _arg0;
5770 wxWindow * _arg1;
5771 wxWindowID _arg2;
5772 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5773 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5774 long _arg5 = (long ) wxTAB_TRAVERSAL;
5775 char * _arg6 = (char *) "panel";
5776 PyObject * _argo0 = 0;
5777 PyObject * _argo1 = 0;
5778 wxPoint temp;
5779 PyObject * _obj3 = 0;
5780 wxSize temp0;
5781 PyObject * _obj4 = 0;
5782 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
5783
5784 self = self;
5785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
5786 return NULL;
5787 if (_argo0) {
5788 if (_argo0 == Py_None) { _arg0 = NULL; }
5789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
5790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
5791 return NULL;
5792 }
5793 }
5794 if (_argo1) {
5795 if (_argo1 == Py_None) { _arg1 = NULL; }
5796 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5797 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
5798 return NULL;
5799 }
5800 }
5801 if (_obj3)
5802 {
5803 _arg3 = &temp;
5804 if (! wxPoint_helper(_obj3, &_arg3))
5805 return NULL;
5806 }
5807 if (_obj4)
5808 {
5809 _arg4 = &temp0;
5810 if (! wxSize_helper(_obj4, &_arg4))
5811 return NULL;
5812 }
5813 {
5814 wxPy_BEGIN_ALLOW_THREADS;
5815 _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
5816
5817 wxPy_END_ALLOW_THREADS;
5818 if (PyErr_Occurred()) return NULL;
5819 } _resultobj = Py_BuildValue("i",_result);
5820 return _resultobj;
5821 }
5822
5823 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
5824 static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
5825 PyObject * _resultobj;
5826 wxPanel * _arg0;
5827 PyObject * _argo0 = 0;
5828 char *_kwnames[] = { "self", NULL };
5829
5830 self = self;
5831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0))
5832 return NULL;
5833 if (_argo0) {
5834 if (_argo0 == Py_None) { _arg0 = NULL; }
5835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
5836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
5837 return NULL;
5838 }
5839 }
5840 {
5841 wxPy_BEGIN_ALLOW_THREADS;
5842 wxPanel_InitDialog(_arg0);
5843
5844 wxPy_END_ALLOW_THREADS;
5845 if (PyErr_Occurred()) return NULL;
5846 } Py_INCREF(Py_None);
5847 _resultobj = Py_None;
5848 return _resultobj;
5849 }
5850
5851 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
5852 static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5853 PyObject * _resultobj;
5854 wxButton * _result;
5855 wxPanel * _arg0;
5856 PyObject * _argo0 = 0;
5857 char *_kwnames[] = { "self", NULL };
5858
5859 self = self;
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0))
5861 return NULL;
5862 if (_argo0) {
5863 if (_argo0 == Py_None) { _arg0 = NULL; }
5864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
5865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
5866 return NULL;
5867 }
5868 }
5869 {
5870 wxPy_BEGIN_ALLOW_THREADS;
5871 _result = (wxButton *)wxPanel_GetDefaultItem(_arg0);
5872
5873 wxPy_END_ALLOW_THREADS;
5874 if (PyErr_Occurred()) return NULL;
5875 }{ _resultobj = wxPyMake_wxObject(_result); }
5876 return _resultobj;
5877 }
5878
5879 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
5880 static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5881 PyObject * _resultobj;
5882 wxPanel * _arg0;
5883 wxButton * _arg1;
5884 PyObject * _argo0 = 0;
5885 PyObject * _argo1 = 0;
5886 char *_kwnames[] = { "self","btn", NULL };
5887
5888 self = self;
5889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1))
5890 return NULL;
5891 if (_argo0) {
5892 if (_argo0 == Py_None) { _arg0 = NULL; }
5893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
5894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
5895 return NULL;
5896 }
5897 }
5898 if (_argo1) {
5899 if (_argo1 == Py_None) { _arg1 = NULL; }
5900 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) {
5901 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
5902 return NULL;
5903 }
5904 }
5905 {
5906 wxPy_BEGIN_ALLOW_THREADS;
5907 wxPanel_SetDefaultItem(_arg0,_arg1);
5908
5909 wxPy_END_ALLOW_THREADS;
5910 if (PyErr_Occurred()) return NULL;
5911 } Py_INCREF(Py_None);
5912 _resultobj = Py_None;
5913 return _resultobj;
5914 }
5915
5916 static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
5917 wxScrolledWindow *src;
5918 wxPanel *dest;
5919 src = (wxScrolledWindow *) ptr;
5920 dest = (wxPanel *) src;
5921 return (void *) dest;
5922 }
5923
5924 static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
5925 wxScrolledWindow *src;
5926 wxWindow *dest;
5927 src = (wxScrolledWindow *) ptr;
5928 dest = (wxWindow *) src;
5929 return (void *) dest;
5930 }
5931
5932 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
5933 wxScrolledWindow *src;
5934 wxEvtHandler *dest;
5935 src = (wxScrolledWindow *) ptr;
5936 dest = (wxEvtHandler *) src;
5937 return (void *) dest;
5938 }
5939
5940 static void *SwigwxScrolledWindowTowxObject(void *ptr) {
5941 wxScrolledWindow *src;
5942 wxObject *dest;
5943 src = (wxScrolledWindow *) ptr;
5944 dest = (wxObject *) src;
5945 return (void *) dest;
5946 }
5947
5948 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5949 static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5950 PyObject * _resultobj;
5951 wxScrolledWindow * _result;
5952 wxWindow * _arg0;
5953 wxWindowID _arg1 = (wxWindowID ) -1;
5954 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5955 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5956 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
5957 char * _arg5 = (char *) "scrolledWindow";
5958 PyObject * _argo0 = 0;
5959 wxPoint temp;
5960 PyObject * _obj2 = 0;
5961 wxSize temp0;
5962 PyObject * _obj3 = 0;
5963 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
5964 char _ptemp[128];
5965
5966 self = self;
5967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
5968 return NULL;
5969 if (_argo0) {
5970 if (_argo0 == Py_None) { _arg0 = NULL; }
5971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
5973 return NULL;
5974 }
5975 }
5976 if (_obj2)
5977 {
5978 _arg2 = &temp;
5979 if (! wxPoint_helper(_obj2, &_arg2))
5980 return NULL;
5981 }
5982 if (_obj3)
5983 {
5984 _arg3 = &temp0;
5985 if (! wxSize_helper(_obj3, &_arg3))
5986 return NULL;
5987 }
5988 {
5989 wxPy_BEGIN_ALLOW_THREADS;
5990 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
5991
5992 wxPy_END_ALLOW_THREADS;
5993 if (PyErr_Occurred()) return NULL;
5994 } if (_result) {
5995 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
5996 _resultobj = Py_BuildValue("s",_ptemp);
5997 } else {
5998 Py_INCREF(Py_None);
5999 _resultobj = Py_None;
6000 }
6001 return _resultobj;
6002 }
6003
6004 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6005 static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6006 PyObject * _resultobj;
6007 wxScrolledWindow * _result;
6008 char *_kwnames[] = { NULL };
6009 char _ptemp[128];
6010
6011 self = self;
6012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames))
6013 return NULL;
6014 {
6015 wxPy_BEGIN_ALLOW_THREADS;
6016 _result = (wxScrolledWindow *)new_wxPreScrolledWindow();
6017
6018 wxPy_END_ALLOW_THREADS;
6019 if (PyErr_Occurred()) return NULL;
6020 } if (_result) {
6021 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
6022 _resultobj = Py_BuildValue("s",_ptemp);
6023 } else {
6024 Py_INCREF(Py_None);
6025 _resultobj = Py_None;
6026 }
6027 return _resultobj;
6028 }
6029
6030 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6031 static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6032 PyObject * _resultobj;
6033 bool _result;
6034 wxScrolledWindow * _arg0;
6035 wxWindow * _arg1;
6036 wxWindowID _arg2 = (wxWindowID ) -1;
6037 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6038 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6039 long _arg5 = (long ) wxHSCROLL|wxVSCROLL;
6040 char * _arg6 = (char *) "scrolledWindow";
6041 PyObject * _argo0 = 0;
6042 PyObject * _argo1 = 0;
6043 wxPoint temp;
6044 PyObject * _obj3 = 0;
6045 wxSize temp0;
6046 PyObject * _obj4 = 0;
6047 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
6048
6049 self = self;
6050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6))
6051 return NULL;
6052 if (_argo0) {
6053 if (_argo0 == Py_None) { _arg0 = NULL; }
6054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6056 return NULL;
6057 }
6058 }
6059 if (_argo1) {
6060 if (_argo1 == Py_None) { _arg1 = NULL; }
6061 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6062 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6063 return NULL;
6064 }
6065 }
6066 if (_obj3)
6067 {
6068 _arg3 = &temp;
6069 if (! wxPoint_helper(_obj3, &_arg3))
6070 return NULL;
6071 }
6072 if (_obj4)
6073 {
6074 _arg4 = &temp0;
6075 if (! wxSize_helper(_obj4, &_arg4))
6076 return NULL;
6077 }
6078 {
6079 wxPy_BEGIN_ALLOW_THREADS;
6080 _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6);
6081
6082 wxPy_END_ALLOW_THREADS;
6083 if (PyErr_Occurred()) return NULL;
6084 } _resultobj = Py_BuildValue("i",_result);
6085 return _resultobj;
6086 }
6087
6088 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6089 static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
6090 PyObject * _resultobj;
6091 wxScrolledWindow * _arg0;
6092 bool _arg1;
6093 bool _arg2;
6094 PyObject * _argo0 = 0;
6095 int tempbool1;
6096 int tempbool2;
6097 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
6098
6099 self = self;
6100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
6101 return NULL;
6102 if (_argo0) {
6103 if (_argo0 == Py_None) { _arg0 = NULL; }
6104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6106 return NULL;
6107 }
6108 }
6109 _arg1 = (bool ) tempbool1;
6110 _arg2 = (bool ) tempbool2;
6111 {
6112 wxPy_BEGIN_ALLOW_THREADS;
6113 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
6114
6115 wxPy_END_ALLOW_THREADS;
6116 if (PyErr_Occurred()) return NULL;
6117 } Py_INCREF(Py_None);
6118 _resultobj = Py_None;
6119 return _resultobj;
6120 }
6121
6122 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6123 static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6124 PyObject * _resultobj;
6125 int _result;
6126 wxScrolledWindow * _arg0;
6127 int _arg1;
6128 PyObject * _argo0 = 0;
6129 char *_kwnames[] = { "self","orient", NULL };
6130
6131 self = self;
6132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1))
6133 return NULL;
6134 if (_argo0) {
6135 if (_argo0 == Py_None) { _arg0 = NULL; }
6136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6138 return NULL;
6139 }
6140 }
6141 {
6142 wxPy_BEGIN_ALLOW_THREADS;
6143 _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1);
6144
6145 wxPy_END_ALLOW_THREADS;
6146 if (PyErr_Occurred()) return NULL;
6147 } _resultobj = Py_BuildValue("i",_result);
6148 return _resultobj;
6149 }
6150
6151 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6152 static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
6153 PyObject * _resultobj;
6154 wxScrolledWindow * _arg0;
6155 int * _arg1;
6156 int temp;
6157 int * _arg2;
6158 int temp0;
6159 PyObject * _argo0 = 0;
6160 char *_kwnames[] = { "self", NULL };
6161
6162 self = self;
6163 {
6164 _arg1 = &temp;
6165 }
6166 {
6167 _arg2 = &temp0;
6168 }
6169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
6170 return NULL;
6171 if (_argo0) {
6172 if (_argo0 == Py_None) { _arg0 = NULL; }
6173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6175 return NULL;
6176 }
6177 }
6178 {
6179 wxPy_BEGIN_ALLOW_THREADS;
6180 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
6181
6182 wxPy_END_ALLOW_THREADS;
6183 if (PyErr_Occurred()) return NULL;
6184 } Py_INCREF(Py_None);
6185 _resultobj = Py_None;
6186 {
6187 PyObject *o;
6188 o = PyInt_FromLong((long) (*_arg1));
6189 _resultobj = t_output_helper(_resultobj, o);
6190 }
6191 {
6192 PyObject *o;
6193 o = PyInt_FromLong((long) (*_arg2));
6194 _resultobj = t_output_helper(_resultobj, o);
6195 }
6196 return _resultobj;
6197 }
6198
6199 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6200 static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6201 PyObject * _resultobj;
6202 wxWindow * _result;
6203 wxScrolledWindow * _arg0;
6204 PyObject * _argo0 = 0;
6205 char *_kwnames[] = { "self", NULL };
6206
6207 self = self;
6208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0))
6209 return NULL;
6210 if (_argo0) {
6211 if (_argo0 == Py_None) { _arg0 = NULL; }
6212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6214 return NULL;
6215 }
6216 }
6217 {
6218 wxPy_BEGIN_ALLOW_THREADS;
6219 _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0);
6220
6221 wxPy_END_ALLOW_THREADS;
6222 if (PyErr_Occurred()) return NULL;
6223 }{ _resultobj = wxPyMake_wxObject(_result); }
6224 return _resultobj;
6225 }
6226
6227 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6228 static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6229 PyObject * _resultobj;
6230 wxScrolledWindow * _arg0;
6231 int * _arg1;
6232 int temp;
6233 int * _arg2;
6234 int temp0;
6235 PyObject * _argo0 = 0;
6236 char *_kwnames[] = { "self", NULL };
6237
6238 self = self;
6239 {
6240 _arg1 = &temp;
6241 }
6242 {
6243 _arg2 = &temp0;
6244 }
6245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0))
6246 return NULL;
6247 if (_argo0) {
6248 if (_argo0 == Py_None) { _arg0 = NULL; }
6249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6251 return NULL;
6252 }
6253 }
6254 {
6255 wxPy_BEGIN_ALLOW_THREADS;
6256 wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2);
6257
6258 wxPy_END_ALLOW_THREADS;
6259 if (PyErr_Occurred()) return NULL;
6260 } Py_INCREF(Py_None);
6261 _resultobj = Py_None;
6262 {
6263 PyObject *o;
6264 o = PyInt_FromLong((long) (*_arg1));
6265 _resultobj = t_output_helper(_resultobj, o);
6266 }
6267 {
6268 PyObject *o;
6269 o = PyInt_FromLong((long) (*_arg2));
6270 _resultobj = t_output_helper(_resultobj, o);
6271 }
6272 return _resultobj;
6273 }
6274
6275 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6276 static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
6277 PyObject * _resultobj;
6278 bool _result;
6279 wxScrolledWindow * _arg0;
6280 PyObject * _argo0 = 0;
6281 char *_kwnames[] = { "self", NULL };
6282
6283 self = self;
6284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
6285 return NULL;
6286 if (_argo0) {
6287 if (_argo0 == Py_None) { _arg0 = NULL; }
6288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
6290 return NULL;
6291 }
6292 }
6293 {
6294 wxPy_BEGIN_ALLOW_THREADS;
6295 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
6296
6297 wxPy_END_ALLOW_THREADS;
6298 if (PyErr_Occurred()) return NULL;
6299 } _resultobj = Py_BuildValue("i",_result);
6300 return _resultobj;
6301 }
6302
6303 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6304 static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6305 PyObject * _resultobj;
6306 wxScrolledWindow * _arg0;
6307 wxDC * _arg1;
6308 PyObject * _argo0 = 0;
6309 PyObject * _argo1 = 0;
6310 char *_kwnames[] = { "self","dc", NULL };
6311
6312 self = self;
6313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
6314 return NULL;
6315 if (_argo0) {
6316 if (_argo0 == Py_None) { _arg0 = NULL; }
6317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6319 return NULL;
6320 }
6321 }
6322 if (_argo1) {
6323 if (_argo1 == Py_None) { _arg1 = NULL; }
6324 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
6325 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6326 return NULL;
6327 }
6328 }
6329 {
6330 wxPy_BEGIN_ALLOW_THREADS;
6331 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
6332
6333 wxPy_END_ALLOW_THREADS;
6334 if (PyErr_Occurred()) return NULL;
6335 } Py_INCREF(Py_None);
6336 _resultobj = Py_None;
6337 return _resultobj;
6338 }
6339
6340 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6341 static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
6342 PyObject * _resultobj;
6343 wxScrolledWindow * _arg0;
6344 int _arg1;
6345 int _arg2;
6346 PyObject * _argo0 = 0;
6347 char *_kwnames[] = { "self","x","y", NULL };
6348
6349 self = self;
6350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
6351 return NULL;
6352 if (_argo0) {
6353 if (_argo0 == Py_None) { _arg0 = NULL; }
6354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6356 return NULL;
6357 }
6358 }
6359 {
6360 wxPy_BEGIN_ALLOW_THREADS;
6361 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
6362
6363 wxPy_END_ALLOW_THREADS;
6364 if (PyErr_Occurred()) return NULL;
6365 } Py_INCREF(Py_None);
6366 _resultobj = Py_None;
6367 return _resultobj;
6368 }
6369
6370 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6371 static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
6372 PyObject * _resultobj;
6373 wxScrolledWindow * _arg0;
6374 int _arg1;
6375 int _arg2;
6376 int _arg3;
6377 int _arg4;
6378 int _arg5 = (int ) 0;
6379 int _arg6 = (int ) 0;
6380 int _arg7 = (int ) FALSE;
6381 PyObject * _argo0 = 0;
6382 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL };
6383
6384 self = self;
6385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7))
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_SetScrollbars. Expected _wxScrolledWindow_p.");
6391 return NULL;
6392 }
6393 }
6394 {
6395 wxPy_BEGIN_ALLOW_THREADS;
6396 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
6397
6398 wxPy_END_ALLOW_THREADS;
6399 if (PyErr_Occurred()) return NULL;
6400 } Py_INCREF(Py_None);
6401 _resultobj = Py_None;
6402 return _resultobj;
6403 }
6404
6405 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6406 static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6407 PyObject * _resultobj;
6408 wxScrolledWindow * _arg0;
6409 int _arg1;
6410 int _arg2;
6411 PyObject * _argo0 = 0;
6412 char *_kwnames[] = { "self","orient","pageSize", NULL };
6413
6414 self = self;
6415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2))
6416 return NULL;
6417 if (_argo0) {
6418 if (_argo0 == Py_None) { _arg0 = NULL; }
6419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6421 return NULL;
6422 }
6423 }
6424 {
6425 wxPy_BEGIN_ALLOW_THREADS;
6426 wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2);
6427
6428 wxPy_END_ALLOW_THREADS;
6429 if (PyErr_Occurred()) return NULL;
6430 } Py_INCREF(Py_None);
6431 _resultobj = Py_None;
6432 return _resultobj;
6433 }
6434
6435 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6436 static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6437 PyObject * _resultobj;
6438 wxScrolledWindow * _arg0;
6439 wxWindow * _arg1;
6440 PyObject * _argo0 = 0;
6441 PyObject * _argo1 = 0;
6442 char *_kwnames[] = { "self","window", NULL };
6443
6444 self = self;
6445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1))
6446 return NULL;
6447 if (_argo0) {
6448 if (_argo0 == Py_None) { _arg0 = NULL; }
6449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6451 return NULL;
6452 }
6453 }
6454 if (_argo1) {
6455 if (_argo1 == Py_None) { _arg1 = NULL; }
6456 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6457 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6458 return NULL;
6459 }
6460 }
6461 {
6462 wxPy_BEGIN_ALLOW_THREADS;
6463 wxScrolledWindow_SetTargetWindow(_arg0,_arg1);
6464
6465 wxPy_END_ALLOW_THREADS;
6466 if (PyErr_Occurred()) return NULL;
6467 } Py_INCREF(Py_None);
6468 _resultobj = Py_None;
6469 return _resultobj;
6470 }
6471
6472 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
6473 static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
6474 PyObject * _resultobj;
6475 wxScrolledWindow * _arg0;
6476 int * _arg1;
6477 int temp;
6478 int * _arg2;
6479 int temp0;
6480 PyObject * _argo0 = 0;
6481 char *_kwnames[] = { "self", NULL };
6482
6483 self = self;
6484 {
6485 _arg1 = &temp;
6486 }
6487 {
6488 _arg2 = &temp0;
6489 }
6490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0))
6491 return NULL;
6492 if (_argo0) {
6493 if (_argo0 == Py_None) { _arg0 = NULL; }
6494 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6495 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
6496 return NULL;
6497 }
6498 }
6499 {
6500 wxPy_BEGIN_ALLOW_THREADS;
6501 wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2);
6502
6503 wxPy_END_ALLOW_THREADS;
6504 if (PyErr_Occurred()) return NULL;
6505 } Py_INCREF(Py_None);
6506 _resultobj = Py_None;
6507 {
6508 PyObject *o;
6509 o = PyInt_FromLong((long) (*_arg1));
6510 _resultobj = t_output_helper(_resultobj, o);
6511 }
6512 {
6513 PyObject *o;
6514 o = PyInt_FromLong((long) (*_arg2));
6515 _resultobj = t_output_helper(_resultobj, o);
6516 }
6517 return _resultobj;
6518 }
6519
6520 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6521 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6522 PyObject * _resultobj;
6523 wxScrolledWindow * _arg0;
6524 int _arg1;
6525 int _arg2;
6526 int * _arg3;
6527 int temp;
6528 int * _arg4;
6529 int temp0;
6530 PyObject * _argo0 = 0;
6531 char *_kwnames[] = { "self","x","y", NULL };
6532
6533 self = self;
6534 {
6535 _arg3 = &temp;
6536 }
6537 {
6538 _arg4 = &temp0;
6539 }
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
6541 return NULL;
6542 if (_argo0) {
6543 if (_argo0 == Py_None) { _arg0 = NULL; }
6544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
6546 return NULL;
6547 }
6548 }
6549 {
6550 wxPy_BEGIN_ALLOW_THREADS;
6551 wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
6552
6553 wxPy_END_ALLOW_THREADS;
6554 if (PyErr_Occurred()) return NULL;
6555 } Py_INCREF(Py_None);
6556 _resultobj = Py_None;
6557 {
6558 PyObject *o;
6559 o = PyInt_FromLong((long) (*_arg3));
6560 _resultobj = t_output_helper(_resultobj, o);
6561 }
6562 {
6563 PyObject *o;
6564 o = PyInt_FromLong((long) (*_arg4));
6565 _resultobj = t_output_helper(_resultobj, o);
6566 }
6567 return _resultobj;
6568 }
6569
6570 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6571 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6572 PyObject * _resultobj;
6573 wxScrolledWindow * _arg0;
6574 int _arg1;
6575 int _arg2;
6576 int * _arg3;
6577 int temp;
6578 int * _arg4;
6579 int temp0;
6580 PyObject * _argo0 = 0;
6581 char *_kwnames[] = { "self","x","y", NULL };
6582
6583 self = self;
6584 {
6585 _arg3 = &temp;
6586 }
6587 {
6588 _arg4 = &temp0;
6589 }
6590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
6591 return NULL;
6592 if (_argo0) {
6593 if (_argo0 == Py_None) { _arg0 = NULL; }
6594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
6596 return NULL;
6597 }
6598 }
6599 {
6600 wxPy_BEGIN_ALLOW_THREADS;
6601 wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
6602
6603 wxPy_END_ALLOW_THREADS;
6604 if (PyErr_Occurred()) return NULL;
6605 } Py_INCREF(Py_None);
6606 _resultobj = Py_None;
6607 {
6608 PyObject *o;
6609 o = PyInt_FromLong((long) (*_arg3));
6610 _resultobj = t_output_helper(_resultobj, o);
6611 }
6612 {
6613 PyObject *o;
6614 o = PyInt_FromLong((long) (*_arg4));
6615 _resultobj = t_output_helper(_resultobj, o);
6616 }
6617 return _resultobj;
6618 }
6619
6620 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
6621 static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6622 PyObject * _resultobj;
6623 wxScrolledWindow * _arg0;
6624 double _arg1;
6625 double _arg2;
6626 PyObject * _argo0 = 0;
6627 char *_kwnames[] = { "self","xs","ys", NULL };
6628
6629 self = self;
6630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2))
6631 return NULL;
6632 if (_argo0) {
6633 if (_argo0 == Py_None) { _arg0 = NULL; }
6634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
6636 return NULL;
6637 }
6638 }
6639 {
6640 wxPy_BEGIN_ALLOW_THREADS;
6641 wxScrolledWindow_SetScale(_arg0,_arg1,_arg2);
6642
6643 wxPy_END_ALLOW_THREADS;
6644 if (PyErr_Occurred()) return NULL;
6645 } Py_INCREF(Py_None);
6646 _resultobj = Py_None;
6647 return _resultobj;
6648 }
6649
6650 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
6651 static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) {
6652 PyObject * _resultobj;
6653 double _result;
6654 wxScrolledWindow * _arg0;
6655 PyObject * _argo0 = 0;
6656 char *_kwnames[] = { "self", NULL };
6657
6658 self = self;
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0))
6660 return NULL;
6661 if (_argo0) {
6662 if (_argo0 == Py_None) { _arg0 = NULL; }
6663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
6665 return NULL;
6666 }
6667 }
6668 {
6669 wxPy_BEGIN_ALLOW_THREADS;
6670 _result = (double )wxScrolledWindow_GetScaleX(_arg0);
6671
6672 wxPy_END_ALLOW_THREADS;
6673 if (PyErr_Occurred()) return NULL;
6674 } _resultobj = Py_BuildValue("d",_result);
6675 return _resultobj;
6676 }
6677
6678 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
6679 static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) {
6680 PyObject * _resultobj;
6681 double _result;
6682 wxScrolledWindow * _arg0;
6683 PyObject * _argo0 = 0;
6684 char *_kwnames[] = { "self", NULL };
6685
6686 self = self;
6687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0))
6688 return NULL;
6689 if (_argo0) {
6690 if (_argo0 == Py_None) { _arg0 = NULL; }
6691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
6693 return NULL;
6694 }
6695 }
6696 {
6697 wxPy_BEGIN_ALLOW_THREADS;
6698 _result = (double )wxScrolledWindow_GetScaleY(_arg0);
6699
6700 wxPy_END_ALLOW_THREADS;
6701 if (PyErr_Occurred()) return NULL;
6702 } _resultobj = Py_BuildValue("d",_result);
6703 return _resultobj;
6704 }
6705
6706 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
6707 static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
6708 PyObject * _resultobj;
6709 wxScrolledWindow * _arg0;
6710 PyObject * _argo0 = 0;
6711 char *_kwnames[] = { "self", NULL };
6712
6713 self = self;
6714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0))
6715 return NULL;
6716 if (_argo0) {
6717 if (_argo0 == Py_None) { _arg0 = NULL; }
6718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
6720 return NULL;
6721 }
6722 }
6723 {
6724 wxPy_BEGIN_ALLOW_THREADS;
6725 wxScrolledWindow_AdjustScrollbars(_arg0);
6726
6727 wxPy_END_ALLOW_THREADS;
6728 if (PyErr_Occurred()) return NULL;
6729 } Py_INCREF(Py_None);
6730 _resultobj = Py_None;
6731 return _resultobj;
6732 }
6733
6734 static void *SwigwxMenuTowxEvtHandler(void *ptr) {
6735 wxMenu *src;
6736 wxEvtHandler *dest;
6737 src = (wxMenu *) ptr;
6738 dest = (wxEvtHandler *) src;
6739 return (void *) dest;
6740 }
6741
6742 static void *SwigwxMenuTowxObject(void *ptr) {
6743 wxMenu *src;
6744 wxObject *dest;
6745 src = (wxMenu *) ptr;
6746 dest = (wxObject *) src;
6747 return (void *) dest;
6748 }
6749
6750 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
6751 static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6752 PyObject * _resultobj;
6753 wxMenu * _result;
6754 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
6755 long _arg1 = (long ) 0;
6756 PyObject * _obj0 = 0;
6757 char *_kwnames[] = { "title","style", NULL };
6758 char _ptemp[128];
6759
6760 self = self;
6761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
6762 return NULL;
6763 if (_obj0)
6764 {
6765 #if PYTHON_API_VERSION >= 1009
6766 char* tmpPtr; int tmpSize;
6767 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
6768 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6769 return NULL;
6770 }
6771 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
6772 return NULL;
6773 _arg0 = new wxString(tmpPtr, tmpSize);
6774 #else
6775 if (!PyString_Check(_obj0)) {
6776 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6777 return NULL;
6778 }
6779 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
6780 #endif
6781 }
6782 {
6783 wxPy_BEGIN_ALLOW_THREADS;
6784 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
6785
6786 wxPy_END_ALLOW_THREADS;
6787 if (PyErr_Occurred()) return NULL;
6788 } if (_result) {
6789 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
6790 _resultobj = Py_BuildValue("s",_ptemp);
6791 } else {
6792 Py_INCREF(Py_None);
6793 _resultobj = Py_None;
6794 }
6795 {
6796 if (_obj0)
6797 delete _arg0;
6798 }
6799 return _resultobj;
6800 }
6801
6802 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6803 static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
6804 PyObject * _resultobj;
6805 wxMenu * _arg0;
6806 int _arg1;
6807 wxString * _arg2;
6808 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
6809 int _arg4 = (int ) FALSE;
6810 PyObject * _argo0 = 0;
6811 PyObject * _obj2 = 0;
6812 PyObject * _obj3 = 0;
6813 char *_kwnames[] = { "self","id","item","helpString","checkable", NULL };
6814
6815 self = self;
6816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
6817 return NULL;
6818 if (_argo0) {
6819 if (_argo0 == Py_None) { _arg0 = NULL; }
6820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
6822 return NULL;
6823 }
6824 }
6825 {
6826 #if PYTHON_API_VERSION >= 1009
6827 char* tmpPtr; int tmpSize;
6828 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
6829 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6830 return NULL;
6831 }
6832 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
6833 return NULL;
6834 _arg2 = new wxString(tmpPtr, tmpSize);
6835 #else
6836 if (!PyString_Check(_obj2)) {
6837 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6838 return NULL;
6839 }
6840 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
6841 #endif
6842 }
6843 if (_obj3)
6844 {
6845 #if PYTHON_API_VERSION >= 1009
6846 char* tmpPtr; int tmpSize;
6847 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
6848 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6849 return NULL;
6850 }
6851 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
6852 return NULL;
6853 _arg3 = new wxString(tmpPtr, tmpSize);
6854 #else
6855 if (!PyString_Check(_obj3)) {
6856 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6857 return NULL;
6858 }
6859 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
6860 #endif
6861 }
6862 {
6863 wxPy_BEGIN_ALLOW_THREADS;
6864 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
6865
6866 wxPy_END_ALLOW_THREADS;
6867 if (PyErr_Occurred()) return NULL;
6868 } Py_INCREF(Py_None);
6869 _resultobj = Py_None;
6870 {
6871 if (_obj2)
6872 delete _arg2;
6873 }
6874 {
6875 if (_obj3)
6876 delete _arg3;
6877 }
6878 return _resultobj;
6879 }
6880
6881 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6882 static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6883 PyObject * _resultobj;
6884 wxMenu * _arg0;
6885 int _arg1;
6886 wxString * _arg2;
6887 wxMenu * _arg3;
6888 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
6889 PyObject * _argo0 = 0;
6890 PyObject * _obj2 = 0;
6891 PyObject * _argo3 = 0;
6892 PyObject * _obj4 = 0;
6893 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
6894
6895 self = self;
6896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
6897 return NULL;
6898 if (_argo0) {
6899 if (_argo0 == Py_None) { _arg0 = NULL; }
6900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6902 return NULL;
6903 }
6904 }
6905 {
6906 #if PYTHON_API_VERSION >= 1009
6907 char* tmpPtr; int tmpSize;
6908 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
6909 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6910 return NULL;
6911 }
6912 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
6913 return NULL;
6914 _arg2 = new wxString(tmpPtr, tmpSize);
6915 #else
6916 if (!PyString_Check(_obj2)) {
6917 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6918 return NULL;
6919 }
6920 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
6921 #endif
6922 }
6923 if (_argo3) {
6924 if (_argo3 == Py_None) { _arg3 = NULL; }
6925 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
6926 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
6927 return NULL;
6928 }
6929 }
6930 if (_obj4)
6931 {
6932 #if PYTHON_API_VERSION >= 1009
6933 char* tmpPtr; int tmpSize;
6934 if (!PyString_Check(_obj4) && !PyUnicode_Check(_obj4)) {
6935 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6936 return NULL;
6937 }
6938 if (PyString_AsStringAndSize(_obj4, &tmpPtr, &tmpSize) == -1)
6939 return NULL;
6940 _arg4 = new wxString(tmpPtr, tmpSize);
6941 #else
6942 if (!PyString_Check(_obj4)) {
6943 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6944 return NULL;
6945 }
6946 _arg4 = new wxString(PyString_AS_STRING(_obj4), PyString_GET_SIZE(_obj4));
6947 #endif
6948 }
6949 {
6950 wxPy_BEGIN_ALLOW_THREADS;
6951 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
6952
6953 wxPy_END_ALLOW_THREADS;
6954 if (PyErr_Occurred()) return NULL;
6955 } Py_INCREF(Py_None);
6956 _resultobj = Py_None;
6957 {
6958 if (_obj2)
6959 delete _arg2;
6960 }
6961 {
6962 if (_obj4)
6963 delete _arg4;
6964 }
6965 return _resultobj;
6966 }
6967
6968 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
6969 static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6970 PyObject * _resultobj;
6971 wxMenu * _arg0;
6972 wxMenuItem * _arg1;
6973 PyObject * _argo0 = 0;
6974 PyObject * _argo1 = 0;
6975 char *_kwnames[] = { "self","item", NULL };
6976
6977 self = self;
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
6979 return NULL;
6980 if (_argo0) {
6981 if (_argo0 == Py_None) { _arg0 = NULL; }
6982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
6984 return NULL;
6985 }
6986 }
6987 if (_argo1) {
6988 if (_argo1 == Py_None) { _arg1 = NULL; }
6989 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
6990 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
6991 return NULL;
6992 }
6993 }
6994 {
6995 wxPy_BEGIN_ALLOW_THREADS;
6996 wxMenu_AppendItem(_arg0,_arg1);
6997
6998 wxPy_END_ALLOW_THREADS;
6999 if (PyErr_Occurred()) return NULL;
7000 } Py_INCREF(Py_None);
7001 _resultobj = Py_None;
7002 return _resultobj;
7003 }
7004
7005 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7006 static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
7007 PyObject * _resultobj;
7008 wxMenu * _arg0;
7009 PyObject * _argo0 = 0;
7010 char *_kwnames[] = { "self", NULL };
7011
7012 self = self;
7013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
7014 return NULL;
7015 if (_argo0) {
7016 if (_argo0 == Py_None) { _arg0 = NULL; }
7017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7019 return NULL;
7020 }
7021 }
7022 {
7023 wxPy_BEGIN_ALLOW_THREADS;
7024 wxMenu_AppendSeparator(_arg0);
7025
7026 wxPy_END_ALLOW_THREADS;
7027 if (PyErr_Occurred()) return NULL;
7028 } Py_INCREF(Py_None);
7029 _resultobj = Py_None;
7030 return _resultobj;
7031 }
7032
7033 #define wxMenu_Break(_swigobj) (_swigobj->Break())
7034 static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
7035 PyObject * _resultobj;
7036 wxMenu * _arg0;
7037 PyObject * _argo0 = 0;
7038 char *_kwnames[] = { "self", NULL };
7039
7040 self = self;
7041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
7042 return NULL;
7043 if (_argo0) {
7044 if (_argo0 == Py_None) { _arg0 = NULL; }
7045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
7047 return NULL;
7048 }
7049 }
7050 {
7051 wxPy_BEGIN_ALLOW_THREADS;
7052 wxMenu_Break(_arg0);
7053
7054 wxPy_END_ALLOW_THREADS;
7055 if (PyErr_Occurred()) return NULL;
7056 } Py_INCREF(Py_None);
7057 _resultobj = Py_None;
7058 return _resultobj;
7059 }
7060
7061 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7062 static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
7063 PyObject * _resultobj;
7064 wxMenu * _arg0;
7065 int _arg1;
7066 bool _arg2;
7067 PyObject * _argo0 = 0;
7068 int tempbool2;
7069 char *_kwnames[] = { "self","id","flag", NULL };
7070
7071 self = self;
7072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
7073 return NULL;
7074 if (_argo0) {
7075 if (_argo0 == Py_None) { _arg0 = NULL; }
7076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
7078 return NULL;
7079 }
7080 }
7081 _arg2 = (bool ) tempbool2;
7082 {
7083 wxPy_BEGIN_ALLOW_THREADS;
7084 wxMenu_Check(_arg0,_arg1,_arg2);
7085
7086 wxPy_END_ALLOW_THREADS;
7087 if (PyErr_Occurred()) return NULL;
7088 } Py_INCREF(Py_None);
7089 _resultobj = Py_None;
7090 return _resultobj;
7091 }
7092
7093 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7094 static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
7095 PyObject * _resultobj;
7096 bool _result;
7097 wxMenu * _arg0;
7098 int _arg1;
7099 PyObject * _argo0 = 0;
7100 char *_kwnames[] = { "self","id", NULL };
7101
7102 self = self;
7103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
7104 return NULL;
7105 if (_argo0) {
7106 if (_argo0 == Py_None) { _arg0 = NULL; }
7107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
7109 return NULL;
7110 }
7111 }
7112 {
7113 wxPy_BEGIN_ALLOW_THREADS;
7114 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
7115
7116 wxPy_END_ALLOW_THREADS;
7117 if (PyErr_Occurred()) return NULL;
7118 } _resultobj = Py_BuildValue("i",_result);
7119 return _resultobj;
7120 }
7121
7122 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7123 static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
7124 PyObject * _resultobj;
7125 wxMenu * _arg0;
7126 int _arg1;
7127 bool _arg2;
7128 PyObject * _argo0 = 0;
7129 int tempbool2;
7130 char *_kwnames[] = { "self","id","enable", NULL };
7131
7132 self = self;
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
7134 return NULL;
7135 if (_argo0) {
7136 if (_argo0 == Py_None) { _arg0 = NULL; }
7137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
7139 return NULL;
7140 }
7141 }
7142 _arg2 = (bool ) tempbool2;
7143 {
7144 wxPy_BEGIN_ALLOW_THREADS;
7145 wxMenu_Enable(_arg0,_arg1,_arg2);
7146
7147 wxPy_END_ALLOW_THREADS;
7148 if (PyErr_Occurred()) return NULL;
7149 } Py_INCREF(Py_None);
7150 _resultobj = Py_None;
7151 return _resultobj;
7152 }
7153
7154 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7155 static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject * _resultobj;
7157 bool _result;
7158 wxMenu * _arg0;
7159 int _arg1;
7160 PyObject * _argo0 = 0;
7161 char *_kwnames[] = { "self","id", NULL };
7162
7163 self = self;
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
7165 return NULL;
7166 if (_argo0) {
7167 if (_argo0 == Py_None) { _arg0 = NULL; }
7168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
7170 return NULL;
7171 }
7172 }
7173 {
7174 wxPy_BEGIN_ALLOW_THREADS;
7175 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
7176
7177 wxPy_END_ALLOW_THREADS;
7178 if (PyErr_Occurred()) return NULL;
7179 } _resultobj = Py_BuildValue("i",_result);
7180 return _resultobj;
7181 }
7182
7183 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7184 static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7185 PyObject * _resultobj;
7186 int _result;
7187 wxMenu * _arg0;
7188 wxString * _arg1;
7189 PyObject * _argo0 = 0;
7190 PyObject * _obj1 = 0;
7191 char *_kwnames[] = { "self","itemString", NULL };
7192
7193 self = self;
7194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
7195 return NULL;
7196 if (_argo0) {
7197 if (_argo0 == Py_None) { _arg0 = NULL; }
7198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
7200 return NULL;
7201 }
7202 }
7203 {
7204 #if PYTHON_API_VERSION >= 1009
7205 char* tmpPtr; int tmpSize;
7206 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7207 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7208 return NULL;
7209 }
7210 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7211 return NULL;
7212 _arg1 = new wxString(tmpPtr, tmpSize);
7213 #else
7214 if (!PyString_Check(_obj1)) {
7215 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7216 return NULL;
7217 }
7218 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7219 #endif
7220 }
7221 {
7222 wxPy_BEGIN_ALLOW_THREADS;
7223 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
7224
7225 wxPy_END_ALLOW_THREADS;
7226 if (PyErr_Occurred()) return NULL;
7227 } _resultobj = Py_BuildValue("i",_result);
7228 {
7229 if (_obj1)
7230 delete _arg1;
7231 }
7232 return _resultobj;
7233 }
7234
7235 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7236 static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
7237 PyObject * _resultobj;
7238 wxMenuItem * _result;
7239 wxMenu * _arg0;
7240 int _arg1;
7241 PyObject * _argo0 = 0;
7242 char *_kwnames[] = { "self","id", NULL };
7243
7244 self = self;
7245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1))
7246 return NULL;
7247 if (_argo0) {
7248 if (_argo0 == Py_None) { _arg0 = NULL; }
7249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
7251 return NULL;
7252 }
7253 }
7254 {
7255 wxPy_BEGIN_ALLOW_THREADS;
7256 _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1);
7257
7258 wxPy_END_ALLOW_THREADS;
7259 if (PyErr_Occurred()) return NULL;
7260 }{ _resultobj = wxPyMake_wxObject(_result); }
7261 return _resultobj;
7262 }
7263
7264 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
7265 static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7266 PyObject * _resultobj;
7267 wxString * _result;
7268 wxMenu * _arg0;
7269 PyObject * _argo0 = 0;
7270 char *_kwnames[] = { "self", NULL };
7271
7272 self = self;
7273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
7274 return NULL;
7275 if (_argo0) {
7276 if (_argo0 == Py_None) { _arg0 = NULL; }
7277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
7279 return NULL;
7280 }
7281 }
7282 {
7283 wxPy_BEGIN_ALLOW_THREADS;
7284 _result = new wxString (wxMenu_GetTitle(_arg0));
7285
7286 wxPy_END_ALLOW_THREADS;
7287 if (PyErr_Occurred()) return NULL;
7288 }{
7289 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7290 }
7291 {
7292 delete _result;
7293 }
7294 return _resultobj;
7295 }
7296
7297 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
7298 static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7299 PyObject * _resultobj;
7300 wxMenu * _arg0;
7301 wxString * _arg1;
7302 PyObject * _argo0 = 0;
7303 PyObject * _obj1 = 0;
7304 char *_kwnames[] = { "self","title", NULL };
7305
7306 self = self;
7307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
7308 return NULL;
7309 if (_argo0) {
7310 if (_argo0 == Py_None) { _arg0 = NULL; }
7311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
7313 return NULL;
7314 }
7315 }
7316 {
7317 #if PYTHON_API_VERSION >= 1009
7318 char* tmpPtr; int tmpSize;
7319 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7320 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7321 return NULL;
7322 }
7323 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7324 return NULL;
7325 _arg1 = new wxString(tmpPtr, tmpSize);
7326 #else
7327 if (!PyString_Check(_obj1)) {
7328 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7329 return NULL;
7330 }
7331 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7332 #endif
7333 }
7334 {
7335 wxPy_BEGIN_ALLOW_THREADS;
7336 wxMenu_SetTitle(_arg0,*_arg1);
7337
7338 wxPy_END_ALLOW_THREADS;
7339 if (PyErr_Occurred()) return NULL;
7340 } Py_INCREF(Py_None);
7341 _resultobj = Py_None;
7342 {
7343 if (_obj1)
7344 delete _arg1;
7345 }
7346 return _resultobj;
7347 }
7348
7349 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7350 static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7351 PyObject * _resultobj;
7352 wxString * _result;
7353 wxMenu * _arg0;
7354 int _arg1;
7355 PyObject * _argo0 = 0;
7356 char *_kwnames[] = { "self","id", NULL };
7357
7358 self = self;
7359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
7360 return NULL;
7361 if (_argo0) {
7362 if (_argo0 == Py_None) { _arg0 = NULL; }
7363 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7364 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
7365 return NULL;
7366 }
7367 }
7368 {
7369 wxPy_BEGIN_ALLOW_THREADS;
7370 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
7371
7372 wxPy_END_ALLOW_THREADS;
7373 if (PyErr_Occurred()) return NULL;
7374 }{
7375 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7376 }
7377 {
7378 delete _result;
7379 }
7380 return _resultobj;
7381 }
7382
7383 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7384 static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7385 PyObject * _resultobj;
7386 wxMenu * _arg0;
7387 int _arg1;
7388 wxString * _arg2;
7389 PyObject * _argo0 = 0;
7390 PyObject * _obj2 = 0;
7391 char *_kwnames[] = { "self","id","label", NULL };
7392
7393 self = self;
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
7395 return NULL;
7396 if (_argo0) {
7397 if (_argo0 == Py_None) { _arg0 = NULL; }
7398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
7400 return NULL;
7401 }
7402 }
7403 {
7404 #if PYTHON_API_VERSION >= 1009
7405 char* tmpPtr; int tmpSize;
7406 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7407 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7408 return NULL;
7409 }
7410 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7411 return NULL;
7412 _arg2 = new wxString(tmpPtr, tmpSize);
7413 #else
7414 if (!PyString_Check(_obj2)) {
7415 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7416 return NULL;
7417 }
7418 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7419 #endif
7420 }
7421 {
7422 wxPy_BEGIN_ALLOW_THREADS;
7423 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
7424
7425 wxPy_END_ALLOW_THREADS;
7426 if (PyErr_Occurred()) return NULL;
7427 } Py_INCREF(Py_None);
7428 _resultobj = Py_None;
7429 {
7430 if (_obj2)
7431 delete _arg2;
7432 }
7433 return _resultobj;
7434 }
7435
7436 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7437 static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
7438 PyObject * _resultobj;
7439 wxString * _result;
7440 wxMenu * _arg0;
7441 int _arg1;
7442 PyObject * _argo0 = 0;
7443 char *_kwnames[] = { "self","id", NULL };
7444
7445 self = self;
7446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
7447 return NULL;
7448 if (_argo0) {
7449 if (_argo0 == Py_None) { _arg0 = NULL; }
7450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
7452 return NULL;
7453 }
7454 }
7455 {
7456 wxPy_BEGIN_ALLOW_THREADS;
7457 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
7458
7459 wxPy_END_ALLOW_THREADS;
7460 if (PyErr_Occurred()) return NULL;
7461 }{
7462 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7463 }
7464 {
7465 delete _result;
7466 }
7467 return _resultobj;
7468 }
7469
7470 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7471 static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
7472 PyObject * _resultobj;
7473 wxMenu * _arg0;
7474 int _arg1;
7475 wxString * _arg2;
7476 PyObject * _argo0 = 0;
7477 PyObject * _obj2 = 0;
7478 char *_kwnames[] = { "self","id","helpString", NULL };
7479
7480 self = self;
7481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
7482 return NULL;
7483 if (_argo0) {
7484 if (_argo0 == Py_None) { _arg0 = NULL; }
7485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
7487 return NULL;
7488 }
7489 }
7490 {
7491 #if PYTHON_API_VERSION >= 1009
7492 char* tmpPtr; int tmpSize;
7493 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
7494 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7495 return NULL;
7496 }
7497 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7498 return NULL;
7499 _arg2 = new wxString(tmpPtr, tmpSize);
7500 #else
7501 if (!PyString_Check(_obj2)) {
7502 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7503 return NULL;
7504 }
7505 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7506 #endif
7507 }
7508 {
7509 wxPy_BEGIN_ALLOW_THREADS;
7510 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
7511
7512 wxPy_END_ALLOW_THREADS;
7513 if (PyErr_Occurred()) return NULL;
7514 } Py_INCREF(Py_None);
7515 _resultobj = Py_None;
7516 {
7517 if (_obj2)
7518 delete _arg2;
7519 }
7520 return _resultobj;
7521 }
7522
7523 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
7524 static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
7525 PyObject * _resultobj;
7526 wxMenu * _arg0;
7527 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
7528 PyObject * _argo0 = 0;
7529 PyObject * _argo1 = 0;
7530 char *_kwnames[] = { "self","source", NULL };
7531
7532 self = self;
7533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
7534 return NULL;
7535 if (_argo0) {
7536 if (_argo0 == Py_None) { _arg0 = NULL; }
7537 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
7539 return NULL;
7540 }
7541 }
7542 if (_argo1) {
7543 if (_argo1 == Py_None) { _arg1 = NULL; }
7544 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
7545 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
7546 return NULL;
7547 }
7548 }
7549 {
7550 wxPy_BEGIN_ALLOW_THREADS;
7551 wxMenu_UpdateUI(_arg0,_arg1);
7552
7553 wxPy_END_ALLOW_THREADS;
7554 if (PyErr_Occurred()) return NULL;
7555 } Py_INCREF(Py_None);
7556 _resultobj = Py_None;
7557 return _resultobj;
7558 }
7559
7560 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7561 static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
7562 PyObject * _resultobj;
7563 bool _result;
7564 wxMenu * _arg0;
7565 int _arg1;
7566 PyObject * _argo0 = 0;
7567 char *_kwnames[] = { "self","id", NULL };
7568
7569 self = self;
7570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1))
7571 return NULL;
7572 if (_argo0) {
7573 if (_argo0 == Py_None) { _arg0 = NULL; }
7574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
7576 return NULL;
7577 }
7578 }
7579 {
7580 wxPy_BEGIN_ALLOW_THREADS;
7581 _result = (bool )wxMenu_Delete(_arg0,_arg1);
7582
7583 wxPy_END_ALLOW_THREADS;
7584 if (PyErr_Occurred()) return NULL;
7585 } _resultobj = Py_BuildValue("i",_result);
7586 return _resultobj;
7587 }
7588
7589 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
7590 static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7591 PyObject * _resultobj;
7592 bool _result;
7593 wxMenu * _arg0;
7594 wxMenuItem * _arg1;
7595 PyObject * _argo0 = 0;
7596 PyObject * _argo1 = 0;
7597 char *_kwnames[] = { "self","item", NULL };
7598
7599 self = self;
7600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1))
7601 return NULL;
7602 if (_argo0) {
7603 if (_argo0 == Py_None) { _arg0 = NULL; }
7604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
7606 return NULL;
7607 }
7608 }
7609 if (_argo1) {
7610 if (_argo1 == Py_None) { _arg1 = NULL; }
7611 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7612 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
7613 return NULL;
7614 }
7615 }
7616 {
7617 wxPy_BEGIN_ALLOW_THREADS;
7618 _result = (bool )wxMenu_DeleteItem(_arg0,_arg1);
7619
7620 wxPy_END_ALLOW_THREADS;
7621 if (PyErr_Occurred()) return NULL;
7622 } _resultobj = Py_BuildValue("i",_result);
7623 return _resultobj;
7624 }
7625
7626 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7627 static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
7628 PyObject * _resultobj;
7629 bool _result;
7630 wxMenu * _arg0;
7631 size_t _arg1;
7632 wxMenuItem * _arg2;
7633 PyObject * _argo0 = 0;
7634 PyObject * _argo2 = 0;
7635 char *_kwnames[] = { "self","pos","item", NULL };
7636
7637 self = self;
7638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2))
7639 return NULL;
7640 if (_argo0) {
7641 if (_argo0 == Py_None) { _arg0 = NULL; }
7642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7644 return NULL;
7645 }
7646 }
7647 if (_argo2) {
7648 if (_argo2 == Py_None) { _arg2 = NULL; }
7649 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) {
7650 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
7651 return NULL;
7652 }
7653 }
7654 {
7655 wxPy_BEGIN_ALLOW_THREADS;
7656 _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2);
7657
7658 wxPy_END_ALLOW_THREADS;
7659 if (PyErr_Occurred()) return NULL;
7660 } _resultobj = Py_BuildValue("i",_result);
7661 return _resultobj;
7662 }
7663
7664 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7665 static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
7666 PyObject * _resultobj;
7667 wxMenuItem * _result;
7668 wxMenu * _arg0;
7669 int _arg1;
7670 PyObject * _argo0 = 0;
7671 char *_kwnames[] = { "self","id", NULL };
7672
7673 self = self;
7674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1))
7675 return NULL;
7676 if (_argo0) {
7677 if (_argo0 == Py_None) { _arg0 = NULL; }
7678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
7680 return NULL;
7681 }
7682 }
7683 {
7684 wxPy_BEGIN_ALLOW_THREADS;
7685 _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1);
7686
7687 wxPy_END_ALLOW_THREADS;
7688 if (PyErr_Occurred()) return NULL;
7689 }{ _resultobj = wxPyMake_wxObject(_result); }
7690 return _resultobj;
7691 }
7692
7693 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7694 static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7695 PyObject * _resultobj;
7696 wxMenuItem * _result;
7697 wxMenu * _arg0;
7698 wxMenuItem * _arg1;
7699 PyObject * _argo0 = 0;
7700 PyObject * _argo1 = 0;
7701 char *_kwnames[] = { "self","item", NULL };
7702
7703 self = self;
7704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1))
7705 return NULL;
7706 if (_argo0) {
7707 if (_argo0 == Py_None) { _arg0 = NULL; }
7708 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7709 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
7710 return NULL;
7711 }
7712 }
7713 if (_argo1) {
7714 if (_argo1 == Py_None) { _arg1 = NULL; }
7715 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7716 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
7717 return NULL;
7718 }
7719 }
7720 {
7721 wxPy_BEGIN_ALLOW_THREADS;
7722 _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1);
7723
7724 wxPy_END_ALLOW_THREADS;
7725 if (PyErr_Occurred()) return NULL;
7726 }{ _resultobj = wxPyMake_wxObject(_result); }
7727 return _resultobj;
7728 }
7729
7730 static void wxMenu_Destroy(wxMenu *self) { delete self; }
7731 static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7732 PyObject * _resultobj;
7733 wxMenu * _arg0;
7734 PyObject * _argo0 = 0;
7735 char *_kwnames[] = { "self", NULL };
7736
7737 self = self;
7738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
7739 return NULL;
7740 if (_argo0) {
7741 if (_argo0 == Py_None) { _arg0 = NULL; }
7742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
7744 return NULL;
7745 }
7746 }
7747 {
7748 wxPy_BEGIN_ALLOW_THREADS;
7749 wxMenu_Destroy(_arg0);
7750
7751 wxPy_END_ALLOW_THREADS;
7752 if (PyErr_Occurred()) return NULL;
7753 } Py_INCREF(Py_None);
7754 _resultobj = Py_None;
7755 return _resultobj;
7756 }
7757
7758 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7759 static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
7760 PyObject * _resultobj;
7761 bool _result;
7762 wxMenu * _arg0;
7763 int _arg1;
7764 PyObject * _argo0 = 0;
7765 char *_kwnames[] = { "self","id", NULL };
7766
7767 self = self;
7768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1))
7769 return NULL;
7770 if (_argo0) {
7771 if (_argo0 == Py_None) { _arg0 = NULL; }
7772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
7774 return NULL;
7775 }
7776 }
7777 {
7778 wxPy_BEGIN_ALLOW_THREADS;
7779 _result = (bool )wxMenu_DestroyId(_arg0,_arg1);
7780
7781 wxPy_END_ALLOW_THREADS;
7782 if (PyErr_Occurred()) return NULL;
7783 } _resultobj = Py_BuildValue("i",_result);
7784 return _resultobj;
7785 }
7786
7787 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
7788 static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7789 PyObject * _resultobj;
7790 bool _result;
7791 wxMenu * _arg0;
7792 wxMenuItem * _arg1;
7793 PyObject * _argo0 = 0;
7794 PyObject * _argo1 = 0;
7795 char *_kwnames[] = { "self","item", NULL };
7796
7797 self = self;
7798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1))
7799 return NULL;
7800 if (_argo0) {
7801 if (_argo0 == Py_None) { _arg0 = NULL; }
7802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
7804 return NULL;
7805 }
7806 }
7807 if (_argo1) {
7808 if (_argo1 == Py_None) { _arg1 = NULL; }
7809 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7810 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
7811 return NULL;
7812 }
7813 }
7814 {
7815 wxPy_BEGIN_ALLOW_THREADS;
7816 _result = (bool )wxMenu_DestroyItem(_arg0,_arg1);
7817
7818 wxPy_END_ALLOW_THREADS;
7819 if (PyErr_Occurred()) return NULL;
7820 } _resultobj = Py_BuildValue("i",_result);
7821 return _resultobj;
7822 }
7823
7824 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
7825 static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7826 PyObject * _resultobj;
7827 size_t _result;
7828 wxMenu * _arg0;
7829 PyObject * _argo0 = 0;
7830 char *_kwnames[] = { "self", NULL };
7831
7832 self = self;
7833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0))
7834 return NULL;
7835 if (_argo0) {
7836 if (_argo0 == Py_None) { _arg0 = NULL; }
7837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
7839 return NULL;
7840 }
7841 }
7842 {
7843 wxPy_BEGIN_ALLOW_THREADS;
7844 _result = (size_t )wxMenu_GetMenuItemCount(_arg0);
7845
7846 wxPy_END_ALLOW_THREADS;
7847 if (PyErr_Occurred()) return NULL;
7848 } _resultobj = Py_BuildValue("i",_result);
7849 return _resultobj;
7850 }
7851
7852 static PyObject * wxMenu_GetMenuItems(wxMenu *self) {
7853 wxMenuItemList& list = self->GetMenuItems();
7854 return wxPy_ConvertList(&list, "wxMenuItem");
7855 }
7856 static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
7857 PyObject * _resultobj;
7858 PyObject * _result;
7859 wxMenu * _arg0;
7860 PyObject * _argo0 = 0;
7861 char *_kwnames[] = { "self", NULL };
7862
7863 self = self;
7864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0))
7865 return NULL;
7866 if (_argo0) {
7867 if (_argo0 == Py_None) { _arg0 = NULL; }
7868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
7870 return NULL;
7871 }
7872 }
7873 {
7874 wxPy_BEGIN_ALLOW_THREADS;
7875 _result = (PyObject *)wxMenu_GetMenuItems(_arg0);
7876
7877 wxPy_END_ALLOW_THREADS;
7878 if (PyErr_Occurred()) return NULL;
7879 }{
7880 _resultobj = _result;
7881 }
7882 return _resultobj;
7883 }
7884
7885 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
7886 static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7887 PyObject * _resultobj;
7888 wxMenu * _arg0;
7889 wxEvtHandler * _arg1;
7890 PyObject * _argo0 = 0;
7891 PyObject * _argo1 = 0;
7892 char *_kwnames[] = { "self","handler", NULL };
7893
7894 self = self;
7895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1))
7896 return NULL;
7897 if (_argo0) {
7898 if (_argo0 == Py_None) { _arg0 = NULL; }
7899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
7901 return NULL;
7902 }
7903 }
7904 if (_argo1) {
7905 if (_argo1 == Py_None) { _arg1 = NULL; }
7906 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
7907 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
7908 return NULL;
7909 }
7910 }
7911 {
7912 wxPy_BEGIN_ALLOW_THREADS;
7913 wxMenu_SetEventHandler(_arg0,_arg1);
7914
7915 wxPy_END_ALLOW_THREADS;
7916 if (PyErr_Occurred()) return NULL;
7917 } Py_INCREF(Py_None);
7918 _resultobj = Py_None;
7919 return _resultobj;
7920 }
7921
7922 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
7923 static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7924 PyObject * _resultobj;
7925 wxEvtHandler * _result;
7926 wxMenu * _arg0;
7927 PyObject * _argo0 = 0;
7928 char *_kwnames[] = { "self", NULL };
7929
7930 self = self;
7931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0))
7932 return NULL;
7933 if (_argo0) {
7934 if (_argo0 == Py_None) { _arg0 = NULL; }
7935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
7937 return NULL;
7938 }
7939 }
7940 {
7941 wxPy_BEGIN_ALLOW_THREADS;
7942 _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0);
7943
7944 wxPy_END_ALLOW_THREADS;
7945 if (PyErr_Occurred()) return NULL;
7946 }{ _resultobj = wxPyMake_wxObject(_result); }
7947 return _resultobj;
7948 }
7949
7950 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
7951 static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7952 PyObject * _resultobj;
7953 wxMenu * _arg0;
7954 wxWindow * _arg1;
7955 PyObject * _argo0 = 0;
7956 PyObject * _argo1 = 0;
7957 char *_kwnames[] = { "self","win", NULL };
7958
7959 self = self;
7960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1))
7961 return NULL;
7962 if (_argo0) {
7963 if (_argo0 == Py_None) { _arg0 = NULL; }
7964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
7966 return NULL;
7967 }
7968 }
7969 if (_argo1) {
7970 if (_argo1 == Py_None) { _arg1 = NULL; }
7971 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7972 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
7973 return NULL;
7974 }
7975 }
7976 {
7977 wxPy_BEGIN_ALLOW_THREADS;
7978 wxMenu_SetInvokingWindow(_arg0,_arg1);
7979
7980 wxPy_END_ALLOW_THREADS;
7981 if (PyErr_Occurred()) return NULL;
7982 } Py_INCREF(Py_None);
7983 _resultobj = Py_None;
7984 return _resultobj;
7985 }
7986
7987 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
7988 static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7989 PyObject * _resultobj;
7990 wxWindow * _result;
7991 wxMenu * _arg0;
7992 PyObject * _argo0 = 0;
7993 char *_kwnames[] = { "self", NULL };
7994
7995 self = self;
7996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0))
7997 return NULL;
7998 if (_argo0) {
7999 if (_argo0 == Py_None) { _arg0 = NULL; }
8000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
8002 return NULL;
8003 }
8004 }
8005 {
8006 wxPy_BEGIN_ALLOW_THREADS;
8007 _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0);
8008
8009 wxPy_END_ALLOW_THREADS;
8010 if (PyErr_Occurred()) return NULL;
8011 }{ _resultobj = wxPyMake_wxObject(_result); }
8012 return _resultobj;
8013 }
8014
8015 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
8016 static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8017 PyObject * _resultobj;
8018 long _result;
8019 wxMenu * _arg0;
8020 PyObject * _argo0 = 0;
8021 char *_kwnames[] = { "self", NULL };
8022
8023 self = self;
8024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0))
8025 return NULL;
8026 if (_argo0) {
8027 if (_argo0 == Py_None) { _arg0 = NULL; }
8028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
8030 return NULL;
8031 }
8032 }
8033 {
8034 wxPy_BEGIN_ALLOW_THREADS;
8035 _result = (long )wxMenu_GetStyle(_arg0);
8036
8037 wxPy_END_ALLOW_THREADS;
8038 if (PyErr_Occurred()) return NULL;
8039 } _resultobj = Py_BuildValue("l",_result);
8040 return _resultobj;
8041 }
8042
8043 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
8044 static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
8045 PyObject * _resultobj;
8046 bool _result;
8047 wxMenu * _arg0;
8048 PyObject * _argo0 = 0;
8049 char *_kwnames[] = { "self", NULL };
8050
8051 self = self;
8052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0))
8053 return NULL;
8054 if (_argo0) {
8055 if (_argo0 == Py_None) { _arg0 = NULL; }
8056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
8058 return NULL;
8059 }
8060 }
8061 {
8062 wxPy_BEGIN_ALLOW_THREADS;
8063 _result = (bool )wxMenu_IsAttached(_arg0);
8064
8065 wxPy_END_ALLOW_THREADS;
8066 if (PyErr_Occurred()) return NULL;
8067 } _resultobj = Py_BuildValue("i",_result);
8068 return _resultobj;
8069 }
8070
8071 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
8072 static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8073 PyObject * _resultobj;
8074 wxMenu * _arg0;
8075 wxMenu * _arg1;
8076 PyObject * _argo0 = 0;
8077 PyObject * _argo1 = 0;
8078 char *_kwnames[] = { "self","parent", NULL };
8079
8080 self = self;
8081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1))
8082 return NULL;
8083 if (_argo0) {
8084 if (_argo0 == Py_None) { _arg0 = NULL; }
8085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
8087 return NULL;
8088 }
8089 }
8090 if (_argo1) {
8091 if (_argo1 == Py_None) { _arg1 = NULL; }
8092 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
8093 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
8094 return NULL;
8095 }
8096 }
8097 {
8098 wxPy_BEGIN_ALLOW_THREADS;
8099 wxMenu_SetParent(_arg0,_arg1);
8100
8101 wxPy_END_ALLOW_THREADS;
8102 if (PyErr_Occurred()) return NULL;
8103 } Py_INCREF(Py_None);
8104 _resultobj = Py_None;
8105 return _resultobj;
8106 }
8107
8108 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
8109 static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8110 PyObject * _resultobj;
8111 wxMenu * _result;
8112 wxMenu * _arg0;
8113 PyObject * _argo0 = 0;
8114 char *_kwnames[] = { "self", NULL };
8115
8116 self = self;
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0))
8118 return NULL;
8119 if (_argo0) {
8120 if (_argo0 == Py_None) { _arg0 = NULL; }
8121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
8123 return NULL;
8124 }
8125 }
8126 {
8127 wxPy_BEGIN_ALLOW_THREADS;
8128 _result = (wxMenu *)wxMenu_GetParent(_arg0);
8129
8130 wxPy_END_ALLOW_THREADS;
8131 if (PyErr_Occurred()) return NULL;
8132 }{ _resultobj = wxPyMake_wxObject(_result); }
8133 return _resultobj;
8134 }
8135
8136 static void *SwigwxMenuBarTowxWindow(void *ptr) {
8137 wxMenuBar *src;
8138 wxWindow *dest;
8139 src = (wxMenuBar *) ptr;
8140 dest = (wxWindow *) src;
8141 return (void *) dest;
8142 }
8143
8144 static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
8145 wxMenuBar *src;
8146 wxEvtHandler *dest;
8147 src = (wxMenuBar *) ptr;
8148 dest = (wxEvtHandler *) src;
8149 return (void *) dest;
8150 }
8151
8152 static void *SwigwxMenuBarTowxObject(void *ptr) {
8153 wxMenuBar *src;
8154 wxObject *dest;
8155 src = (wxMenuBar *) ptr;
8156 dest = (wxObject *) src;
8157 return (void *) dest;
8158 }
8159
8160 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
8161 static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
8162 PyObject * _resultobj;
8163 wxMenuBar * _result;
8164 long _arg0 = (long ) 0;
8165 char *_kwnames[] = { "style", NULL };
8166 char _ptemp[128];
8167
8168 self = self;
8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0))
8170 return NULL;
8171 {
8172 wxPy_BEGIN_ALLOW_THREADS;
8173 _result = (wxMenuBar *)new_wxMenuBar(_arg0);
8174
8175 wxPy_END_ALLOW_THREADS;
8176 if (PyErr_Occurred()) return NULL;
8177 } if (_result) {
8178 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
8179 _resultobj = Py_BuildValue("s",_ptemp);
8180 } else {
8181 Py_INCREF(Py_None);
8182 _resultobj = Py_None;
8183 }
8184 return _resultobj;
8185 }
8186
8187 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
8188 static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
8189 PyObject * _resultobj;
8190 bool _result;
8191 wxMenuBar * _arg0;
8192 wxMenu * _arg1;
8193 wxString * _arg2;
8194 PyObject * _argo0 = 0;
8195 PyObject * _argo1 = 0;
8196 PyObject * _obj2 = 0;
8197 char *_kwnames[] = { "self","menu","title", NULL };
8198
8199 self = self;
8200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
8201 return NULL;
8202 if (_argo0) {
8203 if (_argo0 == Py_None) { _arg0 = NULL; }
8204 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
8206 return NULL;
8207 }
8208 }
8209 if (_argo1) {
8210 if (_argo1 == Py_None) { _arg1 = NULL; }
8211 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
8212 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
8213 return NULL;
8214 }
8215 }
8216 {
8217 #if PYTHON_API_VERSION >= 1009
8218 char* tmpPtr; int tmpSize;
8219 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8220 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8221 return NULL;
8222 }
8223 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8224 return NULL;
8225 _arg2 = new wxString(tmpPtr, tmpSize);
8226 #else
8227 if (!PyString_Check(_obj2)) {
8228 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8229 return NULL;
8230 }
8231 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8232 #endif
8233 }
8234 {
8235 wxPy_BEGIN_ALLOW_THREADS;
8236 _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2);
8237
8238 wxPy_END_ALLOW_THREADS;
8239 if (PyErr_Occurred()) return NULL;
8240 } _resultobj = Py_BuildValue("i",_result);
8241 {
8242 if (_obj2)
8243 delete _arg2;
8244 }
8245 return _resultobj;
8246 }
8247
8248 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
8249 static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
8250 PyObject * _resultobj;
8251 bool _result;
8252 wxMenuBar * _arg0;
8253 size_t _arg1;
8254 wxMenu * _arg2;
8255 wxString * _arg3;
8256 PyObject * _argo0 = 0;
8257 PyObject * _argo2 = 0;
8258 PyObject * _obj3 = 0;
8259 char *_kwnames[] = { "self","pos","menu","title", NULL };
8260
8261 self = self;
8262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
8263 return NULL;
8264 if (_argo0) {
8265 if (_argo0 == Py_None) { _arg0 = NULL; }
8266 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8267 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
8268 return NULL;
8269 }
8270 }
8271 if (_argo2) {
8272 if (_argo2 == Py_None) { _arg2 = NULL; }
8273 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
8274 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
8275 return NULL;
8276 }
8277 }
8278 {
8279 #if PYTHON_API_VERSION >= 1009
8280 char* tmpPtr; int tmpSize;
8281 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8282 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8283 return NULL;
8284 }
8285 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8286 return NULL;
8287 _arg3 = new wxString(tmpPtr, tmpSize);
8288 #else
8289 if (!PyString_Check(_obj3)) {
8290 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8291 return NULL;
8292 }
8293 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8294 #endif
8295 }
8296 {
8297 wxPy_BEGIN_ALLOW_THREADS;
8298 _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3);
8299
8300 wxPy_END_ALLOW_THREADS;
8301 if (PyErr_Occurred()) return NULL;
8302 } _resultobj = Py_BuildValue("i",_result);
8303 {
8304 if (_obj3)
8305 delete _arg3;
8306 }
8307 return _resultobj;
8308 }
8309
8310 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
8311 static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8312 PyObject * _resultobj;
8313 size_t _result;
8314 wxMenuBar * _arg0;
8315 PyObject * _argo0 = 0;
8316 char *_kwnames[] = { "self", NULL };
8317
8318 self = self;
8319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
8320 return NULL;
8321 if (_argo0) {
8322 if (_argo0 == Py_None) { _arg0 = NULL; }
8323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
8325 return NULL;
8326 }
8327 }
8328 {
8329 wxPy_BEGIN_ALLOW_THREADS;
8330 _result = (size_t )wxMenuBar_GetMenuCount(_arg0);
8331
8332 wxPy_END_ALLOW_THREADS;
8333 if (PyErr_Occurred()) return NULL;
8334 } _resultobj = Py_BuildValue("i",_result);
8335 return _resultobj;
8336 }
8337
8338 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
8339 static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8340 PyObject * _resultobj;
8341 wxMenu * _result;
8342 wxMenuBar * _arg0;
8343 size_t _arg1;
8344 PyObject * _argo0 = 0;
8345 char *_kwnames[] = { "self","pos", NULL };
8346
8347 self = self;
8348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
8349 return NULL;
8350 if (_argo0) {
8351 if (_argo0 == Py_None) { _arg0 = NULL; }
8352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
8354 return NULL;
8355 }
8356 }
8357 {
8358 wxPy_BEGIN_ALLOW_THREADS;
8359 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
8360
8361 wxPy_END_ALLOW_THREADS;
8362 if (PyErr_Occurred()) return NULL;
8363 }{ _resultobj = wxPyMake_wxObject(_result); }
8364 return _resultobj;
8365 }
8366
8367 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
8368 static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8369 PyObject * _resultobj;
8370 wxMenu * _result;
8371 wxMenuBar * _arg0;
8372 size_t _arg1;
8373 wxMenu * _arg2;
8374 wxString * _arg3;
8375 PyObject * _argo0 = 0;
8376 PyObject * _argo2 = 0;
8377 PyObject * _obj3 = 0;
8378 char *_kwnames[] = { "self","pos","menu","title", NULL };
8379
8380 self = self;
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
8382 return NULL;
8383 if (_argo0) {
8384 if (_argo0 == Py_None) { _arg0 = NULL; }
8385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
8387 return NULL;
8388 }
8389 }
8390 if (_argo2) {
8391 if (_argo2 == Py_None) { _arg2 = NULL; }
8392 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
8393 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
8394 return NULL;
8395 }
8396 }
8397 {
8398 #if PYTHON_API_VERSION >= 1009
8399 char* tmpPtr; int tmpSize;
8400 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
8401 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8402 return NULL;
8403 }
8404 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8405 return NULL;
8406 _arg3 = new wxString(tmpPtr, tmpSize);
8407 #else
8408 if (!PyString_Check(_obj3)) {
8409 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8410 return NULL;
8411 }
8412 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8413 #endif
8414 }
8415 {
8416 wxPy_BEGIN_ALLOW_THREADS;
8417 _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3);
8418
8419 wxPy_END_ALLOW_THREADS;
8420 if (PyErr_Occurred()) return NULL;
8421 }{ _resultobj = wxPyMake_wxObject(_result); }
8422 {
8423 if (_obj3)
8424 delete _arg3;
8425 }
8426 return _resultobj;
8427 }
8428
8429 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8430 static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8431 PyObject * _resultobj;
8432 wxMenu * _result;
8433 wxMenuBar * _arg0;
8434 size_t _arg1;
8435 PyObject * _argo0 = 0;
8436 char *_kwnames[] = { "self","pos", NULL };
8437
8438 self = self;
8439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1))
8440 return NULL;
8441 if (_argo0) {
8442 if (_argo0 == Py_None) { _arg0 = NULL; }
8443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
8445 return NULL;
8446 }
8447 }
8448 {
8449 wxPy_BEGIN_ALLOW_THREADS;
8450 _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1);
8451
8452 wxPy_END_ALLOW_THREADS;
8453 if (PyErr_Occurred()) return NULL;
8454 }{ _resultobj = wxPyMake_wxObject(_result); }
8455 return _resultobj;
8456 }
8457
8458 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
8459 static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8460 PyObject * _resultobj;
8461 wxMenuBar * _arg0;
8462 size_t _arg1;
8463 bool _arg2;
8464 PyObject * _argo0 = 0;
8465 int tempbool2;
8466 char *_kwnames[] = { "self","pos","enable", NULL };
8467
8468 self = self;
8469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
8470 return NULL;
8471 if (_argo0) {
8472 if (_argo0 == Py_None) { _arg0 = NULL; }
8473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
8475 return NULL;
8476 }
8477 }
8478 _arg2 = (bool ) tempbool2;
8479 {
8480 wxPy_BEGIN_ALLOW_THREADS;
8481 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
8482
8483 wxPy_END_ALLOW_THREADS;
8484 if (PyErr_Occurred()) return NULL;
8485 } Py_INCREF(Py_None);
8486 _resultobj = Py_None;
8487 return _resultobj;
8488 }
8489
8490 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
8491 static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8492 PyObject * _resultobj;
8493 wxMenuBar * _arg0;
8494 size_t _arg1;
8495 wxString * _arg2;
8496 PyObject * _argo0 = 0;
8497 PyObject * _obj2 = 0;
8498 char *_kwnames[] = { "self","pos","label", NULL };
8499
8500 self = self;
8501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
8502 return NULL;
8503 if (_argo0) {
8504 if (_argo0 == Py_None) { _arg0 = NULL; }
8505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
8507 return NULL;
8508 }
8509 }
8510 {
8511 #if PYTHON_API_VERSION >= 1009
8512 char* tmpPtr; int tmpSize;
8513 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8514 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8515 return NULL;
8516 }
8517 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8518 return NULL;
8519 _arg2 = new wxString(tmpPtr, tmpSize);
8520 #else
8521 if (!PyString_Check(_obj2)) {
8522 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8523 return NULL;
8524 }
8525 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8526 #endif
8527 }
8528 {
8529 wxPy_BEGIN_ALLOW_THREADS;
8530 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
8531
8532 wxPy_END_ALLOW_THREADS;
8533 if (PyErr_Occurred()) return NULL;
8534 } Py_INCREF(Py_None);
8535 _resultobj = Py_None;
8536 {
8537 if (_obj2)
8538 delete _arg2;
8539 }
8540 return _resultobj;
8541 }
8542
8543 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
8544 static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8545 PyObject * _resultobj;
8546 wxString * _result;
8547 wxMenuBar * _arg0;
8548 size_t _arg1;
8549 PyObject * _argo0 = 0;
8550 char *_kwnames[] = { "self","pos", NULL };
8551
8552 self = self;
8553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
8554 return NULL;
8555 if (_argo0) {
8556 if (_argo0 == Py_None) { _arg0 = NULL; }
8557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
8559 return NULL;
8560 }
8561 }
8562 {
8563 wxPy_BEGIN_ALLOW_THREADS;
8564 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
8565
8566 wxPy_END_ALLOW_THREADS;
8567 if (PyErr_Occurred()) return NULL;
8568 }{
8569 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8570 }
8571 {
8572 delete _result;
8573 }
8574 return _resultobj;
8575 }
8576
8577 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
8578 static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8579 PyObject * _resultobj;
8580 int _result;
8581 wxMenuBar * _arg0;
8582 wxString * _arg1;
8583 PyObject * _argo0 = 0;
8584 PyObject * _obj1 = 0;
8585 char *_kwnames[] = { "self","title", NULL };
8586
8587 self = self;
8588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1))
8589 return NULL;
8590 if (_argo0) {
8591 if (_argo0 == Py_None) { _arg0 = NULL; }
8592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
8594 return NULL;
8595 }
8596 }
8597 {
8598 #if PYTHON_API_VERSION >= 1009
8599 char* tmpPtr; int tmpSize;
8600 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8601 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8602 return NULL;
8603 }
8604 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8605 return NULL;
8606 _arg1 = new wxString(tmpPtr, tmpSize);
8607 #else
8608 if (!PyString_Check(_obj1)) {
8609 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8610 return NULL;
8611 }
8612 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8613 #endif
8614 }
8615 {
8616 wxPy_BEGIN_ALLOW_THREADS;
8617 _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1);
8618
8619 wxPy_END_ALLOW_THREADS;
8620 if (PyErr_Occurred()) return NULL;
8621 } _resultobj = Py_BuildValue("i",_result);
8622 {
8623 if (_obj1)
8624 delete _arg1;
8625 }
8626 return _resultobj;
8627 }
8628
8629 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
8630 static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8631 PyObject * _resultobj;
8632 int _result;
8633 wxMenuBar * _arg0;
8634 wxString * _arg1;
8635 wxString * _arg2;
8636 PyObject * _argo0 = 0;
8637 PyObject * _obj1 = 0;
8638 PyObject * _obj2 = 0;
8639 char *_kwnames[] = { "self","menuString","itemString", NULL };
8640
8641 self = self;
8642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
8643 return NULL;
8644 if (_argo0) {
8645 if (_argo0 == Py_None) { _arg0 = NULL; }
8646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
8648 return NULL;
8649 }
8650 }
8651 {
8652 #if PYTHON_API_VERSION >= 1009
8653 char* tmpPtr; int tmpSize;
8654 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8655 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8656 return NULL;
8657 }
8658 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8659 return NULL;
8660 _arg1 = new wxString(tmpPtr, tmpSize);
8661 #else
8662 if (!PyString_Check(_obj1)) {
8663 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8664 return NULL;
8665 }
8666 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8667 #endif
8668 }
8669 {
8670 #if PYTHON_API_VERSION >= 1009
8671 char* tmpPtr; int tmpSize;
8672 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8673 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8674 return NULL;
8675 }
8676 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8677 return NULL;
8678 _arg2 = new wxString(tmpPtr, tmpSize);
8679 #else
8680 if (!PyString_Check(_obj2)) {
8681 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8682 return NULL;
8683 }
8684 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8685 #endif
8686 }
8687 {
8688 wxPy_BEGIN_ALLOW_THREADS;
8689 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
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 {
8699 if (_obj2)
8700 delete _arg2;
8701 }
8702 return _resultobj;
8703 }
8704
8705 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8706 static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
8707 PyObject * _resultobj;
8708 wxMenuItem * _result;
8709 wxMenuBar * _arg0;
8710 int _arg1;
8711 PyObject * _argo0 = 0;
8712 char *_kwnames[] = { "self","id", NULL };
8713
8714 self = self;
8715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1))
8716 return NULL;
8717 if (_argo0) {
8718 if (_argo0 == Py_None) { _arg0 = NULL; }
8719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
8721 return NULL;
8722 }
8723 }
8724 {
8725 wxPy_BEGIN_ALLOW_THREADS;
8726 _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1);
8727
8728 wxPy_END_ALLOW_THREADS;
8729 if (PyErr_Occurred()) return NULL;
8730 }{ _resultobj = wxPyMake_wxObject(_result); }
8731 return _resultobj;
8732 }
8733
8734 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8735 static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
8736 PyObject * _resultobj;
8737 wxMenuBar * _arg0;
8738 int _arg1;
8739 bool _arg2;
8740 PyObject * _argo0 = 0;
8741 int tempbool2;
8742 char *_kwnames[] = { "self","id","enable", NULL };
8743
8744 self = self;
8745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
8746 return NULL;
8747 if (_argo0) {
8748 if (_argo0 == Py_None) { _arg0 = NULL; }
8749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
8751 return NULL;
8752 }
8753 }
8754 _arg2 = (bool ) tempbool2;
8755 {
8756 wxPy_BEGIN_ALLOW_THREADS;
8757 wxMenuBar_Enable(_arg0,_arg1,_arg2);
8758
8759 wxPy_END_ALLOW_THREADS;
8760 if (PyErr_Occurred()) return NULL;
8761 } Py_INCREF(Py_None);
8762 _resultobj = Py_None;
8763 return _resultobj;
8764 }
8765
8766 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8767 static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
8768 PyObject * _resultobj;
8769 wxMenuBar * _arg0;
8770 int _arg1;
8771 bool _arg2;
8772 PyObject * _argo0 = 0;
8773 int tempbool2;
8774 char *_kwnames[] = { "self","id","check", NULL };
8775
8776 self = self;
8777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
8778 return NULL;
8779 if (_argo0) {
8780 if (_argo0 == Py_None) { _arg0 = NULL; }
8781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
8783 return NULL;
8784 }
8785 }
8786 _arg2 = (bool ) tempbool2;
8787 {
8788 wxPy_BEGIN_ALLOW_THREADS;
8789 wxMenuBar_Check(_arg0,_arg1,_arg2);
8790
8791 wxPy_END_ALLOW_THREADS;
8792 if (PyErr_Occurred()) return NULL;
8793 } Py_INCREF(Py_None);
8794 _resultobj = Py_None;
8795 return _resultobj;
8796 }
8797
8798 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8799 static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
8800 PyObject * _resultobj;
8801 bool _result;
8802 wxMenuBar * _arg0;
8803 int _arg1;
8804 PyObject * _argo0 = 0;
8805 char *_kwnames[] = { "self","id", NULL };
8806
8807 self = self;
8808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1))
8809 return NULL;
8810 if (_argo0) {
8811 if (_argo0 == Py_None) { _arg0 = NULL; }
8812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
8814 return NULL;
8815 }
8816 }
8817 {
8818 wxPy_BEGIN_ALLOW_THREADS;
8819 _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1);
8820
8821 wxPy_END_ALLOW_THREADS;
8822 if (PyErr_Occurred()) return NULL;
8823 } _resultobj = Py_BuildValue("i",_result);
8824 return _resultobj;
8825 }
8826
8827 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8828 static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8829 PyObject * _resultobj;
8830 bool _result;
8831 wxMenuBar * _arg0;
8832 int _arg1;
8833 PyObject * _argo0 = 0;
8834 char *_kwnames[] = { "self","id", NULL };
8835
8836 self = self;
8837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1))
8838 return NULL;
8839 if (_argo0) {
8840 if (_argo0 == Py_None) { _arg0 = NULL; }
8841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
8843 return NULL;
8844 }
8845 }
8846 {
8847 wxPy_BEGIN_ALLOW_THREADS;
8848 _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1);
8849
8850 wxPy_END_ALLOW_THREADS;
8851 if (PyErr_Occurred()) return NULL;
8852 } _resultobj = Py_BuildValue("i",_result);
8853 return _resultobj;
8854 }
8855
8856 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8857 static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8858 PyObject * _resultobj;
8859 wxMenuBar * _arg0;
8860 int _arg1;
8861 wxString * _arg2;
8862 PyObject * _argo0 = 0;
8863 PyObject * _obj2 = 0;
8864 char *_kwnames[] = { "self","id","label", NULL };
8865
8866 self = self;
8867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
8868 return NULL;
8869 if (_argo0) {
8870 if (_argo0 == Py_None) { _arg0 = NULL; }
8871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
8873 return NULL;
8874 }
8875 }
8876 {
8877 #if PYTHON_API_VERSION >= 1009
8878 char* tmpPtr; int tmpSize;
8879 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8880 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8881 return NULL;
8882 }
8883 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8884 return NULL;
8885 _arg2 = new wxString(tmpPtr, tmpSize);
8886 #else
8887 if (!PyString_Check(_obj2)) {
8888 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8889 return NULL;
8890 }
8891 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8892 #endif
8893 }
8894 {
8895 wxPy_BEGIN_ALLOW_THREADS;
8896 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
8897
8898 wxPy_END_ALLOW_THREADS;
8899 if (PyErr_Occurred()) return NULL;
8900 } Py_INCREF(Py_None);
8901 _resultobj = Py_None;
8902 {
8903 if (_obj2)
8904 delete _arg2;
8905 }
8906 return _resultobj;
8907 }
8908
8909 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8910 static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8911 PyObject * _resultobj;
8912 wxString * _result;
8913 wxMenuBar * _arg0;
8914 int _arg1;
8915 PyObject * _argo0 = 0;
8916 char *_kwnames[] = { "self","id", NULL };
8917
8918 self = self;
8919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
8920 return NULL;
8921 if (_argo0) {
8922 if (_argo0 == Py_None) { _arg0 = NULL; }
8923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
8925 return NULL;
8926 }
8927 }
8928 {
8929 wxPy_BEGIN_ALLOW_THREADS;
8930 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
8931
8932 wxPy_END_ALLOW_THREADS;
8933 if (PyErr_Occurred()) return NULL;
8934 }{
8935 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8936 }
8937 {
8938 delete _result;
8939 }
8940 return _resultobj;
8941 }
8942
8943 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8944 static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
8945 PyObject * _resultobj;
8946 wxMenuBar * _arg0;
8947 int _arg1;
8948 wxString * _arg2;
8949 PyObject * _argo0 = 0;
8950 PyObject * _obj2 = 0;
8951 char *_kwnames[] = { "self","id","helpString", NULL };
8952
8953 self = self;
8954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
8955 return NULL;
8956 if (_argo0) {
8957 if (_argo0 == Py_None) { _arg0 = NULL; }
8958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
8959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
8960 return NULL;
8961 }
8962 }
8963 {
8964 #if PYTHON_API_VERSION >= 1009
8965 char* tmpPtr; int tmpSize;
8966 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8967 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8968 return NULL;
8969 }
8970 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8971 return NULL;
8972 _arg2 = new wxString(tmpPtr, tmpSize);
8973 #else
8974 if (!PyString_Check(_obj2)) {
8975 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8976 return NULL;
8977 }
8978 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8979 #endif
8980 }
8981 {
8982 wxPy_BEGIN_ALLOW_THREADS;
8983 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
8984
8985 wxPy_END_ALLOW_THREADS;
8986 if (PyErr_Occurred()) return NULL;
8987 } Py_INCREF(Py_None);
8988 _resultobj = Py_None;
8989 {
8990 if (_obj2)
8991 delete _arg2;
8992 }
8993 return _resultobj;
8994 }
8995
8996 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
8997 static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
8998 PyObject * _resultobj;
8999 wxString * _result;
9000 wxMenuBar * _arg0;
9001 int _arg1;
9002 PyObject * _argo0 = 0;
9003 char *_kwnames[] = { "self","id", NULL };
9004
9005 self = self;
9006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
9007 return NULL;
9008 if (_argo0) {
9009 if (_argo0 == Py_None) { _arg0 = NULL; }
9010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
9012 return NULL;
9013 }
9014 }
9015 {
9016 wxPy_BEGIN_ALLOW_THREADS;
9017 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
9018
9019 wxPy_END_ALLOW_THREADS;
9020 if (PyErr_Occurred()) return NULL;
9021 }{
9022 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9023 }
9024 {
9025 delete _result;
9026 }
9027 return _resultobj;
9028 }
9029
9030 static void *SwigwxMenuItemTowxObject(void *ptr) {
9031 wxMenuItem *src;
9032 wxObject *dest;
9033 src = (wxMenuItem *) ptr;
9034 dest = (wxObject *) src;
9035 return (void *) dest;
9036 }
9037
9038 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9039 static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9040 PyObject * _resultobj;
9041 wxMenuItem * _result;
9042 wxMenu * _arg0 = (wxMenu *) NULL;
9043 int _arg1 = (int ) wxID_SEPARATOR;
9044 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
9045 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
9046 bool _arg4 = (bool ) FALSE;
9047 wxMenu * _arg5 = (wxMenu *) NULL;
9048 PyObject * _argo0 = 0;
9049 PyObject * _obj2 = 0;
9050 PyObject * _obj3 = 0;
9051 int tempbool4 = (int) FALSE;
9052 PyObject * _argo5 = 0;
9053 char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL };
9054 char _ptemp[128];
9055
9056 self = self;
9057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5))
9058 return NULL;
9059 if (_argo0) {
9060 if (_argo0 == Py_None) { _arg0 = NULL; }
9061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
9063 return NULL;
9064 }
9065 }
9066 if (_obj2)
9067 {
9068 #if PYTHON_API_VERSION >= 1009
9069 char* tmpPtr; int tmpSize;
9070 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9071 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9072 return NULL;
9073 }
9074 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9075 return NULL;
9076 _arg2 = new wxString(tmpPtr, tmpSize);
9077 #else
9078 if (!PyString_Check(_obj2)) {
9079 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9080 return NULL;
9081 }
9082 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9083 #endif
9084 }
9085 if (_obj3)
9086 {
9087 #if PYTHON_API_VERSION >= 1009
9088 char* tmpPtr; int tmpSize;
9089 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
9090 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9091 return NULL;
9092 }
9093 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
9094 return NULL;
9095 _arg3 = new wxString(tmpPtr, tmpSize);
9096 #else
9097 if (!PyString_Check(_obj3)) {
9098 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9099 return NULL;
9100 }
9101 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
9102 #endif
9103 }
9104 _arg4 = (bool ) tempbool4;
9105 if (_argo5) {
9106 if (_argo5 == Py_None) { _arg5 = NULL; }
9107 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
9108 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
9109 return NULL;
9110 }
9111 }
9112 {
9113 wxPy_BEGIN_ALLOW_THREADS;
9114 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
9115
9116 wxPy_END_ALLOW_THREADS;
9117 if (PyErr_Occurred()) return NULL;
9118 } if (_result) {
9119 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
9120 _resultobj = Py_BuildValue("s",_ptemp);
9121 } else {
9122 Py_INCREF(Py_None);
9123 _resultobj = Py_None;
9124 }
9125 {
9126 if (_obj2)
9127 delete _arg2;
9128 }
9129 {
9130 if (_obj3)
9131 delete _arg3;
9132 }
9133 return _resultobj;
9134 }
9135
9136 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
9137 static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9138 PyObject * _resultobj;
9139 wxMenu * _result;
9140 wxMenuItem * _arg0;
9141 PyObject * _argo0 = 0;
9142 char *_kwnames[] = { "self", NULL };
9143
9144 self = self;
9145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0))
9146 return NULL;
9147 if (_argo0) {
9148 if (_argo0 == Py_None) { _arg0 = NULL; }
9149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
9151 return NULL;
9152 }
9153 }
9154 {
9155 wxPy_BEGIN_ALLOW_THREADS;
9156 _result = (wxMenu *)wxMenuItem_GetMenu(_arg0);
9157
9158 wxPy_END_ALLOW_THREADS;
9159 if (PyErr_Occurred()) return NULL;
9160 }{ _resultobj = wxPyMake_wxObject(_result); }
9161 return _resultobj;
9162 }
9163
9164 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
9165 static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
9166 PyObject * _resultobj;
9167 wxMenuItem * _arg0;
9168 int _arg1;
9169 PyObject * _argo0 = 0;
9170 char *_kwnames[] = { "self","id", NULL };
9171
9172 self = self;
9173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1))
9174 return NULL;
9175 if (_argo0) {
9176 if (_argo0 == Py_None) { _arg0 = NULL; }
9177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
9179 return NULL;
9180 }
9181 }
9182 {
9183 wxPy_BEGIN_ALLOW_THREADS;
9184 wxMenuItem_SetId(_arg0,_arg1);
9185
9186 wxPy_END_ALLOW_THREADS;
9187 if (PyErr_Occurred()) return NULL;
9188 } Py_INCREF(Py_None);
9189 _resultobj = Py_None;
9190 return _resultobj;
9191 }
9192
9193 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
9194 static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
9195 PyObject * _resultobj;
9196 int _result;
9197 wxMenuItem * _arg0;
9198 PyObject * _argo0 = 0;
9199 char *_kwnames[] = { "self", NULL };
9200
9201 self = self;
9202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
9203 return NULL;
9204 if (_argo0) {
9205 if (_argo0 == Py_None) { _arg0 = NULL; }
9206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
9208 return NULL;
9209 }
9210 }
9211 {
9212 wxPy_BEGIN_ALLOW_THREADS;
9213 _result = (int )wxMenuItem_GetId(_arg0);
9214
9215 wxPy_END_ALLOW_THREADS;
9216 if (PyErr_Occurred()) return NULL;
9217 } _resultobj = Py_BuildValue("i",_result);
9218 return _resultobj;
9219 }
9220
9221 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
9222 static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
9223 PyObject * _resultobj;
9224 bool _result;
9225 wxMenuItem * _arg0;
9226 PyObject * _argo0 = 0;
9227 char *_kwnames[] = { "self", NULL };
9228
9229 self = self;
9230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
9231 return NULL;
9232 if (_argo0) {
9233 if (_argo0 == Py_None) { _arg0 = NULL; }
9234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
9236 return NULL;
9237 }
9238 }
9239 {
9240 wxPy_BEGIN_ALLOW_THREADS;
9241 _result = (bool )wxMenuItem_IsSeparator(_arg0);
9242
9243 wxPy_END_ALLOW_THREADS;
9244 if (PyErr_Occurred()) return NULL;
9245 } _resultobj = Py_BuildValue("i",_result);
9246 return _resultobj;
9247 }
9248
9249 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
9250 static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject * _resultobj;
9252 wxMenuItem * _arg0;
9253 wxString * _arg1;
9254 PyObject * _argo0 = 0;
9255 PyObject * _obj1 = 0;
9256 char *_kwnames[] = { "self","str", NULL };
9257
9258 self = self;
9259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1))
9260 return NULL;
9261 if (_argo0) {
9262 if (_argo0 == Py_None) { _arg0 = NULL; }
9263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
9265 return NULL;
9266 }
9267 }
9268 {
9269 #if PYTHON_API_VERSION >= 1009
9270 char* tmpPtr; int tmpSize;
9271 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9272 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9273 return NULL;
9274 }
9275 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9276 return NULL;
9277 _arg1 = new wxString(tmpPtr, tmpSize);
9278 #else
9279 if (!PyString_Check(_obj1)) {
9280 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9281 return NULL;
9282 }
9283 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9284 #endif
9285 }
9286 {
9287 wxPy_BEGIN_ALLOW_THREADS;
9288 wxMenuItem_SetText(_arg0,*_arg1);
9289
9290 wxPy_END_ALLOW_THREADS;
9291 if (PyErr_Occurred()) return NULL;
9292 } Py_INCREF(Py_None);
9293 _resultobj = Py_None;
9294 {
9295 if (_obj1)
9296 delete _arg1;
9297 }
9298 return _resultobj;
9299 }
9300
9301 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
9302 static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9303 PyObject * _resultobj;
9304 wxString * _result;
9305 wxMenuItem * _arg0;
9306 PyObject * _argo0 = 0;
9307 char *_kwnames[] = { "self", NULL };
9308
9309 self = self;
9310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0))
9311 return NULL;
9312 if (_argo0) {
9313 if (_argo0 == Py_None) { _arg0 = NULL; }
9314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
9316 return NULL;
9317 }
9318 }
9319 {
9320 wxPy_BEGIN_ALLOW_THREADS;
9321 _result = new wxString (wxMenuItem_GetLabel(_arg0));
9322
9323 wxPy_END_ALLOW_THREADS;
9324 if (PyErr_Occurred()) return NULL;
9325 }{
9326 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9327 }
9328 {
9329 delete _result;
9330 }
9331 return _resultobj;
9332 }
9333
9334 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
9335 static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
9336 PyObject * _resultobj;
9337 wxString * _result;
9338 wxMenuItem * _arg0;
9339 PyObject * _argo0 = 0;
9340 char *_kwnames[] = { "self", NULL };
9341
9342 self = self;
9343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0))
9344 return NULL;
9345 if (_argo0) {
9346 if (_argo0 == Py_None) { _arg0 = NULL; }
9347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
9349 return NULL;
9350 }
9351 }
9352 {
9353 wxPy_BEGIN_ALLOW_THREADS;
9354 const wxString & _result_ref = wxMenuItem_GetText(_arg0);
9355 _result = (wxString *) &_result_ref;
9356
9357 wxPy_END_ALLOW_THREADS;
9358 if (PyErr_Occurred()) return NULL;
9359 }{
9360 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9361 }
9362 return _resultobj;
9363 }
9364
9365 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
9366 static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
9367 PyObject * _resultobj;
9368 wxMenuItem * _arg0;
9369 bool _arg1;
9370 PyObject * _argo0 = 0;
9371 int tempbool1;
9372 char *_kwnames[] = { "self","checkable", NULL };
9373
9374 self = self;
9375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1))
9376 return NULL;
9377 if (_argo0) {
9378 if (_argo0 == Py_None) { _arg0 = NULL; }
9379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
9381 return NULL;
9382 }
9383 }
9384 _arg1 = (bool ) tempbool1;
9385 {
9386 wxPy_BEGIN_ALLOW_THREADS;
9387 wxMenuItem_SetCheckable(_arg0,_arg1);
9388
9389 wxPy_END_ALLOW_THREADS;
9390 if (PyErr_Occurred()) return NULL;
9391 } Py_INCREF(Py_None);
9392 _resultobj = Py_None;
9393 return _resultobj;
9394 }
9395
9396 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
9397 static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
9398 PyObject * _resultobj;
9399 bool _result;
9400 wxMenuItem * _arg0;
9401 PyObject * _argo0 = 0;
9402 char *_kwnames[] = { "self", NULL };
9403
9404 self = self;
9405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0))
9406 return NULL;
9407 if (_argo0) {
9408 if (_argo0 == Py_None) { _arg0 = NULL; }
9409 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9410 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
9411 return NULL;
9412 }
9413 }
9414 {
9415 wxPy_BEGIN_ALLOW_THREADS;
9416 _result = (bool )wxMenuItem_IsCheckable(_arg0);
9417
9418 wxPy_END_ALLOW_THREADS;
9419 if (PyErr_Occurred()) return NULL;
9420 } _resultobj = Py_BuildValue("i",_result);
9421 return _resultobj;
9422 }
9423
9424 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
9425 static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9426 PyObject * _resultobj;
9427 bool _result;
9428 wxMenuItem * _arg0;
9429 PyObject * _argo0 = 0;
9430 char *_kwnames[] = { "self", NULL };
9431
9432 self = self;
9433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0))
9434 return NULL;
9435 if (_argo0) {
9436 if (_argo0 == Py_None) { _arg0 = NULL; }
9437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
9439 return NULL;
9440 }
9441 }
9442 {
9443 wxPy_BEGIN_ALLOW_THREADS;
9444 _result = (bool )wxMenuItem_IsSubMenu(_arg0);
9445
9446 wxPy_END_ALLOW_THREADS;
9447 if (PyErr_Occurred()) return NULL;
9448 } _resultobj = Py_BuildValue("i",_result);
9449 return _resultobj;
9450 }
9451
9452 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
9453 static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9454 PyObject * _resultobj;
9455 wxMenuItem * _arg0;
9456 wxMenu * _arg1;
9457 PyObject * _argo0 = 0;
9458 PyObject * _argo1 = 0;
9459 char *_kwnames[] = { "self","menu", NULL };
9460
9461 self = self;
9462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1))
9463 return NULL;
9464 if (_argo0) {
9465 if (_argo0 == Py_None) { _arg0 = NULL; }
9466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
9468 return NULL;
9469 }
9470 }
9471 if (_argo1) {
9472 if (_argo1 == Py_None) { _arg1 = NULL; }
9473 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9474 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
9475 return NULL;
9476 }
9477 }
9478 {
9479 wxPy_BEGIN_ALLOW_THREADS;
9480 wxMenuItem_SetSubMenu(_arg0,_arg1);
9481
9482 wxPy_END_ALLOW_THREADS;
9483 if (PyErr_Occurred()) return NULL;
9484 } Py_INCREF(Py_None);
9485 _resultobj = Py_None;
9486 return _resultobj;
9487 }
9488
9489 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
9490 static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9491 PyObject * _resultobj;
9492 wxMenu * _result;
9493 wxMenuItem * _arg0;
9494 PyObject * _argo0 = 0;
9495 char *_kwnames[] = { "self", NULL };
9496
9497 self = self;
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
9499 return NULL;
9500 if (_argo0) {
9501 if (_argo0 == Py_None) { _arg0 = NULL; }
9502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
9504 return NULL;
9505 }
9506 }
9507 {
9508 wxPy_BEGIN_ALLOW_THREADS;
9509 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
9510
9511 wxPy_END_ALLOW_THREADS;
9512 if (PyErr_Occurred()) return NULL;
9513 }{ _resultobj = wxPyMake_wxObject(_result); }
9514 return _resultobj;
9515 }
9516
9517 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
9518 static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
9519 PyObject * _resultobj;
9520 wxMenuItem * _arg0;
9521 bool _arg1 = (bool ) TRUE;
9522 PyObject * _argo0 = 0;
9523 int tempbool1 = (int) TRUE;
9524 char *_kwnames[] = { "self","enable", NULL };
9525
9526 self = self;
9527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
9528 return NULL;
9529 if (_argo0) {
9530 if (_argo0 == Py_None) { _arg0 = NULL; }
9531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
9533 return NULL;
9534 }
9535 }
9536 _arg1 = (bool ) tempbool1;
9537 {
9538 wxPy_BEGIN_ALLOW_THREADS;
9539 wxMenuItem_Enable(_arg0,_arg1);
9540
9541 wxPy_END_ALLOW_THREADS;
9542 if (PyErr_Occurred()) return NULL;
9543 } Py_INCREF(Py_None);
9544 _resultobj = Py_None;
9545 return _resultobj;
9546 }
9547
9548 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
9549 static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
9550 PyObject * _resultobj;
9551 bool _result;
9552 wxMenuItem * _arg0;
9553 PyObject * _argo0 = 0;
9554 char *_kwnames[] = { "self", NULL };
9555
9556 self = self;
9557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
9558 return NULL;
9559 if (_argo0) {
9560 if (_argo0 == Py_None) { _arg0 = NULL; }
9561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
9563 return NULL;
9564 }
9565 }
9566 {
9567 wxPy_BEGIN_ALLOW_THREADS;
9568 _result = (bool )wxMenuItem_IsEnabled(_arg0);
9569
9570 wxPy_END_ALLOW_THREADS;
9571 if (PyErr_Occurred()) return NULL;
9572 } _resultobj = Py_BuildValue("i",_result);
9573 return _resultobj;
9574 }
9575
9576 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
9577 static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
9578 PyObject * _resultobj;
9579 wxMenuItem * _arg0;
9580 bool _arg1 = (bool ) TRUE;
9581 PyObject * _argo0 = 0;
9582 int tempbool1 = (int) TRUE;
9583 char *_kwnames[] = { "self","check", NULL };
9584
9585 self = self;
9586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
9587 return NULL;
9588 if (_argo0) {
9589 if (_argo0 == Py_None) { _arg0 = NULL; }
9590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
9592 return NULL;
9593 }
9594 }
9595 _arg1 = (bool ) tempbool1;
9596 {
9597 wxPy_BEGIN_ALLOW_THREADS;
9598 wxMenuItem_Check(_arg0,_arg1);
9599
9600 wxPy_END_ALLOW_THREADS;
9601 if (PyErr_Occurred()) return NULL;
9602 } Py_INCREF(Py_None);
9603 _resultobj = Py_None;
9604 return _resultobj;
9605 }
9606
9607 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
9608 static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
9609 PyObject * _resultobj;
9610 bool _result;
9611 wxMenuItem * _arg0;
9612 PyObject * _argo0 = 0;
9613 char *_kwnames[] = { "self", NULL };
9614
9615 self = self;
9616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
9617 return NULL;
9618 if (_argo0) {
9619 if (_argo0 == Py_None) { _arg0 = NULL; }
9620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
9622 return NULL;
9623 }
9624 }
9625 {
9626 wxPy_BEGIN_ALLOW_THREADS;
9627 _result = (bool )wxMenuItem_IsChecked(_arg0);
9628
9629 wxPy_END_ALLOW_THREADS;
9630 if (PyErr_Occurred()) return NULL;
9631 } _resultobj = Py_BuildValue("i",_result);
9632 return _resultobj;
9633 }
9634
9635 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
9636 static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
9637 PyObject * _resultobj;
9638 wxMenuItem * _arg0;
9639 PyObject * _argo0 = 0;
9640 char *_kwnames[] = { "self", NULL };
9641
9642 self = self;
9643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0))
9644 return NULL;
9645 if (_argo0) {
9646 if (_argo0 == Py_None) { _arg0 = NULL; }
9647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
9649 return NULL;
9650 }
9651 }
9652 {
9653 wxPy_BEGIN_ALLOW_THREADS;
9654 wxMenuItem_Toggle(_arg0);
9655
9656 wxPy_END_ALLOW_THREADS;
9657 if (PyErr_Occurred()) return NULL;
9658 } Py_INCREF(Py_None);
9659 _resultobj = Py_None;
9660 return _resultobj;
9661 }
9662
9663 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
9664 static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
9665 PyObject * _resultobj;
9666 wxMenuItem * _arg0;
9667 wxString * _arg1;
9668 PyObject * _argo0 = 0;
9669 PyObject * _obj1 = 0;
9670 char *_kwnames[] = { "self","str", NULL };
9671
9672 self = self;
9673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
9674 return NULL;
9675 if (_argo0) {
9676 if (_argo0 == Py_None) { _arg0 = NULL; }
9677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
9679 return NULL;
9680 }
9681 }
9682 {
9683 #if PYTHON_API_VERSION >= 1009
9684 char* tmpPtr; int tmpSize;
9685 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9686 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9687 return NULL;
9688 }
9689 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9690 return NULL;
9691 _arg1 = new wxString(tmpPtr, tmpSize);
9692 #else
9693 if (!PyString_Check(_obj1)) {
9694 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9695 return NULL;
9696 }
9697 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9698 #endif
9699 }
9700 {
9701 wxPy_BEGIN_ALLOW_THREADS;
9702 wxMenuItem_SetHelp(_arg0,*_arg1);
9703
9704 wxPy_END_ALLOW_THREADS;
9705 if (PyErr_Occurred()) return NULL;
9706 } Py_INCREF(Py_None);
9707 _resultobj = Py_None;
9708 {
9709 if (_obj1)
9710 delete _arg1;
9711 }
9712 return _resultobj;
9713 }
9714
9715 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
9716 static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
9717 PyObject * _resultobj;
9718 wxString * _result;
9719 wxMenuItem * _arg0;
9720 PyObject * _argo0 = 0;
9721 char *_kwnames[] = { "self", NULL };
9722
9723 self = self;
9724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
9725 return NULL;
9726 if (_argo0) {
9727 if (_argo0 == Py_None) { _arg0 = NULL; }
9728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
9730 return NULL;
9731 }
9732 }
9733 {
9734 wxPy_BEGIN_ALLOW_THREADS;
9735 const wxString & _result_ref = wxMenuItem_GetHelp(_arg0);
9736 _result = (wxString *) &_result_ref;
9737
9738 wxPy_END_ALLOW_THREADS;
9739 if (PyErr_Occurred()) return NULL;
9740 }{
9741 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9742 }
9743 return _resultobj;
9744 }
9745
9746 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
9747 static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
9748 PyObject * _resultobj;
9749 wxAcceleratorEntry * _result;
9750 wxMenuItem * _arg0;
9751 PyObject * _argo0 = 0;
9752 char *_kwnames[] = { "self", NULL };
9753 char _ptemp[128];
9754
9755 self = self;
9756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0))
9757 return NULL;
9758 if (_argo0) {
9759 if (_argo0 == Py_None) { _arg0 = NULL; }
9760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
9762 return NULL;
9763 }
9764 }
9765 {
9766 wxPy_BEGIN_ALLOW_THREADS;
9767 _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0);
9768
9769 wxPy_END_ALLOW_THREADS;
9770 if (PyErr_Occurred()) return NULL;
9771 } if (_result) {
9772 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
9773 _resultobj = Py_BuildValue("s",_ptemp);
9774 } else {
9775 Py_INCREF(Py_None);
9776 _resultobj = Py_None;
9777 }
9778 return _resultobj;
9779 }
9780
9781 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
9782 static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
9783 PyObject * _resultobj;
9784 wxMenuItem * _arg0;
9785 wxAcceleratorEntry * _arg1;
9786 PyObject * _argo0 = 0;
9787 PyObject * _argo1 = 0;
9788 char *_kwnames[] = { "self","accel", NULL };
9789
9790 self = self;
9791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1))
9792 return NULL;
9793 if (_argo0) {
9794 if (_argo0 == Py_None) { _arg0 = NULL; }
9795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
9796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
9797 return NULL;
9798 }
9799 }
9800 if (_argo1) {
9801 if (_argo1 == Py_None) { _arg1 = NULL; }
9802 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) {
9803 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
9804 return NULL;
9805 }
9806 }
9807 {
9808 wxPy_BEGIN_ALLOW_THREADS;
9809 wxMenuItem_SetAccel(_arg0,_arg1);
9810
9811 wxPy_END_ALLOW_THREADS;
9812 if (PyErr_Occurred()) return NULL;
9813 } Py_INCREF(Py_None);
9814 _resultobj = Py_None;
9815 return _resultobj;
9816 }
9817
9818 static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
9819 PyObject * _resultobj;
9820 wxString * _result;
9821 wxString * _arg0;
9822 PyObject * _obj0 = 0;
9823 char *_kwnames[] = { "text", NULL };
9824
9825 self = self;
9826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0))
9827 return NULL;
9828 {
9829 #if PYTHON_API_VERSION >= 1009
9830 char* tmpPtr; int tmpSize;
9831 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
9832 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9833 return NULL;
9834 }
9835 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
9836 return NULL;
9837 _arg0 = new wxString(tmpPtr, tmpSize);
9838 #else
9839 if (!PyString_Check(_obj0)) {
9840 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9841 return NULL;
9842 }
9843 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
9844 #endif
9845 }
9846 {
9847 wxPy_BEGIN_ALLOW_THREADS;
9848 _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0));
9849
9850 wxPy_END_ALLOW_THREADS;
9851 if (PyErr_Occurred()) return NULL;
9852 }{
9853 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9854 }
9855 {
9856 if (_obj0)
9857 delete _arg0;
9858 }
9859 {
9860 delete _result;
9861 }
9862 return _resultobj;
9863 }
9864
9865 static PyMethodDef windowscMethods[] = {
9866 { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
9867 { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
9868 { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
9869 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
9870 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
9871 { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
9872 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
9873 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
9874 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
9875 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
9876 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
9877 { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
9878 { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
9879 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
9880 { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
9881 { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
9882 { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
9883 { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
9884 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
9885 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
9886 { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
9887 { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
9888 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
9889 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
9890 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
9891 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
9892 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
9893 { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
9894 { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
9895 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
9896 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
9897 { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
9898 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
9899 { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
9900 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
9901 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
9902 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
9903 { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
9904 { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
9905 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
9906 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
9907 { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
9908 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
9909 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
9910 { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS },
9911 { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS },
9912 { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS },
9913 { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS },
9914 { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
9915 { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
9916 { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
9917 { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
9918 { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
9919 { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
9920 { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
9921 { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS },
9922 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
9923 { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
9924 { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS },
9925 { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS },
9926 { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
9927 { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS },
9928 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
9929 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
9930 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
9931 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
9932 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
9933 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
9934 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
9935 { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS },
9936 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
9937 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
9938 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
9939 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
9940 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
9941 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
9942 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
9943 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
9944 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
9945 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
9946 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
9947 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS },
9948 { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS },
9949 { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS },
9950 { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS },
9951 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS },
9952 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS },
9953 { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS },
9954 { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS },
9955 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
9956 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
9957 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
9958 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
9959 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
9960 { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
9961 { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS },
9962 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
9963 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
9964 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
9965 { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS },
9966 { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS },
9967 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
9968 { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
9969 { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
9970 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
9971 { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS },
9972 { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS },
9973 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
9974 { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
9975 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
9976 { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS },
9977 { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
9978 { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS },
9979 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
9980 { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS },
9981 { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS },
9982 { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS },
9983 { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS },
9984 { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS },
9985 { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS },
9986 { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS },
9987 { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS },
9988 { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS },
9989 { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS },
9990 { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS },
9991 { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS },
9992 { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS },
9993 { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS },
9994 { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
9995 { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
9996 { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS },
9997 { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
9998 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
9999 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
10000 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
10001 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
10002 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
10003 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
10004 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
10005 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
10006 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
10007 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
10008 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
10009 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
10010 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
10011 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
10012 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
10013 { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
10014 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
10015 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
10016 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
10017 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
10018 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
10019 { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS },
10020 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
10021 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
10022 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
10023 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
10024 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
10025 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
10026 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
10027 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
10028 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
10029 { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
10030 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
10031 { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS },
10032 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
10033 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10034 { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
10035 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
10036 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
10037 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
10038 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
10039 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
10040 { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS },
10041 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
10042 { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS },
10043 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
10044 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
10045 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
10046 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
10047 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
10048 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
10049 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
10050 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
10051 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
10052 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
10053 { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS },
10054 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
10055 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
10056 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
10057 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
10058 { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
10059 { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
10060 { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS },
10061 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
10062 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
10063 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
10064 { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS },
10065 { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
10066 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
10067 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
10068 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
10069 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
10070 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
10071 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
10072 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
10073 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
10074 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
10075 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
10076 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
10077 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
10078 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
10079 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
10080 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
10081 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
10082 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
10083 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
10084 { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS },
10085 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
10086 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
10087 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
10088 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
10089 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
10090 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
10091 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
10092 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
10093 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
10094 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
10095 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10096 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
10097 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
10098 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
10099 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
10100 { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
10101 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
10102 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
10103 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
10104 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
10105 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
10106 { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS },
10107 { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
10108 { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS },
10109 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
10110 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
10111 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
10112 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
10113 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
10114 { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS },
10115 { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS },
10116 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
10117 { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
10118 { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
10119 { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
10120 { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
10121 { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
10122 { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
10123 { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
10124 { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
10125 { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
10126 { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
10127 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
10128 { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
10129 { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
10130 { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
10131 { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
10132 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
10133 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
10134 { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
10135 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
10136 { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS },
10137 { NULL, NULL }
10138 };
10139 #ifdef __cplusplus
10140 }
10141 #endif
10142 /*
10143 * This table is used by the pointer type-checker
10144 */
10145 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
10146 { "_signed_long","_long",0},
10147 { "_wxPrintQuality","_wxCoord",0},
10148 { "_wxPrintQuality","_int",0},
10149 { "_wxPrintQuality","_signed_int",0},
10150 { "_wxPrintQuality","_unsigned_int",0},
10151 { "_wxPrintQuality","_wxWindowID",0},
10152 { "_wxPrintQuality","_uint",0},
10153 { "_wxPrintQuality","_EBool",0},
10154 { "_wxPrintQuality","_size_t",0},
10155 { "_wxPrintQuality","_time_t",0},
10156 { "_byte","_unsigned_char",0},
10157 { "_long","_unsigned_long",0},
10158 { "_long","_signed_long",0},
10159 { "_size_t","_wxCoord",0},
10160 { "_size_t","_wxPrintQuality",0},
10161 { "_size_t","_time_t",0},
10162 { "_size_t","_unsigned_int",0},
10163 { "_size_t","_int",0},
10164 { "_size_t","_wxWindowID",0},
10165 { "_size_t","_uint",0},
10166 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
10167 { "_uint","_wxCoord",0},
10168 { "_uint","_wxPrintQuality",0},
10169 { "_uint","_time_t",0},
10170 { "_uint","_size_t",0},
10171 { "_uint","_unsigned_int",0},
10172 { "_uint","_int",0},
10173 { "_uint","_wxWindowID",0},
10174 { "_wxChar","_char",0},
10175 { "_char","_wxChar",0},
10176 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10177 { "_EBool","_wxCoord",0},
10178 { "_EBool","_wxPrintQuality",0},
10179 { "_EBool","_signed_int",0},
10180 { "_EBool","_int",0},
10181 { "_EBool","_wxWindowID",0},
10182 { "_unsigned_long","_long",0},
10183 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10184 { "_signed_int","_wxCoord",0},
10185 { "_signed_int","_wxPrintQuality",0},
10186 { "_signed_int","_EBool",0},
10187 { "_signed_int","_wxWindowID",0},
10188 { "_signed_int","_int",0},
10189 { "_WXTYPE","_short",0},
10190 { "_WXTYPE","_signed_short",0},
10191 { "_WXTYPE","_unsigned_short",0},
10192 { "_unsigned_short","_WXTYPE",0},
10193 { "_unsigned_short","_short",0},
10194 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject},
10195 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject},
10196 { "_wxObject","_wxMenu",SwigwxMenuTowxObject},
10197 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
10198 { "_wxObject","_wxPanel",SwigwxPanelTowxObject},
10199 { "_wxObject","_wxWindow",SwigwxWindowTowxObject},
10200 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject},
10201 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject},
10202 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject},
10203 { "_signed_short","_WXTYPE",0},
10204 { "_signed_short","_short",0},
10205 { "_unsigned_char","_byte",0},
10206 { "_unsigned_int","_wxCoord",0},
10207 { "_unsigned_int","_wxPrintQuality",0},
10208 { "_unsigned_int","_time_t",0},
10209 { "_unsigned_int","_size_t",0},
10210 { "_unsigned_int","_uint",0},
10211 { "_unsigned_int","_wxWindowID",0},
10212 { "_unsigned_int","_int",0},
10213 { "_short","_WXTYPE",0},
10214 { "_short","_unsigned_short",0},
10215 { "_short","_signed_short",0},
10216 { "_wxWindowID","_wxCoord",0},
10217 { "_wxWindowID","_wxPrintQuality",0},
10218 { "_wxWindowID","_time_t",0},
10219 { "_wxWindowID","_size_t",0},
10220 { "_wxWindowID","_EBool",0},
10221 { "_wxWindowID","_uint",0},
10222 { "_wxWindowID","_int",0},
10223 { "_wxWindowID","_signed_int",0},
10224 { "_wxWindowID","_unsigned_int",0},
10225 { "_int","_wxCoord",0},
10226 { "_int","_wxPrintQuality",0},
10227 { "_int","_time_t",0},
10228 { "_int","_size_t",0},
10229 { "_int","_EBool",0},
10230 { "_int","_uint",0},
10231 { "_int","_wxWindowID",0},
10232 { "_int","_unsigned_int",0},
10233 { "_int","_signed_int",0},
10234 { "_time_t","_wxCoord",0},
10235 { "_time_t","_wxPrintQuality",0},
10236 { "_time_t","_unsigned_int",0},
10237 { "_time_t","_int",0},
10238 { "_time_t","_wxWindowID",0},
10239 { "_time_t","_uint",0},
10240 { "_time_t","_size_t",0},
10241 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
10242 { "_wxCoord","_int",0},
10243 { "_wxCoord","_signed_int",0},
10244 { "_wxCoord","_unsigned_int",0},
10245 { "_wxCoord","_wxWindowID",0},
10246 { "_wxCoord","_uint",0},
10247 { "_wxCoord","_EBool",0},
10248 { "_wxCoord","_size_t",0},
10249 { "_wxCoord","_time_t",0},
10250 { "_wxCoord","_wxPrintQuality",0},
10251 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
10252 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
10253 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
10254 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
10255 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
10256 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
10257 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
10258 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
10259 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
10260 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
10261 {0,0,0}};
10262
10263 static PyObject *SWIG_globals;
10264 #ifdef __cplusplus
10265 extern "C"
10266 #endif
10267 SWIGEXPORT(void) initwindowsc() {
10268 PyObject *m, *d;
10269 SWIG_globals = SWIG_newvarlink();
10270 m = Py_InitModule("windowsc", windowscMethods);
10271 d = PyModule_GetDict(m);
10272 {
10273 int i;
10274 for (i = 0; _swig_mapping[i].n1; i++)
10275 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10276 }
10277 }