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