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