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