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