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