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