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