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