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