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