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