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