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