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