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