]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/windows.cpp
Damn broken pipes.
[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 bool _arg5 = (bool ) TRUE;
3546 PyObject * _argo0 = 0;
3547 int tempbool5 = (int) TRUE;
3548 char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL };
3549
3550 self = self;
3551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
3552 return NULL;
3553 if (_argo0) {
3554 if (_argo0 == Py_None) { _arg0 = NULL; }
3555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
3557 return NULL;
3558 }
3559 }
3560 _arg5 = (bool ) tempbool5;
3561 {
3562 wxPy_BEGIN_ALLOW_THREADS;
3563 wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3564
3565 wxPy_END_ALLOW_THREADS;
3566 } Py_INCREF(Py_None);
3567 _resultobj = Py_None;
3568 return _resultobj;
3569 }
3570
3571 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
3572 static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
3573 PyObject * _resultobj;
3574 wxWindow * _arg0;
3575 int _arg1;
3576 int _arg2;
3577 bool _arg3 = (bool ) TRUE;
3578 PyObject * _argo0 = 0;
3579 int tempbool3 = (int) TRUE;
3580 char *_kwnames[] = { "self","orientation","pos","refresh", NULL };
3581
3582 self = self;
3583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3))
3584 return NULL;
3585 if (_argo0) {
3586 if (_argo0 == Py_None) { _arg0 = NULL; }
3587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
3589 return NULL;
3590 }
3591 }
3592 _arg3 = (bool ) tempbool3;
3593 {
3594 wxPy_BEGIN_ALLOW_THREADS;
3595 wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3);
3596
3597 wxPy_END_ALLOW_THREADS;
3598 } Py_INCREF(Py_None);
3599 _resultobj = Py_None;
3600 return _resultobj;
3601 }
3602
3603 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3604 static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
3605 PyObject * _resultobj;
3606 wxWindow * _arg0;
3607 int _arg1;
3608 int _arg2;
3609 int _arg3;
3610 int _arg4;
3611 int _arg5 = (int ) wxSIZE_AUTO;
3612 PyObject * _argo0 = 0;
3613 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
3614
3615 self = self;
3616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
3617 return NULL;
3618 if (_argo0) {
3619 if (_argo0 == Py_None) { _arg0 = NULL; }
3620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
3622 return NULL;
3623 }
3624 }
3625 {
3626 wxPy_BEGIN_ALLOW_THREADS;
3627 wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3628
3629 wxPy_END_ALLOW_THREADS;
3630 } Py_INCREF(Py_None);
3631 _resultobj = Py_None;
3632 return _resultobj;
3633 }
3634
3635 static void wxWindow_SetSize(wxWindow *self,const wxSize & size) {
3636 self->SetSize(size.x, size.y);
3637 }
3638 static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3639 PyObject * _resultobj;
3640 wxWindow * _arg0;
3641 wxSize * _arg1;
3642 PyObject * _argo0 = 0;
3643 wxSize temp;
3644 PyObject * _obj1 = 0;
3645 char *_kwnames[] = { "self","size", NULL };
3646
3647 self = self;
3648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1))
3649 return NULL;
3650 if (_argo0) {
3651 if (_argo0 == Py_None) { _arg0 = NULL; }
3652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
3654 return NULL;
3655 }
3656 }
3657 {
3658 _arg1 = &temp;
3659 if (! wxSize_helper(_obj1, &_arg1))
3660 return NULL;
3661 }
3662 {
3663 wxPy_BEGIN_ALLOW_THREADS;
3664 wxWindow_SetSize(_arg0,*_arg1);
3665
3666 wxPy_END_ALLOW_THREADS;
3667 } Py_INCREF(Py_None);
3668 _resultobj = Py_None;
3669 return _resultobj;
3670 }
3671
3672 static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) {
3673 self->SetSize(pos.x, pos.y, -1, -1);
3674 }
3675 static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3676 PyObject * _resultobj;
3677 wxWindow * _arg0;
3678 wxPoint * _arg1;
3679 PyObject * _argo0 = 0;
3680 wxPoint temp;
3681 PyObject * _obj1 = 0;
3682 char *_kwnames[] = { "self","pos", NULL };
3683
3684 self = self;
3685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1))
3686 return NULL;
3687 if (_argo0) {
3688 if (_argo0 == Py_None) { _arg0 = NULL; }
3689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
3691 return NULL;
3692 }
3693 }
3694 {
3695 _arg1 = &temp;
3696 if (! wxPoint_helper(_obj1, &_arg1))
3697 return NULL;
3698 }
3699 {
3700 wxPy_BEGIN_ALLOW_THREADS;
3701 wxWindow_SetPosition(_arg0,*_arg1);
3702
3703 wxPy_END_ALLOW_THREADS;
3704 } Py_INCREF(Py_None);
3705 _resultobj = Py_None;
3706 return _resultobj;
3707 }
3708
3709 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3710 static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
3711 PyObject * _resultobj;
3712 wxWindow * _arg0;
3713 int _arg1 = (int ) -1;
3714 int _arg2 = (int ) -1;
3715 int _arg3 = (int ) -1;
3716 int _arg4 = (int ) -1;
3717 int _arg5 = (int ) -1;
3718 int _arg6 = (int ) -1;
3719 PyObject * _argo0 = 0;
3720 char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL };
3721
3722 self = self;
3723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3724 return NULL;
3725 if (_argo0) {
3726 if (_argo0 == Py_None) { _arg0 = NULL; }
3727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
3729 return NULL;
3730 }
3731 }
3732 {
3733 wxPy_BEGIN_ALLOW_THREADS;
3734 wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3735
3736 wxPy_END_ALLOW_THREADS;
3737 } Py_INCREF(Py_None);
3738 _resultobj = Py_None;
3739 return _resultobj;
3740 }
3741
3742 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
3743 static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
3744 PyObject * _resultobj;
3745 wxWindow * _arg0;
3746 int _arg1;
3747 int _arg2;
3748 PyObject * _argo0 = 0;
3749 char *_kwnames[] = { "self","width","height", NULL };
3750
3751 self = self;
3752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
3753 return NULL;
3754 if (_argo0) {
3755 if (_argo0 == Py_None) { _arg0 = NULL; }
3756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
3758 return NULL;
3759 }
3760 }
3761 {
3762 wxPy_BEGIN_ALLOW_THREADS;
3763 wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2);
3764
3765 wxPy_END_ALLOW_THREADS;
3766 } Py_INCREF(Py_None);
3767 _resultobj = Py_None;
3768 return _resultobj;
3769 }
3770
3771 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
3772 static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3773 PyObject * _resultobj;
3774 wxWindow * _arg0;
3775 wxSize * _arg1;
3776 PyObject * _argo0 = 0;
3777 wxSize temp;
3778 PyObject * _obj1 = 0;
3779 char *_kwnames[] = { "self","size", NULL };
3780
3781 self = self;
3782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1))
3783 return NULL;
3784 if (_argo0) {
3785 if (_argo0 == Py_None) { _arg0 = NULL; }
3786 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3787 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
3788 return NULL;
3789 }
3790 }
3791 {
3792 _arg1 = &temp;
3793 if (! wxSize_helper(_obj1, &_arg1))
3794 return NULL;
3795 }
3796 {
3797 wxPy_BEGIN_ALLOW_THREADS;
3798 wxWindow_SetClientSize(_arg0,*_arg1);
3799
3800 wxPy_END_ALLOW_THREADS;
3801 } Py_INCREF(Py_None);
3802 _resultobj = Py_None;
3803 return _resultobj;
3804 }
3805
3806 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
3807 static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3808 PyObject * _resultobj;
3809 wxWindow * _arg0;
3810 wxCursor * _arg1;
3811 PyObject * _argo0 = 0;
3812 PyObject * _argo1 = 0;
3813 char *_kwnames[] = { "self","cursor", NULL };
3814
3815 self = self;
3816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1))
3817 return NULL;
3818 if (_argo0) {
3819 if (_argo0 == Py_None) { _arg0 = NULL; }
3820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
3822 return NULL;
3823 }
3824 }
3825 if (_argo1) {
3826 if (_argo1 == Py_None) { _arg1 = NULL; }
3827 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3828 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
3829 return NULL;
3830 }
3831 }
3832 {
3833 wxPy_BEGIN_ALLOW_THREADS;
3834 wxWindow_SetCursor(_arg0,*_arg1);
3835
3836 wxPy_END_ALLOW_THREADS;
3837 } Py_INCREF(Py_None);
3838 _resultobj = Py_None;
3839 return _resultobj;
3840 }
3841
3842 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
3843 static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3844 PyObject * _resultobj;
3845 wxWindow * _arg0;
3846 wxEvtHandler * _arg1;
3847 PyObject * _argo0 = 0;
3848 PyObject * _argo1 = 0;
3849 char *_kwnames[] = { "self","handler", NULL };
3850
3851 self = self;
3852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1))
3853 return NULL;
3854 if (_argo0) {
3855 if (_argo0 == Py_None) { _arg0 = NULL; }
3856 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3857 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
3858 return NULL;
3859 }
3860 }
3861 if (_argo1) {
3862 if (_argo1 == Py_None) { _arg1 = NULL; }
3863 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
3864 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
3865 return NULL;
3866 }
3867 }
3868 {
3869 wxPy_BEGIN_ALLOW_THREADS;
3870 wxWindow_SetEventHandler(_arg0,_arg1);
3871
3872 wxPy_END_ALLOW_THREADS;
3873 } Py_INCREF(Py_None);
3874 _resultobj = Py_None;
3875 return _resultobj;
3876 }
3877
3878 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
3879 static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject * _resultobj;
3881 wxWindow * _arg0;
3882 wxString * _arg1;
3883 PyObject * _argo0 = 0;
3884 PyObject * _obj1 = 0;
3885 char *_kwnames[] = { "self","title", NULL };
3886
3887 self = self;
3888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1))
3889 return NULL;
3890 if (_argo0) {
3891 if (_argo0 == Py_None) { _arg0 = NULL; }
3892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
3894 return NULL;
3895 }
3896 }
3897 {
3898 if (!PyString_Check(_obj1)) {
3899 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3900 return NULL;
3901 }
3902 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
3903 }
3904 {
3905 wxPy_BEGIN_ALLOW_THREADS;
3906 wxWindow_SetTitle(_arg0,*_arg1);
3907
3908 wxPy_END_ALLOW_THREADS;
3909 } Py_INCREF(Py_None);
3910 _resultobj = Py_None;
3911 {
3912 if (_obj1)
3913 delete _arg1;
3914 }
3915 return _resultobj;
3916 }
3917
3918 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
3919 static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
3920 PyObject * _resultobj;
3921 bool _result;
3922 wxWindow * _arg0;
3923 bool _arg1;
3924 PyObject * _argo0 = 0;
3925 int tempbool1;
3926 char *_kwnames[] = { "self","show", NULL };
3927
3928 self = self;
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1))
3930 return NULL;
3931 if (_argo0) {
3932 if (_argo0 == Py_None) { _arg0 = NULL; }
3933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
3935 return NULL;
3936 }
3937 }
3938 _arg1 = (bool ) tempbool1;
3939 {
3940 wxPy_BEGIN_ALLOW_THREADS;
3941 _result = (bool )wxWindow_Show(_arg0,_arg1);
3942
3943 wxPy_END_ALLOW_THREADS;
3944 } _resultobj = Py_BuildValue("i",_result);
3945 return _resultobj;
3946 }
3947
3948 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
3949 static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3950 PyObject * _resultobj;
3951 bool _result;
3952 wxWindow * _arg0;
3953 PyObject * _argo0 = 0;
3954 char *_kwnames[] = { "self", NULL };
3955
3956 self = self;
3957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0))
3958 return NULL;
3959 if (_argo0) {
3960 if (_argo0 == Py_None) { _arg0 = NULL; }
3961 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3962 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
3963 return NULL;
3964 }
3965 }
3966 {
3967 wxPy_BEGIN_ALLOW_THREADS;
3968 _result = (bool )wxWindow_TransferDataFromWindow(_arg0);
3969
3970 wxPy_END_ALLOW_THREADS;
3971 } _resultobj = Py_BuildValue("i",_result);
3972 return _resultobj;
3973 }
3974
3975 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
3976 static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3977 PyObject * _resultobj;
3978 bool _result;
3979 wxWindow * _arg0;
3980 PyObject * _argo0 = 0;
3981 char *_kwnames[] = { "self", NULL };
3982
3983 self = self;
3984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0))
3985 return NULL;
3986 if (_argo0) {
3987 if (_argo0 == Py_None) { _arg0 = NULL; }
3988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
3990 return NULL;
3991 }
3992 }
3993 {
3994 wxPy_BEGIN_ALLOW_THREADS;
3995 _result = (bool )wxWindow_TransferDataToWindow(_arg0);
3996
3997 wxPy_END_ALLOW_THREADS;
3998 } _resultobj = Py_BuildValue("i",_result);
3999 return _resultobj;
4000 }
4001
4002 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4003 static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
4004 PyObject * _resultobj;
4005 bool _result;
4006 wxWindow * _arg0;
4007 PyObject * _argo0 = 0;
4008 char *_kwnames[] = { "self", NULL };
4009
4010 self = self;
4011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0))
4012 return NULL;
4013 if (_argo0) {
4014 if (_argo0 == Py_None) { _arg0 = NULL; }
4015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4017 return NULL;
4018 }
4019 }
4020 {
4021 wxPy_BEGIN_ALLOW_THREADS;
4022 _result = (bool )wxWindow_Validate(_arg0);
4023
4024 wxPy_END_ALLOW_THREADS;
4025 } _resultobj = Py_BuildValue("i",_result);
4026 return _resultobj;
4027 }
4028
4029 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4030 static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
4031 PyObject * _resultobj;
4032 wxWindow * _arg0;
4033 int _arg1;
4034 int _arg2;
4035 PyObject * _argo0 = 0;
4036 char *_kwnames[] = { "self","x","y", NULL };
4037
4038 self = self;
4039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2))
4040 return NULL;
4041 if (_argo0) {
4042 if (_argo0 == Py_None) { _arg0 = NULL; }
4043 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4044 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4045 return NULL;
4046 }
4047 }
4048 {
4049 wxPy_BEGIN_ALLOW_THREADS;
4050 wxWindow_WarpPointer(_arg0,_arg1,_arg2);
4051
4052 wxPy_END_ALLOW_THREADS;
4053 } Py_INCREF(Py_None);
4054 _resultobj = Py_None;
4055 return _resultobj;
4056 }
4057
4058 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4059 static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4060 PyObject * _resultobj;
4061 wxPoint * _result;
4062 wxWindow * _arg0;
4063 wxPoint * _arg1;
4064 PyObject * _argo0 = 0;
4065 wxPoint temp;
4066 PyObject * _obj1 = 0;
4067 char *_kwnames[] = { "self","pt", NULL };
4068 char _ptemp[128];
4069
4070 self = self;
4071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1))
4072 return NULL;
4073 if (_argo0) {
4074 if (_argo0 == Py_None) { _arg0 = NULL; }
4075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4077 return NULL;
4078 }
4079 }
4080 {
4081 _arg1 = &temp;
4082 if (! wxPoint_helper(_obj1, &_arg1))
4083 return NULL;
4084 }
4085 {
4086 wxPy_BEGIN_ALLOW_THREADS;
4087 _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1));
4088
4089 wxPy_END_ALLOW_THREADS;
4090 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4091 _resultobj = Py_BuildValue("s",_ptemp);
4092 return _resultobj;
4093 }
4094
4095 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4096 static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4097 PyObject * _resultobj;
4098 wxSize * _result;
4099 wxWindow * _arg0;
4100 wxSize * _arg1;
4101 PyObject * _argo0 = 0;
4102 wxSize temp;
4103 PyObject * _obj1 = 0;
4104 char *_kwnames[] = { "self","sz", NULL };
4105 char _ptemp[128];
4106
4107 self = self;
4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1))
4109 return NULL;
4110 if (_argo0) {
4111 if (_argo0 == Py_None) { _arg0 = NULL; }
4112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4114 return NULL;
4115 }
4116 }
4117 {
4118 _arg1 = &temp;
4119 if (! wxSize_helper(_obj1, &_arg1))
4120 return NULL;
4121 }
4122 {
4123 wxPy_BEGIN_ALLOW_THREADS;
4124 _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1));
4125
4126 wxPy_END_ALLOW_THREADS;
4127 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4128 _resultobj = Py_BuildValue("s",_ptemp);
4129 return _resultobj;
4130 }
4131
4132 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4133 static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4134 PyObject * _resultobj;
4135 wxPoint * _result;
4136 wxWindow * _arg0;
4137 wxPoint * _arg1;
4138 PyObject * _argo0 = 0;
4139 wxPoint temp;
4140 PyObject * _obj1 = 0;
4141 char *_kwnames[] = { "self","pt", NULL };
4142 char _ptemp[128];
4143
4144 self = self;
4145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1))
4146 return NULL;
4147 if (_argo0) {
4148 if (_argo0 == Py_None) { _arg0 = NULL; }
4149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4151 return NULL;
4152 }
4153 }
4154 {
4155 _arg1 = &temp;
4156 if (! wxPoint_helper(_obj1, &_arg1))
4157 return NULL;
4158 }
4159 {
4160 wxPy_BEGIN_ALLOW_THREADS;
4161 _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1));
4162
4163 wxPy_END_ALLOW_THREADS;
4164 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4165 _resultobj = Py_BuildValue("s",_ptemp);
4166 return _resultobj;
4167 }
4168
4169 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4170 static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4171 PyObject * _resultobj;
4172 wxSize * _result;
4173 wxWindow * _arg0;
4174 wxSize * _arg1;
4175 PyObject * _argo0 = 0;
4176 wxSize temp;
4177 PyObject * _obj1 = 0;
4178 char *_kwnames[] = { "self","sz", NULL };
4179 char _ptemp[128];
4180
4181 self = self;
4182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1))
4183 return NULL;
4184 if (_argo0) {
4185 if (_argo0 == Py_None) { _arg0 = NULL; }
4186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4188 return NULL;
4189 }
4190 }
4191 {
4192 _arg1 = &temp;
4193 if (! wxSize_helper(_obj1, &_arg1))
4194 return NULL;
4195 }
4196 {
4197 wxPy_BEGIN_ALLOW_THREADS;
4198 _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1));
4199
4200 wxPy_END_ALLOW_THREADS;
4201 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4202 _resultobj = Py_BuildValue("s",_ptemp);
4203 return _resultobj;
4204 }
4205
4206 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4207 static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
4208 PyObject * _resultobj;
4209 wxWindow * _arg0;
4210 wxString * _arg1;
4211 PyObject * _argo0 = 0;
4212 PyObject * _obj1 = 0;
4213 char *_kwnames[] = { "self","tip", NULL };
4214
4215 self = self;
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1))
4217 return NULL;
4218 if (_argo0) {
4219 if (_argo0 == Py_None) { _arg0 = NULL; }
4220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4222 return NULL;
4223 }
4224 }
4225 {
4226 if (!PyString_Check(_obj1)) {
4227 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4228 return NULL;
4229 }
4230 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4231 }
4232 {
4233 wxPy_BEGIN_ALLOW_THREADS;
4234 wxWindow_SetToolTipString(_arg0,*_arg1);
4235
4236 wxPy_END_ALLOW_THREADS;
4237 } Py_INCREF(Py_None);
4238 _resultobj = Py_None;
4239 {
4240 if (_obj1)
4241 delete _arg1;
4242 }
4243 return _resultobj;
4244 }
4245
4246 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4247 static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4248 PyObject * _resultobj;
4249 wxWindow * _arg0;
4250 wxToolTip * _arg1;
4251 PyObject * _argo0 = 0;
4252 PyObject * _argo1 = 0;
4253 char *_kwnames[] = { "self","tooltip", NULL };
4254
4255 self = self;
4256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1))
4257 return NULL;
4258 if (_argo0) {
4259 if (_argo0 == Py_None) { _arg0 = NULL; }
4260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4262 return NULL;
4263 }
4264 }
4265 if (_argo1) {
4266 if (_argo1 == Py_None) { _arg1 = NULL; }
4267 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) {
4268 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4269 return NULL;
4270 }
4271 }
4272 {
4273 wxPy_BEGIN_ALLOW_THREADS;
4274 wxWindow_SetToolTip(_arg0,_arg1);
4275
4276 wxPy_END_ALLOW_THREADS;
4277 } Py_INCREF(Py_None);
4278 _resultobj = Py_None;
4279 return _resultobj;
4280 }
4281
4282 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4283 static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4284 PyObject * _resultobj;
4285 wxToolTip * _result;
4286 wxWindow * _arg0;
4287 PyObject * _argo0 = 0;
4288 char *_kwnames[] = { "self", NULL };
4289 char _ptemp[128];
4290
4291 self = self;
4292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
4293 return NULL;
4294 if (_argo0) {
4295 if (_argo0 == Py_None) { _arg0 = NULL; }
4296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4298 return NULL;
4299 }
4300 }
4301 {
4302 wxPy_BEGIN_ALLOW_THREADS;
4303 _result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
4304
4305 wxPy_END_ALLOW_THREADS;
4306 } if (_result) {
4307 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p");
4308 _resultobj = Py_BuildValue("s",_ptemp);
4309 } else {
4310 Py_INCREF(Py_None);
4311 _resultobj = Py_None;
4312 }
4313 return _resultobj;
4314 }
4315
4316 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4317 static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
4318 PyObject * _resultobj;
4319 wxWindow * _arg0;
4320 wxSizer * _arg1;
4321 PyObject * _argo0 = 0;
4322 PyObject * _argo1 = 0;
4323 char *_kwnames[] = { "self","sizer", NULL };
4324
4325 self = self;
4326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1))
4327 return NULL;
4328 if (_argo0) {
4329 if (_argo0 == Py_None) { _arg0 = NULL; }
4330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4332 return NULL;
4333 }
4334 }
4335 if (_argo1) {
4336 if (_argo1 == Py_None) { _arg1 = NULL; }
4337 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
4338 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4339 return NULL;
4340 }
4341 }
4342 {
4343 wxPy_BEGIN_ALLOW_THREADS;
4344 wxWindow_SetSizer(_arg0,_arg1);
4345
4346 wxPy_END_ALLOW_THREADS;
4347 } Py_INCREF(Py_None);
4348 _resultobj = Py_None;
4349 return _resultobj;
4350 }
4351
4352 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
4353 static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
4354 PyObject * _resultobj;
4355 wxValidator * _result;
4356 wxWindow * _arg0;
4357 PyObject * _argo0 = 0;
4358 char *_kwnames[] = { "self", NULL };
4359 char _ptemp[128];
4360
4361 self = self;
4362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0))
4363 return NULL;
4364 if (_argo0) {
4365 if (_argo0 == Py_None) { _arg0 = NULL; }
4366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
4368 return NULL;
4369 }
4370 }
4371 {
4372 wxPy_BEGIN_ALLOW_THREADS;
4373 _result = (wxValidator *)wxWindow_GetValidator(_arg0);
4374
4375 wxPy_END_ALLOW_THREADS;
4376 } if (_result) {
4377 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
4378 _resultobj = Py_BuildValue("s",_ptemp);
4379 } else {
4380 Py_INCREF(Py_None);
4381 _resultobj = Py_None;
4382 }
4383 return _resultobj;
4384 }
4385
4386 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
4387 static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
4388 PyObject * _resultobj;
4389 wxWindow * _arg0;
4390 wxValidator * _arg1;
4391 PyObject * _argo0 = 0;
4392 PyObject * _argo1 = 0;
4393 char *_kwnames[] = { "self","validator", NULL };
4394
4395 self = self;
4396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1))
4397 return NULL;
4398 if (_argo0) {
4399 if (_argo0 == Py_None) { _arg0 = NULL; }
4400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
4402 return NULL;
4403 }
4404 }
4405 if (_argo1) {
4406 if (_argo1 == Py_None) { _arg1 = NULL; }
4407 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) {
4408 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
4409 return NULL;
4410 }
4411 }
4412 {
4413 wxPy_BEGIN_ALLOW_THREADS;
4414 wxWindow_SetValidator(_arg0,*_arg1);
4415
4416 wxPy_END_ALLOW_THREADS;
4417 } Py_INCREF(Py_None);
4418 _resultobj = Py_None;
4419 return _resultobj;
4420 }
4421
4422 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
4423 static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4424 PyObject * _resultobj;
4425 wxWindow * _arg0;
4426 wxDropTarget * _arg1;
4427 PyObject * _argo0 = 0;
4428 PyObject * _argo1 = 0;
4429 char *_kwnames[] = { "self","target", NULL };
4430
4431 self = self;
4432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1))
4433 return NULL;
4434 if (_argo0) {
4435 if (_argo0 == Py_None) { _arg0 = NULL; }
4436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
4438 return NULL;
4439 }
4440 }
4441 if (_argo1) {
4442 if (_argo1 == Py_None) { _arg1 = NULL; }
4443 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) {
4444 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
4445 return NULL;
4446 }
4447 }
4448 {
4449 wxPy_BEGIN_ALLOW_THREADS;
4450 wxWindow_SetDropTarget(_arg0,_arg1);
4451
4452 wxPy_END_ALLOW_THREADS;
4453 } Py_INCREF(Py_None);
4454 _resultobj = Py_None;
4455 return _resultobj;
4456 }
4457
4458 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
4459 static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4460 PyObject * _resultobj;
4461 wxDropTarget * _result;
4462 wxWindow * _arg0;
4463 PyObject * _argo0 = 0;
4464 char *_kwnames[] = { "self", NULL };
4465 char _ptemp[128];
4466
4467 self = self;
4468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0))
4469 return NULL;
4470 if (_argo0) {
4471 if (_argo0 == Py_None) { _arg0 = NULL; }
4472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
4474 return NULL;
4475 }
4476 }
4477 {
4478 wxPy_BEGIN_ALLOW_THREADS;
4479 _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0);
4480
4481 wxPy_END_ALLOW_THREADS;
4482 } if (_result) {
4483 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p");
4484 _resultobj = Py_BuildValue("s",_ptemp);
4485 } else {
4486 Py_INCREF(Py_None);
4487 _resultobj = Py_None;
4488 }
4489 return _resultobj;
4490 }
4491
4492 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
4493 static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4494 PyObject * _resultobj;
4495 wxSize * _result;
4496 wxWindow * _arg0;
4497 PyObject * _argo0 = 0;
4498 char *_kwnames[] = { "self", NULL };
4499 char _ptemp[128];
4500
4501 self = self;
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0))
4503 return NULL;
4504 if (_argo0) {
4505 if (_argo0 == Py_None) { _arg0 = NULL; }
4506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
4508 return NULL;
4509 }
4510 }
4511 {
4512 wxPy_BEGIN_ALLOW_THREADS;
4513 _result = new wxSize (wxWindow_GetBestSize(_arg0));
4514
4515 wxPy_END_ALLOW_THREADS;
4516 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4517 _resultobj = Py_BuildValue("s",_ptemp);
4518 return _resultobj;
4519 }
4520
4521 static void *SwigwxPanelTowxWindow(void *ptr) {
4522 wxPanel *src;
4523 wxWindow *dest;
4524 src = (wxPanel *) ptr;
4525 dest = (wxWindow *) src;
4526 return (void *) dest;
4527 }
4528
4529 static void *SwigwxPanelTowxEvtHandler(void *ptr) {
4530 wxPanel *src;
4531 wxEvtHandler *dest;
4532 src = (wxPanel *) ptr;
4533 dest = (wxEvtHandler *) src;
4534 return (void *) dest;
4535 }
4536
4537 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4538 static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
4539 PyObject * _resultobj;
4540 wxPanel * _result;
4541 wxWindow * _arg0;
4542 wxWindowID _arg1;
4543 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
4544 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
4545 long _arg4 = (long ) wxTAB_TRAVERSAL;
4546 char * _arg5 = (char *) "panel";
4547 PyObject * _argo0 = 0;
4548 wxPoint temp;
4549 PyObject * _obj2 = 0;
4550 wxSize temp0;
4551 PyObject * _obj3 = 0;
4552 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
4553 char _ptemp[128];
4554
4555 self = self;
4556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
4557 return NULL;
4558 if (_argo0) {
4559 if (_argo0 == Py_None) { _arg0 = NULL; }
4560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
4562 return NULL;
4563 }
4564 }
4565 if (_obj2)
4566 {
4567 _arg2 = &temp;
4568 if (! wxPoint_helper(_obj2, &_arg2))
4569 return NULL;
4570 }
4571 if (_obj3)
4572 {
4573 _arg3 = &temp0;
4574 if (! wxSize_helper(_obj3, &_arg3))
4575 return NULL;
4576 }
4577 {
4578 wxPy_BEGIN_ALLOW_THREADS;
4579 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
4580
4581 wxPy_END_ALLOW_THREADS;
4582 } if (_result) {
4583 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
4584 _resultobj = Py_BuildValue("s",_ptemp);
4585 } else {
4586 Py_INCREF(Py_None);
4587 _resultobj = Py_None;
4588 }
4589 return _resultobj;
4590 }
4591
4592 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
4593 static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4594 PyObject * _resultobj;
4595 wxPanel * _arg0;
4596 PyObject * _argo0 = 0;
4597 char *_kwnames[] = { "self", NULL };
4598
4599 self = self;
4600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0))
4601 return NULL;
4602 if (_argo0) {
4603 if (_argo0 == Py_None) { _arg0 = NULL; }
4604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
4605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
4606 return NULL;
4607 }
4608 }
4609 {
4610 wxPy_BEGIN_ALLOW_THREADS;
4611 wxPanel_InitDialog(_arg0);
4612
4613 wxPy_END_ALLOW_THREADS;
4614 } Py_INCREF(Py_None);
4615 _resultobj = Py_None;
4616 return _resultobj;
4617 }
4618
4619 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
4620 static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4621 PyObject * _resultobj;
4622 wxButton * _result;
4623 wxPanel * _arg0;
4624 PyObject * _argo0 = 0;
4625 char *_kwnames[] = { "self", NULL };
4626 char _ptemp[128];
4627
4628 self = self;
4629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0))
4630 return NULL;
4631 if (_argo0) {
4632 if (_argo0 == Py_None) { _arg0 = NULL; }
4633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
4634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
4635 return NULL;
4636 }
4637 }
4638 {
4639 wxPy_BEGIN_ALLOW_THREADS;
4640 _result = (wxButton *)wxPanel_GetDefaultItem(_arg0);
4641
4642 wxPy_END_ALLOW_THREADS;
4643 } if (_result) {
4644 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
4645 _resultobj = Py_BuildValue("s",_ptemp);
4646 } else {
4647 Py_INCREF(Py_None);
4648 _resultobj = Py_None;
4649 }
4650 return _resultobj;
4651 }
4652
4653 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
4654 static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4655 PyObject * _resultobj;
4656 wxPanel * _arg0;
4657 wxButton * _arg1;
4658 PyObject * _argo0 = 0;
4659 PyObject * _argo1 = 0;
4660 char *_kwnames[] = { "self","btn", NULL };
4661
4662 self = self;
4663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1))
4664 return NULL;
4665 if (_argo0) {
4666 if (_argo0 == Py_None) { _arg0 = NULL; }
4667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
4668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
4669 return NULL;
4670 }
4671 }
4672 if (_argo1) {
4673 if (_argo1 == Py_None) { _arg1 = NULL; }
4674 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) {
4675 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
4676 return NULL;
4677 }
4678 }
4679 {
4680 wxPy_BEGIN_ALLOW_THREADS;
4681 wxPanel_SetDefaultItem(_arg0,_arg1);
4682
4683 wxPy_END_ALLOW_THREADS;
4684 } Py_INCREF(Py_None);
4685 _resultobj = Py_None;
4686 return _resultobj;
4687 }
4688
4689 static void *SwigwxDialogTowxPanel(void *ptr) {
4690 wxDialog *src;
4691 wxPanel *dest;
4692 src = (wxDialog *) ptr;
4693 dest = (wxPanel *) src;
4694 return (void *) dest;
4695 }
4696
4697 static void *SwigwxDialogTowxWindow(void *ptr) {
4698 wxDialog *src;
4699 wxWindow *dest;
4700 src = (wxDialog *) ptr;
4701 dest = (wxWindow *) src;
4702 return (void *) dest;
4703 }
4704
4705 static void *SwigwxDialogTowxEvtHandler(void *ptr) {
4706 wxDialog *src;
4707 wxEvtHandler *dest;
4708 src = (wxDialog *) ptr;
4709 dest = (wxEvtHandler *) src;
4710 return (void *) dest;
4711 }
4712
4713 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4714 static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4715 PyObject * _resultobj;
4716 wxDialog * _result;
4717 wxWindow * _arg0;
4718 wxWindowID _arg1;
4719 wxString * _arg2;
4720 wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition;
4721 wxSize * _arg4 = (wxSize *) &wxPyDefaultSize;
4722 long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE;
4723 char * _arg6 = (char *) "dialogBox";
4724 PyObject * _argo0 = 0;
4725 PyObject * _obj2 = 0;
4726 wxPoint temp;
4727 PyObject * _obj3 = 0;
4728 wxSize temp0;
4729 PyObject * _obj4 = 0;
4730 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
4731 char _ptemp[128];
4732
4733 self = self;
4734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
4735 return NULL;
4736 if (_argo0) {
4737 if (_argo0 == Py_None) { _arg0 = NULL; }
4738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
4740 return NULL;
4741 }
4742 }
4743 {
4744 if (!PyString_Check(_obj2)) {
4745 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4746 return NULL;
4747 }
4748 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
4749 }
4750 if (_obj3)
4751 {
4752 _arg3 = &temp;
4753 if (! wxPoint_helper(_obj3, &_arg3))
4754 return NULL;
4755 }
4756 if (_obj4)
4757 {
4758 _arg4 = &temp0;
4759 if (! wxSize_helper(_obj4, &_arg4))
4760 return NULL;
4761 }
4762 {
4763 wxPy_BEGIN_ALLOW_THREADS;
4764 _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
4765
4766 wxPy_END_ALLOW_THREADS;
4767 } if (_result) {
4768 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
4769 _resultobj = Py_BuildValue("s",_ptemp);
4770 } else {
4771 Py_INCREF(Py_None);
4772 _resultobj = Py_None;
4773 }
4774 {
4775 if (_obj2)
4776 delete _arg2;
4777 }
4778 return _resultobj;
4779 }
4780
4781 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
4782 static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
4783 PyObject * _resultobj;
4784 wxDialog * _arg0;
4785 int _arg1 = (int ) wxBOTH;
4786 PyObject * _argo0 = 0;
4787 char *_kwnames[] = { "self","direction", NULL };
4788
4789 self = self;
4790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1))
4791 return NULL;
4792 if (_argo0) {
4793 if (_argo0 == Py_None) { _arg0 = NULL; }
4794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
4796 return NULL;
4797 }
4798 }
4799 {
4800 wxPy_BEGIN_ALLOW_THREADS;
4801 wxDialog_Centre(_arg0,_arg1);
4802
4803 wxPy_END_ALLOW_THREADS;
4804 } Py_INCREF(Py_None);
4805 _resultobj = Py_None;
4806 return _resultobj;
4807 }
4808
4809 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
4810 static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4811 PyObject * _resultobj;
4812 wxDialog * _arg0;
4813 int _arg1;
4814 PyObject * _argo0 = 0;
4815 char *_kwnames[] = { "self","retCode", NULL };
4816
4817 self = self;
4818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1))
4819 return NULL;
4820 if (_argo0) {
4821 if (_argo0 == Py_None) { _arg0 = NULL; }
4822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
4824 return NULL;
4825 }
4826 }
4827 {
4828 wxPy_BEGIN_ALLOW_THREADS;
4829 wxDialog_EndModal(_arg0,_arg1);
4830
4831 wxPy_END_ALLOW_THREADS;
4832 } Py_INCREF(Py_None);
4833 _resultobj = Py_None;
4834 return _resultobj;
4835 }
4836
4837 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
4838 static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4839 PyObject * _resultobj;
4840 wxString * _result;
4841 wxDialog * _arg0;
4842 PyObject * _argo0 = 0;
4843 char *_kwnames[] = { "self", NULL };
4844
4845 self = self;
4846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0))
4847 return NULL;
4848 if (_argo0) {
4849 if (_argo0 == Py_None) { _arg0 = NULL; }
4850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
4852 return NULL;
4853 }
4854 }
4855 {
4856 wxPy_BEGIN_ALLOW_THREADS;
4857 _result = new wxString (wxDialog_GetTitle(_arg0));
4858
4859 wxPy_END_ALLOW_THREADS;
4860 }{
4861 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
4862 }
4863 {
4864 delete _result;
4865 }
4866 return _resultobj;
4867 }
4868
4869 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
4870 static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) {
4871 PyObject * _resultobj;
4872 wxDialog * _arg0;
4873 bool _arg1;
4874 PyObject * _argo0 = 0;
4875 int tempbool1;
4876 char *_kwnames[] = { "self","iconize", NULL };
4877
4878 self = self;
4879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1))
4880 return NULL;
4881 if (_argo0) {
4882 if (_argo0 == Py_None) { _arg0 = NULL; }
4883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
4885 return NULL;
4886 }
4887 }
4888 _arg1 = (bool ) tempbool1;
4889 {
4890 wxPy_BEGIN_ALLOW_THREADS;
4891 wxDialog_Iconize(_arg0,_arg1);
4892
4893 wxPy_END_ALLOW_THREADS;
4894 } Py_INCREF(Py_None);
4895 _resultobj = Py_None;
4896 return _resultobj;
4897 }
4898
4899 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
4900 static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) {
4901 PyObject * _resultobj;
4902 bool _result;
4903 wxDialog * _arg0;
4904 PyObject * _argo0 = 0;
4905 char *_kwnames[] = { "self", NULL };
4906
4907 self = self;
4908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0))
4909 return NULL;
4910 if (_argo0) {
4911 if (_argo0 == Py_None) { _arg0 = NULL; }
4912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
4914 return NULL;
4915 }
4916 }
4917 {
4918 wxPy_BEGIN_ALLOW_THREADS;
4919 _result = (bool )wxDialog_IsIconized(_arg0);
4920
4921 wxPy_END_ALLOW_THREADS;
4922 } _resultobj = Py_BuildValue("i",_result);
4923 return _resultobj;
4924 }
4925
4926 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
4927 static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4928 PyObject * _resultobj;
4929 wxDialog * _arg0;
4930 bool _arg1;
4931 PyObject * _argo0 = 0;
4932 int tempbool1;
4933 char *_kwnames[] = { "self","flag", NULL };
4934
4935 self = self;
4936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1))
4937 return NULL;
4938 if (_argo0) {
4939 if (_argo0 == Py_None) { _arg0 = NULL; }
4940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
4942 return NULL;
4943 }
4944 }
4945 _arg1 = (bool ) tempbool1;
4946 {
4947 wxPy_BEGIN_ALLOW_THREADS;
4948 wxDialog_SetModal(_arg0,_arg1);
4949
4950 wxPy_END_ALLOW_THREADS;
4951 } Py_INCREF(Py_None);
4952 _resultobj = Py_None;
4953 return _resultobj;
4954 }
4955
4956 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
4957 static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4958 PyObject * _resultobj;
4959 bool _result;
4960 wxDialog * _arg0;
4961 PyObject * _argo0 = 0;
4962 char *_kwnames[] = { "self", NULL };
4963
4964 self = self;
4965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0))
4966 return NULL;
4967 if (_argo0) {
4968 if (_argo0 == Py_None) { _arg0 = NULL; }
4969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
4971 return NULL;
4972 }
4973 }
4974 {
4975 wxPy_BEGIN_ALLOW_THREADS;
4976 _result = (bool )wxDialog_IsModal(_arg0);
4977
4978 wxPy_END_ALLOW_THREADS;
4979 } _resultobj = Py_BuildValue("i",_result);
4980 return _resultobj;
4981 }
4982
4983 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4984 static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4985 PyObject * _resultobj;
4986 wxDialog * _arg0;
4987 wxString * _arg1;
4988 PyObject * _argo0 = 0;
4989 PyObject * _obj1 = 0;
4990 char *_kwnames[] = { "self","title", NULL };
4991
4992 self = self;
4993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1))
4994 return NULL;
4995 if (_argo0) {
4996 if (_argo0 == Py_None) { _arg0 = NULL; }
4997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
4999 return NULL;
5000 }
5001 }
5002 {
5003 if (!PyString_Check(_obj1)) {
5004 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5005 return NULL;
5006 }
5007 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
5008 }
5009 {
5010 wxPy_BEGIN_ALLOW_THREADS;
5011 wxDialog_SetTitle(_arg0,*_arg1);
5012
5013 wxPy_END_ALLOW_THREADS;
5014 } Py_INCREF(Py_None);
5015 _resultobj = Py_None;
5016 {
5017 if (_obj1)
5018 delete _arg1;
5019 }
5020 return _resultobj;
5021 }
5022
5023 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5024 static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5025 PyObject * _resultobj;
5026 bool _result;
5027 wxDialog * _arg0;
5028 bool _arg1;
5029 PyObject * _argo0 = 0;
5030 int tempbool1;
5031 char *_kwnames[] = { "self","show", NULL };
5032
5033 self = self;
5034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1))
5035 return NULL;
5036 if (_argo0) {
5037 if (_argo0 == Py_None) { _arg0 = NULL; }
5038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
5040 return NULL;
5041 }
5042 }
5043 _arg1 = (bool ) tempbool1;
5044 {
5045 wxPy_BEGIN_ALLOW_THREADS;
5046 _result = (bool )wxDialog_Show(_arg0,_arg1);
5047
5048 wxPy_END_ALLOW_THREADS;
5049 } _resultobj = Py_BuildValue("i",_result);
5050 return _resultobj;
5051 }
5052
5053 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
5054 static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
5055 PyObject * _resultobj;
5056 int _result;
5057 wxDialog * _arg0;
5058 PyObject * _argo0 = 0;
5059 char *_kwnames[] = { "self", NULL };
5060
5061 self = self;
5062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0))
5063 return NULL;
5064 if (_argo0) {
5065 if (_argo0 == Py_None) { _arg0 = NULL; }
5066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
5068 return NULL;
5069 }
5070 }
5071 {
5072 wxPy_BEGIN_ALLOW_THREADS;
5073 _result = (int )wxDialog_ShowModal(_arg0);
5074
5075 wxPy_END_ALLOW_THREADS;
5076 } _resultobj = Py_BuildValue("i",_result);
5077 return _resultobj;
5078 }
5079
5080 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
5081 static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5082 PyObject * _resultobj;
5083 int _result;
5084 wxDialog * _arg0;
5085 PyObject * _argo0 = 0;
5086 char *_kwnames[] = { "self", NULL };
5087
5088 self = self;
5089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0))
5090 return NULL;
5091 if (_argo0) {
5092 if (_argo0 == Py_None) { _arg0 = NULL; }
5093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
5095 return NULL;
5096 }
5097 }
5098 {
5099 wxPy_BEGIN_ALLOW_THREADS;
5100 _result = (int )wxDialog_GetReturnCode(_arg0);
5101
5102 wxPy_END_ALLOW_THREADS;
5103 } _resultobj = Py_BuildValue("i",_result);
5104 return _resultobj;
5105 }
5106
5107 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
5108 static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5109 PyObject * _resultobj;
5110 wxDialog * _arg0;
5111 int _arg1;
5112 PyObject * _argo0 = 0;
5113 char *_kwnames[] = { "self","retCode", NULL };
5114
5115 self = self;
5116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1))
5117 return NULL;
5118 if (_argo0) {
5119 if (_argo0 == Py_None) { _arg0 = NULL; }
5120 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5121 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
5122 return NULL;
5123 }
5124 }
5125 {
5126 wxPy_BEGIN_ALLOW_THREADS;
5127 wxDialog_SetReturnCode(_arg0,_arg1);
5128
5129 wxPy_END_ALLOW_THREADS;
5130 } Py_INCREF(Py_None);
5131 _resultobj = Py_None;
5132 return _resultobj;
5133 }
5134
5135 static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
5136 wxScrolledWindow *src;
5137 wxPanel *dest;
5138 src = (wxScrolledWindow *) ptr;
5139 dest = (wxPanel *) src;
5140 return (void *) dest;
5141 }
5142
5143 static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
5144 wxScrolledWindow *src;
5145 wxWindow *dest;
5146 src = (wxScrolledWindow *) ptr;
5147 dest = (wxWindow *) src;
5148 return (void *) dest;
5149 }
5150
5151 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
5152 wxScrolledWindow *src;
5153 wxEvtHandler *dest;
5154 src = (wxScrolledWindow *) ptr;
5155 dest = (wxEvtHandler *) src;
5156 return (void *) dest;
5157 }
5158
5159 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5160 static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5161 PyObject * _resultobj;
5162 wxScrolledWindow * _result;
5163 wxWindow * _arg0;
5164 wxWindowID _arg1 = (wxWindowID ) -1;
5165 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
5166 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
5167 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
5168 char * _arg5 = (char *) "scrolledWindow";
5169 PyObject * _argo0 = 0;
5170 wxPoint temp;
5171 PyObject * _obj2 = 0;
5172 wxSize temp0;
5173 PyObject * _obj3 = 0;
5174 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
5175 char _ptemp[128];
5176
5177 self = self;
5178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
5179 return NULL;
5180 if (_argo0) {
5181 if (_argo0 == Py_None) { _arg0 = NULL; }
5182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
5184 return NULL;
5185 }
5186 }
5187 if (_obj2)
5188 {
5189 _arg2 = &temp;
5190 if (! wxPoint_helper(_obj2, &_arg2))
5191 return NULL;
5192 }
5193 if (_obj3)
5194 {
5195 _arg3 = &temp0;
5196 if (! wxSize_helper(_obj3, &_arg3))
5197 return NULL;
5198 }
5199 {
5200 wxPy_BEGIN_ALLOW_THREADS;
5201 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
5202
5203 wxPy_END_ALLOW_THREADS;
5204 } if (_result) {
5205 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
5206 _resultobj = Py_BuildValue("s",_ptemp);
5207 } else {
5208 Py_INCREF(Py_None);
5209 _resultobj = Py_None;
5210 }
5211 return _resultobj;
5212 }
5213
5214 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
5215 static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
5216 PyObject * _resultobj;
5217 wxScrolledWindow * _arg0;
5218 bool _arg1;
5219 bool _arg2;
5220 PyObject * _argo0 = 0;
5221 int tempbool1;
5222 int tempbool2;
5223 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
5224
5225 self = self;
5226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
5227 return NULL;
5228 if (_argo0) {
5229 if (_argo0 == Py_None) { _arg0 = NULL; }
5230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
5232 return NULL;
5233 }
5234 }
5235 _arg1 = (bool ) tempbool1;
5236 _arg2 = (bool ) tempbool2;
5237 {
5238 wxPy_BEGIN_ALLOW_THREADS;
5239 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
5240
5241 wxPy_END_ALLOW_THREADS;
5242 } Py_INCREF(Py_None);
5243 _resultobj = Py_None;
5244 return _resultobj;
5245 }
5246
5247 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
5248 static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
5249 PyObject * _resultobj;
5250 wxScrolledWindow * _arg0;
5251 int * _arg1;
5252 int temp;
5253 int * _arg2;
5254 int temp0;
5255 PyObject * _argo0 = 0;
5256 char *_kwnames[] = { "self", NULL };
5257
5258 self = self;
5259 {
5260 _arg1 = &temp;
5261 }
5262 {
5263 _arg2 = &temp0;
5264 }
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
5266 return NULL;
5267 if (_argo0) {
5268 if (_argo0 == Py_None) { _arg0 = NULL; }
5269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
5271 return NULL;
5272 }
5273 }
5274 {
5275 wxPy_BEGIN_ALLOW_THREADS;
5276 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
5277
5278 wxPy_END_ALLOW_THREADS;
5279 } Py_INCREF(Py_None);
5280 _resultobj = Py_None;
5281 {
5282 PyObject *o;
5283 o = PyInt_FromLong((long) (*_arg1));
5284 _resultobj = t_output_helper(_resultobj, o);
5285 }
5286 {
5287 PyObject *o;
5288 o = PyInt_FromLong((long) (*_arg2));
5289 _resultobj = t_output_helper(_resultobj, o);
5290 }
5291 return _resultobj;
5292 }
5293
5294 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
5295 static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5296 PyObject * _resultobj;
5297 wxScrolledWindow * _arg0;
5298 int * _arg1;
5299 int temp;
5300 int * _arg2;
5301 int temp0;
5302 PyObject * _argo0 = 0;
5303 char *_kwnames[] = { "self", NULL };
5304
5305 self = self;
5306 {
5307 _arg1 = &temp;
5308 }
5309 {
5310 _arg2 = &temp0;
5311 }
5312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0))
5313 return NULL;
5314 if (_argo0) {
5315 if (_argo0 == Py_None) { _arg0 = NULL; }
5316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
5318 return NULL;
5319 }
5320 }
5321 {
5322 wxPy_BEGIN_ALLOW_THREADS;
5323 wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2);
5324
5325 wxPy_END_ALLOW_THREADS;
5326 } Py_INCREF(Py_None);
5327 _resultobj = Py_None;
5328 {
5329 PyObject *o;
5330 o = PyInt_FromLong((long) (*_arg1));
5331 _resultobj = t_output_helper(_resultobj, o);
5332 }
5333 {
5334 PyObject *o;
5335 o = PyInt_FromLong((long) (*_arg2));
5336 _resultobj = t_output_helper(_resultobj, o);
5337 }
5338 return _resultobj;
5339 }
5340
5341 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
5342 static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject * _resultobj;
5344 bool _result;
5345 wxScrolledWindow * _arg0;
5346 PyObject * _argo0 = 0;
5347 char *_kwnames[] = { "self", NULL };
5348
5349 self = self;
5350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
5351 return NULL;
5352 if (_argo0) {
5353 if (_argo0 == Py_None) { _arg0 = NULL; }
5354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
5356 return NULL;
5357 }
5358 }
5359 {
5360 wxPy_BEGIN_ALLOW_THREADS;
5361 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
5362
5363 wxPy_END_ALLOW_THREADS;
5364 } _resultobj = Py_BuildValue("i",_result);
5365 return _resultobj;
5366 }
5367
5368 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
5369 static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5370 PyObject * _resultobj;
5371 wxScrolledWindow * _arg0;
5372 wxDC * _arg1;
5373 PyObject * _argo0 = 0;
5374 PyObject * _argo1 = 0;
5375 char *_kwnames[] = { "self","dc", NULL };
5376
5377 self = self;
5378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
5379 return NULL;
5380 if (_argo0) {
5381 if (_argo0 == Py_None) { _arg0 = NULL; }
5382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
5384 return NULL;
5385 }
5386 }
5387 if (_argo1) {
5388 if (_argo1 == Py_None) { _arg1 = NULL; }
5389 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
5390 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
5391 return NULL;
5392 }
5393 }
5394 {
5395 wxPy_BEGIN_ALLOW_THREADS;
5396 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
5397
5398 wxPy_END_ALLOW_THREADS;
5399 } Py_INCREF(Py_None);
5400 _resultobj = Py_None;
5401 return _resultobj;
5402 }
5403
5404 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
5405 static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
5406 PyObject * _resultobj;
5407 wxScrolledWindow * _arg0;
5408 int _arg1;
5409 int _arg2;
5410 PyObject * _argo0 = 0;
5411 char *_kwnames[] = { "self","x","y", NULL };
5412
5413 self = self;
5414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
5415 return NULL;
5416 if (_argo0) {
5417 if (_argo0 == Py_None) { _arg0 = NULL; }
5418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
5420 return NULL;
5421 }
5422 }
5423 {
5424 wxPy_BEGIN_ALLOW_THREADS;
5425 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
5426
5427 wxPy_END_ALLOW_THREADS;
5428 } Py_INCREF(Py_None);
5429 _resultobj = Py_None;
5430 return _resultobj;
5431 }
5432
5433 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5434 static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
5435 PyObject * _resultobj;
5436 wxScrolledWindow * _arg0;
5437 int _arg1;
5438 int _arg2;
5439 int _arg3;
5440 int _arg4;
5441 int _arg5 = (int ) 0;
5442 int _arg6 = (int ) 0;
5443 PyObject * _argo0 = 0;
5444 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos", NULL };
5445
5446 self = self;
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|ii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5448 return NULL;
5449 if (_argo0) {
5450 if (_argo0 == Py_None) { _arg0 = NULL; }
5451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
5453 return NULL;
5454 }
5455 }
5456 {
5457 wxPy_BEGIN_ALLOW_THREADS;
5458 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5459
5460 wxPy_END_ALLOW_THREADS;
5461 } Py_INCREF(Py_None);
5462 _resultobj = Py_None;
5463 return _resultobj;
5464 }
5465
5466 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
5467 static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
5468 PyObject * _resultobj;
5469 wxScrolledWindow * _arg0;
5470 int * _arg1;
5471 int temp;
5472 int * _arg2;
5473 int temp0;
5474 PyObject * _argo0 = 0;
5475 char *_kwnames[] = { "self", NULL };
5476
5477 self = self;
5478 {
5479 _arg1 = &temp;
5480 }
5481 {
5482 _arg2 = &temp0;
5483 }
5484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0))
5485 return NULL;
5486 if (_argo0) {
5487 if (_argo0 == Py_None) { _arg0 = NULL; }
5488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
5490 return NULL;
5491 }
5492 }
5493 {
5494 wxPy_BEGIN_ALLOW_THREADS;
5495 wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2);
5496
5497 wxPy_END_ALLOW_THREADS;
5498 } Py_INCREF(Py_None);
5499 _resultobj = Py_None;
5500 {
5501 PyObject *o;
5502 o = PyInt_FromLong((long) (*_arg1));
5503 _resultobj = t_output_helper(_resultobj, o);
5504 }
5505 {
5506 PyObject *o;
5507 o = PyInt_FromLong((long) (*_arg2));
5508 _resultobj = t_output_helper(_resultobj, o);
5509 }
5510 return _resultobj;
5511 }
5512
5513 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5514 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5515 PyObject * _resultobj;
5516 wxScrolledWindow * _arg0;
5517 int _arg1;
5518 int _arg2;
5519 int * _arg3;
5520 int temp;
5521 int * _arg4;
5522 int temp0;
5523 PyObject * _argo0 = 0;
5524 char *_kwnames[] = { "self","x","y", NULL };
5525
5526 self = self;
5527 {
5528 _arg3 = &temp;
5529 }
5530 {
5531 _arg4 = &temp0;
5532 }
5533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
5534 return NULL;
5535 if (_argo0) {
5536 if (_argo0 == Py_None) { _arg0 = NULL; }
5537 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
5539 return NULL;
5540 }
5541 }
5542 {
5543 wxPy_BEGIN_ALLOW_THREADS;
5544 wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
5545
5546 wxPy_END_ALLOW_THREADS;
5547 } Py_INCREF(Py_None);
5548 _resultobj = Py_None;
5549 {
5550 PyObject *o;
5551 o = PyInt_FromLong((long) (*_arg3));
5552 _resultobj = t_output_helper(_resultobj, o);
5553 }
5554 {
5555 PyObject *o;
5556 o = PyInt_FromLong((long) (*_arg4));
5557 _resultobj = t_output_helper(_resultobj, o);
5558 }
5559 return _resultobj;
5560 }
5561
5562 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5563 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5564 PyObject * _resultobj;
5565 wxScrolledWindow * _arg0;
5566 int _arg1;
5567 int _arg2;
5568 int * _arg3;
5569 int temp;
5570 int * _arg4;
5571 int temp0;
5572 PyObject * _argo0 = 0;
5573 char *_kwnames[] = { "self","x","y", NULL };
5574
5575 self = self;
5576 {
5577 _arg3 = &temp;
5578 }
5579 {
5580 _arg4 = &temp0;
5581 }
5582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
5583 return NULL;
5584 if (_argo0) {
5585 if (_argo0 == Py_None) { _arg0 = NULL; }
5586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
5588 return NULL;
5589 }
5590 }
5591 {
5592 wxPy_BEGIN_ALLOW_THREADS;
5593 wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
5594
5595 wxPy_END_ALLOW_THREADS;
5596 } Py_INCREF(Py_None);
5597 _resultobj = Py_None;
5598 {
5599 PyObject *o;
5600 o = PyInt_FromLong((long) (*_arg3));
5601 _resultobj = t_output_helper(_resultobj, o);
5602 }
5603 {
5604 PyObject *o;
5605 o = PyInt_FromLong((long) (*_arg4));
5606 _resultobj = t_output_helper(_resultobj, o);
5607 }
5608 return _resultobj;
5609 }
5610
5611 static void *SwigwxMenuTowxEvtHandler(void *ptr) {
5612 wxMenu *src;
5613 wxEvtHandler *dest;
5614 src = (wxMenu *) ptr;
5615 dest = (wxEvtHandler *) src;
5616 return (void *) dest;
5617 }
5618
5619 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
5620 static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5621 PyObject * _resultobj;
5622 wxMenu * _result;
5623 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
5624 long _arg1 = (long ) 0;
5625 PyObject * _obj0 = 0;
5626 char *_kwnames[] = { "title","style", NULL };
5627 char _ptemp[128];
5628
5629 self = self;
5630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
5631 return NULL;
5632 if (_obj0)
5633 {
5634 if (!PyString_Check(_obj0)) {
5635 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5636 return NULL;
5637 }
5638 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
5639 }
5640 {
5641 wxPy_BEGIN_ALLOW_THREADS;
5642 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
5643
5644 wxPy_END_ALLOW_THREADS;
5645 } if (_result) {
5646 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
5647 _resultobj = Py_BuildValue("s",_ptemp);
5648 } else {
5649 Py_INCREF(Py_None);
5650 _resultobj = Py_None;
5651 }
5652 {
5653 if (_obj0)
5654 delete _arg0;
5655 }
5656 return _resultobj;
5657 }
5658
5659 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5660 static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5661 PyObject * _resultobj;
5662 wxMenu * _arg0;
5663 int _arg1;
5664 wxString * _arg2;
5665 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
5666 int _arg4 = (int ) FALSE;
5667 PyObject * _argo0 = 0;
5668 PyObject * _obj2 = 0;
5669 PyObject * _obj3 = 0;
5670 char *_kwnames[] = { "self","id","item","helpString","checkable", NULL };
5671
5672 self = self;
5673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
5674 return NULL;
5675 if (_argo0) {
5676 if (_argo0 == Py_None) { _arg0 = NULL; }
5677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
5679 return NULL;
5680 }
5681 }
5682 {
5683 if (!PyString_Check(_obj2)) {
5684 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5685 return NULL;
5686 }
5687 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5688 }
5689 if (_obj3)
5690 {
5691 if (!PyString_Check(_obj3)) {
5692 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5693 return NULL;
5694 }
5695 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
5696 }
5697 {
5698 wxPy_BEGIN_ALLOW_THREADS;
5699 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
5700
5701 wxPy_END_ALLOW_THREADS;
5702 } Py_INCREF(Py_None);
5703 _resultobj = Py_None;
5704 {
5705 if (_obj2)
5706 delete _arg2;
5707 }
5708 {
5709 if (_obj3)
5710 delete _arg3;
5711 }
5712 return _resultobj;
5713 }
5714
5715 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5716 static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5717 PyObject * _resultobj;
5718 wxMenu * _arg0;
5719 int _arg1;
5720 wxString * _arg2;
5721 wxMenu * _arg3;
5722 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
5723 PyObject * _argo0 = 0;
5724 PyObject * _obj2 = 0;
5725 PyObject * _argo3 = 0;
5726 PyObject * _obj4 = 0;
5727 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
5728
5729 self = self;
5730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
5731 return NULL;
5732 if (_argo0) {
5733 if (_argo0 == Py_None) { _arg0 = NULL; }
5734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
5736 return NULL;
5737 }
5738 }
5739 {
5740 if (!PyString_Check(_obj2)) {
5741 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5742 return NULL;
5743 }
5744 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5745 }
5746 if (_argo3) {
5747 if (_argo3 == Py_None) { _arg3 = NULL; }
5748 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
5749 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
5750 return NULL;
5751 }
5752 }
5753 if (_obj4)
5754 {
5755 if (!PyString_Check(_obj4)) {
5756 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5757 return NULL;
5758 }
5759 _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4));
5760 }
5761 {
5762 wxPy_BEGIN_ALLOW_THREADS;
5763 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
5764
5765 wxPy_END_ALLOW_THREADS;
5766 } Py_INCREF(Py_None);
5767 _resultobj = Py_None;
5768 {
5769 if (_obj2)
5770 delete _arg2;
5771 }
5772 {
5773 if (_obj4)
5774 delete _arg4;
5775 }
5776 return _resultobj;
5777 }
5778
5779 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
5780 static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5781 PyObject * _resultobj;
5782 wxMenu * _arg0;
5783 wxMenuItem * _arg1;
5784 PyObject * _argo0 = 0;
5785 PyObject * _argo1 = 0;
5786 char *_kwnames[] = { "self","item", NULL };
5787
5788 self = self;
5789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
5790 return NULL;
5791 if (_argo0) {
5792 if (_argo0 == Py_None) { _arg0 = NULL; }
5793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
5795 return NULL;
5796 }
5797 }
5798 if (_argo1) {
5799 if (_argo1 == Py_None) { _arg1 = NULL; }
5800 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
5801 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
5802 return NULL;
5803 }
5804 }
5805 {
5806 wxPy_BEGIN_ALLOW_THREADS;
5807 wxMenu_AppendItem(_arg0,_arg1);
5808
5809 wxPy_END_ALLOW_THREADS;
5810 } Py_INCREF(Py_None);
5811 _resultobj = Py_None;
5812 return _resultobj;
5813 }
5814
5815 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
5816 static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
5817 PyObject * _resultobj;
5818 wxMenu * _arg0;
5819 PyObject * _argo0 = 0;
5820 char *_kwnames[] = { "self", NULL };
5821
5822 self = self;
5823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
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_AppendSeparator. Expected _wxMenu_p.");
5829 return NULL;
5830 }
5831 }
5832 {
5833 wxPy_BEGIN_ALLOW_THREADS;
5834 wxMenu_AppendSeparator(_arg0);
5835
5836 wxPy_END_ALLOW_THREADS;
5837 } Py_INCREF(Py_None);
5838 _resultobj = Py_None;
5839 return _resultobj;
5840 }
5841
5842 #define wxMenu_Break(_swigobj) (_swigobj->Break())
5843 static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
5844 PyObject * _resultobj;
5845 wxMenu * _arg0;
5846 PyObject * _argo0 = 0;
5847 char *_kwnames[] = { "self", NULL };
5848
5849 self = self;
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
5851 return NULL;
5852 if (_argo0) {
5853 if (_argo0 == Py_None) { _arg0 = NULL; }
5854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
5856 return NULL;
5857 }
5858 }
5859 {
5860 wxPy_BEGIN_ALLOW_THREADS;
5861 wxMenu_Break(_arg0);
5862
5863 wxPy_END_ALLOW_THREADS;
5864 } Py_INCREF(Py_None);
5865 _resultobj = Py_None;
5866 return _resultobj;
5867 }
5868
5869 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
5870 static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
5871 PyObject * _resultobj;
5872 wxMenu * _arg0;
5873 int _arg1;
5874 bool _arg2;
5875 PyObject * _argo0 = 0;
5876 int tempbool2;
5877 char *_kwnames[] = { "self","id","flag", NULL };
5878
5879 self = self;
5880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
5881 return NULL;
5882 if (_argo0) {
5883 if (_argo0 == Py_None) { _arg0 = NULL; }
5884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
5886 return NULL;
5887 }
5888 }
5889 _arg2 = (bool ) tempbool2;
5890 {
5891 wxPy_BEGIN_ALLOW_THREADS;
5892 wxMenu_Check(_arg0,_arg1,_arg2);
5893
5894 wxPy_END_ALLOW_THREADS;
5895 } Py_INCREF(Py_None);
5896 _resultobj = Py_None;
5897 return _resultobj;
5898 }
5899
5900 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
5901 static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
5902 PyObject * _resultobj;
5903 bool _result;
5904 wxMenu * _arg0;
5905 int _arg1;
5906 PyObject * _argo0 = 0;
5907 char *_kwnames[] = { "self","id", NULL };
5908
5909 self = self;
5910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
5911 return NULL;
5912 if (_argo0) {
5913 if (_argo0 == Py_None) { _arg0 = NULL; }
5914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
5916 return NULL;
5917 }
5918 }
5919 {
5920 wxPy_BEGIN_ALLOW_THREADS;
5921 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
5922
5923 wxPy_END_ALLOW_THREADS;
5924 } _resultobj = Py_BuildValue("i",_result);
5925 return _resultobj;
5926 }
5927
5928 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
5929 static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
5930 PyObject * _resultobj;
5931 wxMenu * _arg0;
5932 int _arg1;
5933 bool _arg2;
5934 PyObject * _argo0 = 0;
5935 int tempbool2;
5936 char *_kwnames[] = { "self","id","enable", NULL };
5937
5938 self = self;
5939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
5940 return NULL;
5941 if (_argo0) {
5942 if (_argo0 == Py_None) { _arg0 = NULL; }
5943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
5945 return NULL;
5946 }
5947 }
5948 _arg2 = (bool ) tempbool2;
5949 {
5950 wxPy_BEGIN_ALLOW_THREADS;
5951 wxMenu_Enable(_arg0,_arg1,_arg2);
5952
5953 wxPy_END_ALLOW_THREADS;
5954 } Py_INCREF(Py_None);
5955 _resultobj = Py_None;
5956 return _resultobj;
5957 }
5958
5959 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
5960 static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
5961 PyObject * _resultobj;
5962 bool _result;
5963 wxMenu * _arg0;
5964 int _arg1;
5965 PyObject * _argo0 = 0;
5966 char *_kwnames[] = { "self","id", NULL };
5967
5968 self = self;
5969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
5970 return NULL;
5971 if (_argo0) {
5972 if (_argo0 == Py_None) { _arg0 = NULL; }
5973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
5975 return NULL;
5976 }
5977 }
5978 {
5979 wxPy_BEGIN_ALLOW_THREADS;
5980 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
5981
5982 wxPy_END_ALLOW_THREADS;
5983 } _resultobj = Py_BuildValue("i",_result);
5984 return _resultobj;
5985 }
5986
5987 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
5988 static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5989 PyObject * _resultobj;
5990 int _result;
5991 wxMenu * _arg0;
5992 wxString * _arg1;
5993 PyObject * _argo0 = 0;
5994 PyObject * _obj1 = 0;
5995 char *_kwnames[] = { "self","itemString", NULL };
5996
5997 self = self;
5998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
5999 return NULL;
6000 if (_argo0) {
6001 if (_argo0 == Py_None) { _arg0 = NULL; }
6002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
6004 return NULL;
6005 }
6006 }
6007 {
6008 if (!PyString_Check(_obj1)) {
6009 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6010 return NULL;
6011 }
6012 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
6013 }
6014 {
6015 wxPy_BEGIN_ALLOW_THREADS;
6016 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
6017
6018 wxPy_END_ALLOW_THREADS;
6019 } _resultobj = Py_BuildValue("i",_result);
6020 {
6021 if (_obj1)
6022 delete _arg1;
6023 }
6024 return _resultobj;
6025 }
6026
6027 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
6028 static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
6029 PyObject * _resultobj;
6030 wxMenuItem * _result;
6031 wxMenu * _arg0;
6032 int _arg1;
6033 PyObject * _argo0 = 0;
6034 char *_kwnames[] = { "self","id", NULL };
6035 char _ptemp[128];
6036
6037 self = self;
6038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1))
6039 return NULL;
6040 if (_argo0) {
6041 if (_argo0 == Py_None) { _arg0 = NULL; }
6042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
6044 return NULL;
6045 }
6046 }
6047 {
6048 wxPy_BEGIN_ALLOW_THREADS;
6049 _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1);
6050
6051 wxPy_END_ALLOW_THREADS;
6052 } if (_result) {
6053 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
6054 _resultobj = Py_BuildValue("s",_ptemp);
6055 } else {
6056 Py_INCREF(Py_None);
6057 _resultobj = Py_None;
6058 }
6059 return _resultobj;
6060 }
6061
6062 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
6063 static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6064 PyObject * _resultobj;
6065 wxString * _result;
6066 wxMenu * _arg0;
6067 PyObject * _argo0 = 0;
6068 char *_kwnames[] = { "self", NULL };
6069
6070 self = self;
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
6072 return NULL;
6073 if (_argo0) {
6074 if (_argo0 == Py_None) { _arg0 = NULL; }
6075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
6077 return NULL;
6078 }
6079 }
6080 {
6081 wxPy_BEGIN_ALLOW_THREADS;
6082 _result = new wxString (wxMenu_GetTitle(_arg0));
6083
6084 wxPy_END_ALLOW_THREADS;
6085 }{
6086 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6087 }
6088 {
6089 delete _result;
6090 }
6091 return _resultobj;
6092 }
6093
6094 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
6095 static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6096 PyObject * _resultobj;
6097 wxMenu * _arg0;
6098 wxString * _arg1;
6099 PyObject * _argo0 = 0;
6100 PyObject * _obj1 = 0;
6101 char *_kwnames[] = { "self","title", NULL };
6102
6103 self = self;
6104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
6105 return NULL;
6106 if (_argo0) {
6107 if (_argo0 == Py_None) { _arg0 = NULL; }
6108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
6110 return NULL;
6111 }
6112 }
6113 {
6114 if (!PyString_Check(_obj1)) {
6115 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6116 return NULL;
6117 }
6118 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
6119 }
6120 {
6121 wxPy_BEGIN_ALLOW_THREADS;
6122 wxMenu_SetTitle(_arg0,*_arg1);
6123
6124 wxPy_END_ALLOW_THREADS;
6125 } Py_INCREF(Py_None);
6126 _resultobj = Py_None;
6127 {
6128 if (_obj1)
6129 delete _arg1;
6130 }
6131 return _resultobj;
6132 }
6133
6134 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
6135 static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6136 PyObject * _resultobj;
6137 wxString * _result;
6138 wxMenu * _arg0;
6139 int _arg1;
6140 PyObject * _argo0 = 0;
6141 char *_kwnames[] = { "self","id", NULL };
6142
6143 self = self;
6144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
6145 return NULL;
6146 if (_argo0) {
6147 if (_argo0 == Py_None) { _arg0 = NULL; }
6148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
6150 return NULL;
6151 }
6152 }
6153 {
6154 wxPy_BEGIN_ALLOW_THREADS;
6155 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
6156
6157 wxPy_END_ALLOW_THREADS;
6158 }{
6159 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6160 }
6161 {
6162 delete _result;
6163 }
6164 return _resultobj;
6165 }
6166
6167 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
6168 static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6169 PyObject * _resultobj;
6170 wxMenu * _arg0;
6171 int _arg1;
6172 wxString * _arg2;
6173 PyObject * _argo0 = 0;
6174 PyObject * _obj2 = 0;
6175 char *_kwnames[] = { "self","id","label", NULL };
6176
6177 self = self;
6178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
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_SetLabel. Expected _wxMenu_p.");
6184 return NULL;
6185 }
6186 }
6187 {
6188 if (!PyString_Check(_obj2)) {
6189 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6190 return NULL;
6191 }
6192 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6193 }
6194 {
6195 wxPy_BEGIN_ALLOW_THREADS;
6196 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
6197
6198 wxPy_END_ALLOW_THREADS;
6199 } Py_INCREF(Py_None);
6200 _resultobj = Py_None;
6201 {
6202 if (_obj2)
6203 delete _arg2;
6204 }
6205 return _resultobj;
6206 }
6207
6208 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
6209 static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
6210 PyObject * _resultobj;
6211 wxString * _result;
6212 wxMenu * _arg0;
6213 int _arg1;
6214 PyObject * _argo0 = 0;
6215 char *_kwnames[] = { "self","id", NULL };
6216
6217 self = self;
6218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
6219 return NULL;
6220 if (_argo0) {
6221 if (_argo0 == Py_None) { _arg0 = NULL; }
6222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
6224 return NULL;
6225 }
6226 }
6227 {
6228 wxPy_BEGIN_ALLOW_THREADS;
6229 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
6230
6231 wxPy_END_ALLOW_THREADS;
6232 }{
6233 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6234 }
6235 {
6236 delete _result;
6237 }
6238 return _resultobj;
6239 }
6240
6241 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
6242 static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
6243 PyObject * _resultobj;
6244 wxMenu * _arg0;
6245 int _arg1;
6246 wxString * _arg2;
6247 PyObject * _argo0 = 0;
6248 PyObject * _obj2 = 0;
6249 char *_kwnames[] = { "self","id","helpString", NULL };
6250
6251 self = self;
6252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
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_SetHelpString. Expected _wxMenu_p.");
6258 return NULL;
6259 }
6260 }
6261 {
6262 if (!PyString_Check(_obj2)) {
6263 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6264 return NULL;
6265 }
6266 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6267 }
6268 {
6269 wxPy_BEGIN_ALLOW_THREADS;
6270 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
6271
6272 wxPy_END_ALLOW_THREADS;
6273 } Py_INCREF(Py_None);
6274 _resultobj = Py_None;
6275 {
6276 if (_obj2)
6277 delete _arg2;
6278 }
6279 return _resultobj;
6280 }
6281
6282 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
6283 static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
6284 PyObject * _resultobj;
6285 wxMenu * _arg0;
6286 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
6287 PyObject * _argo0 = 0;
6288 PyObject * _argo1 = 0;
6289 char *_kwnames[] = { "self","source", NULL };
6290
6291 self = self;
6292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
6293 return NULL;
6294 if (_argo0) {
6295 if (_argo0 == Py_None) { _arg0 = NULL; }
6296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
6298 return NULL;
6299 }
6300 }
6301 if (_argo1) {
6302 if (_argo1 == Py_None) { _arg1 = NULL; }
6303 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
6304 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
6305 return NULL;
6306 }
6307 }
6308 {
6309 wxPy_BEGIN_ALLOW_THREADS;
6310 wxMenu_UpdateUI(_arg0,_arg1);
6311
6312 wxPy_END_ALLOW_THREADS;
6313 } Py_INCREF(Py_None);
6314 _resultobj = Py_None;
6315 return _resultobj;
6316 }
6317
6318 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
6319 static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
6320 PyObject * _resultobj;
6321 bool _result;
6322 wxMenu * _arg0;
6323 int _arg1;
6324 PyObject * _argo0 = 0;
6325 char *_kwnames[] = { "self","id", NULL };
6326
6327 self = self;
6328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1))
6329 return NULL;
6330 if (_argo0) {
6331 if (_argo0 == Py_None) { _arg0 = NULL; }
6332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
6334 return NULL;
6335 }
6336 }
6337 {
6338 wxPy_BEGIN_ALLOW_THREADS;
6339 _result = (bool )wxMenu_Delete(_arg0,_arg1);
6340
6341 wxPy_END_ALLOW_THREADS;
6342 } _resultobj = Py_BuildValue("i",_result);
6343 return _resultobj;
6344 }
6345
6346 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
6347 static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6348 PyObject * _resultobj;
6349 bool _result;
6350 wxMenu * _arg0;
6351 wxMenuItem * _arg1;
6352 PyObject * _argo0 = 0;
6353 PyObject * _argo1 = 0;
6354 char *_kwnames[] = { "self","item", NULL };
6355
6356 self = self;
6357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1))
6358 return NULL;
6359 if (_argo0) {
6360 if (_argo0 == Py_None) { _arg0 = NULL; }
6361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
6363 return NULL;
6364 }
6365 }
6366 if (_argo1) {
6367 if (_argo1 == Py_None) { _arg1 = NULL; }
6368 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
6369 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
6370 return NULL;
6371 }
6372 }
6373 {
6374 wxPy_BEGIN_ALLOW_THREADS;
6375 _result = (bool )wxMenu_DeleteItem(_arg0,_arg1);
6376
6377 wxPy_END_ALLOW_THREADS;
6378 } _resultobj = Py_BuildValue("i",_result);
6379 return _resultobj;
6380 }
6381
6382 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
6383 static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
6384 PyObject * _resultobj;
6385 bool _result;
6386 wxMenu * _arg0;
6387 size_t _arg1;
6388 wxMenuItem * _arg2;
6389 PyObject * _argo0 = 0;
6390 PyObject * _argo2 = 0;
6391 char *_kwnames[] = { "self","pos","item", NULL };
6392
6393 self = self;
6394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_argo2))
6395 return NULL;
6396 if (_argo0) {
6397 if (_argo0 == Py_None) { _arg0 = NULL; }
6398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
6400 return NULL;
6401 }
6402 }
6403 if (_argo2) {
6404 if (_argo2 == Py_None) { _arg2 = NULL; }
6405 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) {
6406 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_Insert. Expected _wxMenuItem_p.");
6407 return NULL;
6408 }
6409 }
6410 {
6411 wxPy_BEGIN_ALLOW_THREADS;
6412 _result = (bool )wxMenu_Insert(_arg0,_arg1,_arg2);
6413
6414 wxPy_END_ALLOW_THREADS;
6415 } _resultobj = Py_BuildValue("i",_result);
6416 return _resultobj;
6417 }
6418
6419 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
6420 static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
6421 PyObject * _resultobj;
6422 wxMenuItem * _result;
6423 wxMenu * _arg0;
6424 int _arg1;
6425 PyObject * _argo0 = 0;
6426 char *_kwnames[] = { "self","id", NULL };
6427 char _ptemp[128];
6428
6429 self = self;
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1))
6431 return NULL;
6432 if (_argo0) {
6433 if (_argo0 == Py_None) { _arg0 = NULL; }
6434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
6436 return NULL;
6437 }
6438 }
6439 {
6440 wxPy_BEGIN_ALLOW_THREADS;
6441 _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1);
6442
6443 wxPy_END_ALLOW_THREADS;
6444 } if (_result) {
6445 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
6446 _resultobj = Py_BuildValue("s",_ptemp);
6447 } else {
6448 Py_INCREF(Py_None);
6449 _resultobj = Py_None;
6450 }
6451 return _resultobj;
6452 }
6453
6454 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
6455 static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6456 PyObject * _resultobj;
6457 wxMenuItem * _result;
6458 wxMenu * _arg0;
6459 wxMenuItem * _arg1;
6460 PyObject * _argo0 = 0;
6461 PyObject * _argo1 = 0;
6462 char *_kwnames[] = { "self","item", NULL };
6463 char _ptemp[128];
6464
6465 self = self;
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1))
6467 return NULL;
6468 if (_argo0) {
6469 if (_argo0 == Py_None) { _arg0 = NULL; }
6470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
6472 return NULL;
6473 }
6474 }
6475 if (_argo1) {
6476 if (_argo1 == Py_None) { _arg1 = NULL; }
6477 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
6478 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
6479 return NULL;
6480 }
6481 }
6482 {
6483 wxPy_BEGIN_ALLOW_THREADS;
6484 _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1);
6485
6486 wxPy_END_ALLOW_THREADS;
6487 } if (_result) {
6488 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
6489 _resultobj = Py_BuildValue("s",_ptemp);
6490 } else {
6491 Py_INCREF(Py_None);
6492 _resultobj = Py_None;
6493 }
6494 return _resultobj;
6495 }
6496
6497 static void wxMenu_Destroy(wxMenu *self) {
6498 delete self;
6499 }
6500 static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6501 PyObject * _resultobj;
6502 wxMenu * _arg0;
6503 PyObject * _argo0 = 0;
6504 char *_kwnames[] = { "self", NULL };
6505
6506 self = self;
6507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
6508 return NULL;
6509 if (_argo0) {
6510 if (_argo0 == Py_None) { _arg0 = NULL; }
6511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
6513 return NULL;
6514 }
6515 }
6516 {
6517 wxPy_BEGIN_ALLOW_THREADS;
6518 wxMenu_Destroy(_arg0);
6519
6520 wxPy_END_ALLOW_THREADS;
6521 } Py_INCREF(Py_None);
6522 _resultobj = Py_None;
6523 return _resultobj;
6524 }
6525
6526 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
6527 static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
6528 PyObject * _resultobj;
6529 bool _result;
6530 wxMenu * _arg0;
6531 int _arg1;
6532 PyObject * _argo0 = 0;
6533 char *_kwnames[] = { "self","id", NULL };
6534
6535 self = self;
6536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1))
6537 return NULL;
6538 if (_argo0) {
6539 if (_argo0 == Py_None) { _arg0 = NULL; }
6540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
6542 return NULL;
6543 }
6544 }
6545 {
6546 wxPy_BEGIN_ALLOW_THREADS;
6547 _result = (bool )wxMenu_DestroyId(_arg0,_arg1);
6548
6549 wxPy_END_ALLOW_THREADS;
6550 } _resultobj = Py_BuildValue("i",_result);
6551 return _resultobj;
6552 }
6553
6554 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
6555 static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6556 PyObject * _resultobj;
6557 bool _result;
6558 wxMenu * _arg0;
6559 wxMenuItem * _arg1;
6560 PyObject * _argo0 = 0;
6561 PyObject * _argo1 = 0;
6562 char *_kwnames[] = { "self","item", NULL };
6563
6564 self = self;
6565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1))
6566 return NULL;
6567 if (_argo0) {
6568 if (_argo0 == Py_None) { _arg0 = NULL; }
6569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
6571 return NULL;
6572 }
6573 }
6574 if (_argo1) {
6575 if (_argo1 == Py_None) { _arg1 = NULL; }
6576 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
6577 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
6578 return NULL;
6579 }
6580 }
6581 {
6582 wxPy_BEGIN_ALLOW_THREADS;
6583 _result = (bool )wxMenu_DestroyItem(_arg0,_arg1);
6584
6585 wxPy_END_ALLOW_THREADS;
6586 } _resultobj = Py_BuildValue("i",_result);
6587 return _resultobj;
6588 }
6589
6590 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
6591 static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6592 PyObject * _resultobj;
6593 size_t _result;
6594 wxMenu * _arg0;
6595 PyObject * _argo0 = 0;
6596 char *_kwnames[] = { "self", NULL };
6597
6598 self = self;
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0))
6600 return NULL;
6601 if (_argo0) {
6602 if (_argo0 == Py_None) { _arg0 = NULL; }
6603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
6605 return NULL;
6606 }
6607 }
6608 {
6609 wxPy_BEGIN_ALLOW_THREADS;
6610 _result = (size_t )wxMenu_GetMenuItemCount(_arg0);
6611
6612 wxPy_END_ALLOW_THREADS;
6613 } _resultobj = Py_BuildValue("i",_result);
6614 return _resultobj;
6615 }
6616
6617 static PyObject * wxMenu_GetMenuItems(wxMenu *self) {
6618 wxMenuItemList& list = self->GetMenuItems();
6619 return wxPy_ConvertList(&list, "wxMenuItem");
6620 }
6621 static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
6622 PyObject * _resultobj;
6623 PyObject * _result;
6624 wxMenu * _arg0;
6625 PyObject * _argo0 = 0;
6626 char *_kwnames[] = { "self", NULL };
6627
6628 self = self;
6629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0))
6630 return NULL;
6631 if (_argo0) {
6632 if (_argo0 == Py_None) { _arg0 = NULL; }
6633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
6635 return NULL;
6636 }
6637 }
6638 {
6639 wxPy_BEGIN_ALLOW_THREADS;
6640 _result = (PyObject *)wxMenu_GetMenuItems(_arg0);
6641
6642 wxPy_END_ALLOW_THREADS;
6643 }{
6644 _resultobj = _result;
6645 }
6646 return _resultobj;
6647 }
6648
6649 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
6650 static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6651 PyObject * _resultobj;
6652 wxMenu * _arg0;
6653 wxEvtHandler * _arg1;
6654 PyObject * _argo0 = 0;
6655 PyObject * _argo1 = 0;
6656 char *_kwnames[] = { "self","handler", NULL };
6657
6658 self = self;
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1))
6660 return NULL;
6661 if (_argo0) {
6662 if (_argo0 == Py_None) { _arg0 = NULL; }
6663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
6665 return NULL;
6666 }
6667 }
6668 if (_argo1) {
6669 if (_argo1 == Py_None) { _arg1 = NULL; }
6670 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
6671 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
6672 return NULL;
6673 }
6674 }
6675 {
6676 wxPy_BEGIN_ALLOW_THREADS;
6677 wxMenu_SetEventHandler(_arg0,_arg1);
6678
6679 wxPy_END_ALLOW_THREADS;
6680 } Py_INCREF(Py_None);
6681 _resultobj = Py_None;
6682 return _resultobj;
6683 }
6684
6685 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
6686 static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6687 PyObject * _resultobj;
6688 wxEvtHandler * _result;
6689 wxMenu * _arg0;
6690 PyObject * _argo0 = 0;
6691 char *_kwnames[] = { "self", NULL };
6692 char _ptemp[128];
6693
6694 self = self;
6695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0))
6696 return NULL;
6697 if (_argo0) {
6698 if (_argo0 == Py_None) { _arg0 = NULL; }
6699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
6701 return NULL;
6702 }
6703 }
6704 {
6705 wxPy_BEGIN_ALLOW_THREADS;
6706 _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0);
6707
6708 wxPy_END_ALLOW_THREADS;
6709 } if (_result) {
6710 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
6711 _resultobj = Py_BuildValue("s",_ptemp);
6712 } else {
6713 Py_INCREF(Py_None);
6714 _resultobj = Py_None;
6715 }
6716 return _resultobj;
6717 }
6718
6719 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
6720 static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6721 PyObject * _resultobj;
6722 wxMenu * _arg0;
6723 wxWindow * _arg1;
6724 PyObject * _argo0 = 0;
6725 PyObject * _argo1 = 0;
6726 char *_kwnames[] = { "self","win", NULL };
6727
6728 self = self;
6729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1))
6730 return NULL;
6731 if (_argo0) {
6732 if (_argo0 == Py_None) { _arg0 = NULL; }
6733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
6735 return NULL;
6736 }
6737 }
6738 if (_argo1) {
6739 if (_argo1 == Py_None) { _arg1 = NULL; }
6740 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6741 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
6742 return NULL;
6743 }
6744 }
6745 {
6746 wxPy_BEGIN_ALLOW_THREADS;
6747 wxMenu_SetInvokingWindow(_arg0,_arg1);
6748
6749 wxPy_END_ALLOW_THREADS;
6750 } Py_INCREF(Py_None);
6751 _resultobj = Py_None;
6752 return _resultobj;
6753 }
6754
6755 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
6756 static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6757 PyObject * _resultobj;
6758 wxWindow * _result;
6759 wxMenu * _arg0;
6760 PyObject * _argo0 = 0;
6761 char *_kwnames[] = { "self", NULL };
6762 char _ptemp[128];
6763
6764 self = self;
6765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0))
6766 return NULL;
6767 if (_argo0) {
6768 if (_argo0 == Py_None) { _arg0 = NULL; }
6769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
6771 return NULL;
6772 }
6773 }
6774 {
6775 wxPy_BEGIN_ALLOW_THREADS;
6776 _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0);
6777
6778 wxPy_END_ALLOW_THREADS;
6779 } if (_result) {
6780 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
6781 _resultobj = Py_BuildValue("s",_ptemp);
6782 } else {
6783 Py_INCREF(Py_None);
6784 _resultobj = Py_None;
6785 }
6786 return _resultobj;
6787 }
6788
6789 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
6790 static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6791 PyObject * _resultobj;
6792 long _result;
6793 wxMenu * _arg0;
6794 PyObject * _argo0 = 0;
6795 char *_kwnames[] = { "self", NULL };
6796
6797 self = self;
6798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0))
6799 return NULL;
6800 if (_argo0) {
6801 if (_argo0 == Py_None) { _arg0 = NULL; }
6802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
6804 return NULL;
6805 }
6806 }
6807 {
6808 wxPy_BEGIN_ALLOW_THREADS;
6809 _result = (long )wxMenu_GetStyle(_arg0);
6810
6811 wxPy_END_ALLOW_THREADS;
6812 } _resultobj = Py_BuildValue("l",_result);
6813 return _resultobj;
6814 }
6815
6816 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
6817 static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
6818 PyObject * _resultobj;
6819 bool _result;
6820 wxMenu * _arg0;
6821 PyObject * _argo0 = 0;
6822 char *_kwnames[] = { "self", NULL };
6823
6824 self = self;
6825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0))
6826 return NULL;
6827 if (_argo0) {
6828 if (_argo0 == Py_None) { _arg0 = NULL; }
6829 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6830 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
6831 return NULL;
6832 }
6833 }
6834 {
6835 wxPy_BEGIN_ALLOW_THREADS;
6836 _result = (bool )wxMenu_IsAttached(_arg0);
6837
6838 wxPy_END_ALLOW_THREADS;
6839 } _resultobj = Py_BuildValue("i",_result);
6840 return _resultobj;
6841 }
6842
6843 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
6844 static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6845 PyObject * _resultobj;
6846 wxMenu * _arg0;
6847 wxMenu * _arg1;
6848 PyObject * _argo0 = 0;
6849 PyObject * _argo1 = 0;
6850 char *_kwnames[] = { "self","parent", NULL };
6851
6852 self = self;
6853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1))
6854 return NULL;
6855 if (_argo0) {
6856 if (_argo0 == Py_None) { _arg0 = NULL; }
6857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
6859 return NULL;
6860 }
6861 }
6862 if (_argo1) {
6863 if (_argo1 == Py_None) { _arg1 = NULL; }
6864 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
6865 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
6866 return NULL;
6867 }
6868 }
6869 {
6870 wxPy_BEGIN_ALLOW_THREADS;
6871 wxMenu_SetParent(_arg0,_arg1);
6872
6873 wxPy_END_ALLOW_THREADS;
6874 } Py_INCREF(Py_None);
6875 _resultobj = Py_None;
6876 return _resultobj;
6877 }
6878
6879 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
6880 static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6881 PyObject * _resultobj;
6882 wxMenu * _result;
6883 wxMenu * _arg0;
6884 PyObject * _argo0 = 0;
6885 char *_kwnames[] = { "self", NULL };
6886 char _ptemp[128];
6887
6888 self = self;
6889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0))
6890 return NULL;
6891 if (_argo0) {
6892 if (_argo0 == Py_None) { _arg0 = NULL; }
6893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
6895 return NULL;
6896 }
6897 }
6898 {
6899 wxPy_BEGIN_ALLOW_THREADS;
6900 _result = (wxMenu *)wxMenu_GetParent(_arg0);
6901
6902 wxPy_END_ALLOW_THREADS;
6903 } if (_result) {
6904 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
6905 _resultobj = Py_BuildValue("s",_ptemp);
6906 } else {
6907 Py_INCREF(Py_None);
6908 _resultobj = Py_None;
6909 }
6910 return _resultobj;
6911 }
6912
6913 static void *SwigwxMenuBarTowxWindow(void *ptr) {
6914 wxMenuBar *src;
6915 wxWindow *dest;
6916 src = (wxMenuBar *) ptr;
6917 dest = (wxWindow *) src;
6918 return (void *) dest;
6919 }
6920
6921 static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
6922 wxMenuBar *src;
6923 wxEvtHandler *dest;
6924 src = (wxMenuBar *) ptr;
6925 dest = (wxEvtHandler *) src;
6926 return (void *) dest;
6927 }
6928
6929 #define new_wxMenuBar() (new wxMenuBar())
6930 static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
6931 PyObject * _resultobj;
6932 wxMenuBar * _result;
6933 char *_kwnames[] = { NULL };
6934 char _ptemp[128];
6935
6936 self = self;
6937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames))
6938 return NULL;
6939 {
6940 wxPy_BEGIN_ALLOW_THREADS;
6941 _result = (wxMenuBar *)new_wxMenuBar();
6942
6943 wxPy_END_ALLOW_THREADS;
6944 } if (_result) {
6945 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
6946 _resultobj = Py_BuildValue("s",_ptemp);
6947 } else {
6948 Py_INCREF(Py_None);
6949 _resultobj = Py_None;
6950 }
6951 return _resultobj;
6952 }
6953
6954 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
6955 static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
6956 PyObject * _resultobj;
6957 bool _result;
6958 wxMenuBar * _arg0;
6959 wxMenu * _arg1;
6960 wxString * _arg2;
6961 PyObject * _argo0 = 0;
6962 PyObject * _argo1 = 0;
6963 PyObject * _obj2 = 0;
6964 char *_kwnames[] = { "self","menu","title", NULL };
6965
6966 self = self;
6967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
6968 return NULL;
6969 if (_argo0) {
6970 if (_argo0 == Py_None) { _arg0 = NULL; }
6971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
6973 return NULL;
6974 }
6975 }
6976 if (_argo1) {
6977 if (_argo1 == Py_None) { _arg1 = NULL; }
6978 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
6979 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
6980 return NULL;
6981 }
6982 }
6983 {
6984 if (!PyString_Check(_obj2)) {
6985 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6986 return NULL;
6987 }
6988 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6989 }
6990 {
6991 wxPy_BEGIN_ALLOW_THREADS;
6992 _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2);
6993
6994 wxPy_END_ALLOW_THREADS;
6995 } _resultobj = Py_BuildValue("i",_result);
6996 {
6997 if (_obj2)
6998 delete _arg2;
6999 }
7000 return _resultobj;
7001 }
7002
7003 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
7004 static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
7005 PyObject * _resultobj;
7006 bool _result;
7007 wxMenuBar * _arg0;
7008 size_t _arg1;
7009 wxMenu * _arg2;
7010 wxString * _arg3;
7011 PyObject * _argo0 = 0;
7012 PyObject * _argo2 = 0;
7013 PyObject * _obj3 = 0;
7014 char *_kwnames[] = { "self","pos","menu","title", NULL };
7015
7016 self = self;
7017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
7018 return NULL;
7019 if (_argo0) {
7020 if (_argo0 == Py_None) { _arg0 = NULL; }
7021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
7023 return NULL;
7024 }
7025 }
7026 if (_argo2) {
7027 if (_argo2 == Py_None) { _arg2 = NULL; }
7028 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
7029 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
7030 return NULL;
7031 }
7032 }
7033 {
7034 if (!PyString_Check(_obj3)) {
7035 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7036 return NULL;
7037 }
7038 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
7039 }
7040 {
7041 wxPy_BEGIN_ALLOW_THREADS;
7042 _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3);
7043
7044 wxPy_END_ALLOW_THREADS;
7045 } _resultobj = Py_BuildValue("i",_result);
7046 {
7047 if (_obj3)
7048 delete _arg3;
7049 }
7050 return _resultobj;
7051 }
7052
7053 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
7054 static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7055 PyObject * _resultobj;
7056 size_t _result;
7057 wxMenuBar * _arg0;
7058 PyObject * _argo0 = 0;
7059 char *_kwnames[] = { "self", NULL };
7060
7061 self = self;
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
7063 return NULL;
7064 if (_argo0) {
7065 if (_argo0 == Py_None) { _arg0 = NULL; }
7066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
7068 return NULL;
7069 }
7070 }
7071 {
7072 wxPy_BEGIN_ALLOW_THREADS;
7073 _result = (size_t )wxMenuBar_GetMenuCount(_arg0);
7074
7075 wxPy_END_ALLOW_THREADS;
7076 } _resultobj = Py_BuildValue("i",_result);
7077 return _resultobj;
7078 }
7079
7080 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
7081 static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7082 PyObject * _resultobj;
7083 wxMenu * _result;
7084 wxMenuBar * _arg0;
7085 size_t _arg1;
7086 PyObject * _argo0 = 0;
7087 char *_kwnames[] = { "self","pos", NULL };
7088 char _ptemp[128];
7089
7090 self = self;
7091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
7092 return NULL;
7093 if (_argo0) {
7094 if (_argo0 == Py_None) { _arg0 = NULL; }
7095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
7097 return NULL;
7098 }
7099 }
7100 {
7101 wxPy_BEGIN_ALLOW_THREADS;
7102 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
7103
7104 wxPy_END_ALLOW_THREADS;
7105 } if (_result) {
7106 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7107 _resultobj = Py_BuildValue("s",_ptemp);
7108 } else {
7109 Py_INCREF(Py_None);
7110 _resultobj = Py_None;
7111 }
7112 return _resultobj;
7113 }
7114
7115 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
7116 static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
7117 PyObject * _resultobj;
7118 wxMenu * _result;
7119 wxMenuBar * _arg0;
7120 size_t _arg1;
7121 wxMenu * _arg2;
7122 wxString * _arg3;
7123 PyObject * _argo0 = 0;
7124 PyObject * _argo2 = 0;
7125 PyObject * _obj3 = 0;
7126 char *_kwnames[] = { "self","pos","menu","title", NULL };
7127 char _ptemp[128];
7128
7129 self = self;
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
7131 return NULL;
7132 if (_argo0) {
7133 if (_argo0 == Py_None) { _arg0 = NULL; }
7134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
7136 return NULL;
7137 }
7138 }
7139 if (_argo2) {
7140 if (_argo2 == Py_None) { _arg2 = NULL; }
7141 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
7142 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
7143 return NULL;
7144 }
7145 }
7146 {
7147 if (!PyString_Check(_obj3)) {
7148 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7149 return NULL;
7150 }
7151 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
7152 }
7153 {
7154 wxPy_BEGIN_ALLOW_THREADS;
7155 _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3);
7156
7157 wxPy_END_ALLOW_THREADS;
7158 } if (_result) {
7159 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7160 _resultobj = Py_BuildValue("s",_ptemp);
7161 } else {
7162 Py_INCREF(Py_None);
7163 _resultobj = Py_None;
7164 }
7165 {
7166 if (_obj3)
7167 delete _arg3;
7168 }
7169 return _resultobj;
7170 }
7171
7172 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
7173 static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
7174 PyObject * _resultobj;
7175 wxMenu * _result;
7176 wxMenuBar * _arg0;
7177 size_t _arg1;
7178 PyObject * _argo0 = 0;
7179 char *_kwnames[] = { "self","pos", NULL };
7180 char _ptemp[128];
7181
7182 self = self;
7183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1))
7184 return NULL;
7185 if (_argo0) {
7186 if (_argo0 == Py_None) { _arg0 = NULL; }
7187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
7189 return NULL;
7190 }
7191 }
7192 {
7193 wxPy_BEGIN_ALLOW_THREADS;
7194 _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1);
7195
7196 wxPy_END_ALLOW_THREADS;
7197 } if (_result) {
7198 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7199 _resultobj = Py_BuildValue("s",_ptemp);
7200 } else {
7201 Py_INCREF(Py_None);
7202 _resultobj = Py_None;
7203 }
7204 return _resultobj;
7205 }
7206
7207 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
7208 static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
7209 PyObject * _resultobj;
7210 wxMenuBar * _arg0;
7211 size_t _arg1;
7212 bool _arg2;
7213 PyObject * _argo0 = 0;
7214 int tempbool2;
7215 char *_kwnames[] = { "self","pos","enable", NULL };
7216
7217 self = self;
7218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
7219 return NULL;
7220 if (_argo0) {
7221 if (_argo0 == Py_None) { _arg0 = NULL; }
7222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
7224 return NULL;
7225 }
7226 }
7227 _arg2 = (bool ) tempbool2;
7228 {
7229 wxPy_BEGIN_ALLOW_THREADS;
7230 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
7231
7232 wxPy_END_ALLOW_THREADS;
7233 } Py_INCREF(Py_None);
7234 _resultobj = Py_None;
7235 return _resultobj;
7236 }
7237
7238 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
7239 static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
7240 PyObject * _resultobj;
7241 wxMenuBar * _arg0;
7242 size_t _arg1;
7243 wxString * _arg2;
7244 PyObject * _argo0 = 0;
7245 PyObject * _obj2 = 0;
7246 char *_kwnames[] = { "self","pos","label", NULL };
7247
7248 self = self;
7249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
7250 return NULL;
7251 if (_argo0) {
7252 if (_argo0 == Py_None) { _arg0 = NULL; }
7253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
7255 return NULL;
7256 }
7257 }
7258 {
7259 if (!PyString_Check(_obj2)) {
7260 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7261 return NULL;
7262 }
7263 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
7264 }
7265 {
7266 wxPy_BEGIN_ALLOW_THREADS;
7267 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
7268
7269 wxPy_END_ALLOW_THREADS;
7270 } Py_INCREF(Py_None);
7271 _resultobj = Py_None;
7272 {
7273 if (_obj2)
7274 delete _arg2;
7275 }
7276 return _resultobj;
7277 }
7278
7279 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
7280 static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
7281 PyObject * _resultobj;
7282 wxString * _result;
7283 wxMenuBar * _arg0;
7284 size_t _arg1;
7285 PyObject * _argo0 = 0;
7286 char *_kwnames[] = { "self","pos", NULL };
7287
7288 self = self;
7289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
7290 return NULL;
7291 if (_argo0) {
7292 if (_argo0 == Py_None) { _arg0 = NULL; }
7293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
7295 return NULL;
7296 }
7297 }
7298 {
7299 wxPy_BEGIN_ALLOW_THREADS;
7300 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
7301
7302 wxPy_END_ALLOW_THREADS;
7303 }{
7304 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
7305 }
7306 {
7307 delete _result;
7308 }
7309 return _resultobj;
7310 }
7311
7312 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
7313 static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7314 PyObject * _resultobj;
7315 int _result;
7316 wxMenuBar * _arg0;
7317 wxString * _arg1;
7318 wxString * _arg2;
7319 PyObject * _argo0 = 0;
7320 PyObject * _obj1 = 0;
7321 PyObject * _obj2 = 0;
7322 char *_kwnames[] = { "self","menuString","itemString", NULL };
7323
7324 self = self;
7325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
7326 return NULL;
7327 if (_argo0) {
7328 if (_argo0 == Py_None) { _arg0 = NULL; }
7329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
7331 return NULL;
7332 }
7333 }
7334 {
7335 if (!PyString_Check(_obj1)) {
7336 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7337 return NULL;
7338 }
7339 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
7340 }
7341 {
7342 if (!PyString_Check(_obj2)) {
7343 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7344 return NULL;
7345 }
7346 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
7347 }
7348 {
7349 wxPy_BEGIN_ALLOW_THREADS;
7350 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
7351
7352 wxPy_END_ALLOW_THREADS;
7353 } _resultobj = Py_BuildValue("i",_result);
7354 {
7355 if (_obj1)
7356 delete _arg1;
7357 }
7358 {
7359 if (_obj2)
7360 delete _arg2;
7361 }
7362 return _resultobj;
7363 }
7364
7365 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
7366 static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
7367 PyObject * _resultobj;
7368 wxMenuItem * _result;
7369 wxMenuBar * _arg0;
7370 int _arg1;
7371 PyObject * _argo0 = 0;
7372 char *_kwnames[] = { "self","id", NULL };
7373 char _ptemp[128];
7374
7375 self = self;
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1))
7377 return NULL;
7378 if (_argo0) {
7379 if (_argo0 == Py_None) { _arg0 = NULL; }
7380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
7382 return NULL;
7383 }
7384 }
7385 {
7386 wxPy_BEGIN_ALLOW_THREADS;
7387 _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1);
7388
7389 wxPy_END_ALLOW_THREADS;
7390 } if (_result) {
7391 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
7392 _resultobj = Py_BuildValue("s",_ptemp);
7393 } else {
7394 Py_INCREF(Py_None);
7395 _resultobj = Py_None;
7396 }
7397 return _resultobj;
7398 }
7399
7400 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
7401 static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
7402 PyObject * _resultobj;
7403 wxMenuBar * _arg0;
7404 int _arg1;
7405 bool _arg2;
7406 PyObject * _argo0 = 0;
7407 int tempbool2;
7408 char *_kwnames[] = { "self","id","enable", NULL };
7409
7410 self = self;
7411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
7412 return NULL;
7413 if (_argo0) {
7414 if (_argo0 == Py_None) { _arg0 = NULL; }
7415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
7417 return NULL;
7418 }
7419 }
7420 _arg2 = (bool ) tempbool2;
7421 {
7422 wxPy_BEGIN_ALLOW_THREADS;
7423 wxMenuBar_Enable(_arg0,_arg1,_arg2);
7424
7425 wxPy_END_ALLOW_THREADS;
7426 } Py_INCREF(Py_None);
7427 _resultobj = Py_None;
7428 return _resultobj;
7429 }
7430
7431 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
7432 static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject * _resultobj;
7434 wxMenuBar * _arg0;
7435 int _arg1;
7436 bool _arg2;
7437 PyObject * _argo0 = 0;
7438 int tempbool2;
7439 char *_kwnames[] = { "self","id","check", NULL };
7440
7441 self = self;
7442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
7443 return NULL;
7444 if (_argo0) {
7445 if (_argo0 == Py_None) { _arg0 = NULL; }
7446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
7448 return NULL;
7449 }
7450 }
7451 _arg2 = (bool ) tempbool2;
7452 {
7453 wxPy_BEGIN_ALLOW_THREADS;
7454 wxMenuBar_Check(_arg0,_arg1,_arg2);
7455
7456 wxPy_END_ALLOW_THREADS;
7457 } Py_INCREF(Py_None);
7458 _resultobj = Py_None;
7459 return _resultobj;
7460 }
7461
7462 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
7463 static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
7464 PyObject * _resultobj;
7465 bool _result;
7466 wxMenuBar * _arg0;
7467 int _arg1;
7468 PyObject * _argo0 = 0;
7469 char *_kwnames[] = { "self","id", NULL };
7470
7471 self = self;
7472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1))
7473 return NULL;
7474 if (_argo0) {
7475 if (_argo0 == Py_None) { _arg0 = NULL; }
7476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
7478 return NULL;
7479 }
7480 }
7481 {
7482 wxPy_BEGIN_ALLOW_THREADS;
7483 _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1);
7484
7485 wxPy_END_ALLOW_THREADS;
7486 } _resultobj = Py_BuildValue("i",_result);
7487 return _resultobj;
7488 }
7489
7490 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
7491 static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7492 PyObject * _resultobj;
7493 bool _result;
7494 wxMenuBar * _arg0;
7495 int _arg1;
7496 PyObject * _argo0 = 0;
7497 char *_kwnames[] = { "self","id", NULL };
7498
7499 self = self;
7500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1))
7501 return NULL;
7502 if (_argo0) {
7503 if (_argo0 == Py_None) { _arg0 = NULL; }
7504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
7506 return NULL;
7507 }
7508 }
7509 {
7510 wxPy_BEGIN_ALLOW_THREADS;
7511 _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1);
7512
7513 wxPy_END_ALLOW_THREADS;
7514 } _resultobj = Py_BuildValue("i",_result);
7515 return _resultobj;
7516 }
7517
7518 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
7519 static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7520 PyObject * _resultobj;
7521 wxMenuBar * _arg0;
7522 int _arg1;
7523 wxString * _arg2;
7524 PyObject * _argo0 = 0;
7525 PyObject * _obj2 = 0;
7526 char *_kwnames[] = { "self","id","label", NULL };
7527
7528 self = self;
7529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
7530 return NULL;
7531 if (_argo0) {
7532 if (_argo0 == Py_None) { _arg0 = NULL; }
7533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
7535 return NULL;
7536 }
7537 }
7538 {
7539 if (!PyString_Check(_obj2)) {
7540 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7541 return NULL;
7542 }
7543 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
7544 }
7545 {
7546 wxPy_BEGIN_ALLOW_THREADS;
7547 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
7548
7549 wxPy_END_ALLOW_THREADS;
7550 } Py_INCREF(Py_None);
7551 _resultobj = Py_None;
7552 {
7553 if (_obj2)
7554 delete _arg2;
7555 }
7556 return _resultobj;
7557 }
7558
7559 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
7560 static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7561 PyObject * _resultobj;
7562 wxString * _result;
7563 wxMenuBar * _arg0;
7564 int _arg1;
7565 PyObject * _argo0 = 0;
7566 char *_kwnames[] = { "self","id", NULL };
7567
7568 self = self;
7569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
7570 return NULL;
7571 if (_argo0) {
7572 if (_argo0 == Py_None) { _arg0 = NULL; }
7573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
7575 return NULL;
7576 }
7577 }
7578 {
7579 wxPy_BEGIN_ALLOW_THREADS;
7580 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
7581
7582 wxPy_END_ALLOW_THREADS;
7583 }{
7584 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
7585 }
7586 {
7587 delete _result;
7588 }
7589 return _resultobj;
7590 }
7591
7592 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
7593 static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
7594 PyObject * _resultobj;
7595 wxMenuBar * _arg0;
7596 int _arg1;
7597 wxString * _arg2;
7598 PyObject * _argo0 = 0;
7599 PyObject * _obj2 = 0;
7600 char *_kwnames[] = { "self","id","helpString", NULL };
7601
7602 self = self;
7603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
7604 return NULL;
7605 if (_argo0) {
7606 if (_argo0 == Py_None) { _arg0 = NULL; }
7607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
7609 return NULL;
7610 }
7611 }
7612 {
7613 if (!PyString_Check(_obj2)) {
7614 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7615 return NULL;
7616 }
7617 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
7618 }
7619 {
7620 wxPy_BEGIN_ALLOW_THREADS;
7621 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
7622
7623 wxPy_END_ALLOW_THREADS;
7624 } Py_INCREF(Py_None);
7625 _resultobj = Py_None;
7626 {
7627 if (_obj2)
7628 delete _arg2;
7629 }
7630 return _resultobj;
7631 }
7632
7633 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
7634 static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
7635 PyObject * _resultobj;
7636 wxString * _result;
7637 wxMenuBar * _arg0;
7638 int _arg1;
7639 PyObject * _argo0 = 0;
7640 char *_kwnames[] = { "self","id", NULL };
7641
7642 self = self;
7643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
7644 return NULL;
7645 if (_argo0) {
7646 if (_argo0 == Py_None) { _arg0 = NULL; }
7647 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
7648 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
7649 return NULL;
7650 }
7651 }
7652 {
7653 wxPy_BEGIN_ALLOW_THREADS;
7654 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
7655
7656 wxPy_END_ALLOW_THREADS;
7657 }{
7658 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
7659 }
7660 {
7661 delete _result;
7662 }
7663 return _resultobj;
7664 }
7665
7666 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7667 static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7668 PyObject * _resultobj;
7669 wxMenuItem * _result;
7670 wxMenu * _arg0 = (wxMenu *) NULL;
7671 int _arg1 = (int ) ID_SEPARATOR;
7672 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
7673 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
7674 bool _arg4 = (bool ) FALSE;
7675 wxMenu * _arg5 = (wxMenu *) NULL;
7676 PyObject * _argo0 = 0;
7677 PyObject * _obj2 = 0;
7678 PyObject * _obj3 = 0;
7679 int tempbool4 = (int) FALSE;
7680 PyObject * _argo5 = 0;
7681 char *_kwnames[] = { "parentMenu","id","text","help","isCheckable","subMenu", NULL };
7682 char _ptemp[128];
7683
7684 self = self;
7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5))
7686 return NULL;
7687 if (_argo0) {
7688 if (_argo0 == Py_None) { _arg0 = NULL; }
7689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
7691 return NULL;
7692 }
7693 }
7694 if (_obj2)
7695 {
7696 if (!PyString_Check(_obj2)) {
7697 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7698 return NULL;
7699 }
7700 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
7701 }
7702 if (_obj3)
7703 {
7704 if (!PyString_Check(_obj3)) {
7705 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7706 return NULL;
7707 }
7708 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
7709 }
7710 _arg4 = (bool ) tempbool4;
7711 if (_argo5) {
7712 if (_argo5 == Py_None) { _arg5 = NULL; }
7713 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
7714 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
7715 return NULL;
7716 }
7717 }
7718 {
7719 wxPy_BEGIN_ALLOW_THREADS;
7720 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
7721
7722 wxPy_END_ALLOW_THREADS;
7723 } if (_result) {
7724 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
7725 _resultobj = Py_BuildValue("s",_ptemp);
7726 } else {
7727 Py_INCREF(Py_None);
7728 _resultobj = Py_None;
7729 }
7730 {
7731 if (_obj2)
7732 delete _arg2;
7733 }
7734 {
7735 if (_obj3)
7736 delete _arg3;
7737 }
7738 return _resultobj;
7739 }
7740
7741 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
7742 static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7743 PyObject * _resultobj;
7744 wxMenu * _result;
7745 wxMenuItem * _arg0;
7746 PyObject * _argo0 = 0;
7747 char *_kwnames[] = { "self", NULL };
7748 char _ptemp[128];
7749
7750 self = self;
7751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0))
7752 return NULL;
7753 if (_argo0) {
7754 if (_argo0 == Py_None) { _arg0 = NULL; }
7755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
7757 return NULL;
7758 }
7759 }
7760 {
7761 wxPy_BEGIN_ALLOW_THREADS;
7762 _result = (wxMenu *)wxMenuItem_GetMenu(_arg0);
7763
7764 wxPy_END_ALLOW_THREADS;
7765 } if (_result) {
7766 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7767 _resultobj = Py_BuildValue("s",_ptemp);
7768 } else {
7769 Py_INCREF(Py_None);
7770 _resultobj = Py_None;
7771 }
7772 return _resultobj;
7773 }
7774
7775 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
7776 static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7777 PyObject * _resultobj;
7778 wxMenuItem * _arg0;
7779 int _arg1;
7780 PyObject * _argo0 = 0;
7781 char *_kwnames[] = { "self","id", NULL };
7782
7783 self = self;
7784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1))
7785 return NULL;
7786 if (_argo0) {
7787 if (_argo0 == Py_None) { _arg0 = NULL; }
7788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
7790 return NULL;
7791 }
7792 }
7793 {
7794 wxPy_BEGIN_ALLOW_THREADS;
7795 wxMenuItem_SetId(_arg0,_arg1);
7796
7797 wxPy_END_ALLOW_THREADS;
7798 } Py_INCREF(Py_None);
7799 _resultobj = Py_None;
7800 return _resultobj;
7801 }
7802
7803 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
7804 static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7805 PyObject * _resultobj;
7806 int _result;
7807 wxMenuItem * _arg0;
7808 PyObject * _argo0 = 0;
7809 char *_kwnames[] = { "self", NULL };
7810
7811 self = self;
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
7813 return NULL;
7814 if (_argo0) {
7815 if (_argo0 == Py_None) { _arg0 = NULL; }
7816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
7818 return NULL;
7819 }
7820 }
7821 {
7822 wxPy_BEGIN_ALLOW_THREADS;
7823 _result = (int )wxMenuItem_GetId(_arg0);
7824
7825 wxPy_END_ALLOW_THREADS;
7826 } _resultobj = Py_BuildValue("i",_result);
7827 return _resultobj;
7828 }
7829
7830 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
7831 static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject * _resultobj;
7833 bool _result;
7834 wxMenuItem * _arg0;
7835 PyObject * _argo0 = 0;
7836 char *_kwnames[] = { "self", NULL };
7837
7838 self = self;
7839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
7840 return NULL;
7841 if (_argo0) {
7842 if (_argo0 == Py_None) { _arg0 = NULL; }
7843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
7845 return NULL;
7846 }
7847 }
7848 {
7849 wxPy_BEGIN_ALLOW_THREADS;
7850 _result = (bool )wxMenuItem_IsSeparator(_arg0);
7851
7852 wxPy_END_ALLOW_THREADS;
7853 } _resultobj = Py_BuildValue("i",_result);
7854 return _resultobj;
7855 }
7856
7857 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
7858 static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
7859 PyObject * _resultobj;
7860 wxMenuItem * _arg0;
7861 wxString * _arg1;
7862 PyObject * _argo0 = 0;
7863 PyObject * _obj1 = 0;
7864 char *_kwnames[] = { "self","str", NULL };
7865
7866 self = self;
7867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1))
7868 return NULL;
7869 if (_argo0) {
7870 if (_argo0 == Py_None) { _arg0 = NULL; }
7871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
7873 return NULL;
7874 }
7875 }
7876 {
7877 if (!PyString_Check(_obj1)) {
7878 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7879 return NULL;
7880 }
7881 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
7882 }
7883 {
7884 wxPy_BEGIN_ALLOW_THREADS;
7885 wxMenuItem_SetText(_arg0,*_arg1);
7886
7887 wxPy_END_ALLOW_THREADS;
7888 } Py_INCREF(Py_None);
7889 _resultobj = Py_None;
7890 {
7891 if (_obj1)
7892 delete _arg1;
7893 }
7894 return _resultobj;
7895 }
7896
7897 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
7898 static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
7899 PyObject * _resultobj;
7900 wxString * _result;
7901 wxMenuItem * _arg0;
7902 PyObject * _argo0 = 0;
7903 char *_kwnames[] = { "self", NULL };
7904
7905 self = self;
7906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0))
7907 return NULL;
7908 if (_argo0) {
7909 if (_argo0 == Py_None) { _arg0 = NULL; }
7910 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7911 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
7912 return NULL;
7913 }
7914 }
7915 {
7916 wxPy_BEGIN_ALLOW_THREADS;
7917 _result = new wxString (wxMenuItem_GetLabel(_arg0));
7918
7919 wxPy_END_ALLOW_THREADS;
7920 }{
7921 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
7922 }
7923 {
7924 delete _result;
7925 }
7926 return _resultobj;
7927 }
7928
7929 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
7930 static PyObject *_wrap_wxMenuItem_GetText(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_GetText",_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_GetText. Expected _wxMenuItem_p.");
7944 return NULL;
7945 }
7946 }
7947 {
7948 wxPy_BEGIN_ALLOW_THREADS;
7949 const wxString & _result_ref = wxMenuItem_GetText(_arg0);
7950 _result = (wxString *) &_result_ref;
7951
7952 wxPy_END_ALLOW_THREADS;
7953 }{
7954 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
7955 }
7956 return _resultobj;
7957 }
7958
7959 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
7960 static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
7961 PyObject * _resultobj;
7962 wxMenuItem * _arg0;
7963 bool _arg1;
7964 PyObject * _argo0 = 0;
7965 int tempbool1;
7966 char *_kwnames[] = { "self","checkable", NULL };
7967
7968 self = self;
7969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1))
7970 return NULL;
7971 if (_argo0) {
7972 if (_argo0 == Py_None) { _arg0 = NULL; }
7973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
7975 return NULL;
7976 }
7977 }
7978 _arg1 = (bool ) tempbool1;
7979 {
7980 wxPy_BEGIN_ALLOW_THREADS;
7981 wxMenuItem_SetCheckable(_arg0,_arg1);
7982
7983 wxPy_END_ALLOW_THREADS;
7984 } Py_INCREF(Py_None);
7985 _resultobj = Py_None;
7986 return _resultobj;
7987 }
7988
7989 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
7990 static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
7991 PyObject * _resultobj;
7992 bool _result;
7993 wxMenuItem * _arg0;
7994 PyObject * _argo0 = 0;
7995 char *_kwnames[] = { "self", NULL };
7996
7997 self = self;
7998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0))
7999 return NULL;
8000 if (_argo0) {
8001 if (_argo0 == Py_None) { _arg0 = NULL; }
8002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
8004 return NULL;
8005 }
8006 }
8007 {
8008 wxPy_BEGIN_ALLOW_THREADS;
8009 _result = (bool )wxMenuItem_IsCheckable(_arg0);
8010
8011 wxPy_END_ALLOW_THREADS;
8012 } _resultobj = Py_BuildValue("i",_result);
8013 return _resultobj;
8014 }
8015
8016 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
8017 static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8018 PyObject * _resultobj;
8019 bool _result;
8020 wxMenuItem * _arg0;
8021 PyObject * _argo0 = 0;
8022 char *_kwnames[] = { "self", NULL };
8023
8024 self = self;
8025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0))
8026 return NULL;
8027 if (_argo0) {
8028 if (_argo0 == Py_None) { _arg0 = NULL; }
8029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
8031 return NULL;
8032 }
8033 }
8034 {
8035 wxPy_BEGIN_ALLOW_THREADS;
8036 _result = (bool )wxMenuItem_IsSubMenu(_arg0);
8037
8038 wxPy_END_ALLOW_THREADS;
8039 } _resultobj = Py_BuildValue("i",_result);
8040 return _resultobj;
8041 }
8042
8043 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
8044 static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8045 PyObject * _resultobj;
8046 wxMenuItem * _arg0;
8047 wxMenu * _arg1;
8048 PyObject * _argo0 = 0;
8049 PyObject * _argo1 = 0;
8050 char *_kwnames[] = { "self","menu", NULL };
8051
8052 self = self;
8053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1))
8054 return NULL;
8055 if (_argo0) {
8056 if (_argo0 == Py_None) { _arg0 = NULL; }
8057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
8059 return NULL;
8060 }
8061 }
8062 if (_argo1) {
8063 if (_argo1 == Py_None) { _arg1 = NULL; }
8064 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
8065 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
8066 return NULL;
8067 }
8068 }
8069 {
8070 wxPy_BEGIN_ALLOW_THREADS;
8071 wxMenuItem_SetSubMenu(_arg0,_arg1);
8072
8073 wxPy_END_ALLOW_THREADS;
8074 } Py_INCREF(Py_None);
8075 _resultobj = Py_None;
8076 return _resultobj;
8077 }
8078
8079 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
8080 static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8081 PyObject * _resultobj;
8082 wxMenu * _result;
8083 wxMenuItem * _arg0;
8084 PyObject * _argo0 = 0;
8085 char *_kwnames[] = { "self", NULL };
8086 char _ptemp[128];
8087
8088 self = self;
8089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
8090 return NULL;
8091 if (_argo0) {
8092 if (_argo0 == Py_None) { _arg0 = NULL; }
8093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
8095 return NULL;
8096 }
8097 }
8098 {
8099 wxPy_BEGIN_ALLOW_THREADS;
8100 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
8101
8102 wxPy_END_ALLOW_THREADS;
8103 } if (_result) {
8104 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
8105 _resultobj = Py_BuildValue("s",_ptemp);
8106 } else {
8107 Py_INCREF(Py_None);
8108 _resultobj = Py_None;
8109 }
8110 return _resultobj;
8111 }
8112
8113 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
8114 static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
8115 PyObject * _resultobj;
8116 wxMenuItem * _arg0;
8117 bool _arg1 = (bool ) TRUE;
8118 PyObject * _argo0 = 0;
8119 int tempbool1 = (int) TRUE;
8120 char *_kwnames[] = { "self","enable", NULL };
8121
8122 self = self;
8123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
8124 return NULL;
8125 if (_argo0) {
8126 if (_argo0 == Py_None) { _arg0 = NULL; }
8127 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8128 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
8129 return NULL;
8130 }
8131 }
8132 _arg1 = (bool ) tempbool1;
8133 {
8134 wxPy_BEGIN_ALLOW_THREADS;
8135 wxMenuItem_Enable(_arg0,_arg1);
8136
8137 wxPy_END_ALLOW_THREADS;
8138 } Py_INCREF(Py_None);
8139 _resultobj = Py_None;
8140 return _resultobj;
8141 }
8142
8143 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
8144 static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8145 PyObject * _resultobj;
8146 bool _result;
8147 wxMenuItem * _arg0;
8148 PyObject * _argo0 = 0;
8149 char *_kwnames[] = { "self", NULL };
8150
8151 self = self;
8152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
8153 return NULL;
8154 if (_argo0) {
8155 if (_argo0 == Py_None) { _arg0 = NULL; }
8156 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8157 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
8158 return NULL;
8159 }
8160 }
8161 {
8162 wxPy_BEGIN_ALLOW_THREADS;
8163 _result = (bool )wxMenuItem_IsEnabled(_arg0);
8164
8165 wxPy_END_ALLOW_THREADS;
8166 } _resultobj = Py_BuildValue("i",_result);
8167 return _resultobj;
8168 }
8169
8170 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
8171 static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
8172 PyObject * _resultobj;
8173 wxMenuItem * _arg0;
8174 bool _arg1 = (bool ) TRUE;
8175 PyObject * _argo0 = 0;
8176 int tempbool1 = (int) TRUE;
8177 char *_kwnames[] = { "self","check", NULL };
8178
8179 self = self;
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
8181 return NULL;
8182 if (_argo0) {
8183 if (_argo0 == Py_None) { _arg0 = NULL; }
8184 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8185 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
8186 return NULL;
8187 }
8188 }
8189 _arg1 = (bool ) tempbool1;
8190 {
8191 wxPy_BEGIN_ALLOW_THREADS;
8192 wxMenuItem_Check(_arg0,_arg1);
8193
8194 wxPy_END_ALLOW_THREADS;
8195 } Py_INCREF(Py_None);
8196 _resultobj = Py_None;
8197 return _resultobj;
8198 }
8199
8200 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
8201 static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
8202 PyObject * _resultobj;
8203 bool _result;
8204 wxMenuItem * _arg0;
8205 PyObject * _argo0 = 0;
8206 char *_kwnames[] = { "self", NULL };
8207
8208 self = self;
8209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
8210 return NULL;
8211 if (_argo0) {
8212 if (_argo0 == Py_None) { _arg0 = NULL; }
8213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
8215 return NULL;
8216 }
8217 }
8218 {
8219 wxPy_BEGIN_ALLOW_THREADS;
8220 _result = (bool )wxMenuItem_IsChecked(_arg0);
8221
8222 wxPy_END_ALLOW_THREADS;
8223 } _resultobj = Py_BuildValue("i",_result);
8224 return _resultobj;
8225 }
8226
8227 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
8228 static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
8229 PyObject * _resultobj;
8230 wxMenuItem * _arg0;
8231 PyObject * _argo0 = 0;
8232 char *_kwnames[] = { "self", NULL };
8233
8234 self = self;
8235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0))
8236 return NULL;
8237 if (_argo0) {
8238 if (_argo0 == Py_None) { _arg0 = NULL; }
8239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
8241 return NULL;
8242 }
8243 }
8244 {
8245 wxPy_BEGIN_ALLOW_THREADS;
8246 wxMenuItem_Toggle(_arg0);
8247
8248 wxPy_END_ALLOW_THREADS;
8249 } Py_INCREF(Py_None);
8250 _resultobj = Py_None;
8251 return _resultobj;
8252 }
8253
8254 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
8255 static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
8256 PyObject * _resultobj;
8257 wxMenuItem * _arg0;
8258 wxString * _arg1;
8259 PyObject * _argo0 = 0;
8260 PyObject * _obj1 = 0;
8261 char *_kwnames[] = { "self","str", NULL };
8262
8263 self = self;
8264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
8265 return NULL;
8266 if (_argo0) {
8267 if (_argo0 == Py_None) { _arg0 = NULL; }
8268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
8270 return NULL;
8271 }
8272 }
8273 {
8274 if (!PyString_Check(_obj1)) {
8275 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8276 return NULL;
8277 }
8278 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
8279 }
8280 {
8281 wxPy_BEGIN_ALLOW_THREADS;
8282 wxMenuItem_SetHelp(_arg0,*_arg1);
8283
8284 wxPy_END_ALLOW_THREADS;
8285 } Py_INCREF(Py_None);
8286 _resultobj = Py_None;
8287 {
8288 if (_obj1)
8289 delete _arg1;
8290 }
8291 return _resultobj;
8292 }
8293
8294 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
8295 static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
8296 PyObject * _resultobj;
8297 wxString * _result;
8298 wxMenuItem * _arg0;
8299 PyObject * _argo0 = 0;
8300 char *_kwnames[] = { "self", NULL };
8301
8302 self = self;
8303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
8304 return NULL;
8305 if (_argo0) {
8306 if (_argo0 == Py_None) { _arg0 = NULL; }
8307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
8309 return NULL;
8310 }
8311 }
8312 {
8313 wxPy_BEGIN_ALLOW_THREADS;
8314 const wxString & _result_ref = wxMenuItem_GetHelp(_arg0);
8315 _result = (wxString *) &_result_ref;
8316
8317 wxPy_END_ALLOW_THREADS;
8318 }{
8319 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
8320 }
8321 return _resultobj;
8322 }
8323
8324 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
8325 static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
8326 PyObject * _resultobj;
8327 wxAcceleratorEntry * _result;
8328 wxMenuItem * _arg0;
8329 PyObject * _argo0 = 0;
8330 char *_kwnames[] = { "self", NULL };
8331 char _ptemp[128];
8332
8333 self = self;
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0))
8335 return NULL;
8336 if (_argo0) {
8337 if (_argo0 == Py_None) { _arg0 = NULL; }
8338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
8340 return NULL;
8341 }
8342 }
8343 {
8344 wxPy_BEGIN_ALLOW_THREADS;
8345 _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0);
8346
8347 wxPy_END_ALLOW_THREADS;
8348 } if (_result) {
8349 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
8350 _resultobj = Py_BuildValue("s",_ptemp);
8351 } else {
8352 Py_INCREF(Py_None);
8353 _resultobj = Py_None;
8354 }
8355 return _resultobj;
8356 }
8357
8358 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
8359 static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
8360 PyObject * _resultobj;
8361 wxMenuItem * _arg0;
8362 wxAcceleratorEntry * _arg1;
8363 PyObject * _argo0 = 0;
8364 PyObject * _argo1 = 0;
8365 char *_kwnames[] = { "self","accel", NULL };
8366
8367 self = self;
8368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1))
8369 return NULL;
8370 if (_argo0) {
8371 if (_argo0 == Py_None) { _arg0 = NULL; }
8372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
8373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
8374 return NULL;
8375 }
8376 }
8377 if (_argo1) {
8378 if (_argo1 == Py_None) { _arg1 = NULL; }
8379 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) {
8380 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
8381 return NULL;
8382 }
8383 }
8384 {
8385 wxPy_BEGIN_ALLOW_THREADS;
8386 wxMenuItem_SetAccel(_arg0,_arg1);
8387
8388 wxPy_END_ALLOW_THREADS;
8389 } Py_INCREF(Py_None);
8390 _resultobj = Py_None;
8391 return _resultobj;
8392 }
8393
8394 static PyMethodDef windowscMethods[] = {
8395 { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
8396 { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
8397 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
8398 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
8399 { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
8400 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
8401 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
8402 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
8403 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
8404 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
8405 { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
8406 { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
8407 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
8408 { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
8409 { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
8410 { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
8411 { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
8412 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
8413 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
8414 { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
8415 { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
8416 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
8417 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
8418 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
8419 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
8420 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
8421 { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
8422 { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
8423 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
8424 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
8425 { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
8426 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
8427 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
8428 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
8429 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
8430 { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
8431 { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
8432 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
8433 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
8434 { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
8435 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
8436 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
8437 { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS },
8438 { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS },
8439 { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS },
8440 { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS },
8441 { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
8442 { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
8443 { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
8444 { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
8445 { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
8446 { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
8447 { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
8448 { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS },
8449 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
8450 { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
8451 { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS },
8452 { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS },
8453 { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
8454 { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS },
8455 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
8456 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
8457 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
8458 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
8459 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
8460 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
8461 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
8462 { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS },
8463 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
8464 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
8465 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
8466 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
8467 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
8468 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
8469 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
8470 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
8471 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
8472 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
8473 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
8474 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS },
8475 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS },
8476 { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS },
8477 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
8478 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
8479 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
8480 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
8481 { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
8482 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
8483 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
8484 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
8485 { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS },
8486 { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
8487 { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
8488 { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS },
8489 { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS },
8490 { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS },
8491 { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS },
8492 { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS },
8493 { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS },
8494 { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS },
8495 { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS },
8496 { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS },
8497 { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
8498 { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
8499 { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
8500 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
8501 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
8502 { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS },
8503 { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
8504 { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
8505 { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
8506 { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
8507 { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
8508 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
8509 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
8510 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
8511 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
8512 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
8513 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
8514 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
8515 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
8516 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
8517 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
8518 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
8519 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
8520 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
8521 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
8522 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
8523 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
8524 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
8525 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
8526 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
8527 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
8528 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
8529 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
8530 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
8531 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
8532 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
8533 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
8534 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
8535 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
8536 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
8537 { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
8538 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
8539 { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS },
8540 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
8541 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8542 { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
8543 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
8544 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
8545 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
8546 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
8547 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
8548 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
8549 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
8550 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
8551 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
8552 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
8553 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
8554 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
8555 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
8556 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
8557 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
8558 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
8559 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
8560 { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS },
8561 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
8562 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
8563 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
8564 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
8565 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
8566 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
8567 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
8568 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
8569 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
8570 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
8571 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
8572 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
8573 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
8574 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
8575 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
8576 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
8577 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
8578 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
8579 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
8580 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
8581 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
8582 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
8583 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
8584 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
8585 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
8586 { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS },
8587 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
8588 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
8589 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
8590 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
8591 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
8592 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
8593 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
8594 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
8595 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
8596 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
8597 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8598 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
8599 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
8600 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
8601 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
8602 { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
8603 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
8604 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
8605 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
8606 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
8607 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
8608 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
8609 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
8610 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
8611 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
8612 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
8613 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
8614 { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS },
8615 { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS },
8616 { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
8617 { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
8618 { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
8619 { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
8620 { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
8621 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
8622 { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
8623 { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
8624 { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
8625 { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
8626 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
8627 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
8628 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
8629 { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS },
8630 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
8631 { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
8632 { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
8633 { NULL, NULL }
8634 };
8635 #ifdef __cplusplus
8636 }
8637 #endif
8638 /*
8639 * This table is used by the pointer type-checker
8640 */
8641 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
8642 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
8643 { "_signed_long","_long",0},
8644 { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0},
8645 { "_wxBitmapDataObject","_class_wxBitmapDataObject",0},
8646 { "_wxPrintQuality","_wxCoord",0},
8647 { "_wxPrintQuality","_int",0},
8648 { "_wxPrintQuality","_signed_int",0},
8649 { "_wxPrintQuality","_unsigned_int",0},
8650 { "_wxPrintQuality","_wxWindowID",0},
8651 { "_wxPrintQuality","_uint",0},
8652 { "_wxPrintQuality","_EBool",0},
8653 { "_wxPrintQuality","_size_t",0},
8654 { "_class_wxCustomDataObject","_wxCustomDataObject",0},
8655 { "_class_wxRegionIterator","_wxRegionIterator",0},
8656 { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0},
8657 { "_class_wxMenuBar","_wxMenuBar",0},
8658 { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8659 { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8660 { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
8661 { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
8662 { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8663 { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8664 { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
8665 { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
8666 { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
8667 { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
8668 { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
8669 { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
8670 { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8671 { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8672 { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler},
8673 { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
8674 { "_class_wxEvtHandler","_wxEvtHandler",0},
8675 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
8676 { "_wxCursor","_class_wxCursor",0},
8677 { "_wxMask","_class_wxMask",0},
8678 { "_wxPen","_class_wxPen",0},
8679 { "_byte","_unsigned_char",0},
8680 { "_wxDataObject","_class_wxDataObject",0},
8681 { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0},
8682 { "_wxPyDropSource","_class_wxPyDropSource",0},
8683 { "_long","_wxDash",0},
8684 { "_long","_unsigned_long",0},
8685 { "_long","_signed_long",0},
8686 { "_wxImageList","_class_wxImageList",0},
8687 { "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
8688 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
8689 { "_class_wxClipboard","_wxClipboard",0},
8690 { "_wxDC","_class_wxDC",0},
8691 { "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
8692 { "_size_t","_wxCoord",0},
8693 { "_size_t","_wxPrintQuality",0},
8694 { "_size_t","_unsigned_int",0},
8695 { "_size_t","_int",0},
8696 { "_size_t","_wxWindowID",0},
8697 { "_size_t","_uint",0},
8698 { "_class_wxRealPoint","_wxRealPoint",0},
8699 { "_wxPrinterDC","_class_wxPrinterDC",0},
8700 { "_class_wxMenuItem","_wxMenuItem",0},
8701 { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
8702 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
8703 { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
8704 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
8705 { "_wxPanel","_class_wxPanel",0},
8706 { "_class_wxMask","_wxMask",0},
8707 { "_wxTextDataObject","_class_wxTextDataObject",0},
8708 { "_wxColour","_class_wxColour",0},
8709 { "_class_wxDialog","_wxDialog",0},
8710 { "_class_wxFileDataObject","_wxFileDataObject",0},
8711 { "_class_wxDataObject","_wxDataObject",0},
8712 { "_wxBrush","_class_wxBrush",0},
8713 { "_wxDataFormat","_class_wxDataFormat",0},
8714 { "_class_wxDataObjectSimple","_wxDataObjectSimple",0},
8715 { "_uint","_wxCoord",0},
8716 { "_uint","_wxPrintQuality",0},
8717 { "_uint","_size_t",0},
8718 { "_uint","_unsigned_int",0},
8719 { "_uint","_int",0},
8720 { "_uint","_wxWindowID",0},
8721 { "_wxPyValidator","_class_wxPyValidator",0},
8722 { "_wxRect","_class_wxRect",0},
8723 { "_wxPoint","_class_wxPoint",0},
8724 { "_wxBitmap","_class_wxBitmap",0},
8725 { "_wxPyTimer","_class_wxPyTimer",0},
8726 { "_wxWindowDC","_class_wxWindowDC",0},
8727 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
8728 { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator},
8729 { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
8730 { "_class_wxValidator","_wxValidator",0},
8731 { "_wxDropTarget","_class_wxDropTarget",0},
8732 { "_EBool","_wxCoord",0},
8733 { "_EBool","_wxPrintQuality",0},
8734 { "_EBool","_signed_int",0},
8735 { "_EBool","_int",0},
8736 { "_EBool","_wxWindowID",0},
8737 { "_class_wxRegion","_wxRegion",0},
8738 { "_class_wxDataFormat","_wxDataFormat",0},
8739 { "_wxFont","_class_wxFont",0},
8740 { "_class_wxPyDropTarget","_wxPyDropTarget",0},
8741 { "_unsigned_long","_wxDash",0},
8742 { "_unsigned_long","_long",0},
8743 { "_class_wxRect","_wxRect",0},
8744 { "_class_wxDC","_wxDC",0},
8745 { "_class_wxPyTimer","_wxPyTimer",0},
8746 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
8747 { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
8748 { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
8749 { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
8750 { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
8751 { "_class_wxPanel","_wxPanel",0},
8752 { "_signed_int","_wxCoord",0},
8753 { "_signed_int","_wxPrintQuality",0},
8754 { "_signed_int","_EBool",0},
8755 { "_signed_int","_wxWindowID",0},
8756 { "_signed_int","_int",0},
8757 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
8758 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
8759 { "_class_wxTextDataObject","_wxTextDataObject",0},
8760 { "_wxMenu","_class_wxMenu",0},
8761 { "_wxScreenDC","_class_wxScreenDC",0},
8762 { "_WXTYPE","_short",0},
8763 { "_WXTYPE","_signed_short",0},
8764 { "_WXTYPE","_unsigned_short",0},
8765 { "_class_wxDropTarget","_wxDropTarget",0},
8766 { "_class_wxBrush","_wxBrush",0},
8767 { "_unsigned_short","_WXTYPE",0},
8768 { "_unsigned_short","_short",0},
8769 { "_class_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow},
8770 { "_class_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
8771 { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8772 { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8773 { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
8774 { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
8775 { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
8776 { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
8777 { "_class_wxWindow","_wxWindow",0},
8778 { "_class_wxFont","_wxFont",0},
8779 { "_wxClipboard","_class_wxClipboard",0},
8780 { "_class_wxPyValidator","_wxPyValidator",0},
8781 { "_wxBusyInfo","_class_wxBusyInfo",0},
8782 { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
8783 { "_wxClientDC","_class_wxClientDC",0},
8784 { "_class_wxPoint","_wxPoint",0},
8785 { "_wxRealPoint","_class_wxRealPoint",0},
8786 { "_signed_short","_WXTYPE",0},
8787 { "_signed_short","_short",0},
8788 { "_wxMemoryDC","_class_wxMemoryDC",0},
8789 { "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
8790 { "_wxPaintDC","_class_wxPaintDC",0},
8791 { "_class_wxWindowDC","_wxWindowDC",0},
8792 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
8793 { "_class_wxCursor","_wxCursor",0},
8794 { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
8795 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
8796 { "_unsigned_char","_byte",0},
8797 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
8798 { "_class_wxMenu","_wxMenu",0},
8799 { "_unsigned_int","_wxCoord",0},
8800 { "_unsigned_int","_wxPrintQuality",0},
8801 { "_unsigned_int","_size_t",0},
8802 { "_unsigned_int","_uint",0},
8803 { "_unsigned_int","_wxWindowID",0},
8804 { "_unsigned_int","_int",0},
8805 { "_wxIcon","_class_wxIcon",0},
8806 { "_wxDialog","_class_wxDialog",0},
8807 { "_class_wxPen","_wxPen",0},
8808 { "_short","_WXTYPE",0},
8809 { "_short","_unsigned_short",0},
8810 { "_short","_signed_short",0},
8811 { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0},
8812 { "_class_wxPyDropSource","_wxPyDropSource",0},
8813 { "_class_wxImageList","_wxImageList",0},
8814 { "_wxWindowID","_wxCoord",0},
8815 { "_wxWindowID","_wxPrintQuality",0},
8816 { "_wxWindowID","_size_t",0},
8817 { "_wxWindowID","_EBool",0},
8818 { "_wxWindowID","_uint",0},
8819 { "_wxWindowID","_int",0},
8820 { "_wxWindowID","_signed_int",0},
8821 { "_wxWindowID","_unsigned_int",0},
8822 { "_int","_wxCoord",0},
8823 { "_int","_wxPrintQuality",0},
8824 { "_int","_size_t",0},
8825 { "_int","_EBool",0},
8826 { "_int","_uint",0},
8827 { "_int","_wxWindowID",0},
8828 { "_int","_unsigned_int",0},
8829 { "_int","_signed_int",0},
8830 { "_wxSize","_class_wxSize",0},
8831 { "_wxRegionIterator","_class_wxRegionIterator",0},
8832 { "_class_wxPrinterDC","_wxPrinterDC",0},
8833 { "_class_wxPyTextDataObject","_wxPyTextDataObject",0},
8834 { "_class_wxPaintDC","_wxPaintDC",0},
8835 { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0},
8836 { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator},
8837 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
8838 { "_wxValidator","_class_wxValidator",0},
8839 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
8840 { "_class_wxIcon","_wxIcon",0},
8841 { "_class_wxColour","_wxColour",0},
8842 { "_class_wxScreenDC","_wxScreenDC",0},
8843 { "_wxPalette","_class_wxPalette",0},
8844 { "_wxCoord","_int",0},
8845 { "_wxCoord","_signed_int",0},
8846 { "_wxCoord","_unsigned_int",0},
8847 { "_wxCoord","_wxWindowID",0},
8848 { "_wxCoord","_uint",0},
8849 { "_wxCoord","_EBool",0},
8850 { "_wxCoord","_size_t",0},
8851 { "_wxCoord","_wxPrintQuality",0},
8852 { "_wxDataObjectComposite","_class_wxDataObjectComposite",0},
8853 { "_wxRegion","_class_wxRegion",0},
8854 { "_wxPyDropTarget","_class_wxPyDropTarget",0},
8855 { "_class_wxBusyInfo","_wxBusyInfo",0},
8856 { "_class_wxClientDC","_wxClientDC",0},
8857 { "_wxCustomDataObject","_class_wxCustomDataObject",0},
8858 { "_class_wxSize","_wxSize",0},
8859 { "_class_wxBitmap","_wxBitmap",0},
8860 { "_class_wxMemoryDC","_wxMemoryDC",0},
8861 { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0},
8862 { "_wxMenuBar","_class_wxMenuBar",0},
8863 { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8864 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8865 { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
8866 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
8867 { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8868 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8869 { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
8870 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
8871 { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
8872 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
8873 { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
8874 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
8875 { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8876 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8877 { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler},
8878 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
8879 { "_wxEvtHandler","_class_wxEvtHandler",0},
8880 { "_wxMenuItem","_class_wxMenuItem",0},
8881 { "_wxDash","_unsigned_long",0},
8882 { "_wxDash","_long",0},
8883 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
8884 { "_class_wxPalette","_wxPalette",0},
8885 { "_wxFileDataObject","_class_wxFileDataObject",0},
8886 { "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
8887 { "_wxWindow","_class_wxMenuBar",SwigwxMenuBarTowxWindow},
8888 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
8889 { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8890 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8891 { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
8892 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
8893 { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
8894 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
8895 { "_wxWindow","_class_wxWindow",0},
8896 {0,0,0}};
8897
8898 static PyObject *SWIG_globals;
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 SWIGEXPORT(void) initwindowsc() {
8903 PyObject *m, *d;
8904 SWIG_globals = SWIG_newvarlink();
8905 m = Py_InitModule("windowsc", windowscMethods);
8906 d = PyModule_GetDict(m);
8907 {
8908 int i;
8909 for (i = 0; _swig_mapping[i].n1; i++)
8910 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
8911 }
8912 }