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