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