]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/windows.cpp
added renderer.h/.cpp
[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 "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initwindowsc
54
55 #define SWIG_name "windowsc"
56
57 #include "helpers.h"
58 #include <wx/menuitem.h>
59 #include <wx/tooltip.h>
60
61
62 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86 }
87
88 // Put some wx default wxChar* values into wxStrings.
89 DECLARE_DEF_STRING(PanelNameStr);
90 static const wxString wxPyEmptyString(wxT(""));
91
92 class wxPyValidator : public wxValidator {
93 DECLARE_DYNAMIC_CLASS(wxPyValidator);
94 public:
95 wxPyValidator() {
96 }
97
98 ~wxPyValidator() {
99 }
100
101 wxObject* Clone() const {
102 wxPyValidator* ptr = NULL;
103 wxPyValidator* self = (wxPyValidator*)this;
104
105 wxPyBeginBlockThreads();
106 if (self->m_myInst.findCallback("Clone")) {
107 PyObject* ro;
108 ro = self->m_myInst.callCallbackObj(Py_BuildValue("()"));
109 if (ro) {
110 SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p");
111 Py_DECREF(ro);
112 }
113 }
114 wxPyEndBlockThreads();
115
116 // This is very dangerous!!! But is the only way I could find
117 // to squash a memory leak. Currently it is okay, but if the
118 // validator architecture in wxWindows ever changes, problems
119 // could arise.
120 delete self;
121 return ptr;
122 }
123
124
125 DEC_PYCALLBACK_BOOL_WXWIN(Validate);
126 DEC_PYCALLBACK_BOOL_(TransferToWindow);
127 DEC_PYCALLBACK_BOOL_(TransferFromWindow);
128
129 PYPRIVATE;
130 };
131
132 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
133 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
134 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
135
136 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
137
138
139 wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
140 wxWindow* win = new wxWindow;
141 win->SetHWND(hWnd);
142 win->SubclassWin(hWnd);
143 return win;
144 }
145
146 wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
147 return wxWindow::FindWindowById(id, parent);
148 }
149
150 wxWindow* wxFindWindowByName( const wxString& name,
151 const wxWindow *parent = NULL ) {
152 return wxWindow::FindWindowByName(name, parent);
153 }
154
155 wxWindow* wxFindWindowByLabel( const wxString& label,
156 const wxWindow *parent = NULL ) {
157 return wxWindow::FindWindowByLabel(label, parent);
158 }
159 #ifdef __cplusplus
160 extern "C" {
161 #endif
162 static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
163 PyObject * _resultobj;
164 wxWindow * _result;
165 unsigned long _arg0;
166 char *_kwnames[] = { "hWnd", NULL };
167
168 self = self;
169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0))
170 return NULL;
171 {
172 PyThreadState* __tstate = wxPyBeginAllowThreads();
173 _result = (wxWindow *)wxWindow_FromHWND(_arg0);
174
175 wxPyEndAllowThreads(__tstate);
176 if (PyErr_Occurred()) return NULL;
177 }{ _resultobj = wxPyMake_wxObject(_result); }
178 return _resultobj;
179 }
180
181 static PyObject *_wrap_wxFindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
182 PyObject * _resultobj;
183 wxWindow * _result;
184 long _arg0;
185 wxWindow * _arg1 = (wxWindow *) NULL;
186 PyObject * _argo1 = 0;
187 char *_kwnames[] = { "id","parent", NULL };
188
189 self = self;
190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l|O:wxFindWindowById",_kwnames,&_arg0,&_argo1))
191 return NULL;
192 if (_argo1) {
193 if (_argo1 == Py_None) { _arg1 = NULL; }
194 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
195 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowById. Expected _wxWindow_p.");
196 return NULL;
197 }
198 }
199 {
200 PyThreadState* __tstate = wxPyBeginAllowThreads();
201 _result = (wxWindow *)wxFindWindowById(_arg0,_arg1);
202
203 wxPyEndAllowThreads(__tstate);
204 if (PyErr_Occurred()) return NULL;
205 }{ _resultobj = wxPyMake_wxObject(_result); }
206 return _resultobj;
207 }
208
209 static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
210 PyObject * _resultobj;
211 wxWindow * _result;
212 wxString * _arg0;
213 wxWindow * _arg1 = (wxWindow *) NULL;
214 PyObject * _obj0 = 0;
215 PyObject * _argo1 = 0;
216 char *_kwnames[] = { "name","parent", NULL };
217
218 self = self;
219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1))
220 return NULL;
221 {
222 _arg0 = wxString_in_helper(_obj0);
223 if (_arg0 == NULL)
224 return NULL;
225 }
226 if (_argo1) {
227 if (_argo1 == Py_None) { _arg1 = NULL; }
228 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
229 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p.");
230 return NULL;
231 }
232 }
233 {
234 PyThreadState* __tstate = wxPyBeginAllowThreads();
235 _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1);
236
237 wxPyEndAllowThreads(__tstate);
238 if (PyErr_Occurred()) return NULL;
239 }{ _resultobj = wxPyMake_wxObject(_result); }
240 {
241 if (_obj0)
242 delete _arg0;
243 }
244 return _resultobj;
245 }
246
247 static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
248 PyObject * _resultobj;
249 wxWindow * _result;
250 wxString * _arg0;
251 wxWindow * _arg1 = (wxWindow *) NULL;
252 PyObject * _obj0 = 0;
253 PyObject * _argo1 = 0;
254 char *_kwnames[] = { "label","parent", NULL };
255
256 self = self;
257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1))
258 return NULL;
259 {
260 _arg0 = wxString_in_helper(_obj0);
261 if (_arg0 == NULL)
262 return NULL;
263 }
264 if (_argo1) {
265 if (_argo1 == Py_None) { _arg1 = NULL; }
266 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
267 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p.");
268 return NULL;
269 }
270 }
271 {
272 PyThreadState* __tstate = wxPyBeginAllowThreads();
273 _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1);
274
275 wxPyEndAllowThreads(__tstate);
276 if (PyErr_Occurred()) return NULL;
277 }{ _resultobj = wxPyMake_wxObject(_result); }
278 {
279 if (_obj0)
280 delete _arg0;
281 }
282 return _resultobj;
283 }
284
285 static void *SwigwxEvtHandlerTowxObject(void *ptr) {
286 wxEvtHandler *src;
287 wxObject *dest;
288 src = (wxEvtHandler *) ptr;
289 dest = (wxObject *) src;
290 return (void *) dest;
291 }
292
293 #define new_wxEvtHandler() (new wxEvtHandler())
294 static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
295 PyObject * _resultobj;
296 wxEvtHandler * _result;
297 char *_kwnames[] = { NULL };
298 char _ptemp[128];
299
300 self = self;
301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames))
302 return NULL;
303 {
304 PyThreadState* __tstate = wxPyBeginAllowThreads();
305 _result = (wxEvtHandler *)new_wxEvtHandler();
306
307 wxPyEndAllowThreads(__tstate);
308 if (PyErr_Occurred()) return NULL;
309 } if (_result) {
310 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
311 _resultobj = Py_BuildValue("s",_ptemp);
312 } else {
313 Py_INCREF(Py_None);
314 _resultobj = Py_None;
315 }
316 return _resultobj;
317 }
318
319 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
320 static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
321 PyObject * _resultobj;
322 bool _result;
323 wxEvtHandler * _arg0;
324 wxEvent * _arg1;
325 PyObject * _argo0 = 0;
326 PyObject * _argo1 = 0;
327 char *_kwnames[] = { "self","event", NULL };
328
329 self = self;
330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1))
331 return NULL;
332 if (_argo0) {
333 if (_argo0 == Py_None) { _arg0 = NULL; }
334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
336 return NULL;
337 }
338 }
339 if (_argo1) {
340 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
341 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
342 return NULL;
343 }
344 }
345 {
346 PyThreadState* __tstate = wxPyBeginAllowThreads();
347 _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1);
348
349 wxPyEndAllowThreads(__tstate);
350 if (PyErr_Occurred()) return NULL;
351 } _resultobj = Py_BuildValue("i",_result);
352 return _resultobj;
353 }
354
355 #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0))
356 static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
357 PyObject * _resultobj;
358 wxEvtHandler * _arg0;
359 wxEvent * _arg1;
360 PyObject * _argo0 = 0;
361 PyObject * _argo1 = 0;
362 char *_kwnames[] = { "self","event", NULL };
363
364 self = self;
365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1))
366 return NULL;
367 if (_argo0) {
368 if (_argo0 == Py_None) { _arg0 = NULL; }
369 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
370 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p.");
371 return NULL;
372 }
373 }
374 if (_argo1) {
375 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
376 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p.");
377 return NULL;
378 }
379 }
380 {
381 PyThreadState* __tstate = wxPyBeginAllowThreads();
382 wxEvtHandler_AddPendingEvent(_arg0,*_arg1);
383
384 wxPyEndAllowThreads(__tstate);
385 if (PyErr_Occurred()) return NULL;
386 } Py_INCREF(Py_None);
387 _resultobj = Py_None;
388 return _resultobj;
389 }
390
391 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
392 static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
393 PyObject * _resultobj;
394 bool _result;
395 wxEvtHandler * _arg0;
396 PyObject * _argo0 = 0;
397 char *_kwnames[] = { "self", NULL };
398
399 self = self;
400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0))
401 return NULL;
402 if (_argo0) {
403 if (_argo0 == Py_None) { _arg0 = NULL; }
404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
406 return NULL;
407 }
408 }
409 {
410 PyThreadState* __tstate = wxPyBeginAllowThreads();
411 _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0);
412
413 wxPyEndAllowThreads(__tstate);
414 if (PyErr_Occurred()) return NULL;
415 } _resultobj = Py_BuildValue("i",_result);
416 return _resultobj;
417 }
418
419 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
420 static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
421 PyObject * _resultobj;
422 wxEvtHandler * _arg0;
423 bool _arg1;
424 PyObject * _argo0 = 0;
425 int tempbool1;
426 char *_kwnames[] = { "self","enabled", NULL };
427
428 self = self;
429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1))
430 return NULL;
431 if (_argo0) {
432 if (_argo0 == Py_None) { _arg0 = NULL; }
433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
435 return NULL;
436 }
437 }
438 _arg1 = (bool ) tempbool1;
439 {
440 PyThreadState* __tstate = wxPyBeginAllowThreads();
441 wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1);
442
443 wxPyEndAllowThreads(__tstate);
444 if (PyErr_Occurred()) return NULL;
445 } Py_INCREF(Py_None);
446 _resultobj = Py_None;
447 return _resultobj;
448 }
449
450 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
451 static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
452 PyObject * _resultobj;
453 wxEvtHandler * _result;
454 wxEvtHandler * _arg0;
455 PyObject * _argo0 = 0;
456 char *_kwnames[] = { "self", NULL };
457
458 self = self;
459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0))
460 return NULL;
461 if (_argo0) {
462 if (_argo0 == Py_None) { _arg0 = NULL; }
463 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
464 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
465 return NULL;
466 }
467 }
468 {
469 PyThreadState* __tstate = wxPyBeginAllowThreads();
470 _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0);
471
472 wxPyEndAllowThreads(__tstate);
473 if (PyErr_Occurred()) return NULL;
474 }{ _resultobj = wxPyMake_wxObject(_result); }
475 return _resultobj;
476 }
477
478 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
479 static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
480 PyObject * _resultobj;
481 wxEvtHandler * _result;
482 wxEvtHandler * _arg0;
483 PyObject * _argo0 = 0;
484 char *_kwnames[] = { "self", NULL };
485
486 self = self;
487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0))
488 return NULL;
489 if (_argo0) {
490 if (_argo0 == Py_None) { _arg0 = NULL; }
491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
493 return NULL;
494 }
495 }
496 {
497 PyThreadState* __tstate = wxPyBeginAllowThreads();
498 _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0);
499
500 wxPyEndAllowThreads(__tstate);
501 if (PyErr_Occurred()) return NULL;
502 }{ _resultobj = wxPyMake_wxObject(_result); }
503 return _resultobj;
504 }
505
506 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
507 static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
508 PyObject * _resultobj;
509 wxEvtHandler * _arg0;
510 wxEvtHandler * _arg1;
511 PyObject * _argo0 = 0;
512 PyObject * _argo1 = 0;
513 char *_kwnames[] = { "self","handler", NULL };
514
515 self = self;
516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1))
517 return NULL;
518 if (_argo0) {
519 if (_argo0 == Py_None) { _arg0 = NULL; }
520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
522 return NULL;
523 }
524 }
525 if (_argo1) {
526 if (_argo1 == Py_None) { _arg1 = NULL; }
527 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
528 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
529 return NULL;
530 }
531 }
532 {
533 PyThreadState* __tstate = wxPyBeginAllowThreads();
534 wxEvtHandler_SetNextHandler(_arg0,_arg1);
535
536 wxPyEndAllowThreads(__tstate);
537 if (PyErr_Occurred()) return NULL;
538 } Py_INCREF(Py_None);
539 _resultobj = Py_None;
540 return _resultobj;
541 }
542
543 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
544 static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
545 PyObject * _resultobj;
546 wxEvtHandler * _arg0;
547 wxEvtHandler * _arg1;
548 PyObject * _argo0 = 0;
549 PyObject * _argo1 = 0;
550 char *_kwnames[] = { "self","handler", NULL };
551
552 self = self;
553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1))
554 return NULL;
555 if (_argo0) {
556 if (_argo0 == Py_None) { _arg0 = NULL; }
557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
559 return NULL;
560 }
561 }
562 if (_argo1) {
563 if (_argo1 == Py_None) { _arg1 = NULL; }
564 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
565 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
566 return NULL;
567 }
568 }
569 {
570 PyThreadState* __tstate = wxPyBeginAllowThreads();
571 wxEvtHandler_SetPreviousHandler(_arg0,_arg1);
572
573 wxPyEndAllowThreads(__tstate);
574 if (PyErr_Occurred()) return NULL;
575 } Py_INCREF(Py_None);
576 _resultobj = Py_None;
577 return _resultobj;
578 }
579
580 static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) {
581 if (PyCallable_Check(func)) {
582 self->Connect(id, lastId, eventType,
583 (wxObjectEventFunction) &wxPyCallback::EventThunker,
584 new wxPyCallback(func));
585 }
586 else if (func == Py_None) {
587 self->Disconnect(id, lastId, eventType,
588 (wxObjectEventFunction)
589 &wxPyCallback::EventThunker);
590 }
591 else {
592 PyErr_SetString(PyExc_TypeError, "Expected callable object or None.");
593 }
594 }
595 static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
596 PyObject * _resultobj;
597 wxEvtHandler * _arg0;
598 int _arg1;
599 int _arg2;
600 int _arg3;
601 PyObject * _arg4;
602 PyObject * _argo0 = 0;
603 PyObject * _obj4 = 0;
604 char *_kwnames[] = { "self","id","lastId","eventType","func", NULL };
605
606 self = self;
607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
608 return NULL;
609 if (_argo0) {
610 if (_argo0 == Py_None) { _arg0 = NULL; }
611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
613 return NULL;
614 }
615 }
616 {
617 _arg4 = _obj4;
618 }
619 {
620 PyThreadState* __tstate = wxPyBeginAllowThreads();
621 wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4);
622
623 wxPyEndAllowThreads(__tstate);
624 if (PyErr_Occurred()) return NULL;
625 } Py_INCREF(Py_None);
626 _resultobj = Py_None;
627 return _resultobj;
628 }
629
630 static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) {
631 return self->Disconnect(id, lastId, eventType,
632 (wxObjectEventFunction)
633 &wxPyCallback::EventThunker);
634 }
635 static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
636 PyObject * _resultobj;
637 bool _result;
638 wxEvtHandler * _arg0;
639 int _arg1;
640 int _arg2 = (int ) -1;
641 wxEventType _arg3 = (wxEventType ) wxEVT_NULL;
642 PyObject * _argo0 = 0;
643 char *_kwnames[] = { "self","id","lastId","eventType", NULL };
644
645 self = self;
646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
647 return NULL;
648 if (_argo0) {
649 if (_argo0 == Py_None) { _arg0 = NULL; }
650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p.");
652 return NULL;
653 }
654 }
655 {
656 PyThreadState* __tstate = wxPyBeginAllowThreads();
657 _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3);
658
659 wxPyEndAllowThreads(__tstate);
660 if (PyErr_Occurred()) return NULL;
661 } _resultobj = Py_BuildValue("i",_result);
662 return _resultobj;
663 }
664
665 static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) {
666 self->SetClientObject(new wxPyOORClientData(_self));
667 }
668 static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
669 PyObject * _resultobj;
670 wxEvtHandler * _arg0;
671 PyObject * _arg1;
672 PyObject * _argo0 = 0;
673 PyObject * _obj1 = 0;
674 char *_kwnames[] = { "self","_self", NULL };
675
676 self = self;
677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1))
678 return NULL;
679 if (_argo0) {
680 if (_argo0 == Py_None) { _arg0 = NULL; }
681 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
682 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p.");
683 return NULL;
684 }
685 }
686 {
687 _arg1 = _obj1;
688 }
689 {
690 PyThreadState* __tstate = wxPyBeginAllowThreads();
691 wxEvtHandler__setOORInfo(_arg0,_arg1);
692
693 wxPyEndAllowThreads(__tstate);
694 if (PyErr_Occurred()) return NULL;
695 } Py_INCREF(Py_None);
696 _resultobj = Py_None;
697 return _resultobj;
698 }
699
700 static void *SwigwxValidatorTowxEvtHandler(void *ptr) {
701 wxValidator *src;
702 wxEvtHandler *dest;
703 src = (wxValidator *) ptr;
704 dest = (wxEvtHandler *) src;
705 return (void *) dest;
706 }
707
708 static void *SwigwxValidatorTowxObject(void *ptr) {
709 wxValidator *src;
710 wxObject *dest;
711 src = (wxValidator *) ptr;
712 dest = (wxObject *) src;
713 return (void *) dest;
714 }
715
716 #define new_wxValidator() (new wxValidator())
717 static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
718 PyObject * _resultobj;
719 wxValidator * _result;
720 char *_kwnames[] = { NULL };
721 char _ptemp[128];
722
723 self = self;
724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames))
725 return NULL;
726 {
727 PyThreadState* __tstate = wxPyBeginAllowThreads();
728 _result = (wxValidator *)new_wxValidator();
729
730 wxPyEndAllowThreads(__tstate);
731 if (PyErr_Occurred()) return NULL;
732 } if (_result) {
733 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
734 _resultobj = Py_BuildValue("s",_ptemp);
735 } else {
736 Py_INCREF(Py_None);
737 _resultobj = Py_None;
738 }
739 return _resultobj;
740 }
741
742 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
743 static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
744 PyObject * _resultobj;
745 wxValidator * _result;
746 wxValidator * _arg0;
747 PyObject * _argo0 = 0;
748 char *_kwnames[] = { "self", NULL };
749
750 self = self;
751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0))
752 return NULL;
753 if (_argo0) {
754 if (_argo0 == Py_None) { _arg0 = NULL; }
755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
757 return NULL;
758 }
759 }
760 {
761 PyThreadState* __tstate = wxPyBeginAllowThreads();
762 _result = (wxValidator *)wxValidator_Clone(_arg0);
763
764 wxPyEndAllowThreads(__tstate);
765 if (PyErr_Occurred()) return NULL;
766 }{ _resultobj = wxPyMake_wxObject(_result); }
767 return _resultobj;
768 }
769
770 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
771 static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
772 PyObject * _resultobj;
773 wxWindow * _result;
774 wxValidator * _arg0;
775 PyObject * _argo0 = 0;
776 char *_kwnames[] = { "self", NULL };
777
778 self = self;
779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0))
780 return NULL;
781 if (_argo0) {
782 if (_argo0 == Py_None) { _arg0 = NULL; }
783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
785 return NULL;
786 }
787 }
788 {
789 PyThreadState* __tstate = wxPyBeginAllowThreads();
790 _result = (wxWindow *)wxValidator_GetWindow(_arg0);
791
792 wxPyEndAllowThreads(__tstate);
793 if (PyErr_Occurred()) return NULL;
794 }{ _resultobj = wxPyMake_wxObject(_result); }
795 return _resultobj;
796 }
797
798 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
799 static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
800 PyObject * _resultobj;
801 wxValidator * _arg0;
802 wxWindow * _arg1;
803 PyObject * _argo0 = 0;
804 PyObject * _argo1 = 0;
805 char *_kwnames[] = { "self","window", NULL };
806
807 self = self;
808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1))
809 return NULL;
810 if (_argo0) {
811 if (_argo0 == Py_None) { _arg0 = NULL; }
812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
814 return NULL;
815 }
816 }
817 if (_argo1) {
818 if (_argo1 == Py_None) { _arg1 = NULL; }
819 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
820 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
821 return NULL;
822 }
823 }
824 {
825 PyThreadState* __tstate = wxPyBeginAllowThreads();
826 wxValidator_SetWindow(_arg0,_arg1);
827
828 wxPyEndAllowThreads(__tstate);
829 if (PyErr_Occurred()) return NULL;
830 } Py_INCREF(Py_None);
831 _resultobj = Py_None;
832 return _resultobj;
833 }
834
835 static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
836 PyObject * _resultobj;
837 bool _result;
838 char *_kwnames[] = { NULL };
839
840 self = self;
841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames))
842 return NULL;
843 {
844 PyThreadState* __tstate = wxPyBeginAllowThreads();
845 _result = (bool )wxValidator::IsSilent();
846
847 wxPyEndAllowThreads(__tstate);
848 if (PyErr_Occurred()) return NULL;
849 } _resultobj = Py_BuildValue("i",_result);
850 return _resultobj;
851 }
852
853 static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
854 PyObject * _resultobj;
855 int _arg0 = (int ) TRUE;
856 char *_kwnames[] = { "doIt", NULL };
857
858 self = self;
859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0))
860 return NULL;
861 {
862 PyThreadState* __tstate = wxPyBeginAllowThreads();
863 wxValidator::SetBellOnError(_arg0);
864
865 wxPyEndAllowThreads(__tstate);
866 if (PyErr_Occurred()) return NULL;
867 } Py_INCREF(Py_None);
868 _resultobj = Py_None;
869 return _resultobj;
870 }
871
872 static void *SwigwxPyValidatorTowxValidator(void *ptr) {
873 wxPyValidator *src;
874 wxValidator *dest;
875 src = (wxPyValidator *) ptr;
876 dest = (wxValidator *) src;
877 return (void *) dest;
878 }
879
880 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) {
881 wxPyValidator *src;
882 wxEvtHandler *dest;
883 src = (wxPyValidator *) ptr;
884 dest = (wxEvtHandler *) src;
885 return (void *) dest;
886 }
887
888 static void *SwigwxPyValidatorTowxObject(void *ptr) {
889 wxPyValidator *src;
890 wxObject *dest;
891 src = (wxPyValidator *) ptr;
892 dest = (wxObject *) src;
893 return (void *) dest;
894 }
895
896 #define new_wxPyValidator() (new wxPyValidator())
897 static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
898 PyObject * _resultobj;
899 wxPyValidator * _result;
900 char *_kwnames[] = { NULL };
901 char _ptemp[128];
902
903 self = self;
904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames))
905 return NULL;
906 {
907 PyThreadState* __tstate = wxPyBeginAllowThreads();
908 _result = (wxPyValidator *)new_wxPyValidator();
909
910 wxPyEndAllowThreads(__tstate);
911 if (PyErr_Occurred()) return NULL;
912 } if (_result) {
913 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p");
914 _resultobj = Py_BuildValue("s",_ptemp);
915 } else {
916 Py_INCREF(Py_None);
917 _resultobj = Py_None;
918 }
919 return _resultobj;
920 }
921
922 #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
923 static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
924 PyObject * _resultobj;
925 wxPyValidator * _arg0;
926 PyObject * _arg1;
927 PyObject * _arg2;
928 int _arg3 = (int ) TRUE;
929 PyObject * _argo0 = 0;
930 PyObject * _obj1 = 0;
931 PyObject * _obj2 = 0;
932 char *_kwnames[] = { "self","self","_class","incref", NULL };
933
934 self = self;
935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3))
936 return NULL;
937 if (_argo0) {
938 if (_argo0 == Py_None) { _arg0 = NULL; }
939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) {
940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p.");
941 return NULL;
942 }
943 }
944 {
945 _arg1 = _obj1;
946 }
947 {
948 _arg2 = _obj2;
949 }
950 {
951 PyThreadState* __tstate = wxPyBeginAllowThreads();
952 wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3);
953
954 wxPyEndAllowThreads(__tstate);
955 if (PyErr_Occurred()) return NULL;
956 } Py_INCREF(Py_None);
957 _resultobj = Py_None;
958 return _resultobj;
959 }
960
961 static void *SwigwxWindowTowxEvtHandler(void *ptr) {
962 wxWindow *src;
963 wxEvtHandler *dest;
964 src = (wxWindow *) ptr;
965 dest = (wxEvtHandler *) src;
966 return (void *) dest;
967 }
968
969 static void *SwigwxWindowTowxObject(void *ptr) {
970 wxWindow *src;
971 wxObject *dest;
972 src = (wxWindow *) ptr;
973 dest = (wxObject *) src;
974 return (void *) dest;
975 }
976
977 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
978 static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
979 PyObject * _resultobj;
980 wxWindow * _result;
981 wxWindow * _arg0;
982 wxWindowID _arg1;
983 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
984 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
985 long _arg4 = (long ) 0;
986 wxString * _arg5 = (wxString *) &wxPyPanelNameStr;
987 PyObject * _argo0 = 0;
988 wxPoint temp;
989 PyObject * _obj2 = 0;
990 wxSize temp0;
991 PyObject * _obj3 = 0;
992 PyObject * _obj5 = 0;
993 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
994 char _ptemp[128];
995
996 self = self;
997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
998 return NULL;
999 if (_argo0) {
1000 if (_argo0 == Py_None) { _arg0 = NULL; }
1001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
1003 return NULL;
1004 }
1005 }
1006 if (_obj2)
1007 {
1008 _arg2 = &temp;
1009 if (! wxPoint_helper(_obj2, &_arg2))
1010 return NULL;
1011 }
1012 if (_obj3)
1013 {
1014 _arg3 = &temp0;
1015 if (! wxSize_helper(_obj3, &_arg3))
1016 return NULL;
1017 }
1018 if (_obj5)
1019 {
1020 _arg5 = wxString_in_helper(_obj5);
1021 if (_arg5 == NULL)
1022 return NULL;
1023 }
1024 {
1025 PyThreadState* __tstate = wxPyBeginAllowThreads();
1026 _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
1027
1028 wxPyEndAllowThreads(__tstate);
1029 if (PyErr_Occurred()) return NULL;
1030 } if (_result) {
1031 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1032 _resultobj = Py_BuildValue("s",_ptemp);
1033 } else {
1034 Py_INCREF(Py_None);
1035 _resultobj = Py_None;
1036 }
1037 {
1038 if (_obj5)
1039 delete _arg5;
1040 }
1041 return _resultobj;
1042 }
1043
1044 #define new_wxPreWindow() (new wxWindow())
1045 static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1046 PyObject * _resultobj;
1047 wxWindow * _result;
1048 char *_kwnames[] = { NULL };
1049 char _ptemp[128];
1050
1051 self = self;
1052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames))
1053 return NULL;
1054 {
1055 PyThreadState* __tstate = wxPyBeginAllowThreads();
1056 _result = (wxWindow *)new_wxPreWindow();
1057
1058 wxPyEndAllowThreads(__tstate);
1059 if (PyErr_Occurred()) return NULL;
1060 } if (_result) {
1061 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1062 _resultobj = Py_BuildValue("s",_ptemp);
1063 } else {
1064 Py_INCREF(Py_None);
1065 _resultobj = Py_None;
1066 }
1067 return _resultobj;
1068 }
1069
1070 #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1071 static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1072 PyObject * _resultobj;
1073 bool _result;
1074 wxWindow * _arg0;
1075 wxWindow * _arg1;
1076 wxWindowID _arg2;
1077 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1078 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1079 long _arg5 = (long ) 0;
1080 wxString * _arg6 = (wxString *) &wxPyPanelNameStr;
1081 PyObject * _argo0 = 0;
1082 PyObject * _argo1 = 0;
1083 wxPoint temp;
1084 PyObject * _obj3 = 0;
1085 wxSize temp0;
1086 PyObject * _obj4 = 0;
1087 PyObject * _obj6 = 0;
1088 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
1089
1090 self = self;
1091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
1092 return NULL;
1093 if (_argo0) {
1094 if (_argo0 == Py_None) { _arg0 = NULL; }
1095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p.");
1097 return NULL;
1098 }
1099 }
1100 if (_argo1) {
1101 if (_argo1 == Py_None) { _arg1 = NULL; }
1102 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1103 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p.");
1104 return NULL;
1105 }
1106 }
1107 if (_obj3)
1108 {
1109 _arg3 = &temp;
1110 if (! wxPoint_helper(_obj3, &_arg3))
1111 return NULL;
1112 }
1113 if (_obj4)
1114 {
1115 _arg4 = &temp0;
1116 if (! wxSize_helper(_obj4, &_arg4))
1117 return NULL;
1118 }
1119 if (_obj6)
1120 {
1121 _arg6 = wxString_in_helper(_obj6);
1122 if (_arg6 == NULL)
1123 return NULL;
1124 }
1125 {
1126 PyThreadState* __tstate = wxPyBeginAllowThreads();
1127 _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
1128
1129 wxPyEndAllowThreads(__tstate);
1130 if (PyErr_Occurred()) return NULL;
1131 } _resultobj = Py_BuildValue("i",_result);
1132 {
1133 if (_obj6)
1134 delete _arg6;
1135 }
1136 return _resultobj;
1137 }
1138
1139 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
1140 static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
1141 PyObject * _resultobj;
1142 wxWindow * _arg0;
1143 int _arg1 = (int ) wxBOTH;
1144 PyObject * _argo0 = 0;
1145 char *_kwnames[] = { "self","direction", NULL };
1146
1147 self = self;
1148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1))
1149 return NULL;
1150 if (_argo0) {
1151 if (_argo0 == Py_None) { _arg0 = NULL; }
1152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
1154 return NULL;
1155 }
1156 }
1157 {
1158 PyThreadState* __tstate = wxPyBeginAllowThreads();
1159 wxWindow_Center(_arg0,_arg1);
1160
1161 wxPyEndAllowThreads(__tstate);
1162 if (PyErr_Occurred()) return NULL;
1163 } Py_INCREF(Py_None);
1164 _resultobj = Py_None;
1165 return _resultobj;
1166 }
1167
1168 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1169 static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
1170 PyObject * _resultobj;
1171 wxWindow * _arg0;
1172 int _arg1 = (int ) wxBOTH;
1173 PyObject * _argo0 = 0;
1174 char *_kwnames[] = { "self","direction", NULL };
1175
1176 self = self;
1177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1))
1178 return NULL;
1179 if (_argo0) {
1180 if (_argo0 == Py_None) { _arg0 = NULL; }
1181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
1183 return NULL;
1184 }
1185 }
1186 {
1187 PyThreadState* __tstate = wxPyBeginAllowThreads();
1188 wxWindow_Centre(_arg0,_arg1);
1189
1190 wxPyEndAllowThreads(__tstate);
1191 if (PyErr_Occurred()) return NULL;
1192 } Py_INCREF(Py_None);
1193 _resultobj = Py_None;
1194 return _resultobj;
1195 }
1196
1197 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
1198 static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1199 PyObject * _resultobj;
1200 wxWindow * _arg0;
1201 int _arg1 = (int ) wxBOTH;
1202 PyObject * _argo0 = 0;
1203 char *_kwnames[] = { "self","direction", NULL };
1204
1205 self = self;
1206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1))
1207 return NULL;
1208 if (_argo0) {
1209 if (_argo0 == Py_None) { _arg0 = NULL; }
1210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
1212 return NULL;
1213 }
1214 }
1215 {
1216 PyThreadState* __tstate = wxPyBeginAllowThreads();
1217 wxWindow_CentreOnParent(_arg0,_arg1);
1218
1219 wxPyEndAllowThreads(__tstate);
1220 if (PyErr_Occurred()) return NULL;
1221 } Py_INCREF(Py_None);
1222 _resultobj = Py_None;
1223 return _resultobj;
1224 }
1225
1226 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
1227 static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1228 PyObject * _resultobj;
1229 wxWindow * _arg0;
1230 int _arg1 = (int ) wxBOTH;
1231 PyObject * _argo0 = 0;
1232 char *_kwnames[] = { "self","direction", NULL };
1233
1234 self = self;
1235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1))
1236 return NULL;
1237 if (_argo0) {
1238 if (_argo0 == Py_None) { _arg0 = NULL; }
1239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
1241 return NULL;
1242 }
1243 }
1244 {
1245 PyThreadState* __tstate = wxPyBeginAllowThreads();
1246 wxWindow_CenterOnParent(_arg0,_arg1);
1247
1248 wxPyEndAllowThreads(__tstate);
1249 if (PyErr_Occurred()) return NULL;
1250 } Py_INCREF(Py_None);
1251 _resultobj = Py_None;
1252 return _resultobj;
1253 }
1254
1255 #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0))
1256 static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1257 PyObject * _resultobj;
1258 wxWindow * _arg0;
1259 int _arg1 = (int ) wxBOTH;
1260 PyObject * _argo0 = 0;
1261 char *_kwnames[] = { "self","direction", NULL };
1262
1263 self = self;
1264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1))
1265 return NULL;
1266 if (_argo0) {
1267 if (_argo0 == Py_None) { _arg0 = NULL; }
1268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p.");
1270 return NULL;
1271 }
1272 }
1273 {
1274 PyThreadState* __tstate = wxPyBeginAllowThreads();
1275 wxWindow_CentreOnScreen(_arg0,_arg1);
1276
1277 wxPyEndAllowThreads(__tstate);
1278 if (PyErr_Occurred()) return NULL;
1279 } Py_INCREF(Py_None);
1280 _resultobj = Py_None;
1281 return _resultobj;
1282 }
1283
1284 #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0))
1285 static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1286 PyObject * _resultobj;
1287 wxWindow * _arg0;
1288 int _arg1 = (int ) wxBOTH;
1289 PyObject * _argo0 = 0;
1290 char *_kwnames[] = { "self","direction", NULL };
1291
1292 self = self;
1293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1))
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_CenterOnScreen. Expected _wxWindow_p.");
1299 return NULL;
1300 }
1301 }
1302 {
1303 PyThreadState* __tstate = wxPyBeginAllowThreads();
1304 wxWindow_CenterOnScreen(_arg0,_arg1);
1305
1306 wxPyEndAllowThreads(__tstate);
1307 if (PyErr_Occurred()) return NULL;
1308 } Py_INCREF(Py_None);
1309 _resultobj = Py_None;
1310 return _resultobj;
1311 }
1312
1313 #define wxWindow_Clear(_swigobj) (_swigobj->Clear())
1314 static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
1315 PyObject * _resultobj;
1316 wxWindow * _arg0;
1317 PyObject * _argo0 = 0;
1318 char *_kwnames[] = { "self", NULL };
1319
1320 self = self;
1321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0))
1322 return NULL;
1323 if (_argo0) {
1324 if (_argo0 == Py_None) { _arg0 = NULL; }
1325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p.");
1327 return NULL;
1328 }
1329 }
1330 {
1331 PyThreadState* __tstate = wxPyBeginAllowThreads();
1332 wxWindow_Clear(_arg0);
1333
1334 wxPyEndAllowThreads(__tstate);
1335 if (PyErr_Occurred()) return NULL;
1336 } Py_INCREF(Py_None);
1337 _resultobj = Py_None;
1338 return _resultobj;
1339 }
1340
1341 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
1342 static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
1343 PyObject * _resultobj;
1344 wxWindow * _arg0;
1345 int * _arg1;
1346 int * _arg2;
1347 PyObject * _argo0 = 0;
1348 int temp;
1349 PyObject * _obj1 = 0;
1350 int temp0;
1351 PyObject * _obj2 = 0;
1352 char *_kwnames[] = { "self","x","y", NULL };
1353
1354 self = self;
1355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2))
1356 return NULL;
1357 if (_argo0) {
1358 if (_argo0 == Py_None) { _arg0 = NULL; }
1359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
1361 return NULL;
1362 }
1363 }
1364 {
1365 temp = (int) PyInt_AsLong(_obj1);
1366 _arg1 = &temp;
1367 }
1368 {
1369 temp0 = (int) PyInt_AsLong(_obj2);
1370 _arg2 = &temp0;
1371 }
1372 {
1373 PyThreadState* __tstate = wxPyBeginAllowThreads();
1374 wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2);
1375
1376 wxPyEndAllowThreads(__tstate);
1377 if (PyErr_Occurred()) return NULL;
1378 } Py_INCREF(Py_None);
1379 _resultobj = Py_None;
1380 {
1381 PyObject *o;
1382 o = PyInt_FromLong((long) (*_arg1));
1383 _resultobj = t_output_helper(_resultobj, o);
1384 }
1385 {
1386 PyObject *o;
1387 o = PyInt_FromLong((long) (*_arg2));
1388 _resultobj = t_output_helper(_resultobj, o);
1389 }
1390 return _resultobj;
1391 }
1392
1393 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1394 static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1395 PyObject * _resultobj;
1396 wxPoint * _result;
1397 wxWindow * _arg0;
1398 wxPoint * _arg1;
1399 PyObject * _argo0 = 0;
1400 wxPoint temp;
1401 PyObject * _obj1 = 0;
1402 char *_kwnames[] = { "self","pt", NULL };
1403 char _ptemp[128];
1404
1405 self = self;
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1))
1407 return NULL;
1408 if (_argo0) {
1409 if (_argo0 == Py_None) { _arg0 = NULL; }
1410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1412 return NULL;
1413 }
1414 }
1415 {
1416 _arg1 = &temp;
1417 if (! wxPoint_helper(_obj1, &_arg1))
1418 return NULL;
1419 }
1420 {
1421 PyThreadState* __tstate = wxPyBeginAllowThreads();
1422 _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1));
1423
1424 wxPyEndAllowThreads(__tstate);
1425 if (PyErr_Occurred()) return NULL;
1426 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1427 _resultobj = Py_BuildValue("s",_ptemp);
1428 return _resultobj;
1429 }
1430
1431 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1432 static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
1433 PyObject * _resultobj;
1434 bool _result;
1435 wxWindow * _arg0;
1436 int _arg1 = (int ) FALSE;
1437 PyObject * _argo0 = 0;
1438 char *_kwnames[] = { "self","force", NULL };
1439
1440 self = self;
1441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1))
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_Close. Expected _wxWindow_p.");
1447 return NULL;
1448 }
1449 }
1450 {
1451 PyThreadState* __tstate = wxPyBeginAllowThreads();
1452 _result = (bool )wxWindow_Close(_arg0,_arg1);
1453
1454 wxPyEndAllowThreads(__tstate);
1455 if (PyErr_Occurred()) return NULL;
1456 } _resultobj = Py_BuildValue("i",_result);
1457 return _resultobj;
1458 }
1459
1460 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1461 static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1462 PyObject * _resultobj;
1463 bool _result;
1464 wxWindow * _arg0;
1465 PyObject * _argo0 = 0;
1466 char *_kwnames[] = { "self", NULL };
1467
1468 self = self;
1469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0))
1470 return NULL;
1471 if (_argo0) {
1472 if (_argo0 == Py_None) { _arg0 = NULL; }
1473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1475 return NULL;
1476 }
1477 }
1478 {
1479 PyThreadState* __tstate = wxPyBeginAllowThreads();
1480 _result = (bool )wxWindow_Destroy(_arg0);
1481
1482 wxPyEndAllowThreads(__tstate);
1483 if (PyErr_Occurred()) return NULL;
1484 } _resultobj = Py_BuildValue("i",_result);
1485 return _resultobj;
1486 }
1487
1488 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1489 static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1490 PyObject * _resultobj;
1491 wxWindow * _arg0;
1492 PyObject * _argo0 = 0;
1493 char *_kwnames[] = { "self", NULL };
1494
1495 self = self;
1496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0))
1497 return NULL;
1498 if (_argo0) {
1499 if (_argo0 == Py_None) { _arg0 = NULL; }
1500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1502 return NULL;
1503 }
1504 }
1505 {
1506 PyThreadState* __tstate = wxPyBeginAllowThreads();
1507 wxWindow_DestroyChildren(_arg0);
1508
1509 wxPyEndAllowThreads(__tstate);
1510 if (PyErr_Occurred()) return NULL;
1511 } Py_INCREF(Py_None);
1512 _resultobj = Py_None;
1513 return _resultobj;
1514 }
1515
1516 #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted())
1517 static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
1518 PyObject * _resultobj;
1519 bool _result;
1520 wxWindow * _arg0;
1521 PyObject * _argo0 = 0;
1522 char *_kwnames[] = { "self", NULL };
1523
1524 self = self;
1525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0))
1526 return NULL;
1527 if (_argo0) {
1528 if (_argo0 == Py_None) { _arg0 = NULL; }
1529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p.");
1531 return NULL;
1532 }
1533 }
1534 {
1535 PyThreadState* __tstate = wxPyBeginAllowThreads();
1536 _result = (bool )wxWindow_IsBeingDeleted(_arg0);
1537
1538 wxPyEndAllowThreads(__tstate);
1539 if (PyErr_Occurred()) return NULL;
1540 } _resultobj = Py_BuildValue("i",_result);
1541 return _resultobj;
1542 }
1543
1544 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1545 static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
1546 PyObject * _resultobj;
1547 wxWindow * _arg0;
1548 bool _arg1;
1549 PyObject * _argo0 = 0;
1550 int tempbool1;
1551 char *_kwnames[] = { "self","accept", NULL };
1552
1553 self = self;
1554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1))
1555 return NULL;
1556 if (_argo0) {
1557 if (_argo0 == Py_None) { _arg0 = NULL; }
1558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1560 return NULL;
1561 }
1562 }
1563 _arg1 = (bool ) tempbool1;
1564 {
1565 PyThreadState* __tstate = wxPyBeginAllowThreads();
1566 wxWindow_DragAcceptFiles(_arg0,_arg1);
1567
1568 wxPyEndAllowThreads(__tstate);
1569 if (PyErr_Occurred()) return NULL;
1570 } Py_INCREF(Py_None);
1571 _resultobj = Py_None;
1572 return _resultobj;
1573 }
1574
1575 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1576 static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
1577 PyObject * _resultobj;
1578 wxWindow * _arg0;
1579 bool _arg1;
1580 PyObject * _argo0 = 0;
1581 int tempbool1;
1582 char *_kwnames[] = { "self","enable", NULL };
1583
1584 self = self;
1585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1))
1586 return NULL;
1587 if (_argo0) {
1588 if (_argo0 == Py_None) { _arg0 = NULL; }
1589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1591 return NULL;
1592 }
1593 }
1594 _arg1 = (bool ) tempbool1;
1595 {
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 wxWindow_Enable(_arg0,_arg1);
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) return NULL;
1601 } Py_INCREF(Py_None);
1602 _resultobj = Py_None;
1603 return _resultobj;
1604 }
1605
1606 #define wxWindow_Disable(_swigobj) (_swigobj->Disable())
1607 static PyObject *_wrap_wxWindow_Disable(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject * _resultobj;
1609 wxWindow * _arg0;
1610 PyObject * _argo0 = 0;
1611 char *_kwnames[] = { "self", NULL };
1612
1613 self = self;
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Disable",_kwnames,&_argo0))
1615 return NULL;
1616 if (_argo0) {
1617 if (_argo0 == Py_None) { _arg0 = NULL; }
1618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Disable. Expected _wxWindow_p.");
1620 return NULL;
1621 }
1622 }
1623 {
1624 PyThreadState* __tstate = wxPyBeginAllowThreads();
1625 wxWindow_Disable(_arg0);
1626
1627 wxPyEndAllowThreads(__tstate);
1628 if (PyErr_Occurred()) return NULL;
1629 } Py_INCREF(Py_None);
1630 _resultobj = Py_None;
1631 return _resultobj;
1632 }
1633
1634 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1635 static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
1636 PyObject * _resultobj;
1637 wxWindow * _result;
1638 wxWindow * _arg0;
1639 long _arg1;
1640 PyObject * _argo0 = 0;
1641 char *_kwnames[] = { "self","id", NULL };
1642
1643 self = self;
1644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1))
1645 return NULL;
1646 if (_argo0) {
1647 if (_argo0 == Py_None) { _arg0 = NULL; }
1648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1650 return NULL;
1651 }
1652 }
1653 {
1654 PyThreadState* __tstate = wxPyBeginAllowThreads();
1655 _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1);
1656
1657 wxPyEndAllowThreads(__tstate);
1658 if (PyErr_Occurred()) return NULL;
1659 }{ _resultobj = wxPyMake_wxObject(_result); }
1660 return _resultobj;
1661 }
1662
1663 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1664 static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
1665 PyObject * _resultobj;
1666 wxWindow * _result;
1667 wxWindow * _arg0;
1668 wxString * _arg1;
1669 PyObject * _argo0 = 0;
1670 PyObject * _obj1 = 0;
1671 char *_kwnames[] = { "self","name", NULL };
1672
1673 self = self;
1674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1))
1675 return NULL;
1676 if (_argo0) {
1677 if (_argo0 == Py_None) { _arg0 = NULL; }
1678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1680 return NULL;
1681 }
1682 }
1683 {
1684 _arg1 = wxString_in_helper(_obj1);
1685 if (_arg1 == NULL)
1686 return NULL;
1687 }
1688 {
1689 PyThreadState* __tstate = wxPyBeginAllowThreads();
1690 _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1);
1691
1692 wxPyEndAllowThreads(__tstate);
1693 if (PyErr_Occurred()) return NULL;
1694 }{ _resultobj = wxPyMake_wxObject(_result); }
1695 {
1696 if (_obj1)
1697 delete _arg1;
1698 }
1699 return _resultobj;
1700 }
1701
1702 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1703 static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
1704 PyObject * _resultobj;
1705 wxWindow * _arg0;
1706 PyObject * _argo0 = 0;
1707 char *_kwnames[] = { "self", NULL };
1708
1709 self = self;
1710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0))
1711 return NULL;
1712 if (_argo0) {
1713 if (_argo0 == Py_None) { _arg0 = NULL; }
1714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1716 return NULL;
1717 }
1718 }
1719 {
1720 PyThreadState* __tstate = wxPyBeginAllowThreads();
1721 wxWindow_Fit(_arg0);
1722
1723 wxPyEndAllowThreads(__tstate);
1724 if (PyErr_Occurred()) return NULL;
1725 } Py_INCREF(Py_None);
1726 _resultobj = Py_None;
1727 return _resultobj;
1728 }
1729
1730 #define wxWindow_FitInside(_swigobj) (_swigobj->FitInside())
1731 static PyObject *_wrap_wxWindow_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
1732 PyObject * _resultobj;
1733 wxWindow * _arg0;
1734 PyObject * _argo0 = 0;
1735 char *_kwnames[] = { "self", NULL };
1736
1737 self = self;
1738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_FitInside",_kwnames,&_argo0))
1739 return NULL;
1740 if (_argo0) {
1741 if (_argo0 == Py_None) { _arg0 = NULL; }
1742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FitInside. Expected _wxWindow_p.");
1744 return NULL;
1745 }
1746 }
1747 {
1748 PyThreadState* __tstate = wxPyBeginAllowThreads();
1749 wxWindow_FitInside(_arg0);
1750
1751 wxPyEndAllowThreads(__tstate);
1752 if (PyErr_Occurred()) return NULL;
1753 } Py_INCREF(Py_None);
1754 _resultobj = Py_None;
1755 return _resultobj;
1756 }
1757
1758 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1759 static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1760 PyObject * _resultobj;
1761 wxColour * _result;
1762 wxWindow * _arg0;
1763 PyObject * _argo0 = 0;
1764 char *_kwnames[] = { "self", NULL };
1765 char _ptemp[128];
1766
1767 self = self;
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0))
1769 return NULL;
1770 if (_argo0) {
1771 if (_argo0 == Py_None) { _arg0 = NULL; }
1772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1774 return NULL;
1775 }
1776 }
1777 {
1778 PyThreadState* __tstate = wxPyBeginAllowThreads();
1779 _result = new wxColour (wxWindow_GetBackgroundColour(_arg0));
1780
1781 wxPyEndAllowThreads(__tstate);
1782 if (PyErr_Occurred()) return NULL;
1783 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1784 _resultobj = Py_BuildValue("s",_ptemp);
1785 return _resultobj;
1786 }
1787
1788 #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder())
1789 static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
1790 PyObject * _resultobj;
1791 wxBorder _result;
1792 wxWindow * _arg0;
1793 PyObject * _argo0 = 0;
1794 char *_kwnames[] = { "self", NULL };
1795
1796 self = self;
1797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0))
1798 return NULL;
1799 if (_argo0) {
1800 if (_argo0 == Py_None) { _arg0 = NULL; }
1801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p.");
1803 return NULL;
1804 }
1805 }
1806 {
1807 PyThreadState* __tstate = wxPyBeginAllowThreads();
1808 _result = (wxBorder )wxWindow_GetBorder(_arg0);
1809
1810 wxPyEndAllowThreads(__tstate);
1811 if (PyErr_Occurred()) return NULL;
1812 } _resultobj = Py_BuildValue("i",_result);
1813 return _resultobj;
1814 }
1815
1816 static PyObject * wxWindow_GetChildren(wxWindow *self) {
1817 wxWindowList& list = self->GetChildren();
1818 return wxPy_ConvertList(&list, "wxWindow");
1819 }
1820 static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject * _resultobj;
1822 PyObject * _result;
1823 wxWindow * _arg0;
1824 PyObject * _argo0 = 0;
1825 char *_kwnames[] = { "self", NULL };
1826
1827 self = self;
1828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0))
1829 return NULL;
1830 if (_argo0) {
1831 if (_argo0 == Py_None) { _arg0 = NULL; }
1832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1834 return NULL;
1835 }
1836 }
1837 {
1838 PyThreadState* __tstate = wxPyBeginAllowThreads();
1839 _result = (PyObject *)wxWindow_GetChildren(_arg0);
1840
1841 wxPyEndAllowThreads(__tstate);
1842 if (PyErr_Occurred()) return NULL;
1843 }{
1844 _resultobj = _result;
1845 }
1846 return _resultobj;
1847 }
1848
1849 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1850 static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1851 PyObject * _resultobj;
1852 int _result;
1853 wxWindow * _arg0;
1854 PyObject * _argo0 = 0;
1855 char *_kwnames[] = { "self", NULL };
1856
1857 self = self;
1858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0))
1859 return NULL;
1860 if (_argo0) {
1861 if (_argo0 == Py_None) { _arg0 = NULL; }
1862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1864 return NULL;
1865 }
1866 }
1867 {
1868 PyThreadState* __tstate = wxPyBeginAllowThreads();
1869 _result = (int )wxWindow_GetCharHeight(_arg0);
1870
1871 wxPyEndAllowThreads(__tstate);
1872 if (PyErr_Occurred()) return NULL;
1873 } _resultobj = Py_BuildValue("i",_result);
1874 return _resultobj;
1875 }
1876
1877 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1878 static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject * _resultobj;
1880 int _result;
1881 wxWindow * _arg0;
1882 PyObject * _argo0 = 0;
1883 char *_kwnames[] = { "self", NULL };
1884
1885 self = self;
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0))
1887 return NULL;
1888 if (_argo0) {
1889 if (_argo0 == Py_None) { _arg0 = NULL; }
1890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1892 return NULL;
1893 }
1894 }
1895 {
1896 PyThreadState* __tstate = wxPyBeginAllowThreads();
1897 _result = (int )wxWindow_GetCharWidth(_arg0);
1898
1899 wxPyEndAllowThreads(__tstate);
1900 if (PyErr_Occurred()) return NULL;
1901 } _resultobj = Py_BuildValue("i",_result);
1902 return _resultobj;
1903 }
1904
1905 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1906 static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1907 PyObject * _resultobj;
1908 wxWindow * _arg0;
1909 int * _arg1;
1910 int temp;
1911 int * _arg2;
1912 int temp0;
1913 PyObject * _argo0 = 0;
1914 char *_kwnames[] = { "self", NULL };
1915
1916 self = self;
1917 {
1918 _arg1 = &temp;
1919 }
1920 {
1921 _arg2 = &temp0;
1922 }
1923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0))
1924 return NULL;
1925 if (_argo0) {
1926 if (_argo0 == Py_None) { _arg0 = NULL; }
1927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1929 return NULL;
1930 }
1931 }
1932 {
1933 PyThreadState* __tstate = wxPyBeginAllowThreads();
1934 wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2);
1935
1936 wxPyEndAllowThreads(__tstate);
1937 if (PyErr_Occurred()) return NULL;
1938 } Py_INCREF(Py_None);
1939 _resultobj = Py_None;
1940 {
1941 PyObject *o;
1942 o = PyInt_FromLong((long) (*_arg1));
1943 _resultobj = t_output_helper(_resultobj, o);
1944 }
1945 {
1946 PyObject *o;
1947 o = PyInt_FromLong((long) (*_arg2));
1948 _resultobj = t_output_helper(_resultobj, o);
1949 }
1950 return _resultobj;
1951 }
1952
1953 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1954 static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1955 PyObject * _resultobj;
1956 wxSize * _result;
1957 wxWindow * _arg0;
1958 PyObject * _argo0 = 0;
1959 char *_kwnames[] = { "self", NULL };
1960 char _ptemp[128];
1961
1962 self = self;
1963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0))
1964 return NULL;
1965 if (_argo0) {
1966 if (_argo0 == Py_None) { _arg0 = NULL; }
1967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1969 return NULL;
1970 }
1971 }
1972 {
1973 PyThreadState* __tstate = wxPyBeginAllowThreads();
1974 _result = new wxSize (wxWindow_GetClientSize(_arg0));
1975
1976 wxPyEndAllowThreads(__tstate);
1977 if (PyErr_Occurred()) return NULL;
1978 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1979 _resultobj = Py_BuildValue("s",_ptemp);
1980 return _resultobj;
1981 }
1982
1983 #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
1984 static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
1985 PyObject * _resultobj;
1986 wxPoint * _result;
1987 wxWindow * _arg0;
1988 PyObject * _argo0 = 0;
1989 char *_kwnames[] = { "self", NULL };
1990 char _ptemp[128];
1991
1992 self = self;
1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0))
1994 return NULL;
1995 if (_argo0) {
1996 if (_argo0 == Py_None) { _arg0 = NULL; }
1997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p.");
1999 return NULL;
2000 }
2001 }
2002 {
2003 PyThreadState* __tstate = wxPyBeginAllowThreads();
2004 _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0));
2005
2006 wxPyEndAllowThreads(__tstate);
2007 if (PyErr_Occurred()) return NULL;
2008 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2009 _resultobj = Py_BuildValue("s",_ptemp);
2010 return _resultobj;
2011 }
2012
2013 #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect())
2014 static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2015 PyObject * _resultobj;
2016 wxRect * _result;
2017 wxWindow * _arg0;
2018 PyObject * _argo0 = 0;
2019 char *_kwnames[] = { "self", NULL };
2020 char _ptemp[128];
2021
2022 self = self;
2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0))
2024 return NULL;
2025 if (_argo0) {
2026 if (_argo0 == Py_None) { _arg0 = NULL; }
2027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p.");
2029 return NULL;
2030 }
2031 }
2032 {
2033 PyThreadState* __tstate = wxPyBeginAllowThreads();
2034 _result = new wxRect (wxWindow_GetClientRect(_arg0));
2035
2036 wxPyEndAllowThreads(__tstate);
2037 if (PyErr_Occurred()) return NULL;
2038 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
2039 _resultobj = Py_BuildValue("s",_ptemp);
2040 return _resultobj;
2041 }
2042
2043 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
2044 static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
2045 PyObject * _resultobj;
2046 wxLayoutConstraints * _result;
2047 wxWindow * _arg0;
2048 PyObject * _argo0 = 0;
2049 char *_kwnames[] = { "self", NULL };
2050 char _ptemp[128];
2051
2052 self = self;
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0))
2054 return NULL;
2055 if (_argo0) {
2056 if (_argo0 == Py_None) { _arg0 = NULL; }
2057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
2059 return NULL;
2060 }
2061 }
2062 {
2063 PyThreadState* __tstate = wxPyBeginAllowThreads();
2064 _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0);
2065
2066 wxPyEndAllowThreads(__tstate);
2067 if (PyErr_Occurred()) return NULL;
2068 } if (_result) {
2069 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p");
2070 _resultobj = Py_BuildValue("s",_ptemp);
2071 } else {
2072 Py_INCREF(Py_None);
2073 _resultobj = Py_None;
2074 }
2075 return _resultobj;
2076 }
2077
2078 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
2079 static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2080 PyObject * _resultobj;
2081 wxEvtHandler * _result;
2082 wxWindow * _arg0;
2083 PyObject * _argo0 = 0;
2084 char *_kwnames[] = { "self", NULL };
2085
2086 self = self;
2087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0))
2088 return NULL;
2089 if (_argo0) {
2090 if (_argo0 == Py_None) { _arg0 = NULL; }
2091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
2093 return NULL;
2094 }
2095 }
2096 {
2097 PyThreadState* __tstate = wxPyBeginAllowThreads();
2098 _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0);
2099
2100 wxPyEndAllowThreads(__tstate);
2101 if (PyErr_Occurred()) return NULL;
2102 }{ _resultobj = wxPyMake_wxObject(_result); }
2103 return _resultobj;
2104 }
2105
2106 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
2107 static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2108 PyObject * _resultobj;
2109 wxFont * _result;
2110 wxWindow * _arg0;
2111 PyObject * _argo0 = 0;
2112 char *_kwnames[] = { "self", NULL };
2113 char _ptemp[128];
2114
2115 self = self;
2116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0))
2117 return NULL;
2118 if (_argo0) {
2119 if (_argo0 == Py_None) { _arg0 = NULL; }
2120 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2121 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
2122 return NULL;
2123 }
2124 }
2125 {
2126 PyThreadState* __tstate = wxPyBeginAllowThreads();
2127 _result = new wxFont (wxWindow_GetFont(_arg0));
2128
2129 wxPyEndAllowThreads(__tstate);
2130 if (PyErr_Occurred()) return NULL;
2131 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
2132 _resultobj = Py_BuildValue("s",_ptemp);
2133 return _resultobj;
2134 }
2135
2136 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
2137 static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2138 PyObject * _resultobj;
2139 wxColour * _result;
2140 wxWindow * _arg0;
2141 PyObject * _argo0 = 0;
2142 char *_kwnames[] = { "self", NULL };
2143 char _ptemp[128];
2144
2145 self = self;
2146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0))
2147 return NULL;
2148 if (_argo0) {
2149 if (_argo0 == Py_None) { _arg0 = NULL; }
2150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
2152 return NULL;
2153 }
2154 }
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 _result = new wxColour (wxWindow_GetForegroundColour(_arg0));
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) return NULL;
2161 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
2162 _resultobj = Py_BuildValue("s",_ptemp);
2163 return _resultobj;
2164 }
2165
2166 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
2167 static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
2168 PyObject * _resultobj;
2169 wxWindow * _result;
2170 wxWindow * _arg0;
2171 PyObject * _argo0 = 0;
2172 char *_kwnames[] = { "self", NULL };
2173
2174 self = self;
2175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0))
2176 return NULL;
2177 if (_argo0) {
2178 if (_argo0 == Py_None) { _arg0 = NULL; }
2179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
2181 return NULL;
2182 }
2183 }
2184 {
2185 PyThreadState* __tstate = wxPyBeginAllowThreads();
2186 _result = (wxWindow *)wxWindow_GetGrandParent(_arg0);
2187
2188 wxPyEndAllowThreads(__tstate);
2189 if (PyErr_Occurred()) return NULL;
2190 }{ _resultobj = wxPyMake_wxObject(_result); }
2191 return _resultobj;
2192 }
2193
2194 static long wxWindow_GetHandle(wxWindow *self) {
2195 return wxPyGetWinHandle(self); //(long)self->GetHandle();
2196 }
2197 static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2198 PyObject * _resultobj;
2199 long _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_GetHandle",_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_GetHandle. Expected _wxWindow_p.");
2211 return NULL;
2212 }
2213 }
2214 {
2215 PyThreadState* __tstate = wxPyBeginAllowThreads();
2216 _result = (long )wxWindow_GetHandle(_arg0);
2217
2218 wxPyEndAllowThreads(__tstate);
2219 if (PyErr_Occurred()) return NULL;
2220 } _resultobj = Py_BuildValue("l",_result);
2221 return _resultobj;
2222 }
2223
2224 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
2225 static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
2226 PyObject * _resultobj;
2227 int _result;
2228 wxWindow * _arg0;
2229 PyObject * _argo0 = 0;
2230 char *_kwnames[] = { "self", NULL };
2231
2232 self = self;
2233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0))
2234 return NULL;
2235 if (_argo0) {
2236 if (_argo0 == Py_None) { _arg0 = NULL; }
2237 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2238 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
2239 return NULL;
2240 }
2241 }
2242 {
2243 PyThreadState* __tstate = wxPyBeginAllowThreads();
2244 _result = (int )wxWindow_GetId(_arg0);
2245
2246 wxPyEndAllowThreads(__tstate);
2247 if (PyErr_Occurred()) return NULL;
2248 } _resultobj = Py_BuildValue("i",_result);
2249 return _resultobj;
2250 }
2251
2252 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
2253 static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2254 PyObject * _resultobj;
2255 wxString * _result;
2256 wxWindow * _arg0;
2257 PyObject * _argo0 = 0;
2258 char *_kwnames[] = { "self", NULL };
2259
2260 self = self;
2261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0))
2262 return NULL;
2263 if (_argo0) {
2264 if (_argo0 == Py_None) { _arg0 = NULL; }
2265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
2267 return NULL;
2268 }
2269 }
2270 {
2271 PyThreadState* __tstate = wxPyBeginAllowThreads();
2272 _result = new wxString (wxWindow_GetLabel(_arg0));
2273
2274 wxPyEndAllowThreads(__tstate);
2275 if (PyErr_Occurred()) return NULL;
2276 }{
2277 #if wxUSE_UNICODE
2278 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
2279 #else
2280 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2281 #endif
2282 }
2283 {
2284 delete _result;
2285 }
2286 return _resultobj;
2287 }
2288
2289 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
2290 static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2291 PyObject * _resultobj;
2292 wxWindow * _arg0;
2293 wxString * _arg1;
2294 PyObject * _argo0 = 0;
2295 PyObject * _obj1 = 0;
2296 char *_kwnames[] = { "self","label", NULL };
2297
2298 self = self;
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1))
2300 return NULL;
2301 if (_argo0) {
2302 if (_argo0 == Py_None) { _arg0 = NULL; }
2303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
2305 return NULL;
2306 }
2307 }
2308 {
2309 _arg1 = wxString_in_helper(_obj1);
2310 if (_arg1 == NULL)
2311 return NULL;
2312 }
2313 {
2314 PyThreadState* __tstate = wxPyBeginAllowThreads();
2315 wxWindow_SetLabel(_arg0,*_arg1);
2316
2317 wxPyEndAllowThreads(__tstate);
2318 if (PyErr_Occurred()) return NULL;
2319 } Py_INCREF(Py_None);
2320 _resultobj = Py_None;
2321 {
2322 if (_obj1)
2323 delete _arg1;
2324 }
2325 return _resultobj;
2326 }
2327
2328 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
2329 static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
2330 PyObject * _resultobj;
2331 wxString * _result;
2332 wxWindow * _arg0;
2333 PyObject * _argo0 = 0;
2334 char *_kwnames[] = { "self", NULL };
2335
2336 self = self;
2337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0))
2338 return NULL;
2339 if (_argo0) {
2340 if (_argo0 == Py_None) { _arg0 = NULL; }
2341 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2342 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
2343 return NULL;
2344 }
2345 }
2346 {
2347 PyThreadState* __tstate = wxPyBeginAllowThreads();
2348 _result = new wxString (wxWindow_GetName(_arg0));
2349
2350 wxPyEndAllowThreads(__tstate);
2351 if (PyErr_Occurred()) return NULL;
2352 }{
2353 #if wxUSE_UNICODE
2354 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
2355 #else
2356 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2357 #endif
2358 }
2359 {
2360 delete _result;
2361 }
2362 return _resultobj;
2363 }
2364
2365 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
2366 static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
2367 PyObject * _resultobj;
2368 wxWindow * _result;
2369 wxWindow * _arg0;
2370 PyObject * _argo0 = 0;
2371 char *_kwnames[] = { "self", NULL };
2372
2373 self = self;
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0))
2375 return NULL;
2376 if (_argo0) {
2377 if (_argo0 == Py_None) { _arg0 = NULL; }
2378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
2380 return NULL;
2381 }
2382 }
2383 {
2384 PyThreadState* __tstate = wxPyBeginAllowThreads();
2385 _result = (wxWindow *)wxWindow_GetParent(_arg0);
2386
2387 wxPyEndAllowThreads(__tstate);
2388 if (PyErr_Occurred()) return NULL;
2389 }{ _resultobj = wxPyMake_wxObject(_result); }
2390 return _resultobj;
2391 }
2392
2393 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2394 static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2395 PyObject * _resultobj;
2396 wxWindow * _arg0;
2397 int * _arg1;
2398 int temp;
2399 int * _arg2;
2400 int temp0;
2401 PyObject * _argo0 = 0;
2402 char *_kwnames[] = { "self", NULL };
2403
2404 self = self;
2405 {
2406 _arg1 = &temp;
2407 }
2408 {
2409 _arg2 = &temp0;
2410 }
2411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0))
2412 return NULL;
2413 if (_argo0) {
2414 if (_argo0 == Py_None) { _arg0 = NULL; }
2415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
2417 return NULL;
2418 }
2419 }
2420 {
2421 PyThreadState* __tstate = wxPyBeginAllowThreads();
2422 wxWindow_GetPositionTuple(_arg0,_arg1,_arg2);
2423
2424 wxPyEndAllowThreads(__tstate);
2425 if (PyErr_Occurred()) return NULL;
2426 } Py_INCREF(Py_None);
2427 _resultobj = Py_None;
2428 {
2429 PyObject *o;
2430 o = PyInt_FromLong((long) (*_arg1));
2431 _resultobj = t_output_helper(_resultobj, o);
2432 }
2433 {
2434 PyObject *o;
2435 o = PyInt_FromLong((long) (*_arg2));
2436 _resultobj = t_output_helper(_resultobj, o);
2437 }
2438 return _resultobj;
2439 }
2440
2441 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
2442 static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2443 PyObject * _resultobj;
2444 wxPoint * _result;
2445 wxWindow * _arg0;
2446 PyObject * _argo0 = 0;
2447 char *_kwnames[] = { "self", NULL };
2448 char _ptemp[128];
2449
2450 self = self;
2451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0))
2452 return NULL;
2453 if (_argo0) {
2454 if (_argo0 == Py_None) { _arg0 = NULL; }
2455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
2457 return NULL;
2458 }
2459 }
2460 {
2461 PyThreadState* __tstate = wxPyBeginAllowThreads();
2462 _result = new wxPoint (wxWindow_GetPosition(_arg0));
2463
2464 wxPyEndAllowThreads(__tstate);
2465 if (PyErr_Occurred()) return NULL;
2466 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2467 _resultobj = Py_BuildValue("s",_ptemp);
2468 return _resultobj;
2469 }
2470
2471 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
2472 static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2473 PyObject * _resultobj;
2474 wxRect * _result;
2475 wxWindow * _arg0;
2476 PyObject * _argo0 = 0;
2477 char *_kwnames[] = { "self", NULL };
2478 char _ptemp[128];
2479
2480 self = self;
2481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0))
2482 return NULL;
2483 if (_argo0) {
2484 if (_argo0 == Py_None) { _arg0 = NULL; }
2485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
2487 return NULL;
2488 }
2489 }
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 _result = new wxRect (wxWindow_GetRect(_arg0));
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) return NULL;
2496 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
2497 _resultobj = Py_BuildValue("s",_ptemp);
2498 return _resultobj;
2499 }
2500
2501 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
2502 static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
2503 PyObject * _resultobj;
2504 int _result;
2505 wxWindow * _arg0;
2506 int _arg1;
2507 PyObject * _argo0 = 0;
2508 char *_kwnames[] = { "self","orientation", NULL };
2509
2510 self = self;
2511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1))
2512 return NULL;
2513 if (_argo0) {
2514 if (_argo0 == Py_None) { _arg0 = NULL; }
2515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
2517 return NULL;
2518 }
2519 }
2520 {
2521 PyThreadState* __tstate = wxPyBeginAllowThreads();
2522 _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1);
2523
2524 wxPyEndAllowThreads(__tstate);
2525 if (PyErr_Occurred()) return NULL;
2526 } _resultobj = Py_BuildValue("i",_result);
2527 return _resultobj;
2528 }
2529
2530 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
2531 static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
2532 PyObject * _resultobj;
2533 int _result;
2534 wxWindow * _arg0;
2535 int _arg1;
2536 PyObject * _argo0 = 0;
2537 char *_kwnames[] = { "self","orientation", NULL };
2538
2539 self = self;
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1))
2541 return NULL;
2542 if (_argo0) {
2543 if (_argo0 == Py_None) { _arg0 = NULL; }
2544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2546 return NULL;
2547 }
2548 }
2549 {
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 _result = (int )wxWindow_GetScrollPos(_arg0,_arg1);
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) return NULL;
2555 } _resultobj = Py_BuildValue("i",_result);
2556 return _resultobj;
2557 }
2558
2559 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2560 static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
2561 PyObject * _resultobj;
2562 int _result;
2563 wxWindow * _arg0;
2564 int _arg1;
2565 PyObject * _argo0 = 0;
2566 char *_kwnames[] = { "self","orientation", NULL };
2567
2568 self = self;
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1))
2570 return NULL;
2571 if (_argo0) {
2572 if (_argo0 == Py_None) { _arg0 = NULL; }
2573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2575 return NULL;
2576 }
2577 }
2578 {
2579 PyThreadState* __tstate = wxPyBeginAllowThreads();
2580 _result = (int )wxWindow_GetScrollRange(_arg0,_arg1);
2581
2582 wxPyEndAllowThreads(__tstate);
2583 if (PyErr_Occurred()) return NULL;
2584 } _resultobj = Py_BuildValue("i",_result);
2585 return _resultobj;
2586 }
2587
2588 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2589 static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2590 PyObject * _resultobj;
2591 wxWindow * _arg0;
2592 int * _arg1;
2593 int temp;
2594 int * _arg2;
2595 int temp0;
2596 PyObject * _argo0 = 0;
2597 char *_kwnames[] = { "self", NULL };
2598
2599 self = self;
2600 {
2601 _arg1 = &temp;
2602 }
2603 {
2604 _arg2 = &temp0;
2605 }
2606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0))
2607 return NULL;
2608 if (_argo0) {
2609 if (_argo0 == Py_None) { _arg0 = NULL; }
2610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2612 return NULL;
2613 }
2614 }
2615 {
2616 PyThreadState* __tstate = wxPyBeginAllowThreads();
2617 wxWindow_GetSizeTuple(_arg0,_arg1,_arg2);
2618
2619 wxPyEndAllowThreads(__tstate);
2620 if (PyErr_Occurred()) return NULL;
2621 } Py_INCREF(Py_None);
2622 _resultobj = Py_None;
2623 {
2624 PyObject *o;
2625 o = PyInt_FromLong((long) (*_arg1));
2626 _resultobj = t_output_helper(_resultobj, o);
2627 }
2628 {
2629 PyObject *o;
2630 o = PyInt_FromLong((long) (*_arg2));
2631 _resultobj = t_output_helper(_resultobj, o);
2632 }
2633 return _resultobj;
2634 }
2635
2636 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2637 static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2638 PyObject * _resultobj;
2639 wxSize * _result;
2640 wxWindow * _arg0;
2641 PyObject * _argo0 = 0;
2642 char *_kwnames[] = { "self", NULL };
2643 char _ptemp[128];
2644
2645 self = self;
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0))
2647 return NULL;
2648 if (_argo0) {
2649 if (_argo0 == Py_None) { _arg0 = NULL; }
2650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2652 return NULL;
2653 }
2654 }
2655 {
2656 PyThreadState* __tstate = wxPyBeginAllowThreads();
2657 _result = new wxSize (wxWindow_GetSize(_arg0));
2658
2659 wxPyEndAllowThreads(__tstate);
2660 if (PyErr_Occurred()) return NULL;
2661 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2662 _resultobj = Py_BuildValue("s",_ptemp);
2663 return _resultobj;
2664 }
2665
2666 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2667 static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2668 PyObject * _resultobj;
2669 wxWindow * _arg0;
2670 wxString * _arg1;
2671 int * _arg2;
2672 int temp;
2673 int * _arg3;
2674 int temp0;
2675 PyObject * _argo0 = 0;
2676 PyObject * _obj1 = 0;
2677 char *_kwnames[] = { "self","string", NULL };
2678
2679 self = self;
2680 {
2681 _arg2 = &temp;
2682 }
2683 {
2684 _arg3 = &temp0;
2685 }
2686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1))
2687 return NULL;
2688 if (_argo0) {
2689 if (_argo0 == Py_None) { _arg0 = NULL; }
2690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2692 return NULL;
2693 }
2694 }
2695 {
2696 _arg1 = wxString_in_helper(_obj1);
2697 if (_arg1 == NULL)
2698 return NULL;
2699 }
2700 {
2701 PyThreadState* __tstate = wxPyBeginAllowThreads();
2702 wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
2703
2704 wxPyEndAllowThreads(__tstate);
2705 if (PyErr_Occurred()) return NULL;
2706 } Py_INCREF(Py_None);
2707 _resultobj = Py_None;
2708 {
2709 PyObject *o;
2710 o = PyInt_FromLong((long) (*_arg2));
2711 _resultobj = t_output_helper(_resultobj, o);
2712 }
2713 {
2714 PyObject *o;
2715 o = PyInt_FromLong((long) (*_arg3));
2716 _resultobj = t_output_helper(_resultobj, o);
2717 }
2718 {
2719 if (_obj1)
2720 delete _arg1;
2721 }
2722 return _resultobj;
2723 }
2724
2725 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2726 static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2727 PyObject * _resultobj;
2728 wxWindow * _arg0;
2729 wxString * _arg1;
2730 int * _arg2;
2731 int temp;
2732 int * _arg3;
2733 int temp0;
2734 int * _arg4;
2735 int temp1;
2736 int * _arg5;
2737 int temp2;
2738 wxFont * _arg6 = (wxFont *) NULL;
2739 PyObject * _argo0 = 0;
2740 PyObject * _obj1 = 0;
2741 PyObject * _argo6 = 0;
2742 char *_kwnames[] = { "self","string","font", NULL };
2743
2744 self = self;
2745 {
2746 _arg2 = &temp;
2747 }
2748 {
2749 _arg3 = &temp0;
2750 }
2751 {
2752 _arg4 = &temp1;
2753 }
2754 {
2755 _arg5 = &temp2;
2756 }
2757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
2758 return NULL;
2759 if (_argo0) {
2760 if (_argo0 == Py_None) { _arg0 = NULL; }
2761 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2762 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2763 return NULL;
2764 }
2765 }
2766 {
2767 _arg1 = wxString_in_helper(_obj1);
2768 if (_arg1 == NULL)
2769 return NULL;
2770 }
2771 if (_argo6) {
2772 if (_argo6 == Py_None) { _arg6 = NULL; }
2773 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
2774 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2775 return NULL;
2776 }
2777 }
2778 {
2779 PyThreadState* __tstate = wxPyBeginAllowThreads();
2780 wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2781
2782 wxPyEndAllowThreads(__tstate);
2783 if (PyErr_Occurred()) return NULL;
2784 } Py_INCREF(Py_None);
2785 _resultobj = Py_None;
2786 {
2787 PyObject *o;
2788 o = PyInt_FromLong((long) (*_arg2));
2789 _resultobj = t_output_helper(_resultobj, o);
2790 }
2791 {
2792 PyObject *o;
2793 o = PyInt_FromLong((long) (*_arg3));
2794 _resultobj = t_output_helper(_resultobj, o);
2795 }
2796 {
2797 PyObject *o;
2798 o = PyInt_FromLong((long) (*_arg4));
2799 _resultobj = t_output_helper(_resultobj, o);
2800 }
2801 {
2802 PyObject *o;
2803 o = PyInt_FromLong((long) (*_arg5));
2804 _resultobj = t_output_helper(_resultobj, o);
2805 }
2806 {
2807 if (_obj1)
2808 delete _arg1;
2809 }
2810 return _resultobj;
2811 }
2812
2813 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2814 static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
2815 PyObject * _resultobj;
2816 wxString * _result;
2817 wxWindow * _arg0;
2818 PyObject * _argo0 = 0;
2819 char *_kwnames[] = { "self", NULL };
2820
2821 self = self;
2822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0))
2823 return NULL;
2824 if (_argo0) {
2825 if (_argo0 == Py_None) { _arg0 = NULL; }
2826 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2827 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2828 return NULL;
2829 }
2830 }
2831 {
2832 PyThreadState* __tstate = wxPyBeginAllowThreads();
2833 _result = new wxString (wxWindow_GetTitle(_arg0));
2834
2835 wxPyEndAllowThreads(__tstate);
2836 if (PyErr_Occurred()) return NULL;
2837 }{
2838 #if wxUSE_UNICODE
2839 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
2840 #else
2841 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2842 #endif
2843 }
2844 {
2845 delete _result;
2846 }
2847 return _resultobj;
2848 }
2849
2850 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2851 static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
2852 PyObject * _resultobj;
2853 wxRegion * _result;
2854 wxWindow * _arg0;
2855 PyObject * _argo0 = 0;
2856 char *_kwnames[] = { "self", NULL };
2857 char _ptemp[128];
2858
2859 self = self;
2860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0))
2861 return NULL;
2862 if (_argo0) {
2863 if (_argo0 == Py_None) { _arg0 = NULL; }
2864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2866 return NULL;
2867 }
2868 }
2869 {
2870 PyThreadState* __tstate = wxPyBeginAllowThreads();
2871 _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0));
2872
2873 wxPyEndAllowThreads(__tstate);
2874 if (PyErr_Occurred()) return NULL;
2875 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p");
2876 _resultobj = Py_BuildValue("s",_ptemp);
2877 return _resultobj;
2878 }
2879
2880 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2881 static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2882 PyObject * _resultobj;
2883 long _result;
2884 wxWindow * _arg0;
2885 PyObject * _argo0 = 0;
2886 char *_kwnames[] = { "self", NULL };
2887
2888 self = self;
2889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0))
2890 return NULL;
2891 if (_argo0) {
2892 if (_argo0 == Py_None) { _arg0 = NULL; }
2893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2895 return NULL;
2896 }
2897 }
2898 {
2899 PyThreadState* __tstate = wxPyBeginAllowThreads();
2900 _result = (long )wxWindow_GetWindowStyleFlag(_arg0);
2901
2902 wxPyEndAllowThreads(__tstate);
2903 if (PyErr_Occurred()) return NULL;
2904 } _resultobj = Py_BuildValue("l",_result);
2905 return _resultobj;
2906 }
2907
2908 #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2909 static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2910 PyObject * _resultobj;
2911 wxWindow * _arg0;
2912 long _arg1;
2913 PyObject * _argo0 = 0;
2914 char *_kwnames[] = { "self","style", NULL };
2915
2916 self = self;
2917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
2918 return NULL;
2919 if (_argo0) {
2920 if (_argo0 == Py_None) { _arg0 = NULL; }
2921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p.");
2923 return NULL;
2924 }
2925 }
2926 {
2927 PyThreadState* __tstate = wxPyBeginAllowThreads();
2928 wxWindow_SetWindowStyleFlag(_arg0,_arg1);
2929
2930 wxPyEndAllowThreads(__tstate);
2931 if (PyErr_Occurred()) return NULL;
2932 } Py_INCREF(Py_None);
2933 _resultobj = Py_None;
2934 return _resultobj;
2935 }
2936
2937 #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0))
2938 static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2939 PyObject * _resultobj;
2940 wxWindow * _arg0;
2941 long _arg1;
2942 PyObject * _argo0 = 0;
2943 char *_kwnames[] = { "self","style", NULL };
2944
2945 self = self;
2946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1))
2947 return NULL;
2948 if (_argo0) {
2949 if (_argo0 == Py_None) { _arg0 = NULL; }
2950 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p.");
2952 return NULL;
2953 }
2954 }
2955 {
2956 PyThreadState* __tstate = wxPyBeginAllowThreads();
2957 wxWindow_SetWindowStyle(_arg0,_arg1);
2958
2959 wxPyEndAllowThreads(__tstate);
2960 if (PyErr_Occurred()) return NULL;
2961 } Py_INCREF(Py_None);
2962 _resultobj = Py_None;
2963 return _resultobj;
2964 }
2965
2966 #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0))
2967 static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
2968 PyObject * _resultobj;
2969 bool _result;
2970 wxWindow * _arg0;
2971 int _arg1;
2972 PyObject * _argo0 = 0;
2973 char *_kwnames[] = { "self","orient", NULL };
2974
2975 self = self;
2976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1))
2977 return NULL;
2978 if (_argo0) {
2979 if (_argo0 == Py_None) { _arg0 = NULL; }
2980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p.");
2982 return NULL;
2983 }
2984 }
2985 {
2986 PyThreadState* __tstate = wxPyBeginAllowThreads();
2987 _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1);
2988
2989 wxPyEndAllowThreads(__tstate);
2990 if (PyErr_Occurred()) return NULL;
2991 } _resultobj = Py_BuildValue("i",_result);
2992 return _resultobj;
2993 }
2994
2995 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2996 static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
2997 PyObject * _resultobj;
2998 bool _result;
2999 wxWindow * _arg0;
3000 PyObject * _argo0 = 0;
3001 char *_kwnames[] = { "self", NULL };
3002
3003 self = self;
3004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0))
3005 return NULL;
3006 if (_argo0) {
3007 if (_argo0 == Py_None) { _arg0 = NULL; }
3008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
3010 return NULL;
3011 }
3012 }
3013 {
3014 PyThreadState* __tstate = wxPyBeginAllowThreads();
3015 _result = (bool )wxWindow_Hide(_arg0);
3016
3017 wxPyEndAllowThreads(__tstate);
3018 if (PyErr_Occurred()) return NULL;
3019 } _resultobj = Py_BuildValue("i",_result);
3020 return _resultobj;
3021 }
3022
3023 #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0))
3024 static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
3025 PyObject * _resultobj;
3026 wxHitTest _result;
3027 wxWindow * _arg0;
3028 wxPoint * _arg1;
3029 PyObject * _argo0 = 0;
3030 wxPoint temp;
3031 PyObject * _obj1 = 0;
3032 char *_kwnames[] = { "self","pt", NULL };
3033
3034 self = self;
3035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1))
3036 return NULL;
3037 if (_argo0) {
3038 if (_argo0 == Py_None) { _arg0 = NULL; }
3039 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3040 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p.");
3041 return NULL;
3042 }
3043 }
3044 {
3045 _arg1 = &temp;
3046 if (! wxPoint_helper(_obj1, &_arg1))
3047 return NULL;
3048 }
3049 {
3050 PyThreadState* __tstate = wxPyBeginAllowThreads();
3051 _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1);
3052
3053 wxPyEndAllowThreads(__tstate);
3054 if (PyErr_Occurred()) return NULL;
3055 } _resultobj = Py_BuildValue("i",_result);
3056 return _resultobj;
3057 }
3058
3059 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
3060 static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3061 PyObject * _resultobj;
3062 wxWindow * _arg0;
3063 PyObject * _argo0 = 0;
3064 char *_kwnames[] = { "self", NULL };
3065
3066 self = self;
3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0))
3068 return NULL;
3069 if (_argo0) {
3070 if (_argo0 == Py_None) { _arg0 = NULL; }
3071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
3073 return NULL;
3074 }
3075 }
3076 {
3077 PyThreadState* __tstate = wxPyBeginAllowThreads();
3078 wxWindow_InitDialog(_arg0);
3079
3080 wxPyEndAllowThreads(__tstate);
3081 if (PyErr_Occurred()) return NULL;
3082 } Py_INCREF(Py_None);
3083 _resultobj = Py_None;
3084 return _resultobj;
3085 }
3086
3087 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
3088 static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
3089 PyObject * _resultobj;
3090 bool _result;
3091 wxWindow * _arg0;
3092 PyObject * _argo0 = 0;
3093 char *_kwnames[] = { "self", NULL };
3094
3095 self = self;
3096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0))
3097 return NULL;
3098 if (_argo0) {
3099 if (_argo0 == Py_None) { _arg0 = NULL; }
3100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
3102 return NULL;
3103 }
3104 }
3105 {
3106 PyThreadState* __tstate = wxPyBeginAllowThreads();
3107 _result = (bool )wxWindow_IsEnabled(_arg0);
3108
3109 wxPyEndAllowThreads(__tstate);
3110 if (PyErr_Occurred()) return NULL;
3111 } _resultobj = Py_BuildValue("i",_result);
3112 return _resultobj;
3113 }
3114
3115 #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3116 static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
3117 PyObject * _resultobj;
3118 bool _result;
3119 wxWindow * _arg0;
3120 int _arg1;
3121 int _arg2;
3122 int _arg3 = (int ) 0;
3123 int _arg4 = (int ) 0;
3124 PyObject * _argo0 = 0;
3125 char *_kwnames[] = { "self","x","y","w","h", NULL };
3126
3127 self = self;
3128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
3129 return NULL;
3130 if (_argo0) {
3131 if (_argo0 == Py_None) { _arg0 = NULL; }
3132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p.");
3134 return NULL;
3135 }
3136 }
3137 {
3138 PyThreadState* __tstate = wxPyBeginAllowThreads();
3139 _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4);
3140
3141 wxPyEndAllowThreads(__tstate);
3142 if (PyErr_Occurred()) return NULL;
3143 } _resultobj = Py_BuildValue("i",_result);
3144 return _resultobj;
3145 }
3146
3147 #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
3148 static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3149 PyObject * _resultobj;
3150 bool _result;
3151 wxWindow * _arg0;
3152 wxPoint * _arg1;
3153 PyObject * _argo0 = 0;
3154 wxPoint temp;
3155 PyObject * _obj1 = 0;
3156 char *_kwnames[] = { "self","pt", NULL };
3157
3158 self = self;
3159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1))
3160 return NULL;
3161 if (_argo0) {
3162 if (_argo0 == Py_None) { _arg0 = NULL; }
3163 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3164 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p.");
3165 return NULL;
3166 }
3167 }
3168 {
3169 _arg1 = &temp;
3170 if (! wxPoint_helper(_obj1, &_arg1))
3171 return NULL;
3172 }
3173 {
3174 PyThreadState* __tstate = wxPyBeginAllowThreads();
3175 _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1);
3176
3177 wxPyEndAllowThreads(__tstate);
3178 if (PyErr_Occurred()) return NULL;
3179 } _resultobj = Py_BuildValue("i",_result);
3180 return _resultobj;
3181 }
3182
3183 #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0))
3184 static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3185 PyObject * _resultobj;
3186 bool _result;
3187 wxWindow * _arg0;
3188 wxRect * _arg1;
3189 PyObject * _argo0 = 0;
3190 wxRect temp;
3191 PyObject * _obj1 = 0;
3192 char *_kwnames[] = { "self","rect", NULL };
3193
3194 self = self;
3195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1))
3196 return NULL;
3197 if (_argo0) {
3198 if (_argo0 == Py_None) { _arg0 = NULL; }
3199 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3200 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p.");
3201 return NULL;
3202 }
3203 }
3204 {
3205 _arg1 = &temp;
3206 if (! wxRect_helper(_obj1, &_arg1))
3207 return NULL;
3208 }
3209 {
3210 PyThreadState* __tstate = wxPyBeginAllowThreads();
3211 _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1);
3212
3213 wxPyEndAllowThreads(__tstate);
3214 if (PyErr_Occurred()) return NULL;
3215 } _resultobj = Py_BuildValue("i",_result);
3216 return _resultobj;
3217 }
3218
3219 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
3220 static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
3221 PyObject * _resultobj;
3222 bool _result;
3223 wxWindow * _arg0;
3224 PyObject * _argo0 = 0;
3225 char *_kwnames[] = { "self", NULL };
3226
3227 self = self;
3228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0))
3229 return NULL;
3230 if (_argo0) {
3231 if (_argo0 == Py_None) { _arg0 = NULL; }
3232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
3234 return NULL;
3235 }
3236 }
3237 {
3238 PyThreadState* __tstate = wxPyBeginAllowThreads();
3239 _result = (bool )wxWindow_IsRetained(_arg0);
3240
3241 wxPyEndAllowThreads(__tstate);
3242 if (PyErr_Occurred()) return NULL;
3243 } _resultobj = Py_BuildValue("i",_result);
3244 return _resultobj;
3245 }
3246
3247 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
3248 static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
3249 PyObject * _resultobj;
3250 bool _result;
3251 wxWindow * _arg0;
3252 PyObject * _argo0 = 0;
3253 char *_kwnames[] = { "self", NULL };
3254
3255 self = self;
3256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0))
3257 return NULL;
3258 if (_argo0) {
3259 if (_argo0 == Py_None) { _arg0 = NULL; }
3260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
3262 return NULL;
3263 }
3264 }
3265 {
3266 PyThreadState* __tstate = wxPyBeginAllowThreads();
3267 _result = (bool )wxWindow_IsShown(_arg0);
3268
3269 wxPyEndAllowThreads(__tstate);
3270 if (PyErr_Occurred()) return NULL;
3271 } _resultobj = Py_BuildValue("i",_result);
3272 return _resultobj;
3273 }
3274
3275 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
3276 static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
3277 PyObject * _resultobj;
3278 bool _result;
3279 wxWindow * _arg0;
3280 PyObject * _argo0 = 0;
3281 char *_kwnames[] = { "self", NULL };
3282
3283 self = self;
3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0))
3285 return NULL;
3286 if (_argo0) {
3287 if (_argo0 == Py_None) { _arg0 = NULL; }
3288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
3290 return NULL;
3291 }
3292 }
3293 {
3294 PyThreadState* __tstate = wxPyBeginAllowThreads();
3295 _result = (bool )wxWindow_IsTopLevel(_arg0);
3296
3297 wxPyEndAllowThreads(__tstate);
3298 if (PyErr_Occurred()) return NULL;
3299 } _resultobj = Py_BuildValue("i",_result);
3300 return _resultobj;
3301 }
3302
3303 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
3304 static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
3305 PyObject * _resultobj;
3306 wxWindow * _arg0;
3307 PyObject * _argo0 = 0;
3308 char *_kwnames[] = { "self", NULL };
3309
3310 self = self;
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0))
3312 return NULL;
3313 if (_argo0) {
3314 if (_argo0 == Py_None) { _arg0 = NULL; }
3315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
3317 return NULL;
3318 }
3319 }
3320 {
3321 PyThreadState* __tstate = wxPyBeginAllowThreads();
3322 wxWindow_Layout(_arg0);
3323
3324 wxPyEndAllowThreads(__tstate);
3325 if (PyErr_Occurred()) return NULL;
3326 } Py_INCREF(Py_None);
3327 _resultobj = Py_None;
3328 return _resultobj;
3329 }
3330
3331 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
3332 static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
3333 PyObject * _resultobj;
3334 wxWindow * _arg0;
3335 PyObject * _argo0 = 0;
3336 char *_kwnames[] = { "self", NULL };
3337
3338 self = self;
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0))
3340 return NULL;
3341 if (_argo0) {
3342 if (_argo0 == Py_None) { _arg0 = NULL; }
3343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
3345 return NULL;
3346 }
3347 }
3348 {
3349 PyThreadState* __tstate = wxPyBeginAllowThreads();
3350 wxWindow_Lower(_arg0);
3351
3352 wxPyEndAllowThreads(__tstate);
3353 if (PyErr_Occurred()) return NULL;
3354 } Py_INCREF(Py_None);
3355 _resultobj = Py_None;
3356 return _resultobj;
3357 }
3358
3359 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
3360 static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
3361 PyObject * _resultobj;
3362 wxWindow * _arg0;
3363 bool _arg1 = (bool ) TRUE;
3364 PyObject * _argo0 = 0;
3365 int tempbool1 = (int) TRUE;
3366 char *_kwnames[] = { "self","flag", NULL };
3367
3368 self = self;
3369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1))
3370 return NULL;
3371 if (_argo0) {
3372 if (_argo0 == Py_None) { _arg0 = NULL; }
3373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
3375 return NULL;
3376 }
3377 }
3378 _arg1 = (bool ) tempbool1;
3379 {
3380 PyThreadState* __tstate = wxPyBeginAllowThreads();
3381 wxWindow_MakeModal(_arg0,_arg1);
3382
3383 wxPyEndAllowThreads(__tstate);
3384 if (PyErr_Occurred()) return NULL;
3385 } Py_INCREF(Py_None);
3386 _resultobj = Py_None;
3387 return _resultobj;
3388 }
3389
3390 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2))
3391 static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3392 PyObject * _resultobj;
3393 wxWindow * _arg0;
3394 int _arg1;
3395 int _arg2;
3396 int _arg3 = (int ) wxSIZE_USE_EXISTING;
3397 PyObject * _argo0 = 0;
3398 char *_kwnames[] = { "self","x","y","flags", NULL };
3399
3400 self = self;
3401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
3402 return NULL;
3403 if (_argo0) {
3404 if (_argo0 == Py_None) { _arg0 = NULL; }
3405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
3407 return NULL;
3408 }
3409 }
3410 {
3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
3412 wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3);
3413
3414 wxPyEndAllowThreads(__tstate);
3415 if (PyErr_Occurred()) return NULL;
3416 } Py_INCREF(Py_None);
3417 _resultobj = Py_None;
3418 return _resultobj;
3419 }
3420
3421 #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
3422 static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
3423 PyObject * _resultobj;
3424 wxWindow * _arg0;
3425 wxPoint * _arg1;
3426 int _arg2 = (int ) wxSIZE_USE_EXISTING;
3427 PyObject * _argo0 = 0;
3428 wxPoint temp;
3429 PyObject * _obj1 = 0;
3430 char *_kwnames[] = { "self","point","flags", NULL };
3431
3432 self = self;
3433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2))
3434 return NULL;
3435 if (_argo0) {
3436 if (_argo0 == Py_None) { _arg0 = NULL; }
3437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
3439 return NULL;
3440 }
3441 }
3442 {
3443 _arg1 = &temp;
3444 if (! wxPoint_helper(_obj1, &_arg1))
3445 return NULL;
3446 }
3447 {
3448 PyThreadState* __tstate = wxPyBeginAllowThreads();
3449 wxWindow_Move(_arg0,*_arg1,_arg2);
3450
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) return NULL;
3453 } Py_INCREF(Py_None);
3454 _resultobj = Py_None;
3455 return _resultobj;
3456 }
3457
3458 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
3459 static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3460 PyObject * _resultobj;
3461 wxEvtHandler * _result;
3462 wxWindow * _arg0;
3463 bool _arg1 = (bool ) FALSE;
3464 PyObject * _argo0 = 0;
3465 int tempbool1 = (int) FALSE;
3466 char *_kwnames[] = { "self","deleteHandler", NULL };
3467
3468 self = self;
3469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1))
3470 return NULL;
3471 if (_argo0) {
3472 if (_argo0 == Py_None) { _arg0 = NULL; }
3473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
3475 return NULL;
3476 }
3477 }
3478 _arg1 = (bool ) tempbool1;
3479 {
3480 PyThreadState* __tstate = wxPyBeginAllowThreads();
3481 _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1);
3482
3483 wxPyEndAllowThreads(__tstate);
3484 if (PyErr_Occurred()) return NULL;
3485 }{ _resultobj = wxPyMake_wxObject(_result); }
3486 return _resultobj;
3487 }
3488
3489 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
3490 static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3491 PyObject * _resultobj;
3492 wxWindow * _arg0;
3493 wxEvtHandler * _arg1;
3494 PyObject * _argo0 = 0;
3495 PyObject * _argo1 = 0;
3496 char *_kwnames[] = { "self","handler", NULL };
3497
3498 self = self;
3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1))
3500 return NULL;
3501 if (_argo0) {
3502 if (_argo0 == Py_None) { _arg0 = NULL; }
3503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
3505 return NULL;
3506 }
3507 }
3508 if (_argo1) {
3509 if (_argo1 == Py_None) { _arg1 = NULL; }
3510 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
3511 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
3512 return NULL;
3513 }
3514 }
3515 {
3516 PyThreadState* __tstate = wxPyBeginAllowThreads();
3517 wxWindow_PushEventHandler(_arg0,_arg1);
3518
3519 wxPyEndAllowThreads(__tstate);
3520 if (PyErr_Occurred()) return NULL;
3521 } Py_INCREF(Py_None);
3522 _resultobj = Py_None;
3523 return _resultobj;
3524 }
3525
3526 #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0))
3527 static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3528 PyObject * _resultobj;
3529 bool _result;
3530 wxWindow * _arg0;
3531 wxEvtHandler * _arg1;
3532 PyObject * _argo0 = 0;
3533 PyObject * _argo1 = 0;
3534 char *_kwnames[] = { "self","handler", NULL };
3535
3536 self = self;
3537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1))
3538 return NULL;
3539 if (_argo0) {
3540 if (_argo0 == Py_None) { _arg0 = NULL; }
3541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p.");
3543 return NULL;
3544 }
3545 }
3546 if (_argo1) {
3547 if (_argo1 == Py_None) { _arg1 = NULL; }
3548 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
3549 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p.");
3550 return NULL;
3551 }
3552 }
3553 {
3554 PyThreadState* __tstate = wxPyBeginAllowThreads();
3555 _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1);
3556
3557 wxPyEndAllowThreads(__tstate);
3558 if (PyErr_Occurred()) return NULL;
3559 } _resultobj = Py_BuildValue("i",_result);
3560 return _resultobj;
3561 }
3562
3563 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
3564 static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3565 PyObject * _resultobj;
3566 bool _result;
3567 wxWindow * _arg0;
3568 wxMenu * _arg1;
3569 int _arg2;
3570 int _arg3;
3571 PyObject * _argo0 = 0;
3572 PyObject * _argo1 = 0;
3573 char *_kwnames[] = { "self","menu","x","y", NULL };
3574
3575 self = self;
3576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
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_PopupMenuXY. Expected _wxWindow_p.");
3582 return NULL;
3583 }
3584 }
3585 if (_argo1) {
3586 if (_argo1 == Py_None) { _arg1 = NULL; }
3587 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
3588 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
3589 return NULL;
3590 }
3591 }
3592 {
3593 PyThreadState* __tstate = wxPyBeginAllowThreads();
3594 _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3);
3595
3596 wxPyEndAllowThreads(__tstate);
3597 if (PyErr_Occurred()) return NULL;
3598 } _resultobj = Py_BuildValue("i",_result);
3599 return _resultobj;
3600 }
3601
3602 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
3603 static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
3604 PyObject * _resultobj;
3605 bool _result;
3606 wxWindow * _arg0;
3607 wxMenu * _arg1;
3608 wxPoint * _arg2;
3609 PyObject * _argo0 = 0;
3610 PyObject * _argo1 = 0;
3611 wxPoint temp;
3612 PyObject * _obj2 = 0;
3613 char *_kwnames[] = { "self","menu","pos", NULL };
3614
3615 self = self;
3616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2))
3617 return NULL;
3618 if (_argo0) {
3619 if (_argo0 == Py_None) { _arg0 = NULL; }
3620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
3622 return NULL;
3623 }
3624 }
3625 if (_argo1) {
3626 if (_argo1 == Py_None) { _arg1 = NULL; }
3627 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
3628 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
3629 return NULL;
3630 }
3631 }
3632 {
3633 _arg2 = &temp;
3634 if (! wxPoint_helper(_obj2, &_arg2))
3635 return NULL;
3636 }
3637 {
3638 PyThreadState* __tstate = wxPyBeginAllowThreads();
3639 _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2);
3640
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) return NULL;
3643 } _resultobj = Py_BuildValue("i",_result);
3644 return _resultobj;
3645 }
3646
3647 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
3648 static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
3649 PyObject * _resultobj;
3650 wxWindow * _arg0;
3651 PyObject * _argo0 = 0;
3652 char *_kwnames[] = { "self", NULL };
3653
3654 self = self;
3655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0))
3656 return NULL;
3657 if (_argo0) {
3658 if (_argo0 == Py_None) { _arg0 = NULL; }
3659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
3661 return NULL;
3662 }
3663 }
3664 {
3665 PyThreadState* __tstate = wxPyBeginAllowThreads();
3666 wxWindow_Raise(_arg0);
3667
3668 wxPyEndAllowThreads(__tstate);
3669 if (PyErr_Occurred()) return NULL;
3670 } Py_INCREF(Py_None);
3671 _resultobj = Py_None;
3672 return _resultobj;
3673 }
3674
3675 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
3676 static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
3677 PyObject * _resultobj;
3678 wxWindow * _arg0;
3679 bool _arg1 = (bool ) TRUE;
3680 wxRect * _arg2 = (wxRect *) NULL;
3681 PyObject * _argo0 = 0;
3682 int tempbool1 = (int) TRUE;
3683 wxRect temp;
3684 PyObject * _obj2 = 0;
3685 char *_kwnames[] = { "self","eraseBackground","rect", NULL };
3686
3687 self = self;
3688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2))
3689 return NULL;
3690 if (_argo0) {
3691 if (_argo0 == Py_None) { _arg0 = NULL; }
3692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
3694 return NULL;
3695 }
3696 }
3697 _arg1 = (bool ) tempbool1;
3698 if (_obj2)
3699 {
3700 _arg2 = &temp;
3701 if (! wxRect_helper(_obj2, &_arg2))
3702 return NULL;
3703 }
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 wxWindow_Refresh(_arg0,_arg1,_arg2);
3707
3708 wxPyEndAllowThreads(__tstate);
3709 if (PyErr_Occurred()) return NULL;
3710 } Py_INCREF(Py_None);
3711 _resultobj = Py_None;
3712 return _resultobj;
3713 }
3714
3715 #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0))
3716 static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3717 PyObject * _resultobj;
3718 wxWindow * _arg0;
3719 wxRect * _arg1;
3720 PyObject * _argo0 = 0;
3721 wxRect temp;
3722 PyObject * _obj1 = 0;
3723 char *_kwnames[] = { "self","rect", NULL };
3724
3725 self = self;
3726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1))
3727 return NULL;
3728 if (_argo0) {
3729 if (_argo0 == Py_None) { _arg0 = NULL; }
3730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p.");
3732 return NULL;
3733 }
3734 }
3735 {
3736 _arg1 = &temp;
3737 if (! wxRect_helper(_obj1, &_arg1))
3738 return NULL;
3739 }
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 wxWindow_RefreshRect(_arg0,*_arg1);
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) return NULL;
3746 } Py_INCREF(Py_None);
3747 _resultobj = Py_None;
3748 return _resultobj;
3749 }
3750
3751 #define wxWindow_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0))
3752 static PyObject *_wrap_wxWindow_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject * _resultobj;
3754 wxWindow * _arg0;
3755 wxWindow * _arg1;
3756 PyObject * _argo0 = 0;
3757 PyObject * _argo1 = 0;
3758 char *_kwnames[] = { "self","child", NULL };
3759
3760 self = self;
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_AddChild",_kwnames,&_argo0,&_argo1))
3762 return NULL;
3763 if (_argo0) {
3764 if (_argo0 == Py_None) { _arg0 = NULL; }
3765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AddChild. Expected _wxWindow_p.");
3767 return NULL;
3768 }
3769 }
3770 if (_argo1) {
3771 if (_argo1 == Py_None) { _arg1 = NULL; }
3772 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3773 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_AddChild. Expected _wxWindow_p.");
3774 return NULL;
3775 }
3776 }
3777 {
3778 PyThreadState* __tstate = wxPyBeginAllowThreads();
3779 wxWindow_AddChild(_arg0,_arg1);
3780
3781 wxPyEndAllowThreads(__tstate);
3782 if (PyErr_Occurred()) return NULL;
3783 } Py_INCREF(Py_None);
3784 _resultobj = Py_None;
3785 return _resultobj;
3786 }
3787
3788 #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0))
3789 static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
3790 PyObject * _resultobj;
3791 wxWindow * _arg0;
3792 wxWindow * _arg1;
3793 PyObject * _argo0 = 0;
3794 PyObject * _argo1 = 0;
3795 char *_kwnames[] = { "self","child", NULL };
3796
3797 self = self;
3798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1))
3799 return NULL;
3800 if (_argo0) {
3801 if (_argo0 == Py_None) { _arg0 = NULL; }
3802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3804 return NULL;
3805 }
3806 }
3807 if (_argo1) {
3808 if (_argo1 == Py_None) { _arg1 = NULL; }
3809 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3810 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p.");
3811 return NULL;
3812 }
3813 }
3814 {
3815 PyThreadState* __tstate = wxPyBeginAllowThreads();
3816 wxWindow_RemoveChild(_arg0,_arg1);
3817
3818 wxPyEndAllowThreads(__tstate);
3819 if (PyErr_Occurred()) return NULL;
3820 } Py_INCREF(Py_None);
3821 _resultobj = Py_None;
3822 return _resultobj;
3823 }
3824
3825 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
3826 static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
3827 PyObject * _resultobj;
3828 bool _result;
3829 wxWindow * _arg0;
3830 wxWindow * _arg1;
3831 PyObject * _argo0 = 0;
3832 PyObject * _argo1 = 0;
3833 char *_kwnames[] = { "self","newParent", NULL };
3834
3835 self = self;
3836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1))
3837 return NULL;
3838 if (_argo0) {
3839 if (_argo0 == Py_None) { _arg0 = NULL; }
3840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
3842 return NULL;
3843 }
3844 }
3845 if (_argo1) {
3846 if (_argo1 == Py_None) { _arg1 = NULL; }
3847 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3848 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3849 return NULL;
3850 }
3851 }
3852 {
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 _result = (bool )wxWindow_Reparent(_arg0,_arg1);
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) return NULL;
3858 } _resultobj = Py_BuildValue("i",_result);
3859 return _resultobj;
3860 }
3861
3862 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3863 static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3864 PyObject * _resultobj;
3865 wxWindow * _arg0;
3866 int * _arg1;
3867 int * _arg2;
3868 PyObject * _argo0 = 0;
3869 int temp;
3870 PyObject * _obj1 = 0;
3871 int temp0;
3872 PyObject * _obj2 = 0;
3873 char *_kwnames[] = { "self","x","y", NULL };
3874
3875 self = self;
3876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2))
3877 return NULL;
3878 if (_argo0) {
3879 if (_argo0 == Py_None) { _arg0 = NULL; }
3880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3882 return NULL;
3883 }
3884 }
3885 {
3886 temp = (int) PyInt_AsLong(_obj1);
3887 _arg1 = &temp;
3888 }
3889 {
3890 temp0 = (int) PyInt_AsLong(_obj2);
3891 _arg2 = &temp0;
3892 }
3893 {
3894 PyThreadState* __tstate = wxPyBeginAllowThreads();
3895 wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2);
3896
3897 wxPyEndAllowThreads(__tstate);
3898 if (PyErr_Occurred()) return NULL;
3899 } Py_INCREF(Py_None);
3900 _resultobj = Py_None;
3901 {
3902 PyObject *o;
3903 o = PyInt_FromLong((long) (*_arg1));
3904 _resultobj = t_output_helper(_resultobj, o);
3905 }
3906 {
3907 PyObject *o;
3908 o = PyInt_FromLong((long) (*_arg2));
3909 _resultobj = t_output_helper(_resultobj, o);
3910 }
3911 return _resultobj;
3912 }
3913
3914 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3915 static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
3916 PyObject * _resultobj;
3917 wxPoint * _result;
3918 wxWindow * _arg0;
3919 wxPoint * _arg1;
3920 PyObject * _argo0 = 0;
3921 wxPoint temp;
3922 PyObject * _obj1 = 0;
3923 char *_kwnames[] = { "self","pt", NULL };
3924 char _ptemp[128];
3925
3926 self = self;
3927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1))
3928 return NULL;
3929 if (_argo0) {
3930 if (_argo0 == Py_None) { _arg0 = NULL; }
3931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3933 return NULL;
3934 }
3935 }
3936 {
3937 _arg1 = &temp;
3938 if (! wxPoint_helper(_obj1, &_arg1))
3939 return NULL;
3940 }
3941 {
3942 PyThreadState* __tstate = wxPyBeginAllowThreads();
3943 _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1));
3944
3945 wxPyEndAllowThreads(__tstate);
3946 if (PyErr_Occurred()) return NULL;
3947 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3948 _resultobj = Py_BuildValue("s",_ptemp);
3949 return _resultobj;
3950 }
3951
3952 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3953 static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3954 PyObject * _resultobj;
3955 wxWindow * _arg0;
3956 int _arg1;
3957 int _arg2;
3958 wxRect * _arg3 = (wxRect *) NULL;
3959 PyObject * _argo0 = 0;
3960 wxRect temp;
3961 PyObject * _obj3 = 0;
3962 char *_kwnames[] = { "self","dx","dy","rect", NULL };
3963
3964 self = self;
3965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
3966 return NULL;
3967 if (_argo0) {
3968 if (_argo0 == Py_None) { _arg0 = NULL; }
3969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3971 return NULL;
3972 }
3973 }
3974 if (_obj3)
3975 {
3976 _arg3 = &temp;
3977 if (! wxRect_helper(_obj3, &_arg3))
3978 return NULL;
3979 }
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3);
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) return NULL;
3986 } Py_INCREF(Py_None);
3987 _resultobj = Py_None;
3988 return _resultobj;
3989 }
3990
3991 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3992 static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3993 PyObject * _resultobj;
3994 wxWindow * _arg0;
3995 bool _arg1;
3996 PyObject * _argo0 = 0;
3997 int tempbool1;
3998 char *_kwnames[] = { "self","autoLayout", NULL };
3999
4000 self = self;
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1))
4002 return NULL;
4003 if (_argo0) {
4004 if (_argo0 == Py_None) { _arg0 = NULL; }
4005 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4006 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
4007 return NULL;
4008 }
4009 }
4010 _arg1 = (bool ) tempbool1;
4011 {
4012 PyThreadState* __tstate = wxPyBeginAllowThreads();
4013 wxWindow_SetAutoLayout(_arg0,_arg1);
4014
4015 wxPyEndAllowThreads(__tstate);
4016 if (PyErr_Occurred()) return NULL;
4017 } Py_INCREF(Py_None);
4018 _resultobj = Py_None;
4019 return _resultobj;
4020 }
4021
4022 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
4023 static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
4024 PyObject * _resultobj;
4025 bool _result;
4026 wxWindow * _arg0;
4027 PyObject * _argo0 = 0;
4028 char *_kwnames[] = { "self", NULL };
4029
4030 self = self;
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0))
4032 return NULL;
4033 if (_argo0) {
4034 if (_argo0 == Py_None) { _arg0 = NULL; }
4035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
4037 return NULL;
4038 }
4039 }
4040 {
4041 PyThreadState* __tstate = wxPyBeginAllowThreads();
4042 _result = (bool )wxWindow_GetAutoLayout(_arg0);
4043
4044 wxPyEndAllowThreads(__tstate);
4045 if (PyErr_Occurred()) return NULL;
4046 } _resultobj = Py_BuildValue("i",_result);
4047 return _resultobj;
4048 }
4049
4050 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
4051 static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4052 PyObject * _resultobj;
4053 wxWindow * _arg0;
4054 wxColour * _arg1;
4055 PyObject * _argo0 = 0;
4056 wxColour temp;
4057 PyObject * _obj1 = 0;
4058 char *_kwnames[] = { "self","colour", NULL };
4059
4060 self = self;
4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
4062 return NULL;
4063 if (_argo0) {
4064 if (_argo0 == Py_None) { _arg0 = NULL; }
4065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
4067 return NULL;
4068 }
4069 }
4070 {
4071 _arg1 = &temp;
4072 if (! wxColour_helper(_obj1, &_arg1))
4073 return NULL;
4074 }
4075 {
4076 PyThreadState* __tstate = wxPyBeginAllowThreads();
4077 wxWindow_SetBackgroundColour(_arg0,*_arg1);
4078
4079 wxPyEndAllowThreads(__tstate);
4080 if (PyErr_Occurred()) return NULL;
4081 } Py_INCREF(Py_None);
4082 _resultobj = Py_None;
4083 return _resultobj;
4084 }
4085
4086 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
4087 static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
4088 PyObject * _resultobj;
4089 wxWindow * _arg0;
4090 wxLayoutConstraints * _arg1;
4091 PyObject * _argo0 = 0;
4092 PyObject * _argo1 = 0;
4093 char *_kwnames[] = { "self","constraints", NULL };
4094
4095 self = self;
4096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1))
4097 return NULL;
4098 if (_argo0) {
4099 if (_argo0 == Py_None) { _arg0 = NULL; }
4100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
4102 return NULL;
4103 }
4104 }
4105 if (_argo1) {
4106 if (_argo1 == Py_None) { _arg1 = NULL; }
4107 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
4108 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
4109 return NULL;
4110 }
4111 }
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 wxWindow_SetConstraints(_arg0,_arg1);
4115
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) return NULL;
4118 } Py_INCREF(Py_None);
4119 _resultobj = Py_None;
4120 return _resultobj;
4121 }
4122
4123 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
4124 static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
4125 PyObject * _resultobj;
4126 wxWindow * _arg0;
4127 wxLayoutConstraints * _arg1;
4128 PyObject * _argo0 = 0;
4129 PyObject * _argo1 = 0;
4130 char *_kwnames[] = { "self","constraints", NULL };
4131
4132 self = self;
4133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1))
4134 return NULL;
4135 if (_argo0) {
4136 if (_argo0 == Py_None) { _arg0 = NULL; }
4137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
4139 return NULL;
4140 }
4141 }
4142 if (_argo1) {
4143 if (_argo1 == Py_None) { _arg1 = NULL; }
4144 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
4145 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
4146 return NULL;
4147 }
4148 }
4149 {
4150 PyThreadState* __tstate = wxPyBeginAllowThreads();
4151 wxWindow_UnsetConstraints(_arg0,_arg1);
4152
4153 wxPyEndAllowThreads(__tstate);
4154 if (PyErr_Occurred()) return NULL;
4155 } Py_INCREF(Py_None);
4156 _resultobj = Py_None;
4157 return _resultobj;
4158 }
4159
4160 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
4161 static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
4162 PyObject * _resultobj;
4163 wxWindow * _arg0;
4164 PyObject * _argo0 = 0;
4165 char *_kwnames[] = { "self", NULL };
4166
4167 self = self;
4168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0))
4169 return NULL;
4170 if (_argo0) {
4171 if (_argo0 == Py_None) { _arg0 = NULL; }
4172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
4174 return NULL;
4175 }
4176 }
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 wxWindow_SetFocus(_arg0);
4180
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) return NULL;
4183 } Py_INCREF(Py_None);
4184 _resultobj = Py_None;
4185 return _resultobj;
4186 }
4187
4188 #define wxWindow_SetFocusFromKbd(_swigobj) (_swigobj->SetFocusFromKbd())
4189 static PyObject *_wrap_wxWindow_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) {
4190 PyObject * _resultobj;
4191 wxWindow * _arg0;
4192 PyObject * _argo0 = 0;
4193 char *_kwnames[] = { "self", NULL };
4194
4195 self = self;
4196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocusFromKbd",_kwnames,&_argo0))
4197 return NULL;
4198 if (_argo0) {
4199 if (_argo0 == Py_None) { _arg0 = NULL; }
4200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocusFromKbd. Expected _wxWindow_p.");
4202 return NULL;
4203 }
4204 }
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 wxWindow_SetFocusFromKbd(_arg0);
4208
4209 wxPyEndAllowThreads(__tstate);
4210 if (PyErr_Occurred()) return NULL;
4211 } Py_INCREF(Py_None);
4212 _resultobj = Py_None;
4213 return _resultobj;
4214 }
4215
4216 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
4217 static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
4218 PyObject * _resultobj;
4219 bool _result;
4220 wxWindow * _arg0;
4221 PyObject * _argo0 = 0;
4222 char *_kwnames[] = { "self", NULL };
4223
4224 self = self;
4225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0))
4226 return NULL;
4227 if (_argo0) {
4228 if (_argo0 == Py_None) { _arg0 = NULL; }
4229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
4231 return NULL;
4232 }
4233 }
4234 {
4235 PyThreadState* __tstate = wxPyBeginAllowThreads();
4236 _result = (bool )wxWindow_AcceptsFocus(_arg0);
4237
4238 wxPyEndAllowThreads(__tstate);
4239 if (PyErr_Occurred()) return NULL;
4240 } _resultobj = Py_BuildValue("i",_result);
4241 return _resultobj;
4242 }
4243
4244 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
4245 static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4246 PyObject * _resultobj;
4247 wxWindow * _arg0;
4248 wxFont * _arg1;
4249 PyObject * _argo0 = 0;
4250 PyObject * _argo1 = 0;
4251 char *_kwnames[] = { "self","font", NULL };
4252
4253 self = self;
4254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1))
4255 return NULL;
4256 if (_argo0) {
4257 if (_argo0 == Py_None) { _arg0 = NULL; }
4258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
4260 return NULL;
4261 }
4262 }
4263 if (_argo1) {
4264 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4265 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
4266 return NULL;
4267 }
4268 }
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 wxWindow_SetFont(_arg0,*_arg1);
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) return NULL;
4275 } Py_INCREF(Py_None);
4276 _resultobj = Py_None;
4277 return _resultobj;
4278 }
4279
4280 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
4281 static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4282 PyObject * _resultobj;
4283 wxWindow * _arg0;
4284 wxColour * _arg1;
4285 PyObject * _argo0 = 0;
4286 wxColour temp;
4287 PyObject * _obj1 = 0;
4288 char *_kwnames[] = { "self","colour", NULL };
4289
4290 self = self;
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1))
4292 return NULL;
4293 if (_argo0) {
4294 if (_argo0 == Py_None) { _arg0 = NULL; }
4295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
4297 return NULL;
4298 }
4299 }
4300 {
4301 _arg1 = &temp;
4302 if (! wxColour_helper(_obj1, &_arg1))
4303 return NULL;
4304 }
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 wxWindow_SetForegroundColour(_arg0,*_arg1);
4308
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) return NULL;
4311 } Py_INCREF(Py_None);
4312 _resultobj = Py_None;
4313 return _resultobj;
4314 }
4315
4316 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4317 static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
4318 PyObject * _resultobj;
4319 wxWindow * _arg0;
4320 int _arg1;
4321 PyObject * _argo0 = 0;
4322 char *_kwnames[] = { "self","id", NULL };
4323
4324 self = self;
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1))
4326 return NULL;
4327 if (_argo0) {
4328 if (_argo0 == Py_None) { _arg0 = NULL; }
4329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4331 return NULL;
4332 }
4333 }
4334 {
4335 PyThreadState* __tstate = wxPyBeginAllowThreads();
4336 wxWindow_SetId(_arg0,_arg1);
4337
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) return NULL;
4340 } Py_INCREF(Py_None);
4341 _resultobj = Py_None;
4342 return _resultobj;
4343 }
4344
4345 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4346 static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
4347 PyObject * _resultobj;
4348 wxWindow * _arg0;
4349 wxString * _arg1;
4350 PyObject * _argo0 = 0;
4351 PyObject * _obj1 = 0;
4352 char *_kwnames[] = { "self","name", NULL };
4353
4354 self = self;
4355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1))
4356 return NULL;
4357 if (_argo0) {
4358 if (_argo0 == Py_None) { _arg0 = NULL; }
4359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4361 return NULL;
4362 }
4363 }
4364 {
4365 _arg1 = wxString_in_helper(_obj1);
4366 if (_arg1 == NULL)
4367 return NULL;
4368 }
4369 {
4370 PyThreadState* __tstate = wxPyBeginAllowThreads();
4371 wxWindow_SetName(_arg0,*_arg1);
4372
4373 wxPyEndAllowThreads(__tstate);
4374 if (PyErr_Occurred()) return NULL;
4375 } Py_INCREF(Py_None);
4376 _resultobj = Py_None;
4377 {
4378 if (_obj1)
4379 delete _arg1;
4380 }
4381 return _resultobj;
4382 }
4383
4384 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4385 static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
4386 PyObject * _resultobj;
4387 wxWindow * _arg0;
4388 int _arg1;
4389 int _arg2;
4390 int _arg3;
4391 int _arg4;
4392 int _arg5 = (int ) TRUE;
4393 PyObject * _argo0 = 0;
4394 char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL };
4395
4396 self = self;
4397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4398 return NULL;
4399 if (_argo0) {
4400 if (_argo0 == Py_None) { _arg0 = NULL; }
4401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4403 return NULL;
4404 }
4405 }
4406 {
4407 PyThreadState* __tstate = wxPyBeginAllowThreads();
4408 wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4409
4410 wxPyEndAllowThreads(__tstate);
4411 if (PyErr_Occurred()) return NULL;
4412 } Py_INCREF(Py_None);
4413 _resultobj = Py_None;
4414 return _resultobj;
4415 }
4416
4417 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4418 static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
4419 PyObject * _resultobj;
4420 wxWindow * _arg0;
4421 int _arg1;
4422 int _arg2;
4423 bool _arg3 = (bool ) TRUE;
4424 PyObject * _argo0 = 0;
4425 int tempbool3 = (int) TRUE;
4426 char *_kwnames[] = { "self","orientation","pos","refresh", NULL };
4427
4428 self = self;
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3))
4430 return NULL;
4431 if (_argo0) {
4432 if (_argo0 == Py_None) { _arg0 = NULL; }
4433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4435 return NULL;
4436 }
4437 }
4438 _arg3 = (bool ) tempbool3;
4439 {
4440 PyThreadState* __tstate = wxPyBeginAllowThreads();
4441 wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3);
4442
4443 wxPyEndAllowThreads(__tstate);
4444 if (PyErr_Occurred()) return NULL;
4445 } Py_INCREF(Py_None);
4446 _resultobj = Py_None;
4447 return _resultobj;
4448 }
4449
4450 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4451 static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
4452 PyObject * _resultobj;
4453 wxWindow * _arg0;
4454 int _arg1;
4455 int _arg2;
4456 int _arg3;
4457 int _arg4;
4458 int _arg5 = (int ) wxSIZE_AUTO;
4459 PyObject * _argo0 = 0;
4460 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
4461
4462 self = self;
4463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4464 return NULL;
4465 if (_argo0) {
4466 if (_argo0 == Py_None) { _arg0 = NULL; }
4467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4469 return NULL;
4470 }
4471 }
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4475
4476 wxPyEndAllowThreads(__tstate);
4477 if (PyErr_Occurred()) return NULL;
4478 } Py_INCREF(Py_None);
4479 _resultobj = Py_None;
4480 return _resultobj;
4481 }
4482
4483 static void wxWindow_SetSize(wxWindow *self,const wxSize & size) {
4484 self->SetSize(size);
4485 }
4486 static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4487 PyObject * _resultobj;
4488 wxWindow * _arg0;
4489 wxSize * _arg1;
4490 PyObject * _argo0 = 0;
4491 wxSize temp;
4492 PyObject * _obj1 = 0;
4493 char *_kwnames[] = { "self","size", NULL };
4494
4495 self = self;
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1))
4497 return NULL;
4498 if (_argo0) {
4499 if (_argo0 == Py_None) { _arg0 = NULL; }
4500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4502 return NULL;
4503 }
4504 }
4505 {
4506 _arg1 = &temp;
4507 if (! wxSize_helper(_obj1, &_arg1))
4508 return NULL;
4509 }
4510 {
4511 PyThreadState* __tstate = wxPyBeginAllowThreads();
4512 wxWindow_SetSize(_arg0,*_arg1);
4513
4514 wxPyEndAllowThreads(__tstate);
4515 if (PyErr_Occurred()) return NULL;
4516 } Py_INCREF(Py_None);
4517 _resultobj = Py_None;
4518 return _resultobj;
4519 }
4520
4521 static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) {
4522 self->Move(pos, flags);
4523 }
4524 static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4525 PyObject * _resultobj;
4526 wxWindow * _arg0;
4527 wxPoint * _arg1;
4528 int _arg2 = (int ) wxSIZE_USE_EXISTING;
4529 PyObject * _argo0 = 0;
4530 wxPoint temp;
4531 PyObject * _obj1 = 0;
4532 char *_kwnames[] = { "self","pos","flags", NULL };
4533
4534 self = self;
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2))
4536 return NULL;
4537 if (_argo0) {
4538 if (_argo0 == Py_None) { _arg0 = NULL; }
4539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4541 return NULL;
4542 }
4543 }
4544 {
4545 _arg1 = &temp;
4546 if (! wxPoint_helper(_obj1, &_arg1))
4547 return NULL;
4548 }
4549 {
4550 PyThreadState* __tstate = wxPyBeginAllowThreads();
4551 wxWindow_SetPosition(_arg0,*_arg1,_arg2);
4552
4553 wxPyEndAllowThreads(__tstate);
4554 if (PyErr_Occurred()) return NULL;
4555 } Py_INCREF(Py_None);
4556 _resultobj = Py_None;
4557 return _resultobj;
4558 }
4559
4560 static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) {
4561 self->SetSize(rect, sizeFlags);
4562 }
4563 static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4564 PyObject * _resultobj;
4565 wxWindow * _arg0;
4566 wxRect * _arg1;
4567 int _arg2 = (int ) wxSIZE_AUTO;
4568 PyObject * _argo0 = 0;
4569 wxRect temp;
4570 PyObject * _obj1 = 0;
4571 char *_kwnames[] = { "self","rect","sizeFlags", NULL };
4572
4573 self = self;
4574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2))
4575 return NULL;
4576 if (_argo0) {
4577 if (_argo0 == Py_None) { _arg0 = NULL; }
4578 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4579 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4580 return NULL;
4581 }
4582 }
4583 {
4584 _arg1 = &temp;
4585 if (! wxRect_helper(_obj1, &_arg1))
4586 return NULL;
4587 }
4588 {
4589 PyThreadState* __tstate = wxPyBeginAllowThreads();
4590 wxWindow_SetRect(_arg0,*_arg1,_arg2);
4591
4592 wxPyEndAllowThreads(__tstate);
4593 if (PyErr_Occurred()) return NULL;
4594 } Py_INCREF(Py_None);
4595 _resultobj = Py_None;
4596 return _resultobj;
4597 }
4598
4599 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4600 static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject * _resultobj;
4602 wxWindow * _arg0;
4603 int _arg1;
4604 int _arg2;
4605 int _arg3 = (int ) -1;
4606 int _arg4 = (int ) -1;
4607 int _arg5 = (int ) -1;
4608 int _arg6 = (int ) -1;
4609 PyObject * _argo0 = 0;
4610 char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL };
4611
4612 self = self;
4613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4614 return NULL;
4615 if (_argo0) {
4616 if (_argo0 == Py_None) { _arg0 = NULL; }
4617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4619 return NULL;
4620 }
4621 }
4622 {
4623 PyThreadState* __tstate = wxPyBeginAllowThreads();
4624 wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4625
4626 wxPyEndAllowThreads(__tstate);
4627 if (PyErr_Occurred()) return NULL;
4628 } Py_INCREF(Py_None);
4629 _resultobj = Py_None;
4630 return _resultobj;
4631 }
4632
4633 #define wxWindow_SetVirtualSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetVirtualSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4634 static PyObject *_wrap_wxWindow_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
4635 PyObject * _resultobj;
4636 wxWindow * _arg0;
4637 int _arg1;
4638 int _arg2;
4639 int _arg3 = (int ) -1;
4640 int _arg4 = (int ) -1;
4641 PyObject * _argo0 = 0;
4642 char *_kwnames[] = { "self","minW","minH","maxW","maxH", NULL };
4643
4644 self = self;
4645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_SetVirtualSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
4646 return NULL;
4647 if (_argo0) {
4648 if (_argo0 == Py_None) { _arg0 = NULL; }
4649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeHints. Expected _wxWindow_p.");
4651 return NULL;
4652 }
4653 }
4654 {
4655 PyThreadState* __tstate = wxPyBeginAllowThreads();
4656 wxWindow_SetVirtualSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4);
4657
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) return NULL;
4660 } Py_INCREF(Py_None);
4661 _resultobj = Py_None;
4662 return _resultobj;
4663 }
4664
4665 #define wxWindow_SetVirtualSize(_swigobj,_swigarg0) (_swigobj->SetVirtualSize(_swigarg0))
4666 static PyObject *_wrap_wxWindow_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4667 PyObject * _resultobj;
4668 wxWindow * _arg0;
4669 wxSize * _arg1;
4670 PyObject * _argo0 = 0;
4671 wxSize temp;
4672 PyObject * _obj1 = 0;
4673 char *_kwnames[] = { "self","size", NULL };
4674
4675 self = self;
4676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetVirtualSize",_kwnames,&_argo0,&_obj1))
4677 return NULL;
4678 if (_argo0) {
4679 if (_argo0 == Py_None) { _arg0 = NULL; }
4680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSize. Expected _wxWindow_p.");
4682 return NULL;
4683 }
4684 }
4685 {
4686 _arg1 = &temp;
4687 if (! wxSize_helper(_obj1, &_arg1))
4688 return NULL;
4689 }
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 wxWindow_SetVirtualSize(_arg0,*_arg1);
4693
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) return NULL;
4696 } Py_INCREF(Py_None);
4697 _resultobj = Py_None;
4698 return _resultobj;
4699 }
4700
4701 #define wxWindow_SetVirtualSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetVirtualSize(_swigarg0,_swigarg1))
4702 static PyObject *_wrap_wxWindow_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4703 PyObject * _resultobj;
4704 wxWindow * _arg0;
4705 int _arg1;
4706 int _arg2;
4707 PyObject * _argo0 = 0;
4708 char *_kwnames[] = { "self","x","y", NULL };
4709
4710 self = self;
4711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetVirtualSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
4712 return NULL;
4713 if (_argo0) {
4714 if (_argo0 == Py_None) { _arg0 = NULL; }
4715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeWH. Expected _wxWindow_p.");
4717 return NULL;
4718 }
4719 }
4720 {
4721 PyThreadState* __tstate = wxPyBeginAllowThreads();
4722 wxWindow_SetVirtualSizeWH(_arg0,_arg1,_arg2);
4723
4724 wxPyEndAllowThreads(__tstate);
4725 if (PyErr_Occurred()) return NULL;
4726 } Py_INCREF(Py_None);
4727 _resultobj = Py_None;
4728 return _resultobj;
4729 }
4730
4731 #define wxWindow_GetVirtualSize(_swigobj) (_swigobj->GetVirtualSize())
4732 static PyObject *_wrap_wxWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4733 PyObject * _resultobj;
4734 wxSize * _result;
4735 wxWindow * _arg0;
4736 PyObject * _argo0 = 0;
4737 char *_kwnames[] = { "self", NULL };
4738 char _ptemp[128];
4739
4740 self = self;
4741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSize",_kwnames,&_argo0))
4742 return NULL;
4743 if (_argo0) {
4744 if (_argo0 == Py_None) { _arg0 = NULL; }
4745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSize. Expected _wxWindow_p.");
4747 return NULL;
4748 }
4749 }
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 _result = new wxSize (wxWindow_GetVirtualSize(_arg0));
4753
4754 wxPyEndAllowThreads(__tstate);
4755 if (PyErr_Occurred()) return NULL;
4756 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4757 _resultobj = Py_BuildValue("s",_ptemp);
4758 return _resultobj;
4759 }
4760
4761 #define wxWindow_GetVirtualSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
4762 static PyObject *_wrap_wxWindow_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4763 PyObject * _resultobj;
4764 wxWindow * _arg0;
4765 int * _arg1;
4766 int temp;
4767 int * _arg2;
4768 int temp0;
4769 PyObject * _argo0 = 0;
4770 char *_kwnames[] = { "self", NULL };
4771
4772 self = self;
4773 {
4774 _arg1 = &temp;
4775 }
4776 {
4777 _arg2 = &temp0;
4778 }
4779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSizeTuple",_kwnames,&_argo0))
4780 return NULL;
4781 if (_argo0) {
4782 if (_argo0 == Py_None) { _arg0 = NULL; }
4783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSizeTuple. Expected _wxWindow_p.");
4785 return NULL;
4786 }
4787 }
4788 {
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 wxWindow_GetVirtualSizeTuple(_arg0,_arg1,_arg2);
4791
4792 wxPyEndAllowThreads(__tstate);
4793 if (PyErr_Occurred()) return NULL;
4794 } Py_INCREF(Py_None);
4795 _resultobj = Py_None;
4796 {
4797 PyObject *o;
4798 o = PyInt_FromLong((long) (*_arg1));
4799 _resultobj = t_output_helper(_resultobj, o);
4800 }
4801 {
4802 PyObject *o;
4803 o = PyInt_FromLong((long) (*_arg2));
4804 _resultobj = t_output_helper(_resultobj, o);
4805 }
4806 return _resultobj;
4807 }
4808
4809 #define wxWindow_GetBestVirtualSize(_swigobj) (_swigobj->GetBestVirtualSize())
4810 static PyObject *_wrap_wxWindow_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4811 PyObject * _resultobj;
4812 wxSize * _result;
4813 wxWindow * _arg0;
4814 PyObject * _argo0 = 0;
4815 char *_kwnames[] = { "self", NULL };
4816 char _ptemp[128];
4817
4818 self = self;
4819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestVirtualSize",_kwnames,&_argo0))
4820 return NULL;
4821 if (_argo0) {
4822 if (_argo0 == Py_None) { _arg0 = NULL; }
4823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestVirtualSize. Expected _wxWindow_p.");
4825 return NULL;
4826 }
4827 }
4828 {
4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
4830 _result = new wxSize (wxWindow_GetBestVirtualSize(_arg0));
4831
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) return NULL;
4834 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4835 _resultobj = Py_BuildValue("s",_ptemp);
4836 return _resultobj;
4837 }
4838
4839 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4840 static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4841 PyObject * _resultobj;
4842 wxWindow * _arg0;
4843 int _arg1;
4844 int _arg2;
4845 PyObject * _argo0 = 0;
4846 char *_kwnames[] = { "self","width","height", NULL };
4847
4848 self = self;
4849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
4850 return NULL;
4851 if (_argo0) {
4852 if (_argo0 == Py_None) { _arg0 = NULL; }
4853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4855 return NULL;
4856 }
4857 }
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2);
4861
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) return NULL;
4864 } Py_INCREF(Py_None);
4865 _resultobj = Py_None;
4866 return _resultobj;
4867 }
4868
4869 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4870 static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4871 PyObject * _resultobj;
4872 wxWindow * _arg0;
4873 wxSize * _arg1;
4874 PyObject * _argo0 = 0;
4875 wxSize temp;
4876 PyObject * _obj1 = 0;
4877 char *_kwnames[] = { "self","size", NULL };
4878
4879 self = self;
4880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1))
4881 return NULL;
4882 if (_argo0) {
4883 if (_argo0 == Py_None) { _arg0 = NULL; }
4884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4886 return NULL;
4887 }
4888 }
4889 {
4890 _arg1 = &temp;
4891 if (! wxSize_helper(_obj1, &_arg1))
4892 return NULL;
4893 }
4894 {
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 wxWindow_SetClientSize(_arg0,*_arg1);
4897
4898 wxPyEndAllowThreads(__tstate);
4899 if (PyErr_Occurred()) return NULL;
4900 } Py_INCREF(Py_None);
4901 _resultobj = Py_None;
4902 return _resultobj;
4903 }
4904
4905 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4906 static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4907 PyObject * _resultobj;
4908 bool _result;
4909 wxWindow * _arg0;
4910 wxCursor * _arg1;
4911 PyObject * _argo0 = 0;
4912 PyObject * _argo1 = 0;
4913 char *_kwnames[] = { "self","cursor", NULL };
4914
4915 self = self;
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1))
4917 return NULL;
4918 if (_argo0) {
4919 if (_argo0 == Py_None) { _arg0 = NULL; }
4920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4922 return NULL;
4923 }
4924 }
4925 if (_argo1) {
4926 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
4927 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4928 return NULL;
4929 }
4930 }
4931 {
4932 PyThreadState* __tstate = wxPyBeginAllowThreads();
4933 _result = (bool )wxWindow_SetCursor(_arg0,*_arg1);
4934
4935 wxPyEndAllowThreads(__tstate);
4936 if (PyErr_Occurred()) return NULL;
4937 } _resultobj = Py_BuildValue("i",_result);
4938 return _resultobj;
4939 }
4940
4941 #define wxWindow_GetCursor(_swigobj) (_swigobj->GetCursor())
4942 static PyObject *_wrap_wxWindow_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4943 PyObject * _resultobj;
4944 wxCursor * _result;
4945 wxWindow * _arg0;
4946 PyObject * _argo0 = 0;
4947 char *_kwnames[] = { "self", NULL };
4948 char _ptemp[128];
4949
4950 self = self;
4951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCursor",_kwnames,&_argo0))
4952 return NULL;
4953 if (_argo0) {
4954 if (_argo0 == Py_None) { _arg0 = NULL; }
4955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCursor. Expected _wxWindow_p.");
4957 return NULL;
4958 }
4959 }
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 wxCursor & _result_ref = wxWindow_GetCursor(_arg0);
4963 _result = (wxCursor *) &_result_ref;
4964
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) return NULL;
4967 } if (_result) {
4968 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
4969 _resultobj = Py_BuildValue("s",_ptemp);
4970 } else {
4971 Py_INCREF(Py_None);
4972 _resultobj = Py_None;
4973 }
4974 return _resultobj;
4975 }
4976
4977 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4978 static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
4979 PyObject * _resultobj;
4980 wxWindow * _arg0;
4981 wxEvtHandler * _arg1;
4982 PyObject * _argo0 = 0;
4983 PyObject * _argo1 = 0;
4984 char *_kwnames[] = { "self","handler", NULL };
4985
4986 self = self;
4987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1))
4988 return NULL;
4989 if (_argo0) {
4990 if (_argo0 == Py_None) { _arg0 = NULL; }
4991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4993 return NULL;
4994 }
4995 }
4996 if (_argo1) {
4997 if (_argo1 == Py_None) { _arg1 = NULL; }
4998 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
4999 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
5000 return NULL;
5001 }
5002 }
5003 {
5004 PyThreadState* __tstate = wxPyBeginAllowThreads();
5005 wxWindow_SetEventHandler(_arg0,_arg1);
5006
5007 wxPyEndAllowThreads(__tstate);
5008 if (PyErr_Occurred()) return NULL;
5009 } Py_INCREF(Py_None);
5010 _resultobj = Py_None;
5011 return _resultobj;
5012 }
5013
5014 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
5015 static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5016 PyObject * _resultobj;
5017 wxWindow * _arg0;
5018 long _arg1;
5019 PyObject * _argo0 = 0;
5020 char *_kwnames[] = { "self","exStyle", NULL };
5021
5022 self = self;
5023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1))
5024 return NULL;
5025 if (_argo0) {
5026 if (_argo0 == Py_None) { _arg0 = NULL; }
5027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
5029 return NULL;
5030 }
5031 }
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 wxWindow_SetExtraStyle(_arg0,_arg1);
5035
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) return NULL;
5038 } Py_INCREF(Py_None);
5039 _resultobj = Py_None;
5040 return _resultobj;
5041 }
5042
5043 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
5044 static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
5045 PyObject * _resultobj;
5046 wxWindow * _arg0;
5047 wxString * _arg1;
5048 PyObject * _argo0 = 0;
5049 PyObject * _obj1 = 0;
5050 char *_kwnames[] = { "self","title", NULL };
5051
5052 self = self;
5053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1))
5054 return NULL;
5055 if (_argo0) {
5056 if (_argo0 == Py_None) { _arg0 = NULL; }
5057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
5059 return NULL;
5060 }
5061 }
5062 {
5063 _arg1 = wxString_in_helper(_obj1);
5064 if (_arg1 == NULL)
5065 return NULL;
5066 }
5067 {
5068 PyThreadState* __tstate = wxPyBeginAllowThreads();
5069 wxWindow_SetTitle(_arg0,*_arg1);
5070
5071 wxPyEndAllowThreads(__tstate);
5072 if (PyErr_Occurred()) return NULL;
5073 } Py_INCREF(Py_None);
5074 _resultobj = Py_None;
5075 {
5076 if (_obj1)
5077 delete _arg1;
5078 }
5079 return _resultobj;
5080 }
5081
5082 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5083 static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5084 PyObject * _resultobj;
5085 bool _result;
5086 wxWindow * _arg0;
5087 bool _arg1 = (bool ) TRUE;
5088 PyObject * _argo0 = 0;
5089 int tempbool1 = (int) TRUE;
5090 char *_kwnames[] = { "self","show", NULL };
5091
5092 self = self;
5093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1))
5094 return NULL;
5095 if (_argo0) {
5096 if (_argo0 == Py_None) { _arg0 = NULL; }
5097 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5098 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
5099 return NULL;
5100 }
5101 }
5102 _arg1 = (bool ) tempbool1;
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 _result = (bool )wxWindow_Show(_arg0,_arg1);
5106
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) return NULL;
5109 } _resultobj = Py_BuildValue("i",_result);
5110 return _resultobj;
5111 }
5112
5113 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
5114 static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5115 PyObject * _resultobj;
5116 bool _result;
5117 wxWindow * _arg0;
5118 PyObject * _argo0 = 0;
5119 char *_kwnames[] = { "self", NULL };
5120
5121 self = self;
5122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0))
5123 return NULL;
5124 if (_argo0) {
5125 if (_argo0 == Py_None) { _arg0 = NULL; }
5126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
5128 return NULL;
5129 }
5130 }
5131 {
5132 PyThreadState* __tstate = wxPyBeginAllowThreads();
5133 _result = (bool )wxWindow_TransferDataFromWindow(_arg0);
5134
5135 wxPyEndAllowThreads(__tstate);
5136 if (PyErr_Occurred()) return NULL;
5137 } _resultobj = Py_BuildValue("i",_result);
5138 return _resultobj;
5139 }
5140
5141 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
5142 static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5143 PyObject * _resultobj;
5144 bool _result;
5145 wxWindow * _arg0;
5146 PyObject * _argo0 = 0;
5147 char *_kwnames[] = { "self", NULL };
5148
5149 self = self;
5150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0))
5151 return NULL;
5152 if (_argo0) {
5153 if (_argo0 == Py_None) { _arg0 = NULL; }
5154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
5156 return NULL;
5157 }
5158 }
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 _result = (bool )wxWindow_TransferDataToWindow(_arg0);
5162
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) return NULL;
5165 } _resultobj = Py_BuildValue("i",_result);
5166 return _resultobj;
5167 }
5168
5169 #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI())
5170 static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
5171 PyObject * _resultobj;
5172 wxWindow * _arg0;
5173 PyObject * _argo0 = 0;
5174 char *_kwnames[] = { "self", NULL };
5175
5176 self = self;
5177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0))
5178 return NULL;
5179 if (_argo0) {
5180 if (_argo0 == Py_None) { _arg0 = NULL; }
5181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p.");
5183 return NULL;
5184 }
5185 }
5186 {
5187 PyThreadState* __tstate = wxPyBeginAllowThreads();
5188 wxWindow_UpdateWindowUI(_arg0);
5189
5190 wxPyEndAllowThreads(__tstate);
5191 if (PyErr_Occurred()) return NULL;
5192 } Py_INCREF(Py_None);
5193 _resultobj = Py_None;
5194 return _resultobj;
5195 }
5196
5197 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
5198 static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
5199 PyObject * _resultobj;
5200 bool _result;
5201 wxWindow * _arg0;
5202 PyObject * _argo0 = 0;
5203 char *_kwnames[] = { "self", NULL };
5204
5205 self = self;
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0))
5207 return NULL;
5208 if (_argo0) {
5209 if (_argo0 == Py_None) { _arg0 = NULL; }
5210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
5212 return NULL;
5213 }
5214 }
5215 {
5216 PyThreadState* __tstate = wxPyBeginAllowThreads();
5217 _result = (bool )wxWindow_Validate(_arg0);
5218
5219 wxPyEndAllowThreads(__tstate);
5220 if (PyErr_Occurred()) return NULL;
5221 } _resultobj = Py_BuildValue("i",_result);
5222 return _resultobj;
5223 }
5224
5225 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
5226 static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
5227 PyObject * _resultobj;
5228 wxPoint * _result;
5229 wxWindow * _arg0;
5230 wxPoint * _arg1;
5231 PyObject * _argo0 = 0;
5232 wxPoint temp;
5233 PyObject * _obj1 = 0;
5234 char *_kwnames[] = { "self","pt", NULL };
5235 char _ptemp[128];
5236
5237 self = self;
5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1))
5239 return NULL;
5240 if (_argo0) {
5241 if (_argo0 == Py_None) { _arg0 = NULL; }
5242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
5244 return NULL;
5245 }
5246 }
5247 {
5248 _arg1 = &temp;
5249 if (! wxPoint_helper(_obj1, &_arg1))
5250 return NULL;
5251 }
5252 {
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1));
5255
5256 wxPyEndAllowThreads(__tstate);
5257 if (PyErr_Occurred()) return NULL;
5258 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
5259 _resultobj = Py_BuildValue("s",_ptemp);
5260 return _resultobj;
5261 }
5262
5263 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
5264 static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
5265 PyObject * _resultobj;
5266 wxSize * _result;
5267 wxWindow * _arg0;
5268 wxSize * _arg1;
5269 PyObject * _argo0 = 0;
5270 wxSize temp;
5271 PyObject * _obj1 = 0;
5272 char *_kwnames[] = { "self","sz", NULL };
5273 char _ptemp[128];
5274
5275 self = self;
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1))
5277 return NULL;
5278 if (_argo0) {
5279 if (_argo0 == Py_None) { _arg0 = NULL; }
5280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
5282 return NULL;
5283 }
5284 }
5285 {
5286 _arg1 = &temp;
5287 if (! wxSize_helper(_obj1, &_arg1))
5288 return NULL;
5289 }
5290 {
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1));
5293
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) return NULL;
5296 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5297 _resultobj = Py_BuildValue("s",_ptemp);
5298 return _resultobj;
5299 }
5300
5301 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
5302 static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
5303 PyObject * _resultobj;
5304 wxPoint * _result;
5305 wxWindow * _arg0;
5306 wxPoint * _arg1;
5307 PyObject * _argo0 = 0;
5308 wxPoint temp;
5309 PyObject * _obj1 = 0;
5310 char *_kwnames[] = { "self","pt", NULL };
5311 char _ptemp[128];
5312
5313 self = self;
5314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1))
5315 return NULL;
5316 if (_argo0) {
5317 if (_argo0 == Py_None) { _arg0 = NULL; }
5318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
5320 return NULL;
5321 }
5322 }
5323 {
5324 _arg1 = &temp;
5325 if (! wxPoint_helper(_obj1, &_arg1))
5326 return NULL;
5327 }
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1));
5331
5332 wxPyEndAllowThreads(__tstate);
5333 if (PyErr_Occurred()) return NULL;
5334 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
5335 _resultobj = Py_BuildValue("s",_ptemp);
5336 return _resultobj;
5337 }
5338
5339 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
5340 static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
5341 PyObject * _resultobj;
5342 wxSize * _result;
5343 wxWindow * _arg0;
5344 wxSize * _arg1;
5345 PyObject * _argo0 = 0;
5346 wxSize temp;
5347 PyObject * _obj1 = 0;
5348 char *_kwnames[] = { "self","sz", NULL };
5349 char _ptemp[128];
5350
5351 self = self;
5352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1))
5353 return NULL;
5354 if (_argo0) {
5355 if (_argo0 == Py_None) { _arg0 = NULL; }
5356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
5358 return NULL;
5359 }
5360 }
5361 {
5362 _arg1 = &temp;
5363 if (! wxSize_helper(_obj1, &_arg1))
5364 return NULL;
5365 }
5366 {
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1));
5369
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) return NULL;
5372 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5373 _resultobj = Py_BuildValue("s",_ptemp);
5374 return _resultobj;
5375 }
5376
5377 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
5378 static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject * _resultobj;
5380 wxWindow * _arg0;
5381 wxString * _arg1;
5382 PyObject * _argo0 = 0;
5383 PyObject * _obj1 = 0;
5384 char *_kwnames[] = { "self","tip", NULL };
5385
5386 self = self;
5387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1))
5388 return NULL;
5389 if (_argo0) {
5390 if (_argo0 == Py_None) { _arg0 = NULL; }
5391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
5393 return NULL;
5394 }
5395 }
5396 {
5397 _arg1 = wxString_in_helper(_obj1);
5398 if (_arg1 == NULL)
5399 return NULL;
5400 }
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 wxWindow_SetToolTipString(_arg0,*_arg1);
5404
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) return NULL;
5407 } Py_INCREF(Py_None);
5408 _resultobj = Py_None;
5409 {
5410 if (_obj1)
5411 delete _arg1;
5412 }
5413 return _resultobj;
5414 }
5415
5416 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
5417 static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5418 PyObject * _resultobj;
5419 wxWindow * _arg0;
5420 wxToolTip * _arg1;
5421 PyObject * _argo0 = 0;
5422 PyObject * _argo1 = 0;
5423 char *_kwnames[] = { "self","tooltip", NULL };
5424
5425 self = self;
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1))
5427 return NULL;
5428 if (_argo0) {
5429 if (_argo0 == Py_None) { _arg0 = NULL; }
5430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
5432 return NULL;
5433 }
5434 }
5435 if (_argo1) {
5436 if (_argo1 == Py_None) { _arg1 = NULL; }
5437 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) {
5438 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
5439 return NULL;
5440 }
5441 }
5442 {
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 wxWindow_SetToolTip(_arg0,_arg1);
5445
5446 wxPyEndAllowThreads(__tstate);
5447 if (PyErr_Occurred()) return NULL;
5448 } Py_INCREF(Py_None);
5449 _resultobj = Py_None;
5450 return _resultobj;
5451 }
5452
5453 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
5454 static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject * _resultobj;
5456 wxToolTip * _result;
5457 wxWindow * _arg0;
5458 PyObject * _argo0 = 0;
5459 char *_kwnames[] = { "self", NULL };
5460
5461 self = self;
5462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
5463 return NULL;
5464 if (_argo0) {
5465 if (_argo0 == Py_None) { _arg0 = NULL; }
5466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
5468 return NULL;
5469 }
5470 }
5471 {
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 _result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
5474
5475 wxPyEndAllowThreads(__tstate);
5476 if (PyErr_Occurred()) return NULL;
5477 }{ _resultobj = wxPyMake_wxObject(_result); }
5478 return _resultobj;
5479 }
5480
5481 #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1))
5482 static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5483 PyObject * _resultobj;
5484 wxWindow * _arg0;
5485 wxSizer * _arg1;
5486 bool _arg2 = (bool ) TRUE;
5487 PyObject * _argo0 = 0;
5488 PyObject * _argo1 = 0;
5489 int tempbool2 = (int) TRUE;
5490 char *_kwnames[] = { "self","sizer","deleteOld", NULL };
5491
5492 self = self;
5493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2))
5494 return NULL;
5495 if (_argo0) {
5496 if (_argo0 == Py_None) { _arg0 = NULL; }
5497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
5499 return NULL;
5500 }
5501 }
5502 if (_argo1) {
5503 if (_argo1 == Py_None) { _arg1 = NULL; }
5504 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
5505 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
5506 return NULL;
5507 }
5508 }
5509 _arg2 = (bool ) tempbool2;
5510 {
5511 PyThreadState* __tstate = wxPyBeginAllowThreads();
5512 wxWindow_SetSizer(_arg0,_arg1,_arg2);
5513
5514 wxPyEndAllowThreads(__tstate);
5515 if (PyErr_Occurred()) return NULL;
5516 } Py_INCREF(Py_None);
5517 _resultobj = Py_None;
5518 return _resultobj;
5519 }
5520
5521 #define wxWindow_SetSizerAndFit(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizerAndFit(_swigarg0,_swigarg1))
5522 static PyObject *_wrap_wxWindow_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) {
5523 PyObject * _resultobj;
5524 wxWindow * _arg0;
5525 wxSizer * _arg1;
5526 bool _arg2 = (bool ) TRUE;
5527 PyObject * _argo0 = 0;
5528 PyObject * _argo1 = 0;
5529 int tempbool2 = (int) TRUE;
5530 char *_kwnames[] = { "self","sizer","deleteOld", NULL };
5531
5532 self = self;
5533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizerAndFit",_kwnames,&_argo0,&_argo1,&tempbool2))
5534 return NULL;
5535 if (_argo0) {
5536 if (_argo0 == Py_None) { _arg0 = NULL; }
5537 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizerAndFit. Expected _wxWindow_p.");
5539 return NULL;
5540 }
5541 }
5542 if (_argo1) {
5543 if (_argo1 == Py_None) { _arg1 = NULL; }
5544 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
5545 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizerAndFit. Expected _wxSizer_p.");
5546 return NULL;
5547 }
5548 }
5549 _arg2 = (bool ) tempbool2;
5550 {
5551 PyThreadState* __tstate = wxPyBeginAllowThreads();
5552 wxWindow_SetSizerAndFit(_arg0,_arg1,_arg2);
5553
5554 wxPyEndAllowThreads(__tstate);
5555 if (PyErr_Occurred()) return NULL;
5556 } Py_INCREF(Py_None);
5557 _resultobj = Py_None;
5558 return _resultobj;
5559 }
5560
5561 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5562 static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5563 PyObject * _resultobj;
5564 wxSizer * _result;
5565 wxWindow * _arg0;
5566 PyObject * _argo0 = 0;
5567 char *_kwnames[] = { "self", NULL };
5568
5569 self = self;
5570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0))
5571 return NULL;
5572 if (_argo0) {
5573 if (_argo0 == Py_None) { _arg0 = NULL; }
5574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5576 return NULL;
5577 }
5578 }
5579 {
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 _result = (wxSizer *)wxWindow_GetSizer(_arg0);
5582
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) return NULL;
5585 }{ _resultobj = wxPyMake_wxSizer(_result); }
5586 return _resultobj;
5587 }
5588
5589 #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0))
5590 static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5591 PyObject * _resultobj;
5592 wxWindow * _arg0;
5593 wxSizer * _arg1;
5594 PyObject * _argo0 = 0;
5595 PyObject * _argo1 = 0;
5596 char *_kwnames[] = { "self","sizer", NULL };
5597
5598 self = self;
5599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1))
5600 return NULL;
5601 if (_argo0) {
5602 if (_argo0 == Py_None) { _arg0 = NULL; }
5603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p.");
5605 return NULL;
5606 }
5607 }
5608 if (_argo1) {
5609 if (_argo1 == Py_None) { _arg1 = NULL; }
5610 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
5611 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p.");
5612 return NULL;
5613 }
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 wxWindow_SetContainingSizer(_arg0,_arg1);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) return NULL;
5621 } Py_INCREF(Py_None);
5622 _resultobj = Py_None;
5623 return _resultobj;
5624 }
5625
5626 #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer())
5627 static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5628 PyObject * _resultobj;
5629 wxSizer * _result;
5630 wxWindow * _arg0;
5631 PyObject * _argo0 = 0;
5632 char *_kwnames[] = { "self", NULL };
5633
5634 self = self;
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0))
5636 return NULL;
5637 if (_argo0) {
5638 if (_argo0 == Py_None) { _arg0 = NULL; }
5639 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5640 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p.");
5641 return NULL;
5642 }
5643 }
5644 {
5645 PyThreadState* __tstate = wxPyBeginAllowThreads();
5646 _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0);
5647
5648 wxPyEndAllowThreads(__tstate);
5649 if (PyErr_Occurred()) return NULL;
5650 }{ _resultobj = wxPyMake_wxSizer(_result); }
5651 return _resultobj;
5652 }
5653
5654 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5655 static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
5656 PyObject * _resultobj;
5657 wxValidator * _result;
5658 wxWindow * _arg0;
5659 PyObject * _argo0 = 0;
5660 char *_kwnames[] = { "self", NULL };
5661
5662 self = self;
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0))
5664 return NULL;
5665 if (_argo0) {
5666 if (_argo0 == Py_None) { _arg0 = NULL; }
5667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5669 return NULL;
5670 }
5671 }
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 _result = (wxValidator *)wxWindow_GetValidator(_arg0);
5675
5676 wxPyEndAllowThreads(__tstate);
5677 if (PyErr_Occurred()) return NULL;
5678 }{ _resultobj = wxPyMake_wxObject(_result); }
5679 return _resultobj;
5680 }
5681
5682 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5683 static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
5684 PyObject * _resultobj;
5685 wxWindow * _arg0;
5686 wxValidator * _arg1;
5687 PyObject * _argo0 = 0;
5688 PyObject * _argo1 = 0;
5689 char *_kwnames[] = { "self","validator", NULL };
5690
5691 self = self;
5692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1))
5693 return NULL;
5694 if (_argo0) {
5695 if (_argo0 == Py_None) { _arg0 = NULL; }
5696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5698 return NULL;
5699 }
5700 }
5701 if (_argo1) {
5702 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) {
5703 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5704 return NULL;
5705 }
5706 }
5707 {
5708 PyThreadState* __tstate = wxPyBeginAllowThreads();
5709 wxWindow_SetValidator(_arg0,*_arg1);
5710
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) return NULL;
5713 } Py_INCREF(Py_None);
5714 _resultobj = Py_None;
5715 return _resultobj;
5716 }
5717
5718 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5719 static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
5720 PyObject * _resultobj;
5721 wxWindow * _arg0;
5722 wxDropTarget * _arg1;
5723 PyObject * _argo0 = 0;
5724 PyObject * _argo1 = 0;
5725 char *_kwnames[] = { "self","target", NULL };
5726
5727 self = self;
5728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1))
5729 return NULL;
5730 if (_argo0) {
5731 if (_argo0 == Py_None) { _arg0 = NULL; }
5732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5734 return NULL;
5735 }
5736 }
5737 if (_argo1) {
5738 if (_argo1 == Py_None) { _arg1 = NULL; }
5739 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) {
5740 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5741 return NULL;
5742 }
5743 }
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 wxWindow_SetDropTarget(_arg0,_arg1);
5747
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) return NULL;
5750 } Py_INCREF(Py_None);
5751 _resultobj = Py_None;
5752 return _resultobj;
5753 }
5754
5755 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5756 static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
5757 PyObject * _resultobj;
5758 wxDropTarget * _result;
5759 wxWindow * _arg0;
5760 PyObject * _argo0 = 0;
5761 char *_kwnames[] = { "self", NULL };
5762 char _ptemp[128];
5763
5764 self = self;
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0))
5766 return NULL;
5767 if (_argo0) {
5768 if (_argo0 == Py_None) { _arg0 = NULL; }
5769 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5770 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5771 return NULL;
5772 }
5773 }
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0);
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) return NULL;
5780 } if (_result) {
5781 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p");
5782 _resultobj = Py_BuildValue("s",_ptemp);
5783 } else {
5784 Py_INCREF(Py_None);
5785 _resultobj = Py_None;
5786 }
5787 return _resultobj;
5788 }
5789
5790 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5791 static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5792 PyObject * _resultobj;
5793 wxSize * _result;
5794 wxWindow * _arg0;
5795 PyObject * _argo0 = 0;
5796 char *_kwnames[] = { "self", NULL };
5797 char _ptemp[128];
5798
5799 self = self;
5800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0))
5801 return NULL;
5802 if (_argo0) {
5803 if (_argo0 == Py_None) { _arg0 = NULL; }
5804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5806 return NULL;
5807 }
5808 }
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 _result = new wxSize (wxWindow_GetBestSize(_arg0));
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) return NULL;
5815 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5816 _resultobj = Py_BuildValue("s",_ptemp);
5817 return _resultobj;
5818 }
5819
5820 #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize())
5821 static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5822 PyObject * _resultobj;
5823 wxSize * _result;
5824 wxWindow * _arg0;
5825 PyObject * _argo0 = 0;
5826 char *_kwnames[] = { "self", NULL };
5827 char _ptemp[128];
5828
5829 self = self;
5830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0))
5831 return NULL;
5832 if (_argo0) {
5833 if (_argo0 == Py_None) { _arg0 = NULL; }
5834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p.");
5836 return NULL;
5837 }
5838 }
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 _result = new wxSize (wxWindow_GetMaxSize(_arg0));
5842
5843 wxPyEndAllowThreads(__tstate);
5844 if (PyErr_Occurred()) return NULL;
5845 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5846 _resultobj = Py_BuildValue("s",_ptemp);
5847 return _resultobj;
5848 }
5849
5850 #define wxWindow_GetAdjustedBestSize(_swigobj) (_swigobj->GetAdjustedBestSize())
5851 static PyObject *_wrap_wxWindow_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5852 PyObject * _resultobj;
5853 wxSize * _result;
5854 wxWindow * _arg0;
5855 PyObject * _argo0 = 0;
5856 char *_kwnames[] = { "self", NULL };
5857 char _ptemp[128];
5858
5859 self = self;
5860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAdjustedBestSize",_kwnames,&_argo0))
5861 return NULL;
5862 if (_argo0) {
5863 if (_argo0 == Py_None) { _arg0 = NULL; }
5864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAdjustedBestSize. Expected _wxWindow_p.");
5866 return NULL;
5867 }
5868 }
5869 {
5870 PyThreadState* __tstate = wxPyBeginAllowThreads();
5871 _result = new wxSize (wxWindow_GetAdjustedBestSize(_arg0));
5872
5873 wxPyEndAllowThreads(__tstate);
5874 if (PyErr_Occurred()) return NULL;
5875 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5876 _resultobj = Py_BuildValue("s",_ptemp);
5877 return _resultobj;
5878 }
5879
5880 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5881 static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5882 PyObject * _resultobj;
5883 wxWindow * _arg0;
5884 wxCaret * _arg1;
5885 PyObject * _argo0 = 0;
5886 PyObject * _argo1 = 0;
5887 char *_kwnames[] = { "self","caret", NULL };
5888
5889 self = self;
5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1))
5891 return NULL;
5892 if (_argo0) {
5893 if (_argo0 == Py_None) { _arg0 = NULL; }
5894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5896 return NULL;
5897 }
5898 }
5899 if (_argo1) {
5900 if (_argo1 == Py_None) { _arg1 = NULL; }
5901 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) {
5902 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5903 return NULL;
5904 }
5905 }
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 wxWindow_SetCaret(_arg0,_arg1);
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) return NULL;
5912 } Py_INCREF(Py_None);
5913 _resultobj = Py_None;
5914 return _resultobj;
5915 }
5916
5917 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5918 static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5919 PyObject * _resultobj;
5920 wxCaret * _result;
5921 wxWindow * _arg0;
5922 PyObject * _argo0 = 0;
5923 char *_kwnames[] = { "self", NULL };
5924 char _ptemp[128];
5925
5926 self = self;
5927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0))
5928 return NULL;
5929 if (_argo0) {
5930 if (_argo0 == Py_None) { _arg0 = NULL; }
5931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5933 return NULL;
5934 }
5935 }
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 _result = (wxCaret *)wxWindow_GetCaret(_arg0);
5939
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) return NULL;
5942 } if (_result) {
5943 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p");
5944 _resultobj = Py_BuildValue("s",_ptemp);
5945 } else {
5946 Py_INCREF(Py_None);
5947 _resultobj = Py_None;
5948 }
5949 return _resultobj;
5950 }
5951
5952 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5953 static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
5954 PyObject * _resultobj;
5955 wxWindow * _arg0;
5956 PyObject * _argo0 = 0;
5957 char *_kwnames[] = { "self", NULL };
5958
5959 self = self;
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0))
5961 return NULL;
5962 if (_argo0) {
5963 if (_argo0 == Py_None) { _arg0 = NULL; }
5964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5966 return NULL;
5967 }
5968 }
5969 {
5970 PyThreadState* __tstate = wxPyBeginAllowThreads();
5971 wxWindow_Freeze(_arg0);
5972
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) return NULL;
5975 } Py_INCREF(Py_None);
5976 _resultobj = Py_None;
5977 return _resultobj;
5978 }
5979
5980 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5981 static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
5982 PyObject * _resultobj;
5983 wxWindow * _arg0;
5984 PyObject * _argo0 = 0;
5985 char *_kwnames[] = { "self", NULL };
5986
5987 self = self;
5988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0))
5989 return NULL;
5990 if (_argo0) {
5991 if (_argo0 == Py_None) { _arg0 = NULL; }
5992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5994 return NULL;
5995 }
5996 }
5997 {
5998 PyThreadState* __tstate = wxPyBeginAllowThreads();
5999 wxWindow_Thaw(_arg0);
6000
6001 wxPyEndAllowThreads(__tstate);
6002 if (PyErr_Occurred()) return NULL;
6003 } Py_INCREF(Py_None);
6004 _resultobj = Py_None;
6005 return _resultobj;
6006 }
6007
6008 #define wxWindow_Update(_swigobj) (_swigobj->Update())
6009 static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
6010 PyObject * _resultobj;
6011 wxWindow * _arg0;
6012 PyObject * _argo0 = 0;
6013 char *_kwnames[] = { "self", NULL };
6014
6015 self = self;
6016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0))
6017 return NULL;
6018 if (_argo0) {
6019 if (_argo0 == Py_None) { _arg0 = NULL; }
6020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
6022 return NULL;
6023 }
6024 }
6025 {
6026 PyThreadState* __tstate = wxPyBeginAllowThreads();
6027 wxWindow_Update(_arg0);
6028
6029 wxPyEndAllowThreads(__tstate);
6030 if (PyErr_Occurred()) return NULL;
6031 } Py_INCREF(Py_None);
6032 _resultobj = Py_None;
6033 return _resultobj;
6034 }
6035
6036 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
6037 static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
6038 PyObject * _resultobj;
6039 wxString * _result;
6040 wxWindow * _arg0;
6041 PyObject * _argo0 = 0;
6042 char *_kwnames[] = { "self", NULL };
6043
6044 self = self;
6045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0))
6046 return NULL;
6047 if (_argo0) {
6048 if (_argo0 == Py_None) { _arg0 = NULL; }
6049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
6051 return NULL;
6052 }
6053 }
6054 {
6055 PyThreadState* __tstate = wxPyBeginAllowThreads();
6056 _result = new wxString (wxWindow_GetHelpText(_arg0));
6057
6058 wxPyEndAllowThreads(__tstate);
6059 if (PyErr_Occurred()) return NULL;
6060 }{
6061 #if wxUSE_UNICODE
6062 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
6063 #else
6064 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6065 #endif
6066 }
6067 {
6068 delete _result;
6069 }
6070 return _resultobj;
6071 }
6072
6073 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
6074 static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject * _resultobj;
6076 wxWindow * _arg0;
6077 wxString * _arg1;
6078 PyObject * _argo0 = 0;
6079 PyObject * _obj1 = 0;
6080 char *_kwnames[] = { "self","helpText", NULL };
6081
6082 self = self;
6083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1))
6084 return NULL;
6085 if (_argo0) {
6086 if (_argo0 == Py_None) { _arg0 = NULL; }
6087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
6089 return NULL;
6090 }
6091 }
6092 {
6093 _arg1 = wxString_in_helper(_obj1);
6094 if (_arg1 == NULL)
6095 return NULL;
6096 }
6097 {
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
6099 wxWindow_SetHelpText(_arg0,*_arg1);
6100
6101 wxPyEndAllowThreads(__tstate);
6102 if (PyErr_Occurred()) return NULL;
6103 } Py_INCREF(Py_None);
6104 _resultobj = Py_None;
6105 {
6106 if (_obj1)
6107 delete _arg1;
6108 }
6109 return _resultobj;
6110 }
6111
6112 #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0))
6113 static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
6114 PyObject * _resultobj;
6115 wxWindow * _arg0;
6116 wxString * _arg1;
6117 PyObject * _argo0 = 0;
6118 PyObject * _obj1 = 0;
6119 char *_kwnames[] = { "self","text", NULL };
6120
6121 self = self;
6122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1))
6123 return NULL;
6124 if (_argo0) {
6125 if (_argo0 == Py_None) { _arg0 = NULL; }
6126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p.");
6128 return NULL;
6129 }
6130 }
6131 {
6132 _arg1 = wxString_in_helper(_obj1);
6133 if (_arg1 == NULL)
6134 return NULL;
6135 }
6136 {
6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
6138 wxWindow_SetHelpTextForId(_arg0,*_arg1);
6139
6140 wxPyEndAllowThreads(__tstate);
6141 if (PyErr_Occurred()) return NULL;
6142 } Py_INCREF(Py_None);
6143 _resultobj = Py_None;
6144 {
6145 if (_obj1)
6146 delete _arg1;
6147 }
6148 return _resultobj;
6149 }
6150
6151 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
6152 static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6153 PyObject * _resultobj;
6154 bool _result;
6155 wxWindow * _arg0;
6156 int _arg1;
6157 PyObject * _argo0 = 0;
6158 char *_kwnames[] = { "self","lines", NULL };
6159
6160 self = self;
6161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1))
6162 return NULL;
6163 if (_argo0) {
6164 if (_argo0 == Py_None) { _arg0 = NULL; }
6165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
6167 return NULL;
6168 }
6169 }
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 _result = (bool )wxWindow_ScrollLines(_arg0,_arg1);
6173
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) return NULL;
6176 } _resultobj = Py_BuildValue("i",_result);
6177 return _resultobj;
6178 }
6179
6180 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
6181 static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
6182 PyObject * _resultobj;
6183 bool _result;
6184 wxWindow * _arg0;
6185 int _arg1;
6186 PyObject * _argo0 = 0;
6187 char *_kwnames[] = { "self","pages", NULL };
6188
6189 self = self;
6190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1))
6191 return NULL;
6192 if (_argo0) {
6193 if (_argo0 == Py_None) { _arg0 = NULL; }
6194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
6196 return NULL;
6197 }
6198 }
6199 {
6200 PyThreadState* __tstate = wxPyBeginAllowThreads();
6201 _result = (bool )wxWindow_ScrollPages(_arg0,_arg1);
6202
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) return NULL;
6205 } _resultobj = Py_BuildValue("i",_result);
6206 return _resultobj;
6207 }
6208
6209 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
6210 static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
6211 PyObject * _resultobj;
6212 bool _result;
6213 wxWindow * _arg0;
6214 PyObject * _argo0 = 0;
6215 char *_kwnames[] = { "self", NULL };
6216
6217 self = self;
6218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0))
6219 return NULL;
6220 if (_argo0) {
6221 if (_argo0 == Py_None) { _arg0 = NULL; }
6222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
6224 return NULL;
6225 }
6226 }
6227 {
6228 PyThreadState* __tstate = wxPyBeginAllowThreads();
6229 _result = (bool )wxWindow_LineUp(_arg0);
6230
6231 wxPyEndAllowThreads(__tstate);
6232 if (PyErr_Occurred()) return NULL;
6233 } _resultobj = Py_BuildValue("i",_result);
6234 return _resultobj;
6235 }
6236
6237 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
6238 static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
6239 PyObject * _resultobj;
6240 bool _result;
6241 wxWindow * _arg0;
6242 PyObject * _argo0 = 0;
6243 char *_kwnames[] = { "self", NULL };
6244
6245 self = self;
6246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0))
6247 return NULL;
6248 if (_argo0) {
6249 if (_argo0 == Py_None) { _arg0 = NULL; }
6250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
6252 return NULL;
6253 }
6254 }
6255 {
6256 PyThreadState* __tstate = wxPyBeginAllowThreads();
6257 _result = (bool )wxWindow_LineDown(_arg0);
6258
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) return NULL;
6261 } _resultobj = Py_BuildValue("i",_result);
6262 return _resultobj;
6263 }
6264
6265 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
6266 static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
6267 PyObject * _resultobj;
6268 bool _result;
6269 wxWindow * _arg0;
6270 PyObject * _argo0 = 0;
6271 char *_kwnames[] = { "self", NULL };
6272
6273 self = self;
6274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0))
6275 return NULL;
6276 if (_argo0) {
6277 if (_argo0 == Py_None) { _arg0 = NULL; }
6278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
6280 return NULL;
6281 }
6282 }
6283 {
6284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6285 _result = (bool )wxWindow_PageUp(_arg0);
6286
6287 wxPyEndAllowThreads(__tstate);
6288 if (PyErr_Occurred()) return NULL;
6289 } _resultobj = Py_BuildValue("i",_result);
6290 return _resultobj;
6291 }
6292
6293 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
6294 static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
6295 PyObject * _resultobj;
6296 bool _result;
6297 wxWindow * _arg0;
6298 PyObject * _argo0 = 0;
6299 char *_kwnames[] = { "self", NULL };
6300
6301 self = self;
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0))
6303 return NULL;
6304 if (_argo0) {
6305 if (_argo0 == Py_None) { _arg0 = NULL; }
6306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
6308 return NULL;
6309 }
6310 }
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 _result = (bool )wxWindow_PageDown(_arg0);
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) return NULL;
6317 } _resultobj = Py_BuildValue("i",_result);
6318 return _resultobj;
6319 }
6320
6321 static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
6322 PyObject * _resultobj;
6323 wxWindow * _result;
6324 char *_kwnames[] = { NULL };
6325
6326 self = self;
6327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames))
6328 return NULL;
6329 {
6330 PyThreadState* __tstate = wxPyBeginAllowThreads();
6331 _result = (wxWindow *)wxWindow::FindFocus();
6332
6333 wxPyEndAllowThreads(__tstate);
6334 if (PyErr_Occurred()) return NULL;
6335 }{ _resultobj = wxPyMake_wxObject(_result); }
6336 return _resultobj;
6337 }
6338
6339 static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
6340 PyObject * _resultobj;
6341 int _result;
6342 char *_kwnames[] = { NULL };
6343
6344 self = self;
6345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames))
6346 return NULL;
6347 {
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 _result = (int )wxWindow::NewControlId();
6350
6351 wxPyEndAllowThreads(__tstate);
6352 if (PyErr_Occurred()) return NULL;
6353 } _resultobj = Py_BuildValue("i",_result);
6354 return _resultobj;
6355 }
6356
6357 static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
6358 PyObject * _resultobj;
6359 int _result;
6360 int _arg0;
6361 char *_kwnames[] = { "id", NULL };
6362
6363 self = self;
6364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0))
6365 return NULL;
6366 {
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 _result = (int )wxWindow::NextControlId(_arg0);
6369
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) return NULL;
6372 } _resultobj = Py_BuildValue("i",_result);
6373 return _resultobj;
6374 }
6375
6376 static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
6377 PyObject * _resultobj;
6378 int _result;
6379 int _arg0;
6380 char *_kwnames[] = { "id", NULL };
6381
6382 self = self;
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0))
6384 return NULL;
6385 {
6386 PyThreadState* __tstate = wxPyBeginAllowThreads();
6387 _result = (int )wxWindow::PrevControlId(_arg0);
6388
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) return NULL;
6391 } _resultobj = Py_BuildValue("i",_result);
6392 return _resultobj;
6393 }
6394
6395 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
6396 static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
6397 PyObject * _resultobj;
6398 wxWindow * _arg0;
6399 wxAcceleratorTable * _arg1;
6400 PyObject * _argo0 = 0;
6401 PyObject * _argo1 = 0;
6402 char *_kwnames[] = { "self","accel", NULL };
6403
6404 self = self;
6405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
6406 return NULL;
6407 if (_argo0) {
6408 if (_argo0 == Py_None) { _arg0 = NULL; }
6409 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6410 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
6411 return NULL;
6412 }
6413 }
6414 if (_argo1) {
6415 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
6416 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
6417 return NULL;
6418 }
6419 }
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 wxWindow_SetAcceleratorTable(_arg0,*_arg1);
6423
6424 wxPyEndAllowThreads(__tstate);
6425 if (PyErr_Occurred()) return NULL;
6426 } Py_INCREF(Py_None);
6427 _resultobj = Py_None;
6428 return _resultobj;
6429 }
6430
6431 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
6432 static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
6433 PyObject * _resultobj;
6434 wxAcceleratorTable * _result;
6435 wxWindow * _arg0;
6436 PyObject * _argo0 = 0;
6437 char *_kwnames[] = { "self", NULL };
6438 char _ptemp[128];
6439
6440 self = self;
6441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0))
6442 return NULL;
6443 if (_argo0) {
6444 if (_argo0 == Py_None) { _arg0 = NULL; }
6445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
6447 return NULL;
6448 }
6449 }
6450 {
6451 PyThreadState* __tstate = wxPyBeginAllowThreads();
6452 _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0);
6453
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) return NULL;
6456 } if (_result) {
6457 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
6458 _resultobj = Py_BuildValue("s",_ptemp);
6459 } else {
6460 Py_INCREF(Py_None);
6461 _resultobj = Py_None;
6462 }
6463 return _resultobj;
6464 }
6465
6466 #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0))
6467 static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) {
6468 PyObject * _resultobj;
6469 wxWindow * _arg0;
6470 wxPaintEvent * _arg1;
6471 PyObject * _argo0 = 0;
6472 PyObject * _argo1 = 0;
6473 char *_kwnames[] = { "self","event", NULL };
6474
6475 self = self;
6476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1))
6477 return NULL;
6478 if (_argo0) {
6479 if (_argo0 == Py_None) { _arg0 = NULL; }
6480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p.");
6482 return NULL;
6483 }
6484 }
6485 if (_argo1) {
6486 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) {
6487 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p.");
6488 return NULL;
6489 }
6490 }
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 wxWindow_OnPaint(_arg0,*_arg1);
6494
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) return NULL;
6497 } Py_INCREF(Py_None);
6498 _resultobj = Py_None;
6499 return _resultobj;
6500 }
6501
6502 #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
6503 static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6504 PyObject * _resultobj;
6505 wxWindow * _result;
6506 wxWindow * _arg0;
6507 PyObject * _argo0 = 0;
6508 char *_kwnames[] = { "self", NULL };
6509
6510 self = self;
6511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0))
6512 return NULL;
6513 if (_argo0) {
6514 if (_argo0 == Py_None) { _arg0 = NULL; }
6515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p.");
6517 return NULL;
6518 }
6519 }
6520 {
6521 PyThreadState* __tstate = wxPyBeginAllowThreads();
6522 _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0);
6523
6524 wxPyEndAllowThreads(__tstate);
6525 if (PyErr_Occurred()) return NULL;
6526 }{ _resultobj = wxPyMake_wxObject(_result); }
6527 return _resultobj;
6528 }
6529
6530 #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
6531 static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6532 PyObject * _resultobj;
6533 wxWindow * _result;
6534 wxWindow * _arg0;
6535 wxWindow * _arg1;
6536 PyObject * _argo0 = 0;
6537 PyObject * _argo1 = 0;
6538 char *_kwnames[] = { "self","btn", NULL };
6539
6540 self = self;
6541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1))
6542 return NULL;
6543 if (_argo0) {
6544 if (_argo0 == Py_None) { _arg0 = NULL; }
6545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p.");
6547 return NULL;
6548 }
6549 }
6550 if (_argo1) {
6551 if (_argo1 == Py_None) { _arg1 = NULL; }
6552 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6553 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p.");
6554 return NULL;
6555 }
6556 }
6557 {
6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
6559 _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1);
6560
6561 wxPyEndAllowThreads(__tstate);
6562 if (PyErr_Occurred()) return NULL;
6563 }{ _resultobj = wxPyMake_wxObject(_result); }
6564 return _resultobj;
6565 }
6566
6567 #define wxWindow_SetTmpDefaultItem(_swigobj,_swigarg0) (_swigobj->SetTmpDefaultItem(_swigarg0))
6568 static PyObject *_wrap_wxWindow_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6569 PyObject * _resultobj;
6570 wxWindow * _arg0;
6571 wxWindow * _arg1;
6572 PyObject * _argo0 = 0;
6573 PyObject * _argo1 = 0;
6574 char *_kwnames[] = { "self","win", NULL };
6575
6576 self = self;
6577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTmpDefaultItem",_kwnames,&_argo0,&_argo1))
6578 return NULL;
6579 if (_argo0) {
6580 if (_argo0 == Py_None) { _arg0 = NULL; }
6581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p.");
6583 return NULL;
6584 }
6585 }
6586 if (_argo1) {
6587 if (_argo1 == Py_None) { _arg1 = NULL; }
6588 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6589 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p.");
6590 return NULL;
6591 }
6592 }
6593 {
6594 PyThreadState* __tstate = wxPyBeginAllowThreads();
6595 wxWindow_SetTmpDefaultItem(_arg0,_arg1);
6596
6597 wxPyEndAllowThreads(__tstate);
6598 if (PyErr_Occurred()) return NULL;
6599 } Py_INCREF(Py_None);
6600 _resultobj = Py_None;
6601 return _resultobj;
6602 }
6603
6604 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
6605 static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
6606 PyObject * _resultobj;
6607 wxWindow * _arg0;
6608 int _arg1;
6609 int _arg2;
6610 PyObject * _argo0 = 0;
6611 char *_kwnames[] = { "self","x","y", NULL };
6612
6613 self = self;
6614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2))
6615 return NULL;
6616 if (_argo0) {
6617 if (_argo0 == Py_None) { _arg0 = NULL; }
6618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
6620 return NULL;
6621 }
6622 }
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 wxWindow_WarpPointer(_arg0,_arg1,_arg2);
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) return NULL;
6629 } Py_INCREF(Py_None);
6630 _resultobj = Py_None;
6631 return _resultobj;
6632 }
6633
6634 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
6635 static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
6636 PyObject * _resultobj;
6637 wxWindow * _arg0;
6638 PyObject * _argo0 = 0;
6639 char *_kwnames[] = { "self", NULL };
6640
6641 self = self;
6642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0))
6643 return NULL;
6644 if (_argo0) {
6645 if (_argo0 == Py_None) { _arg0 = NULL; }
6646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
6648 return NULL;
6649 }
6650 }
6651 {
6652 PyThreadState* __tstate = wxPyBeginAllowThreads();
6653 wxWindow_CaptureMouse(_arg0);
6654
6655 wxPyEndAllowThreads(__tstate);
6656 if (PyErr_Occurred()) return NULL;
6657 } Py_INCREF(Py_None);
6658 _resultobj = Py_None;
6659 return _resultobj;
6660 }
6661
6662 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
6663 static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
6664 PyObject * _resultobj;
6665 wxWindow * _arg0;
6666 PyObject * _argo0 = 0;
6667 char *_kwnames[] = { "self", NULL };
6668
6669 self = self;
6670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0))
6671 return NULL;
6672 if (_argo0) {
6673 if (_argo0 == Py_None) { _arg0 = NULL; }
6674 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6675 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
6676 return NULL;
6677 }
6678 }
6679 {
6680 PyThreadState* __tstate = wxPyBeginAllowThreads();
6681 wxWindow_ReleaseMouse(_arg0);
6682
6683 wxPyEndAllowThreads(__tstate);
6684 if (PyErr_Occurred()) return NULL;
6685 } Py_INCREF(Py_None);
6686 _resultobj = Py_None;
6687 return _resultobj;
6688 }
6689
6690 static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
6691 PyObject * _resultobj;
6692 wxWindow * _result;
6693 char *_kwnames[] = { NULL };
6694
6695 self = self;
6696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames))
6697 return NULL;
6698 {
6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
6700 _result = (wxWindow *)wxWindow::GetCapture();
6701
6702 wxPyEndAllowThreads(__tstate);
6703 if (PyErr_Occurred()) return NULL;
6704 }{ _resultobj = wxPyMake_wxObject(_result); }
6705 return _resultobj;
6706 }
6707
6708 #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture())
6709 static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
6710 PyObject * _resultobj;
6711 bool _result;
6712 wxWindow * _arg0;
6713 PyObject * _argo0 = 0;
6714 char *_kwnames[] = { "self", NULL };
6715
6716 self = self;
6717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0))
6718 return NULL;
6719 if (_argo0) {
6720 if (_argo0 == Py_None) { _arg0 = NULL; }
6721 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6722 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p.");
6723 return NULL;
6724 }
6725 }
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 _result = (bool )wxWindow_HasCapture(_arg0);
6729
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) return NULL;
6732 } _resultobj = Py_BuildValue("i",_result);
6733 return _resultobj;
6734 }
6735
6736 static void *SwigwxPanelTowxWindow(void *ptr) {
6737 wxPanel *src;
6738 wxWindow *dest;
6739 src = (wxPanel *) ptr;
6740 dest = (wxWindow *) src;
6741 return (void *) dest;
6742 }
6743
6744 static void *SwigwxPanelTowxEvtHandler(void *ptr) {
6745 wxPanel *src;
6746 wxEvtHandler *dest;
6747 src = (wxPanel *) ptr;
6748 dest = (wxEvtHandler *) src;
6749 return (void *) dest;
6750 }
6751
6752 static void *SwigwxPanelTowxObject(void *ptr) {
6753 wxPanel *src;
6754 wxObject *dest;
6755 src = (wxPanel *) ptr;
6756 dest = (wxObject *) src;
6757 return (void *) dest;
6758 }
6759
6760 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6761 static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
6762 PyObject * _resultobj;
6763 wxPanel * _result;
6764 wxWindow * _arg0;
6765 wxWindowID _arg1;
6766 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6767 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6768 long _arg4 = (long ) wxTAB_TRAVERSAL;
6769 wxString * _arg5 = (wxString *) &wxPyPanelNameStr;
6770 PyObject * _argo0 = 0;
6771 wxPoint temp;
6772 PyObject * _obj2 = 0;
6773 wxSize temp0;
6774 PyObject * _obj3 = 0;
6775 PyObject * _obj5 = 0;
6776 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
6777 char _ptemp[128];
6778
6779 self = self;
6780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
6781 return NULL;
6782 if (_argo0) {
6783 if (_argo0 == Py_None) { _arg0 = NULL; }
6784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
6786 return NULL;
6787 }
6788 }
6789 if (_obj2)
6790 {
6791 _arg2 = &temp;
6792 if (! wxPoint_helper(_obj2, &_arg2))
6793 return NULL;
6794 }
6795 if (_obj3)
6796 {
6797 _arg3 = &temp0;
6798 if (! wxSize_helper(_obj3, &_arg3))
6799 return NULL;
6800 }
6801 if (_obj5)
6802 {
6803 _arg5 = wxString_in_helper(_obj5);
6804 if (_arg5 == NULL)
6805 return NULL;
6806 }
6807 {
6808 PyThreadState* __tstate = wxPyBeginAllowThreads();
6809 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
6810
6811 wxPyEndAllowThreads(__tstate);
6812 if (PyErr_Occurred()) return NULL;
6813 } if (_result) {
6814 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
6815 _resultobj = Py_BuildValue("s",_ptemp);
6816 } else {
6817 Py_INCREF(Py_None);
6818 _resultobj = Py_None;
6819 }
6820 {
6821 if (_obj5)
6822 delete _arg5;
6823 }
6824 return _resultobj;
6825 }
6826
6827 #define new_wxPrePanel() (new wxPanel())
6828 static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) {
6829 PyObject * _resultobj;
6830 wxPanel * _result;
6831 char *_kwnames[] = { NULL };
6832 char _ptemp[128];
6833
6834 self = self;
6835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames))
6836 return NULL;
6837 {
6838 PyThreadState* __tstate = wxPyBeginAllowThreads();
6839 _result = (wxPanel *)new_wxPrePanel();
6840
6841 wxPyEndAllowThreads(__tstate);
6842 if (PyErr_Occurred()) return NULL;
6843 } if (_result) {
6844 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
6845 _resultobj = Py_BuildValue("s",_ptemp);
6846 } else {
6847 Py_INCREF(Py_None);
6848 _resultobj = Py_None;
6849 }
6850 return _resultobj;
6851 }
6852
6853 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6854 static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6855 PyObject * _resultobj;
6856 bool _result;
6857 wxPanel * _arg0;
6858 wxWindow * _arg1;
6859 wxWindowID _arg2;
6860 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6861 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6862 long _arg5 = (long ) wxTAB_TRAVERSAL;
6863 wxString * _arg6 = (wxString *) &wxPyPanelNameStr;
6864 PyObject * _argo0 = 0;
6865 PyObject * _argo1 = 0;
6866 wxPoint temp;
6867 PyObject * _obj3 = 0;
6868 wxSize temp0;
6869 PyObject * _obj4 = 0;
6870 PyObject * _obj6 = 0;
6871 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
6872
6873 self = self;
6874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
6875 return NULL;
6876 if (_argo0) {
6877 if (_argo0 == Py_None) { _arg0 = NULL; }
6878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
6879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
6880 return NULL;
6881 }
6882 }
6883 if (_argo1) {
6884 if (_argo1 == Py_None) { _arg1 = NULL; }
6885 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6886 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
6887 return NULL;
6888 }
6889 }
6890 if (_obj3)
6891 {
6892 _arg3 = &temp;
6893 if (! wxPoint_helper(_obj3, &_arg3))
6894 return NULL;
6895 }
6896 if (_obj4)
6897 {
6898 _arg4 = &temp0;
6899 if (! wxSize_helper(_obj4, &_arg4))
6900 return NULL;
6901 }
6902 if (_obj6)
6903 {
6904 _arg6 = wxString_in_helper(_obj6);
6905 if (_arg6 == NULL)
6906 return NULL;
6907 }
6908 {
6909 PyThreadState* __tstate = wxPyBeginAllowThreads();
6910 _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
6911
6912 wxPyEndAllowThreads(__tstate);
6913 if (PyErr_Occurred()) return NULL;
6914 } _resultobj = Py_BuildValue("i",_result);
6915 {
6916 if (_obj6)
6917 delete _arg6;
6918 }
6919 return _resultobj;
6920 }
6921
6922 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
6923 static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
6924 PyObject * _resultobj;
6925 wxPanel * _arg0;
6926 PyObject * _argo0 = 0;
6927 char *_kwnames[] = { "self", NULL };
6928
6929 self = self;
6930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0))
6931 return NULL;
6932 if (_argo0) {
6933 if (_argo0 == Py_None) { _arg0 = NULL; }
6934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
6935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
6936 return NULL;
6937 }
6938 }
6939 {
6940 PyThreadState* __tstate = wxPyBeginAllowThreads();
6941 wxPanel_InitDialog(_arg0);
6942
6943 wxPyEndAllowThreads(__tstate);
6944 if (PyErr_Occurred()) return NULL;
6945 } Py_INCREF(Py_None);
6946 _resultobj = Py_None;
6947 return _resultobj;
6948 }
6949
6950 static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
6951 wxScrolledWindow *src;
6952 wxPanel *dest;
6953 src = (wxScrolledWindow *) ptr;
6954 dest = (wxPanel *) src;
6955 return (void *) dest;
6956 }
6957
6958 static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
6959 wxScrolledWindow *src;
6960 wxWindow *dest;
6961 src = (wxScrolledWindow *) ptr;
6962 dest = (wxWindow *) src;
6963 return (void *) dest;
6964 }
6965
6966 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
6967 wxScrolledWindow *src;
6968 wxEvtHandler *dest;
6969 src = (wxScrolledWindow *) ptr;
6970 dest = (wxEvtHandler *) src;
6971 return (void *) dest;
6972 }
6973
6974 static void *SwigwxScrolledWindowTowxObject(void *ptr) {
6975 wxScrolledWindow *src;
6976 wxObject *dest;
6977 src = (wxScrolledWindow *) ptr;
6978 dest = (wxObject *) src;
6979 return (void *) dest;
6980 }
6981
6982 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6983 static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6984 PyObject * _resultobj;
6985 wxScrolledWindow * _result;
6986 wxWindow * _arg0;
6987 wxWindowID _arg1 = (wxWindowID ) -1;
6988 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6989 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6990 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
6991 wxString * _arg5 = (wxString *) &wxPyPanelNameStr;
6992 PyObject * _argo0 = 0;
6993 wxPoint temp;
6994 PyObject * _obj2 = 0;
6995 wxSize temp0;
6996 PyObject * _obj3 = 0;
6997 PyObject * _obj5 = 0;
6998 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
6999 char _ptemp[128];
7000
7001 self = self;
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
7003 return NULL;
7004 if (_argo0) {
7005 if (_argo0 == Py_None) { _arg0 = NULL; }
7006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
7008 return NULL;
7009 }
7010 }
7011 if (_obj2)
7012 {
7013 _arg2 = &temp;
7014 if (! wxPoint_helper(_obj2, &_arg2))
7015 return NULL;
7016 }
7017 if (_obj3)
7018 {
7019 _arg3 = &temp0;
7020 if (! wxSize_helper(_obj3, &_arg3))
7021 return NULL;
7022 }
7023 if (_obj5)
7024 {
7025 _arg5 = wxString_in_helper(_obj5);
7026 if (_arg5 == NULL)
7027 return NULL;
7028 }
7029 {
7030 PyThreadState* __tstate = wxPyBeginAllowThreads();
7031 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
7032
7033 wxPyEndAllowThreads(__tstate);
7034 if (PyErr_Occurred()) return NULL;
7035 } if (_result) {
7036 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
7037 _resultobj = Py_BuildValue("s",_ptemp);
7038 } else {
7039 Py_INCREF(Py_None);
7040 _resultobj = Py_None;
7041 }
7042 {
7043 if (_obj5)
7044 delete _arg5;
7045 }
7046 return _resultobj;
7047 }
7048
7049 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
7050 static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7051 PyObject * _resultobj;
7052 wxScrolledWindow * _result;
7053 char *_kwnames[] = { NULL };
7054 char _ptemp[128];
7055
7056 self = self;
7057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames))
7058 return NULL;
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 _result = (wxScrolledWindow *)new_wxPreScrolledWindow();
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) return NULL;
7065 } if (_result) {
7066 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
7067 _resultobj = Py_BuildValue("s",_ptemp);
7068 } else {
7069 Py_INCREF(Py_None);
7070 _resultobj = Py_None;
7071 }
7072 return _resultobj;
7073 }
7074
7075 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7076 static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
7077 PyObject * _resultobj;
7078 bool _result;
7079 wxScrolledWindow * _arg0;
7080 wxWindow * _arg1;
7081 wxWindowID _arg2 = (wxWindowID ) -1;
7082 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
7083 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
7084 long _arg5 = (long ) wxHSCROLL|wxVSCROLL;
7085 wxString * _arg6 = (wxString *) &wxPyPanelNameStr;
7086 PyObject * _argo0 = 0;
7087 PyObject * _argo1 = 0;
7088 wxPoint temp;
7089 PyObject * _obj3 = 0;
7090 wxSize temp0;
7091 PyObject * _obj4 = 0;
7092 PyObject * _obj6 = 0;
7093 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
7094
7095 self = self;
7096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
7097 return NULL;
7098 if (_argo0) {
7099 if (_argo0 == Py_None) { _arg0 = NULL; }
7100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
7102 return NULL;
7103 }
7104 }
7105 if (_argo1) {
7106 if (_argo1 == Py_None) { _arg1 = NULL; }
7107 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7108 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
7109 return NULL;
7110 }
7111 }
7112 if (_obj3)
7113 {
7114 _arg3 = &temp;
7115 if (! wxPoint_helper(_obj3, &_arg3))
7116 return NULL;
7117 }
7118 if (_obj4)
7119 {
7120 _arg4 = &temp0;
7121 if (! wxSize_helper(_obj4, &_arg4))
7122 return NULL;
7123 }
7124 if (_obj6)
7125 {
7126 _arg6 = wxString_in_helper(_obj6);
7127 if (_arg6 == NULL)
7128 return NULL;
7129 }
7130 {
7131 PyThreadState* __tstate = wxPyBeginAllowThreads();
7132 _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
7133
7134 wxPyEndAllowThreads(__tstate);
7135 if (PyErr_Occurred()) return NULL;
7136 } _resultobj = Py_BuildValue("i",_result);
7137 {
7138 if (_obj6)
7139 delete _arg6;
7140 }
7141 return _resultobj;
7142 }
7143
7144 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
7145 static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
7146 PyObject * _resultobj;
7147 wxScrolledWindow * _arg0;
7148 bool _arg1;
7149 bool _arg2;
7150 PyObject * _argo0 = 0;
7151 int tempbool1;
7152 int tempbool2;
7153 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
7154
7155 self = self;
7156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
7157 return NULL;
7158 if (_argo0) {
7159 if (_argo0 == Py_None) { _arg0 = NULL; }
7160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
7162 return NULL;
7163 }
7164 }
7165 _arg1 = (bool ) tempbool1;
7166 _arg2 = (bool ) tempbool2;
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) return NULL;
7173 } Py_INCREF(Py_None);
7174 _resultobj = Py_None;
7175 return _resultobj;
7176 }
7177
7178 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
7179 static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7180 PyObject * _resultobj;
7181 int _result;
7182 wxScrolledWindow * _arg0;
7183 int _arg1;
7184 PyObject * _argo0 = 0;
7185 char *_kwnames[] = { "self","orient", NULL };
7186
7187 self = self;
7188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1))
7189 return NULL;
7190 if (_argo0) {
7191 if (_argo0 == Py_None) { _arg0 = NULL; }
7192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
7194 return NULL;
7195 }
7196 }
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1);
7200
7201 wxPyEndAllowThreads(__tstate);
7202 if (PyErr_Occurred()) return NULL;
7203 } _resultobj = Py_BuildValue("i",_result);
7204 return _resultobj;
7205 }
7206
7207 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
7208 static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
7209 PyObject * _resultobj;
7210 wxScrolledWindow * _arg0;
7211 int * _arg1;
7212 int temp;
7213 int * _arg2;
7214 int temp0;
7215 PyObject * _argo0 = 0;
7216 char *_kwnames[] = { "self", NULL };
7217
7218 self = self;
7219 {
7220 _arg1 = &temp;
7221 }
7222 {
7223 _arg2 = &temp0;
7224 }
7225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
7226 return NULL;
7227 if (_argo0) {
7228 if (_argo0 == Py_None) { _arg0 = NULL; }
7229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
7231 return NULL;
7232 }
7233 }
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) return NULL;
7240 } Py_INCREF(Py_None);
7241 _resultobj = Py_None;
7242 {
7243 PyObject *o;
7244 o = PyInt_FromLong((long) (*_arg1));
7245 _resultobj = t_output_helper(_resultobj, o);
7246 }
7247 {
7248 PyObject *o;
7249 o = PyInt_FromLong((long) (*_arg2));
7250 _resultobj = t_output_helper(_resultobj, o);
7251 }
7252 return _resultobj;
7253 }
7254
7255 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
7256 static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7257 PyObject * _resultobj;
7258 wxWindow * _result;
7259 wxScrolledWindow * _arg0;
7260 PyObject * _argo0 = 0;
7261 char *_kwnames[] = { "self", NULL };
7262
7263 self = self;
7264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0))
7265 return NULL;
7266 if (_argo0) {
7267 if (_argo0 == Py_None) { _arg0 = NULL; }
7268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
7270 return NULL;
7271 }
7272 }
7273 {
7274 PyThreadState* __tstate = wxPyBeginAllowThreads();
7275 _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0);
7276
7277 wxPyEndAllowThreads(__tstate);
7278 if (PyErr_Occurred()) return NULL;
7279 }{ _resultobj = wxPyMake_wxObject(_result); }
7280 return _resultobj;
7281 }
7282
7283 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
7284 static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
7285 PyObject * _resultobj;
7286 bool _result;
7287 wxScrolledWindow * _arg0;
7288 PyObject * _argo0 = 0;
7289 char *_kwnames[] = { "self", NULL };
7290
7291 self = self;
7292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
7293 return NULL;
7294 if (_argo0) {
7295 if (_argo0 == Py_None) { _arg0 = NULL; }
7296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
7298 return NULL;
7299 }
7300 }
7301 {
7302 PyThreadState* __tstate = wxPyBeginAllowThreads();
7303 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
7304
7305 wxPyEndAllowThreads(__tstate);
7306 if (PyErr_Occurred()) return NULL;
7307 } _resultobj = Py_BuildValue("i",_result);
7308 return _resultobj;
7309 }
7310
7311 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
7312 static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7313 PyObject * _resultobj;
7314 wxScrolledWindow * _arg0;
7315 wxDC * _arg1;
7316 PyObject * _argo0 = 0;
7317 PyObject * _argo1 = 0;
7318 char *_kwnames[] = { "self","dc", NULL };
7319
7320 self = self;
7321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
7322 return NULL;
7323 if (_argo0) {
7324 if (_argo0 == Py_None) { _arg0 = NULL; }
7325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
7327 return NULL;
7328 }
7329 }
7330 if (_argo1) {
7331 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
7332 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
7333 return NULL;
7334 }
7335 }
7336 {
7337 PyThreadState* __tstate = wxPyBeginAllowThreads();
7338 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
7339
7340 wxPyEndAllowThreads(__tstate);
7341 if (PyErr_Occurred()) return NULL;
7342 } Py_INCREF(Py_None);
7343 _resultobj = Py_None;
7344 return _resultobj;
7345 }
7346
7347 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
7348 static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
7349 PyObject * _resultobj;
7350 wxScrolledWindow * _arg0;
7351 int _arg1;
7352 int _arg2;
7353 PyObject * _argo0 = 0;
7354 char *_kwnames[] = { "self","x","y", NULL };
7355
7356 self = self;
7357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
7358 return NULL;
7359 if (_argo0) {
7360 if (_argo0 == Py_None) { _arg0 = NULL; }
7361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
7363 return NULL;
7364 }
7365 }
7366 {
7367 PyThreadState* __tstate = wxPyBeginAllowThreads();
7368 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
7369
7370 wxPyEndAllowThreads(__tstate);
7371 if (PyErr_Occurred()) return NULL;
7372 } Py_INCREF(Py_None);
7373 _resultobj = Py_None;
7374 return _resultobj;
7375 }
7376
7377 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
7378 static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
7379 PyObject * _resultobj;
7380 wxScrolledWindow * _arg0;
7381 int _arg1;
7382 int _arg2;
7383 int _arg3;
7384 int _arg4;
7385 int _arg5 = (int ) 0;
7386 int _arg6 = (int ) 0;
7387 int _arg7 = (int ) FALSE;
7388 PyObject * _argo0 = 0;
7389 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL };
7390
7391 self = self;
7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7))
7393 return NULL;
7394 if (_argo0) {
7395 if (_argo0 == Py_None) { _arg0 = NULL; }
7396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
7398 return NULL;
7399 }
7400 }
7401 {
7402 PyThreadState* __tstate = wxPyBeginAllowThreads();
7403 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
7404
7405 wxPyEndAllowThreads(__tstate);
7406 if (PyErr_Occurred()) return NULL;
7407 } Py_INCREF(Py_None);
7408 _resultobj = Py_None;
7409 return _resultobj;
7410 }
7411
7412 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
7413 static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7414 PyObject * _resultobj;
7415 wxScrolledWindow * _arg0;
7416 int _arg1;
7417 int _arg2;
7418 PyObject * _argo0 = 0;
7419 char *_kwnames[] = { "self","orient","pageSize", NULL };
7420
7421 self = self;
7422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2))
7423 return NULL;
7424 if (_argo0) {
7425 if (_argo0 == Py_None) { _arg0 = NULL; }
7426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
7428 return NULL;
7429 }
7430 }
7431 {
7432 PyThreadState* __tstate = wxPyBeginAllowThreads();
7433 wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2);
7434
7435 wxPyEndAllowThreads(__tstate);
7436 if (PyErr_Occurred()) return NULL;
7437 } Py_INCREF(Py_None);
7438 _resultobj = Py_None;
7439 return _resultobj;
7440 }
7441
7442 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
7443 static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7444 PyObject * _resultobj;
7445 wxScrolledWindow * _arg0;
7446 wxWindow * _arg1;
7447 PyObject * _argo0 = 0;
7448 PyObject * _argo1 = 0;
7449 char *_kwnames[] = { "self","window", NULL };
7450
7451 self = self;
7452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1))
7453 return NULL;
7454 if (_argo0) {
7455 if (_argo0 == Py_None) { _arg0 = NULL; }
7456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
7458 return NULL;
7459 }
7460 }
7461 if (_argo1) {
7462 if (_argo1 == Py_None) { _arg1 = NULL; }
7463 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7464 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
7465 return NULL;
7466 }
7467 }
7468 {
7469 PyThreadState* __tstate = wxPyBeginAllowThreads();
7470 wxScrolledWindow_SetTargetWindow(_arg0,_arg1);
7471
7472 wxPyEndAllowThreads(__tstate);
7473 if (PyErr_Occurred()) return NULL;
7474 } Py_INCREF(Py_None);
7475 _resultobj = Py_None;
7476 return _resultobj;
7477 }
7478
7479 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
7480 static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
7481 PyObject * _resultobj;
7482 wxScrolledWindow * _arg0;
7483 int * _arg1;
7484 int temp;
7485 int * _arg2;
7486 int temp0;
7487 PyObject * _argo0 = 0;
7488 char *_kwnames[] = { "self", NULL };
7489
7490 self = self;
7491 {
7492 _arg1 = &temp;
7493 }
7494 {
7495 _arg2 = &temp0;
7496 }
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0))
7498 return NULL;
7499 if (_argo0) {
7500 if (_argo0 == Py_None) { _arg0 = NULL; }
7501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
7503 return NULL;
7504 }
7505 }
7506 {
7507 PyThreadState* __tstate = wxPyBeginAllowThreads();
7508 wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2);
7509
7510 wxPyEndAllowThreads(__tstate);
7511 if (PyErr_Occurred()) return NULL;
7512 } Py_INCREF(Py_None);
7513 _resultobj = Py_None;
7514 {
7515 PyObject *o;
7516 o = PyInt_FromLong((long) (*_arg1));
7517 _resultobj = t_output_helper(_resultobj, o);
7518 }
7519 {
7520 PyObject *o;
7521 o = PyInt_FromLong((long) (*_arg2));
7522 _resultobj = t_output_helper(_resultobj, o);
7523 }
7524 return _resultobj;
7525 }
7526
7527 #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0))
7528 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) {
7529 PyObject * _resultobj;
7530 wxPoint * _result;
7531 wxScrolledWindow * _arg0;
7532 wxPoint * _arg1;
7533 PyObject * _argo0 = 0;
7534 wxPoint temp;
7535 PyObject * _obj1 = 0;
7536 char *_kwnames[] = { "self","pt", NULL };
7537 char _ptemp[128];
7538
7539 self = self;
7540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1))
7541 return NULL;
7542 if (_argo0) {
7543 if (_argo0 == Py_None) { _arg0 = NULL; }
7544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p.");
7546 return NULL;
7547 }
7548 }
7549 {
7550 _arg1 = &temp;
7551 if (! wxPoint_helper(_obj1, &_arg1))
7552 return NULL;
7553 }
7554 {
7555 PyThreadState* __tstate = wxPyBeginAllowThreads();
7556 _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1));
7557
7558 wxPyEndAllowThreads(__tstate);
7559 if (PyErr_Occurred()) return NULL;
7560 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
7561 _resultobj = Py_BuildValue("s",_ptemp);
7562 return _resultobj;
7563 }
7564
7565 #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7566 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) {
7567 PyObject * _resultobj;
7568 wxScrolledWindow * _arg0;
7569 int _arg1;
7570 int _arg2;
7571 int * _arg3;
7572 int temp;
7573 int * _arg4;
7574 int temp0;
7575 PyObject * _argo0 = 0;
7576 char *_kwnames[] = { "self","x","y", NULL };
7577
7578 self = self;
7579 {
7580 _arg3 = &temp;
7581 }
7582 {
7583 _arg4 = &temp0;
7584 }
7585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2))
7586 return NULL;
7587 if (_argo0) {
7588 if (_argo0 == Py_None) { _arg0 = NULL; }
7589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p.");
7591 return NULL;
7592 }
7593 }
7594 {
7595 PyThreadState* __tstate = wxPyBeginAllowThreads();
7596 wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4);
7597
7598 wxPyEndAllowThreads(__tstate);
7599 if (PyErr_Occurred()) return NULL;
7600 } Py_INCREF(Py_None);
7601 _resultobj = Py_None;
7602 {
7603 PyObject *o;
7604 o = PyInt_FromLong((long) (*_arg3));
7605 _resultobj = t_output_helper(_resultobj, o);
7606 }
7607 {
7608 PyObject *o;
7609 o = PyInt_FromLong((long) (*_arg4));
7610 _resultobj = t_output_helper(_resultobj, o);
7611 }
7612 return _resultobj;
7613 }
7614
7615 #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0))
7616 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) {
7617 PyObject * _resultobj;
7618 wxPoint * _result;
7619 wxScrolledWindow * _arg0;
7620 wxPoint * _arg1;
7621 PyObject * _argo0 = 0;
7622 wxPoint temp;
7623 PyObject * _obj1 = 0;
7624 char *_kwnames[] = { "self","pt", NULL };
7625 char _ptemp[128];
7626
7627 self = self;
7628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1))
7629 return NULL;
7630 if (_argo0) {
7631 if (_argo0 == Py_None) { _arg0 = NULL; }
7632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p.");
7634 return NULL;
7635 }
7636 }
7637 {
7638 _arg1 = &temp;
7639 if (! wxPoint_helper(_obj1, &_arg1))
7640 return NULL;
7641 }
7642 {
7643 PyThreadState* __tstate = wxPyBeginAllowThreads();
7644 _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1));
7645
7646 wxPyEndAllowThreads(__tstate);
7647 if (PyErr_Occurred()) return NULL;
7648 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
7649 _resultobj = Py_BuildValue("s",_ptemp);
7650 return _resultobj;
7651 }
7652
7653 #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7654 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) {
7655 PyObject * _resultobj;
7656 wxScrolledWindow * _arg0;
7657 int _arg1;
7658 int _arg2;
7659 int * _arg3;
7660 int temp;
7661 int * _arg4;
7662 int temp0;
7663 PyObject * _argo0 = 0;
7664 char *_kwnames[] = { "self","x","y", NULL };
7665
7666 self = self;
7667 {
7668 _arg3 = &temp;
7669 }
7670 {
7671 _arg4 = &temp0;
7672 }
7673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2))
7674 return NULL;
7675 if (_argo0) {
7676 if (_argo0 == Py_None) { _arg0 = NULL; }
7677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p.");
7679 return NULL;
7680 }
7681 }
7682 {
7683 PyThreadState* __tstate = wxPyBeginAllowThreads();
7684 wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4);
7685
7686 wxPyEndAllowThreads(__tstate);
7687 if (PyErr_Occurred()) return NULL;
7688 } Py_INCREF(Py_None);
7689 _resultobj = Py_None;
7690 {
7691 PyObject *o;
7692 o = PyInt_FromLong((long) (*_arg3));
7693 _resultobj = t_output_helper(_resultobj, o);
7694 }
7695 {
7696 PyObject *o;
7697 o = PyInt_FromLong((long) (*_arg4));
7698 _resultobj = t_output_helper(_resultobj, o);
7699 }
7700 return _resultobj;
7701 }
7702
7703 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
7704 static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7705 PyObject * _resultobj;
7706 wxScrolledWindow * _arg0;
7707 double _arg1;
7708 double _arg2;
7709 PyObject * _argo0 = 0;
7710 char *_kwnames[] = { "self","xs","ys", NULL };
7711
7712 self = self;
7713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2))
7714 return NULL;
7715 if (_argo0) {
7716 if (_argo0 == Py_None) { _arg0 = NULL; }
7717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
7719 return NULL;
7720 }
7721 }
7722 {
7723 PyThreadState* __tstate = wxPyBeginAllowThreads();
7724 wxScrolledWindow_SetScale(_arg0,_arg1,_arg2);
7725
7726 wxPyEndAllowThreads(__tstate);
7727 if (PyErr_Occurred()) return NULL;
7728 } Py_INCREF(Py_None);
7729 _resultobj = Py_None;
7730 return _resultobj;
7731 }
7732
7733 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
7734 static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) {
7735 PyObject * _resultobj;
7736 double _result;
7737 wxScrolledWindow * _arg0;
7738 PyObject * _argo0 = 0;
7739 char *_kwnames[] = { "self", NULL };
7740
7741 self = self;
7742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0))
7743 return NULL;
7744 if (_argo0) {
7745 if (_argo0 == Py_None) { _arg0 = NULL; }
7746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
7748 return NULL;
7749 }
7750 }
7751 {
7752 PyThreadState* __tstate = wxPyBeginAllowThreads();
7753 _result = (double )wxScrolledWindow_GetScaleX(_arg0);
7754
7755 wxPyEndAllowThreads(__tstate);
7756 if (PyErr_Occurred()) return NULL;
7757 } _resultobj = Py_BuildValue("d",_result);
7758 return _resultobj;
7759 }
7760
7761 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
7762 static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) {
7763 PyObject * _resultobj;
7764 double _result;
7765 wxScrolledWindow * _arg0;
7766 PyObject * _argo0 = 0;
7767 char *_kwnames[] = { "self", NULL };
7768
7769 self = self;
7770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0))
7771 return NULL;
7772 if (_argo0) {
7773 if (_argo0 == Py_None) { _arg0 = NULL; }
7774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
7776 return NULL;
7777 }
7778 }
7779 {
7780 PyThreadState* __tstate = wxPyBeginAllowThreads();
7781 _result = (double )wxScrolledWindow_GetScaleY(_arg0);
7782
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) return NULL;
7785 } _resultobj = Py_BuildValue("d",_result);
7786 return _resultobj;
7787 }
7788
7789 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
7790 static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
7791 PyObject * _resultobj;
7792 wxScrolledWindow * _arg0;
7793 PyObject * _argo0 = 0;
7794 char *_kwnames[] = { "self", NULL };
7795
7796 self = self;
7797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0))
7798 return NULL;
7799 if (_argo0) {
7800 if (_argo0 == Py_None) { _arg0 = NULL; }
7801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
7803 return NULL;
7804 }
7805 }
7806 {
7807 PyThreadState* __tstate = wxPyBeginAllowThreads();
7808 wxScrolledWindow_AdjustScrollbars(_arg0);
7809
7810 wxPyEndAllowThreads(__tstate);
7811 if (PyErr_Occurred()) return NULL;
7812 } Py_INCREF(Py_None);
7813 _resultobj = Py_None;
7814 return _resultobj;
7815 }
7816
7817 #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout())
7818 static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
7819 PyObject * _resultobj;
7820 bool _result;
7821 wxScrolledWindow * _arg0;
7822 PyObject * _argo0 = 0;
7823 char *_kwnames[] = { "self", NULL };
7824
7825 self = self;
7826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0))
7827 return NULL;
7828 if (_argo0) {
7829 if (_argo0 == Py_None) { _arg0 = NULL; }
7830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p.");
7832 return NULL;
7833 }
7834 }
7835 {
7836 PyThreadState* __tstate = wxPyBeginAllowThreads();
7837 _result = (bool )wxScrolledWindow_Layout(_arg0);
7838
7839 wxPyEndAllowThreads(__tstate);
7840 if (PyErr_Occurred()) return NULL;
7841 } _resultobj = Py_BuildValue("i",_result);
7842 return _resultobj;
7843 }
7844
7845 #define wxScrolledWindow_SetScrollRate(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollRate(_swigarg0,_swigarg1))
7846 static PyObject *_wrap_wxScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) {
7847 PyObject * _resultobj;
7848 wxScrolledWindow * _arg0;
7849 int _arg1;
7850 int _arg2;
7851 PyObject * _argo0 = 0;
7852 char *_kwnames[] = { "self","xstep","ystep", NULL };
7853
7854 self = self;
7855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollRate",_kwnames,&_argo0,&_arg1,&_arg2))
7856 return NULL;
7857 if (_argo0) {
7858 if (_argo0 == Py_None) { _arg0 = NULL; }
7859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollRate. Expected _wxScrolledWindow_p.");
7861 return NULL;
7862 }
7863 }
7864 {
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 wxScrolledWindow_SetScrollRate(_arg0,_arg1,_arg2);
7867
7868 wxPyEndAllowThreads(__tstate);
7869 if (PyErr_Occurred()) return NULL;
7870 } Py_INCREF(Py_None);
7871 _resultobj = Py_None;
7872 return _resultobj;
7873 }
7874
7875 static void *SwigwxMenuTowxEvtHandler(void *ptr) {
7876 wxMenu *src;
7877 wxEvtHandler *dest;
7878 src = (wxMenu *) ptr;
7879 dest = (wxEvtHandler *) src;
7880 return (void *) dest;
7881 }
7882
7883 static void *SwigwxMenuTowxObject(void *ptr) {
7884 wxMenu *src;
7885 wxObject *dest;
7886 src = (wxMenu *) ptr;
7887 dest = (wxObject *) src;
7888 return (void *) dest;
7889 }
7890
7891 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
7892 static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7893 PyObject * _resultobj;
7894 wxMenu * _result;
7895 wxString * _arg0 = (wxString *) &wxPyEmptyString;
7896 long _arg1 = (long ) 0;
7897 PyObject * _obj0 = 0;
7898 char *_kwnames[] = { "title","style", NULL };
7899 char _ptemp[128];
7900
7901 self = self;
7902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
7903 return NULL;
7904 if (_obj0)
7905 {
7906 _arg0 = wxString_in_helper(_obj0);
7907 if (_arg0 == NULL)
7908 return NULL;
7909 }
7910 {
7911 PyThreadState* __tstate = wxPyBeginAllowThreads();
7912 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
7913
7914 wxPyEndAllowThreads(__tstate);
7915 if (PyErr_Occurred()) return NULL;
7916 } if (_result) {
7917 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7918 _resultobj = Py_BuildValue("s",_ptemp);
7919 } else {
7920 Py_INCREF(Py_None);
7921 _resultobj = Py_None;
7922 }
7923 {
7924 if (_obj0)
7925 delete _arg0;
7926 }
7927 return _resultobj;
7928 }
7929
7930 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7931 static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
7932 PyObject * _resultobj;
7933 wxMenu * _arg0;
7934 int _arg1;
7935 wxString * _arg2;
7936 wxString * _arg3 = (wxString *) &wxPyEmptyString;
7937 wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL;
7938 PyObject * _argo0 = 0;
7939 PyObject * _obj2 = 0;
7940 PyObject * _obj3 = 0;
7941 char *_kwnames[] = { "self","id","item","helpString","kind", NULL };
7942
7943 self = self;
7944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
7945 return NULL;
7946 if (_argo0) {
7947 if (_argo0 == Py_None) { _arg0 = NULL; }
7948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
7950 return NULL;
7951 }
7952 }
7953 {
7954 _arg2 = wxString_in_helper(_obj2);
7955 if (_arg2 == NULL)
7956 return NULL;
7957 }
7958 if (_obj3)
7959 {
7960 _arg3 = wxString_in_helper(_obj3);
7961 if (_arg3 == NULL)
7962 return NULL;
7963 }
7964 {
7965 PyThreadState* __tstate = wxPyBeginAllowThreads();
7966 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
7967
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) return NULL;
7970 } Py_INCREF(Py_None);
7971 _resultobj = Py_None;
7972 {
7973 if (_obj2)
7974 delete _arg2;
7975 }
7976 {
7977 if (_obj3)
7978 delete _arg3;
7979 }
7980 return _resultobj;
7981 }
7982
7983 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7984 static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7985 PyObject * _resultobj;
7986 wxMenu * _arg0;
7987 int _arg1;
7988 wxString * _arg2;
7989 wxMenu * _arg3;
7990 wxString * _arg4 = (wxString *) &wxPyEmptyString;
7991 PyObject * _argo0 = 0;
7992 PyObject * _obj2 = 0;
7993 PyObject * _argo3 = 0;
7994 PyObject * _obj4 = 0;
7995 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
7996
7997 self = self;
7998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
7999 return NULL;
8000 if (_argo0) {
8001 if (_argo0 == Py_None) { _arg0 = NULL; }
8002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
8004 return NULL;
8005 }
8006 }
8007 {
8008 _arg2 = wxString_in_helper(_obj2);
8009 if (_arg2 == NULL)
8010 return NULL;
8011 }
8012 if (_argo3) {
8013 if (_argo3 == Py_None) { _arg3 = NULL; }
8014 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
8015 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
8016 return NULL;
8017 }
8018 }
8019 if (_obj4)
8020 {
8021 _arg4 = wxString_in_helper(_obj4);
8022 if (_arg4 == NULL)
8023 return NULL;
8024 }
8025 {
8026 PyThreadState* __tstate = wxPyBeginAllowThreads();
8027 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
8028
8029 wxPyEndAllowThreads(__tstate);
8030 if (PyErr_Occurred()) return NULL;
8031 } Py_INCREF(Py_None);
8032 _resultobj = Py_None;
8033 {
8034 if (_obj2)
8035 delete _arg2;
8036 }
8037 {
8038 if (_obj4)
8039 delete _arg4;
8040 }
8041 return _resultobj;
8042 }
8043
8044 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
8045 static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8046 PyObject * _resultobj;
8047 wxMenu * _arg0;
8048 wxMenuItem * _arg1;
8049 PyObject * _argo0 = 0;
8050 PyObject * _argo1 = 0;
8051 char *_kwnames[] = { "self","item", NULL };
8052
8053 self = self;
8054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
8055 return NULL;
8056 if (_argo0) {
8057 if (_argo0 == Py_None) { _arg0 = NULL; }
8058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
8060 return NULL;
8061 }
8062 }
8063 if (_argo1) {
8064 if (_argo1 == Py_None) { _arg1 = NULL; }
8065 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
8066 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
8067 return NULL;
8068 }
8069 }
8070 {
8071 PyThreadState* __tstate = wxPyBeginAllowThreads();
8072 wxMenu_AppendItem(_arg0,_arg1);
8073
8074 wxPyEndAllowThreads(__tstate);
8075 if (PyErr_Occurred()) return NULL;
8076 } Py_INCREF(Py_None);
8077 _resultobj = Py_None;
8078 return _resultobj;
8079 }
8080
8081 #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2))
8082 static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8083 PyObject * _resultobj;
8084 wxMenu * _arg0;
8085 int _arg1;
8086 wxString * _arg2;
8087 wxString * _arg3 = (wxString *) &wxPyEmptyString;
8088 PyObject * _argo0 = 0;
8089 PyObject * _obj2 = 0;
8090 PyObject * _obj3 = 0;
8091 char *_kwnames[] = { "self","id","text","help", NULL };
8092
8093 self = self;
8094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3))
8095 return NULL;
8096 if (_argo0) {
8097 if (_argo0 == Py_None) { _arg0 = NULL; }
8098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p.");
8100 return NULL;
8101 }
8102 }
8103 {
8104 _arg2 = wxString_in_helper(_obj2);
8105 if (_arg2 == NULL)
8106 return NULL;
8107 }
8108 if (_obj3)
8109 {
8110 _arg3 = wxString_in_helper(_obj3);
8111 if (_arg3 == NULL)
8112 return NULL;
8113 }
8114 {
8115 PyThreadState* __tstate = wxPyBeginAllowThreads();
8116 wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3);
8117
8118 wxPyEndAllowThreads(__tstate);
8119 if (PyErr_Occurred()) return NULL;
8120 } Py_INCREF(Py_None);
8121 _resultobj = Py_None;
8122 {
8123 if (_obj2)
8124 delete _arg2;
8125 }
8126 {
8127 if (_obj3)
8128 delete _arg3;
8129 }
8130 return _resultobj;
8131 }
8132
8133 #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2))
8134 static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8135 PyObject * _resultobj;
8136 wxMenu * _arg0;
8137 int _arg1;
8138 wxString * _arg2;
8139 wxString * _arg3 = (wxString *) &wxPyEmptyString;
8140 PyObject * _argo0 = 0;
8141 PyObject * _obj2 = 0;
8142 PyObject * _obj3 = 0;
8143 char *_kwnames[] = { "self","id","text","help", NULL };
8144
8145 self = self;
8146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3))
8147 return NULL;
8148 if (_argo0) {
8149 if (_argo0 == Py_None) { _arg0 = NULL; }
8150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p.");
8152 return NULL;
8153 }
8154 }
8155 {
8156 _arg2 = wxString_in_helper(_obj2);
8157 if (_arg2 == NULL)
8158 return NULL;
8159 }
8160 if (_obj3)
8161 {
8162 _arg3 = wxString_in_helper(_obj3);
8163 if (_arg3 == NULL)
8164 return NULL;
8165 }
8166 {
8167 PyThreadState* __tstate = wxPyBeginAllowThreads();
8168 wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3);
8169
8170 wxPyEndAllowThreads(__tstate);
8171 if (PyErr_Occurred()) return NULL;
8172 } Py_INCREF(Py_None);
8173 _resultobj = Py_None;
8174 {
8175 if (_obj2)
8176 delete _arg2;
8177 }
8178 {
8179 if (_obj3)
8180 delete _arg3;
8181 }
8182 return _resultobj;
8183 }
8184
8185 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
8186 static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
8187 PyObject * _resultobj;
8188 wxMenu * _arg0;
8189 PyObject * _argo0 = 0;
8190 char *_kwnames[] = { "self", NULL };
8191
8192 self = self;
8193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
8194 return NULL;
8195 if (_argo0) {
8196 if (_argo0 == Py_None) { _arg0 = NULL; }
8197 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8198 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
8199 return NULL;
8200 }
8201 }
8202 {
8203 PyThreadState* __tstate = wxPyBeginAllowThreads();
8204 wxMenu_AppendSeparator(_arg0);
8205
8206 wxPyEndAllowThreads(__tstate);
8207 if (PyErr_Occurred()) return NULL;
8208 } Py_INCREF(Py_None);
8209 _resultobj = Py_None;
8210 return _resultobj;
8211 }
8212
8213 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8214 static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
8215 PyObject * _resultobj;
8216 wxMenu * _arg0;
8217 size_t _arg1;
8218 int _arg2;
8219 wxString * _arg3;
8220 wxString * _arg4 = (wxString *) &wxPyEmptyString;
8221 wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL;
8222 PyObject * _argo0 = 0;
8223 PyObject * _obj3 = 0;
8224 PyObject * _obj4 = 0;
8225 char *_kwnames[] = { "self","pos","id","text","help","kind", NULL };
8226
8227 self = self;
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5))
8229 return NULL;
8230 if (_argo0) {
8231 if (_argo0 == Py_None) { _arg0 = NULL; }
8232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
8234 return NULL;
8235 }
8236 }
8237 {
8238 _arg3 = wxString_in_helper(_obj3);
8239 if (_arg3 == NULL)
8240 return NULL;
8241 }
8242 if (_obj4)
8243 {
8244 _arg4 = wxString_in_helper(_obj4);
8245 if (_arg4 == NULL)
8246 return NULL;
8247 }
8248 {
8249 PyThreadState* __tstate = wxPyBeginAllowThreads();
8250 wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5);
8251
8252 wxPyEndAllowThreads(__tstate);
8253 if (PyErr_Occurred()) return NULL;
8254 } Py_INCREF(Py_None);
8255 _resultobj = Py_None;
8256 {
8257 if (_obj3)
8258 delete _arg3;
8259 }
8260 {
8261 if (_obj4)
8262 delete _arg4;
8263 }
8264 return _resultobj;
8265 }
8266
8267 #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
8268 static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
8269 PyObject * _resultobj;
8270 wxMenu * _arg0;
8271 size_t _arg1;
8272 PyObject * _argo0 = 0;
8273 char *_kwnames[] = { "self","pos", NULL };
8274
8275 self = self;
8276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1))
8277 return NULL;
8278 if (_argo0) {
8279 if (_argo0 == Py_None) { _arg0 = NULL; }
8280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p.");
8282 return NULL;
8283 }
8284 }
8285 {
8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
8287 wxMenu_InsertSeparator(_arg0,_arg1);
8288
8289 wxPyEndAllowThreads(__tstate);
8290 if (PyErr_Occurred()) return NULL;
8291 } Py_INCREF(Py_None);
8292 _resultobj = Py_None;
8293 return _resultobj;
8294 }
8295
8296 #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8297 static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8298 PyObject * _resultobj;
8299 wxMenu * _arg0;
8300 size_t _arg1;
8301 int _arg2;
8302 wxString * _arg3;
8303 wxString * _arg4 = (wxString *) &wxPyEmptyString;
8304 PyObject * _argo0 = 0;
8305 PyObject * _obj3 = 0;
8306 PyObject * _obj4 = 0;
8307 char *_kwnames[] = { "self","pos","id","text","help", NULL };
8308
8309 self = self;
8310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4))
8311 return NULL;
8312 if (_argo0) {
8313 if (_argo0 == Py_None) { _arg0 = NULL; }
8314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p.");
8316 return NULL;
8317 }
8318 }
8319 {
8320 _arg3 = wxString_in_helper(_obj3);
8321 if (_arg3 == NULL)
8322 return NULL;
8323 }
8324 if (_obj4)
8325 {
8326 _arg4 = wxString_in_helper(_obj4);
8327 if (_arg4 == NULL)
8328 return NULL;
8329 }
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4);
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) return NULL;
8336 } Py_INCREF(Py_None);
8337 _resultobj = Py_None;
8338 {
8339 if (_obj3)
8340 delete _arg3;
8341 }
8342 {
8343 if (_obj4)
8344 delete _arg4;
8345 }
8346 return _resultobj;
8347 }
8348
8349 #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8350 static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8351 PyObject * _resultobj;
8352 wxMenu * _arg0;
8353 size_t _arg1;
8354 int _arg2;
8355 wxString * _arg3;
8356 wxString * _arg4 = (wxString *) &wxPyEmptyString;
8357 PyObject * _argo0 = 0;
8358 PyObject * _obj3 = 0;
8359 PyObject * _obj4 = 0;
8360 char *_kwnames[] = { "self","pos","id","text","help", NULL };
8361
8362 self = self;
8363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4))
8364 return NULL;
8365 if (_argo0) {
8366 if (_argo0 == Py_None) { _arg0 = NULL; }
8367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p.");
8369 return NULL;
8370 }
8371 }
8372 {
8373 _arg3 = wxString_in_helper(_obj3);
8374 if (_arg3 == NULL)
8375 return NULL;
8376 }
8377 if (_obj4)
8378 {
8379 _arg4 = wxString_in_helper(_obj4);
8380 if (_arg4 == NULL)
8381 return NULL;
8382 }
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
8385 wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4);
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) return NULL;
8389 } Py_INCREF(Py_None);
8390 _resultobj = Py_None;
8391 {
8392 if (_obj3)
8393 delete _arg3;
8394 }
8395 {
8396 if (_obj4)
8397 delete _arg4;
8398 }
8399 return _resultobj;
8400 }
8401
8402 #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
8403 static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8404 PyObject * _resultobj;
8405 wxMenu * _arg0;
8406 size_t _arg1;
8407 int _arg2;
8408 wxString * _arg3;
8409 wxMenu * _arg4;
8410 wxString * _arg5 = (wxString *) &wxPyEmptyString;
8411 PyObject * _argo0 = 0;
8412 PyObject * _obj3 = 0;
8413 PyObject * _argo4 = 0;
8414 PyObject * _obj5 = 0;
8415 char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL };
8416
8417 self = self;
8418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5))
8419 return NULL;
8420 if (_argo0) {
8421 if (_argo0 == Py_None) { _arg0 = NULL; }
8422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p.");
8424 return NULL;
8425 }
8426 }
8427 {
8428 _arg3 = wxString_in_helper(_obj3);
8429 if (_arg3 == NULL)
8430 return NULL;
8431 }
8432 if (_argo4) {
8433 if (_argo4 == Py_None) { _arg4 = NULL; }
8434 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) {
8435 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p.");
8436 return NULL;
8437 }
8438 }
8439 if (_obj5)
8440 {
8441 _arg5 = wxString_in_helper(_obj5);
8442 if (_arg5 == NULL)
8443 return NULL;
8444 }
8445 {
8446 PyThreadState* __tstate = wxPyBeginAllowThreads();
8447 wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5);
8448
8449 wxPyEndAllowThreads(__tstate);
8450 if (PyErr_Occurred()) return NULL;
8451 } Py_INCREF(Py_None);
8452 _resultobj = Py_None;
8453 {
8454 if (_obj3)
8455 delete _arg3;
8456 }
8457 {
8458 if (_obj5)
8459 delete _arg5;
8460 }
8461 return _resultobj;
8462 }
8463
8464 #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
8465 static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8466 PyObject * _resultobj;
8467 bool _result;
8468 wxMenu * _arg0;
8469 size_t _arg1;
8470 wxMenuItem * _arg2;
8471 PyObject * _argo0 = 0;
8472 PyObject * _argo2 = 0;
8473 char *_kwnames[] = { "self","pos","item", NULL };
8474
8475 self = self;
8476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2))
8477 return NULL;
8478 if (_argo0) {
8479 if (_argo0 == Py_None) { _arg0 = NULL; }
8480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p.");
8482 return NULL;
8483 }
8484 }
8485 if (_argo2) {
8486 if (_argo2 == Py_None) { _arg2 = NULL; }
8487 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) {
8488 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p.");
8489 return NULL;
8490 }
8491 }
8492 {
8493 PyThreadState* __tstate = wxPyBeginAllowThreads();
8494 _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2);
8495
8496 wxPyEndAllowThreads(__tstate);
8497 if (PyErr_Occurred()) return NULL;
8498 } _resultobj = Py_BuildValue("i",_result);
8499 return _resultobj;
8500 }
8501
8502 #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8503 static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
8504 PyObject * _resultobj;
8505 wxMenu * _arg0;
8506 int _arg1;
8507 wxString * _arg2;
8508 wxString * _arg3 = (wxString *) &wxPyEmptyString;
8509 wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL;
8510 PyObject * _argo0 = 0;
8511 PyObject * _obj2 = 0;
8512 PyObject * _obj3 = 0;
8513 char *_kwnames[] = { "self","id","text","help","kind", NULL };
8514
8515 self = self;
8516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
8517 return NULL;
8518 if (_argo0) {
8519 if (_argo0 == Py_None) { _arg0 = NULL; }
8520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p.");
8522 return NULL;
8523 }
8524 }
8525 {
8526 _arg2 = wxString_in_helper(_obj2);
8527 if (_arg2 == NULL)
8528 return NULL;
8529 }
8530 if (_obj3)
8531 {
8532 _arg3 = wxString_in_helper(_obj3);
8533 if (_arg3 == NULL)
8534 return NULL;
8535 }
8536 {
8537 PyThreadState* __tstate = wxPyBeginAllowThreads();
8538 wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4);
8539
8540 wxPyEndAllowThreads(__tstate);
8541 if (PyErr_Occurred()) return NULL;
8542 } Py_INCREF(Py_None);
8543 _resultobj = Py_None;
8544 {
8545 if (_obj2)
8546 delete _arg2;
8547 }
8548 {
8549 if (_obj3)
8550 delete _arg3;
8551 }
8552 return _resultobj;
8553 }
8554
8555 #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator())
8556 static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
8557 PyObject * _resultobj;
8558 wxMenu * _arg0;
8559 PyObject * _argo0 = 0;
8560 char *_kwnames[] = { "self", NULL };
8561
8562 self = self;
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0))
8564 return NULL;
8565 if (_argo0) {
8566 if (_argo0 == Py_None) { _arg0 = NULL; }
8567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p.");
8569 return NULL;
8570 }
8571 }
8572 {
8573 PyThreadState* __tstate = wxPyBeginAllowThreads();
8574 wxMenu_PrependSeparator(_arg0);
8575
8576 wxPyEndAllowThreads(__tstate);
8577 if (PyErr_Occurred()) return NULL;
8578 } Py_INCREF(Py_None);
8579 _resultobj = Py_None;
8580 return _resultobj;
8581 }
8582
8583 #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2))
8584 static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8585 PyObject * _resultobj;
8586 wxMenu * _arg0;
8587 int _arg1;
8588 wxString * _arg2;
8589 wxString * _arg3 = (wxString *) &wxPyEmptyString;
8590 PyObject * _argo0 = 0;
8591 PyObject * _obj2 = 0;
8592 PyObject * _obj3 = 0;
8593 char *_kwnames[] = { "self","id","text","help", NULL };
8594
8595 self = self;
8596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3))
8597 return NULL;
8598 if (_argo0) {
8599 if (_argo0 == Py_None) { _arg0 = NULL; }
8600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p.");
8602 return NULL;
8603 }
8604 }
8605 {
8606 _arg2 = wxString_in_helper(_obj2);
8607 if (_arg2 == NULL)
8608 return NULL;
8609 }
8610 if (_obj3)
8611 {
8612 _arg3 = wxString_in_helper(_obj3);
8613 if (_arg3 == NULL)
8614 return NULL;
8615 }
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3);
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) return NULL;
8622 } Py_INCREF(Py_None);
8623 _resultobj = Py_None;
8624 {
8625 if (_obj2)
8626 delete _arg2;
8627 }
8628 {
8629 if (_obj3)
8630 delete _arg3;
8631 }
8632 return _resultobj;
8633 }
8634
8635 #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2))
8636 static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8637 PyObject * _resultobj;
8638 wxMenu * _arg0;
8639 int _arg1;
8640 wxString * _arg2;
8641 wxString * _arg3 = (wxString *) &wxPyEmptyString;
8642 PyObject * _argo0 = 0;
8643 PyObject * _obj2 = 0;
8644 PyObject * _obj3 = 0;
8645 char *_kwnames[] = { "self","id","text","help", NULL };
8646
8647 self = self;
8648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3))
8649 return NULL;
8650 if (_argo0) {
8651 if (_argo0 == Py_None) { _arg0 = NULL; }
8652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p.");
8654 return NULL;
8655 }
8656 }
8657 {
8658 _arg2 = wxString_in_helper(_obj2);
8659 if (_arg2 == NULL)
8660 return NULL;
8661 }
8662 if (_obj3)
8663 {
8664 _arg3 = wxString_in_helper(_obj3);
8665 if (_arg3 == NULL)
8666 return NULL;
8667 }
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3);
8671
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) return NULL;
8674 } Py_INCREF(Py_None);
8675 _resultobj = Py_None;
8676 {
8677 if (_obj2)
8678 delete _arg2;
8679 }
8680 {
8681 if (_obj3)
8682 delete _arg3;
8683 }
8684 return _resultobj;
8685 }
8686
8687 #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8688 static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8689 PyObject * _resultobj;
8690 wxMenu * _arg0;
8691 int _arg1;
8692 wxString * _arg2;
8693 wxMenu * _arg3;
8694 wxString * _arg4 = (wxString *) &wxPyEmptyString;
8695 PyObject * _argo0 = 0;
8696 PyObject * _obj2 = 0;
8697 PyObject * _argo3 = 0;
8698 PyObject * _obj4 = 0;
8699 char *_kwnames[] = { "self","id","text","submenu","help", NULL };
8700
8701 self = self;
8702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
8703 return NULL;
8704 if (_argo0) {
8705 if (_argo0 == Py_None) { _arg0 = NULL; }
8706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p.");
8708 return NULL;
8709 }
8710 }
8711 {
8712 _arg2 = wxString_in_helper(_obj2);
8713 if (_arg2 == NULL)
8714 return NULL;
8715 }
8716 if (_argo3) {
8717 if (_argo3 == Py_None) { _arg3 = NULL; }
8718 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
8719 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p.");
8720 return NULL;
8721 }
8722 }
8723 if (_obj4)
8724 {
8725 _arg4 = wxString_in_helper(_obj4);
8726 if (_arg4 == NULL)
8727 return NULL;
8728 }
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) return NULL;
8735 } Py_INCREF(Py_None);
8736 _resultobj = Py_None;
8737 {
8738 if (_obj2)
8739 delete _arg2;
8740 }
8741 {
8742 if (_obj4)
8743 delete _arg4;
8744 }
8745 return _resultobj;
8746 }
8747
8748 #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0))
8749 static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8750 PyObject * _resultobj;
8751 wxMenu * _arg0;
8752 wxMenuItem * _arg1;
8753 PyObject * _argo0 = 0;
8754 PyObject * _argo1 = 0;
8755 char *_kwnames[] = { "self","item", NULL };
8756
8757 self = self;
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1))
8759 return NULL;
8760 if (_argo0) {
8761 if (_argo0 == Py_None) { _arg0 = NULL; }
8762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p.");
8764 return NULL;
8765 }
8766 }
8767 if (_argo1) {
8768 if (_argo1 == Py_None) { _arg1 = NULL; }
8769 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
8770 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p.");
8771 return NULL;
8772 }
8773 }
8774 {
8775 PyThreadState* __tstate = wxPyBeginAllowThreads();
8776 wxMenu_PrependItem(_arg0,_arg1);
8777
8778 wxPyEndAllowThreads(__tstate);
8779 if (PyErr_Occurred()) return NULL;
8780 } Py_INCREF(Py_None);
8781 _resultobj = Py_None;
8782 return _resultobj;
8783 }
8784
8785 #define wxMenu_Break(_swigobj) (_swigobj->Break())
8786 static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
8787 PyObject * _resultobj;
8788 wxMenu * _arg0;
8789 PyObject * _argo0 = 0;
8790 char *_kwnames[] = { "self", NULL };
8791
8792 self = self;
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
8794 return NULL;
8795 if (_argo0) {
8796 if (_argo0 == Py_None) { _arg0 = NULL; }
8797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
8799 return NULL;
8800 }
8801 }
8802 {
8803 PyThreadState* __tstate = wxPyBeginAllowThreads();
8804 wxMenu_Break(_arg0);
8805
8806 wxPyEndAllowThreads(__tstate);
8807 if (PyErr_Occurred()) return NULL;
8808 } Py_INCREF(Py_None);
8809 _resultobj = Py_None;
8810 return _resultobj;
8811 }
8812
8813 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8814 static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
8815 PyObject * _resultobj;
8816 wxMenu * _arg0;
8817 int _arg1;
8818 bool _arg2;
8819 PyObject * _argo0 = 0;
8820 int tempbool2;
8821 char *_kwnames[] = { "self","id","flag", NULL };
8822
8823 self = self;
8824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
8825 return NULL;
8826 if (_argo0) {
8827 if (_argo0 == Py_None) { _arg0 = NULL; }
8828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
8830 return NULL;
8831 }
8832 }
8833 _arg2 = (bool ) tempbool2;
8834 {
8835 PyThreadState* __tstate = wxPyBeginAllowThreads();
8836 wxMenu_Check(_arg0,_arg1,_arg2);
8837
8838 wxPyEndAllowThreads(__tstate);
8839 if (PyErr_Occurred()) return NULL;
8840 } Py_INCREF(Py_None);
8841 _resultobj = Py_None;
8842 return _resultobj;
8843 }
8844
8845 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8846 static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
8847 PyObject * _resultobj;
8848 bool _result;
8849 wxMenu * _arg0;
8850 int _arg1;
8851 PyObject * _argo0 = 0;
8852 char *_kwnames[] = { "self","id", NULL };
8853
8854 self = self;
8855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
8856 return NULL;
8857 if (_argo0) {
8858 if (_argo0 == Py_None) { _arg0 = NULL; }
8859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
8861 return NULL;
8862 }
8863 }
8864 {
8865 PyThreadState* __tstate = wxPyBeginAllowThreads();
8866 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
8867
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) return NULL;
8870 } _resultobj = Py_BuildValue("i",_result);
8871 return _resultobj;
8872 }
8873
8874 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8875 static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
8876 PyObject * _resultobj;
8877 wxMenu * _arg0;
8878 int _arg1;
8879 bool _arg2;
8880 PyObject * _argo0 = 0;
8881 int tempbool2;
8882 char *_kwnames[] = { "self","id","enable", NULL };
8883
8884 self = self;
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
8886 return NULL;
8887 if (_argo0) {
8888 if (_argo0 == Py_None) { _arg0 = NULL; }
8889 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8890 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
8891 return NULL;
8892 }
8893 }
8894 _arg2 = (bool ) tempbool2;
8895 {
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 wxMenu_Enable(_arg0,_arg1,_arg2);
8898
8899 wxPyEndAllowThreads(__tstate);
8900 if (PyErr_Occurred()) return NULL;
8901 } Py_INCREF(Py_None);
8902 _resultobj = Py_None;
8903 return _resultobj;
8904 }
8905
8906 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8907 static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8908 PyObject * _resultobj;
8909 bool _result;
8910 wxMenu * _arg0;
8911 int _arg1;
8912 PyObject * _argo0 = 0;
8913 char *_kwnames[] = { "self","id", NULL };
8914
8915 self = self;
8916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
8917 return NULL;
8918 if (_argo0) {
8919 if (_argo0 == Py_None) { _arg0 = NULL; }
8920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
8922 return NULL;
8923 }
8924 }
8925 {
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
8928
8929 wxPyEndAllowThreads(__tstate);
8930 if (PyErr_Occurred()) return NULL;
8931 } _resultobj = Py_BuildValue("i",_result);
8932 return _resultobj;
8933 }
8934
8935 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8936 static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8937 PyObject * _resultobj;
8938 int _result;
8939 wxMenu * _arg0;
8940 wxString * _arg1;
8941 PyObject * _argo0 = 0;
8942 PyObject * _obj1 = 0;
8943 char *_kwnames[] = { "self","itemString", NULL };
8944
8945 self = self;
8946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
8947 return NULL;
8948 if (_argo0) {
8949 if (_argo0 == Py_None) { _arg0 = NULL; }
8950 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
8952 return NULL;
8953 }
8954 }
8955 {
8956 _arg1 = wxString_in_helper(_obj1);
8957 if (_arg1 == NULL)
8958 return NULL;
8959 }
8960 {
8961 PyThreadState* __tstate = wxPyBeginAllowThreads();
8962 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
8963
8964 wxPyEndAllowThreads(__tstate);
8965 if (PyErr_Occurred()) return NULL;
8966 } _resultobj = Py_BuildValue("i",_result);
8967 {
8968 if (_obj1)
8969 delete _arg1;
8970 }
8971 return _resultobj;
8972 }
8973
8974 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8975 static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
8976 PyObject * _resultobj;
8977 wxMenuItem * _result;
8978 wxMenu * _arg0;
8979 int _arg1;
8980 PyObject * _argo0 = 0;
8981 char *_kwnames[] = { "self","id", NULL };
8982
8983 self = self;
8984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1))
8985 return NULL;
8986 if (_argo0) {
8987 if (_argo0 == Py_None) { _arg0 = NULL; }
8988 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8989 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p.");
8990 return NULL;
8991 }
8992 }
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1);
8996
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) return NULL;
8999 }{ _resultobj = wxPyMake_wxObject(_result); }
9000 return _resultobj;
9001 }
9002
9003 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
9004 static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
9005 PyObject * _resultobj;
9006 wxString * _result;
9007 wxMenu * _arg0;
9008 PyObject * _argo0 = 0;
9009 char *_kwnames[] = { "self", NULL };
9010
9011 self = self;
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
9013 return NULL;
9014 if (_argo0) {
9015 if (_argo0 == Py_None) { _arg0 = NULL; }
9016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
9018 return NULL;
9019 }
9020 }
9021 {
9022 PyThreadState* __tstate = wxPyBeginAllowThreads();
9023 _result = new wxString (wxMenu_GetTitle(_arg0));
9024
9025 wxPyEndAllowThreads(__tstate);
9026 if (PyErr_Occurred()) return NULL;
9027 }{
9028 #if wxUSE_UNICODE
9029 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
9030 #else
9031 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9032 #endif
9033 }
9034 {
9035 delete _result;
9036 }
9037 return _resultobj;
9038 }
9039
9040 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
9041 static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
9042 PyObject * _resultobj;
9043 wxMenu * _arg0;
9044 wxString * _arg1;
9045 PyObject * _argo0 = 0;
9046 PyObject * _obj1 = 0;
9047 char *_kwnames[] = { "self","title", NULL };
9048
9049 self = self;
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
9051 return NULL;
9052 if (_argo0) {
9053 if (_argo0 == Py_None) { _arg0 = NULL; }
9054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
9056 return NULL;
9057 }
9058 }
9059 {
9060 _arg1 = wxString_in_helper(_obj1);
9061 if (_arg1 == NULL)
9062 return NULL;
9063 }
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 wxMenu_SetTitle(_arg0,*_arg1);
9067
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) return NULL;
9070 } Py_INCREF(Py_None);
9071 _resultobj = Py_None;
9072 {
9073 if (_obj1)
9074 delete _arg1;
9075 }
9076 return _resultobj;
9077 }
9078
9079 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9080 static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9081 PyObject * _resultobj;
9082 wxString * _result;
9083 wxMenu * _arg0;
9084 int _arg1;
9085 PyObject * _argo0 = 0;
9086 char *_kwnames[] = { "self","id", NULL };
9087
9088 self = self;
9089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
9090 return NULL;
9091 if (_argo0) {
9092 if (_argo0 == Py_None) { _arg0 = NULL; }
9093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
9095 return NULL;
9096 }
9097 }
9098 {
9099 PyThreadState* __tstate = wxPyBeginAllowThreads();
9100 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
9101
9102 wxPyEndAllowThreads(__tstate);
9103 if (PyErr_Occurred()) return NULL;
9104 }{
9105 #if wxUSE_UNICODE
9106 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
9107 #else
9108 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9109 #endif
9110 }
9111 {
9112 delete _result;
9113 }
9114 return _resultobj;
9115 }
9116
9117 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
9118 static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9119 PyObject * _resultobj;
9120 wxMenu * _arg0;
9121 int _arg1;
9122 wxString * _arg2;
9123 PyObject * _argo0 = 0;
9124 PyObject * _obj2 = 0;
9125 char *_kwnames[] = { "self","id","label", NULL };
9126
9127 self = self;
9128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
9129 return NULL;
9130 if (_argo0) {
9131 if (_argo0 == Py_None) { _arg0 = NULL; }
9132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
9134 return NULL;
9135 }
9136 }
9137 {
9138 _arg2 = wxString_in_helper(_obj2);
9139 if (_arg2 == NULL)
9140 return NULL;
9141 }
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
9145
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) return NULL;
9148 } Py_INCREF(Py_None);
9149 _resultobj = Py_None;
9150 {
9151 if (_obj2)
9152 delete _arg2;
9153 }
9154 return _resultobj;
9155 }
9156
9157 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
9158 static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
9159 PyObject * _resultobj;
9160 wxString * _result;
9161 wxMenu * _arg0;
9162 int _arg1;
9163 PyObject * _argo0 = 0;
9164 char *_kwnames[] = { "self","id", NULL };
9165
9166 self = self;
9167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
9168 return NULL;
9169 if (_argo0) {
9170 if (_argo0 == Py_None) { _arg0 = NULL; }
9171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
9173 return NULL;
9174 }
9175 }
9176 {
9177 PyThreadState* __tstate = wxPyBeginAllowThreads();
9178 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
9179
9180 wxPyEndAllowThreads(__tstate);
9181 if (PyErr_Occurred()) return NULL;
9182 }{
9183 #if wxUSE_UNICODE
9184 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
9185 #else
9186 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9187 #endif
9188 }
9189 {
9190 delete _result;
9191 }
9192 return _resultobj;
9193 }
9194
9195 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
9196 static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
9197 PyObject * _resultobj;
9198 wxMenu * _arg0;
9199 int _arg1;
9200 wxString * _arg2;
9201 PyObject * _argo0 = 0;
9202 PyObject * _obj2 = 0;
9203 char *_kwnames[] = { "self","id","helpString", NULL };
9204
9205 self = self;
9206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
9207 return NULL;
9208 if (_argo0) {
9209 if (_argo0 == Py_None) { _arg0 = NULL; }
9210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
9212 return NULL;
9213 }
9214 }
9215 {
9216 _arg2 = wxString_in_helper(_obj2);
9217 if (_arg2 == NULL)
9218 return NULL;
9219 }
9220 {
9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
9222 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
9223
9224 wxPyEndAllowThreads(__tstate);
9225 if (PyErr_Occurred()) return NULL;
9226 } Py_INCREF(Py_None);
9227 _resultobj = Py_None;
9228 {
9229 if (_obj2)
9230 delete _arg2;
9231 }
9232 return _resultobj;
9233 }
9234
9235 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
9236 static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
9237 PyObject * _resultobj;
9238 wxMenu * _arg0;
9239 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
9240 PyObject * _argo0 = 0;
9241 PyObject * _argo1 = 0;
9242 char *_kwnames[] = { "self","source", NULL };
9243
9244 self = self;
9245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
9246 return NULL;
9247 if (_argo0) {
9248 if (_argo0 == Py_None) { _arg0 = NULL; }
9249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
9251 return NULL;
9252 }
9253 }
9254 if (_argo1) {
9255 if (_argo1 == Py_None) { _arg1 = NULL; }
9256 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
9257 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
9258 return NULL;
9259 }
9260 }
9261 {
9262 PyThreadState* __tstate = wxPyBeginAllowThreads();
9263 wxMenu_UpdateUI(_arg0,_arg1);
9264
9265 wxPyEndAllowThreads(__tstate);
9266 if (PyErr_Occurred()) return NULL;
9267 } Py_INCREF(Py_None);
9268 _resultobj = Py_None;
9269 return _resultobj;
9270 }
9271
9272 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
9273 static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
9274 PyObject * _resultobj;
9275 bool _result;
9276 wxMenu * _arg0;
9277 int _arg1;
9278 PyObject * _argo0 = 0;
9279 char *_kwnames[] = { "self","id", NULL };
9280
9281 self = self;
9282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1))
9283 return NULL;
9284 if (_argo0) {
9285 if (_argo0 == Py_None) { _arg0 = NULL; }
9286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
9288 return NULL;
9289 }
9290 }
9291 {
9292 PyThreadState* __tstate = wxPyBeginAllowThreads();
9293 _result = (bool )wxMenu_Delete(_arg0,_arg1);
9294
9295 wxPyEndAllowThreads(__tstate);
9296 if (PyErr_Occurred()) return NULL;
9297 } _resultobj = Py_BuildValue("i",_result);
9298 return _resultobj;
9299 }
9300
9301 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
9302 static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9303 PyObject * _resultobj;
9304 bool _result;
9305 wxMenu * _arg0;
9306 wxMenuItem * _arg1;
9307 PyObject * _argo0 = 0;
9308 PyObject * _argo1 = 0;
9309 char *_kwnames[] = { "self","item", NULL };
9310
9311 self = self;
9312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1))
9313 return NULL;
9314 if (_argo0) {
9315 if (_argo0 == Py_None) { _arg0 = NULL; }
9316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
9318 return NULL;
9319 }
9320 }
9321 if (_argo1) {
9322 if (_argo1 == Py_None) { _arg1 = NULL; }
9323 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
9324 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
9325 return NULL;
9326 }
9327 }
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 _result = (bool )wxMenu_DeleteItem(_arg0,_arg1);
9331
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) return NULL;
9334 } _resultobj = Py_BuildValue("i",_result);
9335 return _resultobj;
9336 }
9337
9338 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9339 static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
9340 PyObject * _resultobj;
9341 wxMenuItem * _result;
9342 wxMenu * _arg0;
9343 int _arg1;
9344 PyObject * _argo0 = 0;
9345 char *_kwnames[] = { "self","id", NULL };
9346
9347 self = self;
9348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1))
9349 return NULL;
9350 if (_argo0) {
9351 if (_argo0 == Py_None) { _arg0 = NULL; }
9352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
9354 return NULL;
9355 }
9356 }
9357 {
9358 PyThreadState* __tstate = wxPyBeginAllowThreads();
9359 _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1);
9360
9361 wxPyEndAllowThreads(__tstate);
9362 if (PyErr_Occurred()) return NULL;
9363 }{ _resultobj = wxPyMake_wxObject(_result); }
9364 return _resultobj;
9365 }
9366
9367 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9368 static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9369 PyObject * _resultobj;
9370 wxMenuItem * _result;
9371 wxMenu * _arg0;
9372 wxMenuItem * _arg1;
9373 PyObject * _argo0 = 0;
9374 PyObject * _argo1 = 0;
9375 char *_kwnames[] = { "self","item", NULL };
9376
9377 self = self;
9378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1))
9379 return NULL;
9380 if (_argo0) {
9381 if (_argo0 == Py_None) { _arg0 = NULL; }
9382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
9384 return NULL;
9385 }
9386 }
9387 if (_argo1) {
9388 if (_argo1 == Py_None) { _arg1 = NULL; }
9389 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
9390 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
9391 return NULL;
9392 }
9393 }
9394 {
9395 PyThreadState* __tstate = wxPyBeginAllowThreads();
9396 _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1);
9397
9398 wxPyEndAllowThreads(__tstate);
9399 if (PyErr_Occurred()) return NULL;
9400 }{ _resultobj = wxPyMake_wxObject(_result); }
9401 return _resultobj;
9402 }
9403
9404 static void wxMenu_Destroy(wxMenu *self) { delete self; }
9405 static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
9406 PyObject * _resultobj;
9407 wxMenu * _arg0;
9408 PyObject * _argo0 = 0;
9409 char *_kwnames[] = { "self", NULL };
9410
9411 self = self;
9412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
9413 return NULL;
9414 if (_argo0) {
9415 if (_argo0 == Py_None) { _arg0 = NULL; }
9416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
9418 return NULL;
9419 }
9420 }
9421 {
9422 PyThreadState* __tstate = wxPyBeginAllowThreads();
9423 wxMenu_Destroy(_arg0);
9424
9425 wxPyEndAllowThreads(__tstate);
9426 if (PyErr_Occurred()) return NULL;
9427 } Py_INCREF(Py_None);
9428 _resultobj = Py_None;
9429 return _resultobj;
9430 }
9431
9432 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
9433 static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
9434 PyObject * _resultobj;
9435 bool _result;
9436 wxMenu * _arg0;
9437 int _arg1;
9438 PyObject * _argo0 = 0;
9439 char *_kwnames[] = { "self","id", NULL };
9440
9441 self = self;
9442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1))
9443 return NULL;
9444 if (_argo0) {
9445 if (_argo0 == Py_None) { _arg0 = NULL; }
9446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
9448 return NULL;
9449 }
9450 }
9451 {
9452 PyThreadState* __tstate = wxPyBeginAllowThreads();
9453 _result = (bool )wxMenu_DestroyId(_arg0,_arg1);
9454
9455 wxPyEndAllowThreads(__tstate);
9456 if (PyErr_Occurred()) return NULL;
9457 } _resultobj = Py_BuildValue("i",_result);
9458 return _resultobj;
9459 }
9460
9461 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
9462 static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9463 PyObject * _resultobj;
9464 bool _result;
9465 wxMenu * _arg0;
9466 wxMenuItem * _arg1;
9467 PyObject * _argo0 = 0;
9468 PyObject * _argo1 = 0;
9469 char *_kwnames[] = { "self","item", NULL };
9470
9471 self = self;
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1))
9473 return NULL;
9474 if (_argo0) {
9475 if (_argo0 == Py_None) { _arg0 = NULL; }
9476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
9478 return NULL;
9479 }
9480 }
9481 if (_argo1) {
9482 if (_argo1 == Py_None) { _arg1 = NULL; }
9483 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
9484 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
9485 return NULL;
9486 }
9487 }
9488 {
9489 PyThreadState* __tstate = wxPyBeginAllowThreads();
9490 _result = (bool )wxMenu_DestroyItem(_arg0,_arg1);
9491
9492 wxPyEndAllowThreads(__tstate);
9493 if (PyErr_Occurred()) return NULL;
9494 } _resultobj = Py_BuildValue("i",_result);
9495 return _resultobj;
9496 }
9497
9498 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
9499 static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9500 PyObject * _resultobj;
9501 size_t _result;
9502 wxMenu * _arg0;
9503 PyObject * _argo0 = 0;
9504 char *_kwnames[] = { "self", NULL };
9505
9506 self = self;
9507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0))
9508 return NULL;
9509 if (_argo0) {
9510 if (_argo0 == Py_None) { _arg0 = NULL; }
9511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
9513 return NULL;
9514 }
9515 }
9516 {
9517 PyThreadState* __tstate = wxPyBeginAllowThreads();
9518 _result = (size_t )wxMenu_GetMenuItemCount(_arg0);
9519
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) return NULL;
9522 } _resultobj = Py_BuildValue("i",_result);
9523 return _resultobj;
9524 }
9525
9526 static PyObject * wxMenu_GetMenuItems(wxMenu *self) {
9527 wxMenuItemList& list = self->GetMenuItems();
9528 return wxPy_ConvertList(&list, "wxMenuItem");
9529 }
9530 static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
9531 PyObject * _resultobj;
9532 PyObject * _result;
9533 wxMenu * _arg0;
9534 PyObject * _argo0 = 0;
9535 char *_kwnames[] = { "self", NULL };
9536
9537 self = self;
9538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0))
9539 return NULL;
9540 if (_argo0) {
9541 if (_argo0 == Py_None) { _arg0 = NULL; }
9542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p.");
9544 return NULL;
9545 }
9546 }
9547 {
9548 PyThreadState* __tstate = wxPyBeginAllowThreads();
9549 _result = (PyObject *)wxMenu_GetMenuItems(_arg0);
9550
9551 wxPyEndAllowThreads(__tstate);
9552 if (PyErr_Occurred()) return NULL;
9553 }{
9554 _resultobj = _result;
9555 }
9556 return _resultobj;
9557 }
9558
9559 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
9560 static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
9561 PyObject * _resultobj;
9562 wxMenu * _arg0;
9563 wxEvtHandler * _arg1;
9564 PyObject * _argo0 = 0;
9565 PyObject * _argo1 = 0;
9566 char *_kwnames[] = { "self","handler", NULL };
9567
9568 self = self;
9569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1))
9570 return NULL;
9571 if (_argo0) {
9572 if (_argo0 == Py_None) { _arg0 = NULL; }
9573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
9575 return NULL;
9576 }
9577 }
9578 if (_argo1) {
9579 if (_argo1 == Py_None) { _arg1 = NULL; }
9580 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
9581 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
9582 return NULL;
9583 }
9584 }
9585 {
9586 PyThreadState* __tstate = wxPyBeginAllowThreads();
9587 wxMenu_SetEventHandler(_arg0,_arg1);
9588
9589 wxPyEndAllowThreads(__tstate);
9590 if (PyErr_Occurred()) return NULL;
9591 } Py_INCREF(Py_None);
9592 _resultobj = Py_None;
9593 return _resultobj;
9594 }
9595
9596 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
9597 static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
9598 PyObject * _resultobj;
9599 wxEvtHandler * _result;
9600 wxMenu * _arg0;
9601 PyObject * _argo0 = 0;
9602 char *_kwnames[] = { "self", NULL };
9603
9604 self = self;
9605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0))
9606 return NULL;
9607 if (_argo0) {
9608 if (_argo0 == Py_None) { _arg0 = NULL; }
9609 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9610 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
9611 return NULL;
9612 }
9613 }
9614 {
9615 PyThreadState* __tstate = wxPyBeginAllowThreads();
9616 _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0);
9617
9618 wxPyEndAllowThreads(__tstate);
9619 if (PyErr_Occurred()) return NULL;
9620 }{ _resultobj = wxPyMake_wxObject(_result); }
9621 return _resultobj;
9622 }
9623
9624 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
9625 static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
9626 PyObject * _resultobj;
9627 wxMenu * _arg0;
9628 wxWindow * _arg1;
9629 PyObject * _argo0 = 0;
9630 PyObject * _argo1 = 0;
9631 char *_kwnames[] = { "self","win", NULL };
9632
9633 self = self;
9634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1))
9635 return NULL;
9636 if (_argo0) {
9637 if (_argo0 == Py_None) { _arg0 = NULL; }
9638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
9640 return NULL;
9641 }
9642 }
9643 if (_argo1) {
9644 if (_argo1 == Py_None) { _arg1 = NULL; }
9645 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9646 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
9647 return NULL;
9648 }
9649 }
9650 {
9651 PyThreadState* __tstate = wxPyBeginAllowThreads();
9652 wxMenu_SetInvokingWindow(_arg0,_arg1);
9653
9654 wxPyEndAllowThreads(__tstate);
9655 if (PyErr_Occurred()) return NULL;
9656 } Py_INCREF(Py_None);
9657 _resultobj = Py_None;
9658 return _resultobj;
9659 }
9660
9661 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
9662 static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
9663 PyObject * _resultobj;
9664 wxWindow * _result;
9665 wxMenu * _arg0;
9666 PyObject * _argo0 = 0;
9667 char *_kwnames[] = { "self", NULL };
9668
9669 self = self;
9670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0))
9671 return NULL;
9672 if (_argo0) {
9673 if (_argo0 == Py_None) { _arg0 = NULL; }
9674 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9675 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
9676 return NULL;
9677 }
9678 }
9679 {
9680 PyThreadState* __tstate = wxPyBeginAllowThreads();
9681 _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0);
9682
9683 wxPyEndAllowThreads(__tstate);
9684 if (PyErr_Occurred()) return NULL;
9685 }{ _resultobj = wxPyMake_wxObject(_result); }
9686 return _resultobj;
9687 }
9688
9689 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
9690 static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9691 PyObject * _resultobj;
9692 long _result;
9693 wxMenu * _arg0;
9694 PyObject * _argo0 = 0;
9695 char *_kwnames[] = { "self", NULL };
9696
9697 self = self;
9698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0))
9699 return NULL;
9700 if (_argo0) {
9701 if (_argo0 == Py_None) { _arg0 = NULL; }
9702 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9703 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p.");
9704 return NULL;
9705 }
9706 }
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 _result = (long )wxMenu_GetStyle(_arg0);
9710
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) return NULL;
9713 } _resultobj = Py_BuildValue("l",_result);
9714 return _resultobj;
9715 }
9716
9717 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
9718 static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
9719 PyObject * _resultobj;
9720 bool _result;
9721 wxMenu * _arg0;
9722 PyObject * _argo0 = 0;
9723 char *_kwnames[] = { "self", NULL };
9724
9725 self = self;
9726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0))
9727 return NULL;
9728 if (_argo0) {
9729 if (_argo0 == Py_None) { _arg0 = NULL; }
9730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
9732 return NULL;
9733 }
9734 }
9735 {
9736 PyThreadState* __tstate = wxPyBeginAllowThreads();
9737 _result = (bool )wxMenu_IsAttached(_arg0);
9738
9739 wxPyEndAllowThreads(__tstate);
9740 if (PyErr_Occurred()) return NULL;
9741 } _resultobj = Py_BuildValue("i",_result);
9742 return _resultobj;
9743 }
9744
9745 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
9746 static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
9747 PyObject * _resultobj;
9748 wxMenu * _arg0;
9749 wxMenu * _arg1;
9750 PyObject * _argo0 = 0;
9751 PyObject * _argo1 = 0;
9752 char *_kwnames[] = { "self","parent", NULL };
9753
9754 self = self;
9755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1))
9756 return NULL;
9757 if (_argo0) {
9758 if (_argo0 == Py_None) { _arg0 = NULL; }
9759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
9761 return NULL;
9762 }
9763 }
9764 if (_argo1) {
9765 if (_argo1 == Py_None) { _arg1 = NULL; }
9766 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9767 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
9768 return NULL;
9769 }
9770 }
9771 {
9772 PyThreadState* __tstate = wxPyBeginAllowThreads();
9773 wxMenu_SetParent(_arg0,_arg1);
9774
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) return NULL;
9777 } Py_INCREF(Py_None);
9778 _resultobj = Py_None;
9779 return _resultobj;
9780 }
9781
9782 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
9783 static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
9784 PyObject * _resultobj;
9785 wxMenu * _result;
9786 wxMenu * _arg0;
9787 PyObject * _argo0 = 0;
9788 char *_kwnames[] = { "self", NULL };
9789
9790 self = self;
9791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0))
9792 return NULL;
9793 if (_argo0) {
9794 if (_argo0 == Py_None) { _arg0 = NULL; }
9795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
9797 return NULL;
9798 }
9799 }
9800 {
9801 PyThreadState* __tstate = wxPyBeginAllowThreads();
9802 _result = (wxMenu *)wxMenu_GetParent(_arg0);
9803
9804 wxPyEndAllowThreads(__tstate);
9805 if (PyErr_Occurred()) return NULL;
9806 }{ _resultobj = wxPyMake_wxObject(_result); }
9807 return _resultobj;
9808 }
9809
9810 static void *SwigwxMenuBarTowxWindow(void *ptr) {
9811 wxMenuBar *src;
9812 wxWindow *dest;
9813 src = (wxMenuBar *) ptr;
9814 dest = (wxWindow *) src;
9815 return (void *) dest;
9816 }
9817
9818 static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
9819 wxMenuBar *src;
9820 wxEvtHandler *dest;
9821 src = (wxMenuBar *) ptr;
9822 dest = (wxEvtHandler *) src;
9823 return (void *) dest;
9824 }
9825
9826 static void *SwigwxMenuBarTowxObject(void *ptr) {
9827 wxMenuBar *src;
9828 wxObject *dest;
9829 src = (wxMenuBar *) ptr;
9830 dest = (wxObject *) src;
9831 return (void *) dest;
9832 }
9833
9834 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
9835 static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9836 PyObject * _resultobj;
9837 wxMenuBar * _result;
9838 long _arg0 = (long ) 0;
9839 char *_kwnames[] = { "style", NULL };
9840 char _ptemp[128];
9841
9842 self = self;
9843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0))
9844 return NULL;
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 _result = (wxMenuBar *)new_wxMenuBar(_arg0);
9848
9849 wxPyEndAllowThreads(__tstate);
9850 if (PyErr_Occurred()) return NULL;
9851 } if (_result) {
9852 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
9853 _resultobj = Py_BuildValue("s",_ptemp);
9854 } else {
9855 Py_INCREF(Py_None);
9856 _resultobj = Py_None;
9857 }
9858 return _resultobj;
9859 }
9860
9861 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
9862 static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
9863 PyObject * _resultobj;
9864 bool _result;
9865 wxMenuBar * _arg0;
9866 wxMenu * _arg1;
9867 wxString * _arg2;
9868 PyObject * _argo0 = 0;
9869 PyObject * _argo1 = 0;
9870 PyObject * _obj2 = 0;
9871 char *_kwnames[] = { "self","menu","title", NULL };
9872
9873 self = self;
9874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
9875 return NULL;
9876 if (_argo0) {
9877 if (_argo0 == Py_None) { _arg0 = NULL; }
9878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
9880 return NULL;
9881 }
9882 }
9883 if (_argo1) {
9884 if (_argo1 == Py_None) { _arg1 = NULL; }
9885 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9886 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
9887 return NULL;
9888 }
9889 }
9890 {
9891 _arg2 = wxString_in_helper(_obj2);
9892 if (_arg2 == NULL)
9893 return NULL;
9894 }
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2);
9898
9899 wxPyEndAllowThreads(__tstate);
9900 if (PyErr_Occurred()) return NULL;
9901 } _resultobj = Py_BuildValue("i",_result);
9902 {
9903 if (_obj2)
9904 delete _arg2;
9905 }
9906 return _resultobj;
9907 }
9908
9909 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
9910 static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
9911 PyObject * _resultobj;
9912 bool _result;
9913 wxMenuBar * _arg0;
9914 size_t _arg1;
9915 wxMenu * _arg2;
9916 wxString * _arg3;
9917 PyObject * _argo0 = 0;
9918 PyObject * _argo2 = 0;
9919 PyObject * _obj3 = 0;
9920 char *_kwnames[] = { "self","pos","menu","title", NULL };
9921
9922 self = self;
9923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
9924 return NULL;
9925 if (_argo0) {
9926 if (_argo0 == Py_None) { _arg0 = NULL; }
9927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
9929 return NULL;
9930 }
9931 }
9932 if (_argo2) {
9933 if (_argo2 == Py_None) { _arg2 = NULL; }
9934 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
9935 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
9936 return NULL;
9937 }
9938 }
9939 {
9940 _arg3 = wxString_in_helper(_obj3);
9941 if (_arg3 == NULL)
9942 return NULL;
9943 }
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3);
9947
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) return NULL;
9950 } _resultobj = Py_BuildValue("i",_result);
9951 {
9952 if (_obj3)
9953 delete _arg3;
9954 }
9955 return _resultobj;
9956 }
9957
9958 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
9959 static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9960 PyObject * _resultobj;
9961 size_t _result;
9962 wxMenuBar * _arg0;
9963 PyObject * _argo0 = 0;
9964 char *_kwnames[] = { "self", NULL };
9965
9966 self = self;
9967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
9968 return NULL;
9969 if (_argo0) {
9970 if (_argo0 == Py_None) { _arg0 = NULL; }
9971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
9973 return NULL;
9974 }
9975 }
9976 {
9977 PyThreadState* __tstate = wxPyBeginAllowThreads();
9978 _result = (size_t )wxMenuBar_GetMenuCount(_arg0);
9979
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) return NULL;
9982 } _resultobj = Py_BuildValue("i",_result);
9983 return _resultobj;
9984 }
9985
9986 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
9987 static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9988 PyObject * _resultobj;
9989 wxMenu * _result;
9990 wxMenuBar * _arg0;
9991 size_t _arg1;
9992 PyObject * _argo0 = 0;
9993 char *_kwnames[] = { "self","pos", NULL };
9994
9995 self = self;
9996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
9997 return NULL;
9998 if (_argo0) {
9999 if (_argo0 == Py_None) { _arg0 = NULL; }
10000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
10002 return NULL;
10003 }
10004 }
10005 {
10006 PyThreadState* __tstate = wxPyBeginAllowThreads();
10007 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
10008
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) return NULL;
10011 }{ _resultobj = wxPyMake_wxObject(_result); }
10012 return _resultobj;
10013 }
10014
10015 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10016 static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10017 PyObject * _resultobj;
10018 wxMenu * _result;
10019 wxMenuBar * _arg0;
10020 size_t _arg1;
10021 wxMenu * _arg2;
10022 wxString * _arg3;
10023 PyObject * _argo0 = 0;
10024 PyObject * _argo2 = 0;
10025 PyObject * _obj3 = 0;
10026 char *_kwnames[] = { "self","pos","menu","title", NULL };
10027
10028 self = self;
10029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
10030 return NULL;
10031 if (_argo0) {
10032 if (_argo0 == Py_None) { _arg0 = NULL; }
10033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
10035 return NULL;
10036 }
10037 }
10038 if (_argo2) {
10039 if (_argo2 == Py_None) { _arg2 = NULL; }
10040 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
10041 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
10042 return NULL;
10043 }
10044 }
10045 {
10046 _arg3 = wxString_in_helper(_obj3);
10047 if (_arg3 == NULL)
10048 return NULL;
10049 }
10050 {
10051 PyThreadState* __tstate = wxPyBeginAllowThreads();
10052 _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3);
10053
10054 wxPyEndAllowThreads(__tstate);
10055 if (PyErr_Occurred()) return NULL;
10056 }{ _resultobj = wxPyMake_wxObject(_result); }
10057 {
10058 if (_obj3)
10059 delete _arg3;
10060 }
10061 return _resultobj;
10062 }
10063
10064 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10065 static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
10066 PyObject * _resultobj;
10067 wxMenu * _result;
10068 wxMenuBar * _arg0;
10069 size_t _arg1;
10070 PyObject * _argo0 = 0;
10071 char *_kwnames[] = { "self","pos", NULL };
10072
10073 self = self;
10074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1))
10075 return NULL;
10076 if (_argo0) {
10077 if (_argo0 == Py_None) { _arg0 = NULL; }
10078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
10080 return NULL;
10081 }
10082 }
10083 {
10084 PyThreadState* __tstate = wxPyBeginAllowThreads();
10085 _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1);
10086
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) return NULL;
10089 }{ _resultobj = wxPyMake_wxObject(_result); }
10090 return _resultobj;
10091 }
10092
10093 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
10094 static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10095 PyObject * _resultobj;
10096 wxMenuBar * _arg0;
10097 size_t _arg1;
10098 bool _arg2;
10099 PyObject * _argo0 = 0;
10100 int tempbool2;
10101 char *_kwnames[] = { "self","pos","enable", NULL };
10102
10103 self = self;
10104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
10105 return NULL;
10106 if (_argo0) {
10107 if (_argo0 == Py_None) { _arg0 = NULL; }
10108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
10110 return NULL;
10111 }
10112 }
10113 _arg2 = (bool ) tempbool2;
10114 {
10115 PyThreadState* __tstate = wxPyBeginAllowThreads();
10116 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
10117
10118 wxPyEndAllowThreads(__tstate);
10119 if (PyErr_Occurred()) return NULL;
10120 } Py_INCREF(Py_None);
10121 _resultobj = Py_None;
10122 return _resultobj;
10123 }
10124
10125 #define wxMenuBar_IsEnabledTop(_swigobj,_swigarg0) (_swigobj->IsEnabledTop(_swigarg0))
10126 static PyObject *_wrap_wxMenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10127 PyObject * _resultobj;
10128 bool _result;
10129 wxMenuBar * _arg0;
10130 size_t _arg1;
10131 PyObject * _argo0 = 0;
10132 char *_kwnames[] = { "self","pos", NULL };
10133
10134 self = self;
10135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabledTop",_kwnames,&_argo0,&_arg1))
10136 return NULL;
10137 if (_argo0) {
10138 if (_argo0 == Py_None) { _arg0 = NULL; }
10139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabledTop. Expected _wxMenuBar_p.");
10141 return NULL;
10142 }
10143 }
10144 {
10145 PyThreadState* __tstate = wxPyBeginAllowThreads();
10146 _result = (bool )wxMenuBar_IsEnabledTop(_arg0,_arg1);
10147
10148 wxPyEndAllowThreads(__tstate);
10149 if (PyErr_Occurred()) return NULL;
10150 } _resultobj = Py_BuildValue("i",_result);
10151 return _resultobj;
10152 }
10153
10154 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
10155 static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10156 PyObject * _resultobj;
10157 wxMenuBar * _arg0;
10158 size_t _arg1;
10159 wxString * _arg2;
10160 PyObject * _argo0 = 0;
10161 PyObject * _obj2 = 0;
10162 char *_kwnames[] = { "self","pos","label", NULL };
10163
10164 self = self;
10165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
10166 return NULL;
10167 if (_argo0) {
10168 if (_argo0 == Py_None) { _arg0 = NULL; }
10169 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10170 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
10171 return NULL;
10172 }
10173 }
10174 {
10175 _arg2 = wxString_in_helper(_obj2);
10176 if (_arg2 == NULL)
10177 return NULL;
10178 }
10179 {
10180 PyThreadState* __tstate = wxPyBeginAllowThreads();
10181 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
10182
10183 wxPyEndAllowThreads(__tstate);
10184 if (PyErr_Occurred()) return NULL;
10185 } Py_INCREF(Py_None);
10186 _resultobj = Py_None;
10187 {
10188 if (_obj2)
10189 delete _arg2;
10190 }
10191 return _resultobj;
10192 }
10193
10194 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
10195 static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
10196 PyObject * _resultobj;
10197 wxString * _result;
10198 wxMenuBar * _arg0;
10199 size_t _arg1;
10200 PyObject * _argo0 = 0;
10201 char *_kwnames[] = { "self","pos", NULL };
10202
10203 self = self;
10204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
10205 return NULL;
10206 if (_argo0) {
10207 if (_argo0 == Py_None) { _arg0 = NULL; }
10208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
10210 return NULL;
10211 }
10212 }
10213 {
10214 PyThreadState* __tstate = wxPyBeginAllowThreads();
10215 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
10216
10217 wxPyEndAllowThreads(__tstate);
10218 if (PyErr_Occurred()) return NULL;
10219 }{
10220 #if wxUSE_UNICODE
10221 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10222 #else
10223 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10224 #endif
10225 }
10226 {
10227 delete _result;
10228 }
10229 return _resultobj;
10230 }
10231
10232 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
10233 static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10234 PyObject * _resultobj;
10235 int _result;
10236 wxMenuBar * _arg0;
10237 wxString * _arg1;
10238 PyObject * _argo0 = 0;
10239 PyObject * _obj1 = 0;
10240 char *_kwnames[] = { "self","title", NULL };
10241
10242 self = self;
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1))
10244 return NULL;
10245 if (_argo0) {
10246 if (_argo0 == Py_None) { _arg0 = NULL; }
10247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
10249 return NULL;
10250 }
10251 }
10252 {
10253 _arg1 = wxString_in_helper(_obj1);
10254 if (_arg1 == NULL)
10255 return NULL;
10256 }
10257 {
10258 PyThreadState* __tstate = wxPyBeginAllowThreads();
10259 _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1);
10260
10261 wxPyEndAllowThreads(__tstate);
10262 if (PyErr_Occurred()) return NULL;
10263 } _resultobj = Py_BuildValue("i",_result);
10264 {
10265 if (_obj1)
10266 delete _arg1;
10267 }
10268 return _resultobj;
10269 }
10270
10271 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
10272 static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
10273 PyObject * _resultobj;
10274 int _result;
10275 wxMenuBar * _arg0;
10276 wxString * _arg1;
10277 wxString * _arg2;
10278 PyObject * _argo0 = 0;
10279 PyObject * _obj1 = 0;
10280 PyObject * _obj2 = 0;
10281 char *_kwnames[] = { "self","menuString","itemString", NULL };
10282
10283 self = self;
10284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
10285 return NULL;
10286 if (_argo0) {
10287 if (_argo0 == Py_None) { _arg0 = NULL; }
10288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
10290 return NULL;
10291 }
10292 }
10293 {
10294 _arg1 = wxString_in_helper(_obj1);
10295 if (_arg1 == NULL)
10296 return NULL;
10297 }
10298 {
10299 _arg2 = wxString_in_helper(_obj2);
10300 if (_arg2 == NULL)
10301 return NULL;
10302 }
10303 {
10304 PyThreadState* __tstate = wxPyBeginAllowThreads();
10305 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
10306
10307 wxPyEndAllowThreads(__tstate);
10308 if (PyErr_Occurred()) return NULL;
10309 } _resultobj = Py_BuildValue("i",_result);
10310 {
10311 if (_obj1)
10312 delete _arg1;
10313 }
10314 {
10315 if (_obj2)
10316 delete _arg2;
10317 }
10318 return _resultobj;
10319 }
10320
10321 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
10322 static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
10323 PyObject * _resultobj;
10324 wxMenuItem * _result;
10325 wxMenuBar * _arg0;
10326 int _arg1;
10327 PyObject * _argo0 = 0;
10328 char *_kwnames[] = { "self","id", NULL };
10329
10330 self = self;
10331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1))
10332 return NULL;
10333 if (_argo0) {
10334 if (_argo0 == Py_None) { _arg0 = NULL; }
10335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
10337 return NULL;
10338 }
10339 }
10340 {
10341 PyThreadState* __tstate = wxPyBeginAllowThreads();
10342 _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1);
10343
10344 wxPyEndAllowThreads(__tstate);
10345 if (PyErr_Occurred()) return NULL;
10346 }{ _resultobj = wxPyMake_wxObject(_result); }
10347 return _resultobj;
10348 }
10349
10350 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
10351 static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
10352 PyObject * _resultobj;
10353 wxMenuBar * _arg0;
10354 int _arg1;
10355 bool _arg2;
10356 PyObject * _argo0 = 0;
10357 int tempbool2;
10358 char *_kwnames[] = { "self","id","enable", NULL };
10359
10360 self = self;
10361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
10362 return NULL;
10363 if (_argo0) {
10364 if (_argo0 == Py_None) { _arg0 = NULL; }
10365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
10367 return NULL;
10368 }
10369 }
10370 _arg2 = (bool ) tempbool2;
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 wxMenuBar_Enable(_arg0,_arg1,_arg2);
10374
10375 wxPyEndAllowThreads(__tstate);
10376 if (PyErr_Occurred()) return NULL;
10377 } Py_INCREF(Py_None);
10378 _resultobj = Py_None;
10379 return _resultobj;
10380 }
10381
10382 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
10383 static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
10384 PyObject * _resultobj;
10385 wxMenuBar * _arg0;
10386 int _arg1;
10387 bool _arg2;
10388 PyObject * _argo0 = 0;
10389 int tempbool2;
10390 char *_kwnames[] = { "self","id","check", NULL };
10391
10392 self = self;
10393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
10394 return NULL;
10395 if (_argo0) {
10396 if (_argo0 == Py_None) { _arg0 = NULL; }
10397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
10399 return NULL;
10400 }
10401 }
10402 _arg2 = (bool ) tempbool2;
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 wxMenuBar_Check(_arg0,_arg1,_arg2);
10406
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) return NULL;
10409 } Py_INCREF(Py_None);
10410 _resultobj = Py_None;
10411 return _resultobj;
10412 }
10413
10414 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
10415 static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
10416 PyObject * _resultobj;
10417 bool _result;
10418 wxMenuBar * _arg0;
10419 int _arg1;
10420 PyObject * _argo0 = 0;
10421 char *_kwnames[] = { "self","id", NULL };
10422
10423 self = self;
10424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1))
10425 return NULL;
10426 if (_argo0) {
10427 if (_argo0 == Py_None) { _arg0 = NULL; }
10428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
10430 return NULL;
10431 }
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1);
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) return NULL;
10439 } _resultobj = Py_BuildValue("i",_result);
10440 return _resultobj;
10441 }
10442
10443 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
10444 static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
10445 PyObject * _resultobj;
10446 bool _result;
10447 wxMenuBar * _arg0;
10448 int _arg1;
10449 PyObject * _argo0 = 0;
10450 char *_kwnames[] = { "self","id", NULL };
10451
10452 self = self;
10453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1))
10454 return NULL;
10455 if (_argo0) {
10456 if (_argo0 == Py_None) { _arg0 = NULL; }
10457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
10459 return NULL;
10460 }
10461 }
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1);
10465
10466 wxPyEndAllowThreads(__tstate);
10467 if (PyErr_Occurred()) return NULL;
10468 } _resultobj = Py_BuildValue("i",_result);
10469 return _resultobj;
10470 }
10471
10472 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
10473 static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10474 PyObject * _resultobj;
10475 wxMenuBar * _arg0;
10476 int _arg1;
10477 wxString * _arg2;
10478 PyObject * _argo0 = 0;
10479 PyObject * _obj2 = 0;
10480 char *_kwnames[] = { "self","id","label", NULL };
10481
10482 self = self;
10483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
10484 return NULL;
10485 if (_argo0) {
10486 if (_argo0 == Py_None) { _arg0 = NULL; }
10487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
10489 return NULL;
10490 }
10491 }
10492 {
10493 _arg2 = wxString_in_helper(_obj2);
10494 if (_arg2 == NULL)
10495 return NULL;
10496 }
10497 {
10498 PyThreadState* __tstate = wxPyBeginAllowThreads();
10499 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
10500
10501 wxPyEndAllowThreads(__tstate);
10502 if (PyErr_Occurred()) return NULL;
10503 } Py_INCREF(Py_None);
10504 _resultobj = Py_None;
10505 {
10506 if (_obj2)
10507 delete _arg2;
10508 }
10509 return _resultobj;
10510 }
10511
10512 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
10513 static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10514 PyObject * _resultobj;
10515 wxString * _result;
10516 wxMenuBar * _arg0;
10517 int _arg1;
10518 PyObject * _argo0 = 0;
10519 char *_kwnames[] = { "self","id", NULL };
10520
10521 self = self;
10522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
10523 return NULL;
10524 if (_argo0) {
10525 if (_argo0 == Py_None) { _arg0 = NULL; }
10526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
10528 return NULL;
10529 }
10530 }
10531 {
10532 PyThreadState* __tstate = wxPyBeginAllowThreads();
10533 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
10534
10535 wxPyEndAllowThreads(__tstate);
10536 if (PyErr_Occurred()) return NULL;
10537 }{
10538 #if wxUSE_UNICODE
10539 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10540 #else
10541 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10542 #endif
10543 }
10544 {
10545 delete _result;
10546 }
10547 return _resultobj;
10548 }
10549
10550 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
10551 static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
10552 PyObject * _resultobj;
10553 wxMenuBar * _arg0;
10554 int _arg1;
10555 wxString * _arg2;
10556 PyObject * _argo0 = 0;
10557 PyObject * _obj2 = 0;
10558 char *_kwnames[] = { "self","id","helpString", NULL };
10559
10560 self = self;
10561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
10562 return NULL;
10563 if (_argo0) {
10564 if (_argo0 == Py_None) { _arg0 = NULL; }
10565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
10567 return NULL;
10568 }
10569 }
10570 {
10571 _arg2 = wxString_in_helper(_obj2);
10572 if (_arg2 == NULL)
10573 return NULL;
10574 }
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
10578
10579 wxPyEndAllowThreads(__tstate);
10580 if (PyErr_Occurred()) return NULL;
10581 } Py_INCREF(Py_None);
10582 _resultobj = Py_None;
10583 {
10584 if (_obj2)
10585 delete _arg2;
10586 }
10587 return _resultobj;
10588 }
10589
10590 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
10591 static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
10592 PyObject * _resultobj;
10593 wxString * _result;
10594 wxMenuBar * _arg0;
10595 int _arg1;
10596 PyObject * _argo0 = 0;
10597 char *_kwnames[] = { "self","id", NULL };
10598
10599 self = self;
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
10601 return NULL;
10602 if (_argo0) {
10603 if (_argo0 == Py_None) { _arg0 = NULL; }
10604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
10606 return NULL;
10607 }
10608 }
10609 {
10610 PyThreadState* __tstate = wxPyBeginAllowThreads();
10611 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
10612
10613 wxPyEndAllowThreads(__tstate);
10614 if (PyErr_Occurred()) return NULL;
10615 }{
10616 #if wxUSE_UNICODE
10617 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10618 #else
10619 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10620 #endif
10621 }
10622 {
10623 delete _result;
10624 }
10625 return _resultobj;
10626 }
10627
10628 static void *SwigwxMenuItemTowxObject(void *ptr) {
10629 wxMenuItem *src;
10630 wxObject *dest;
10631 src = (wxMenuItem *) ptr;
10632 dest = (wxObject *) src;
10633 return (void *) dest;
10634 }
10635
10636 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10637 static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
10638 PyObject * _resultobj;
10639 wxMenuItem * _result;
10640 wxMenu * _arg0 = (wxMenu *) NULL;
10641 int _arg1 = (int ) wxID_SEPARATOR;
10642 wxString * _arg2 = (wxString *) &wxPyEmptyString;
10643 wxString * _arg3 = (wxString *) &wxPyEmptyString;
10644 wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL;
10645 wxMenu * _arg5 = (wxMenu *) NULL;
10646 PyObject * _argo0 = 0;
10647 PyObject * _obj2 = 0;
10648 PyObject * _obj3 = 0;
10649 PyObject * _argo5 = 0;
10650 char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL };
10651 char _ptemp[128];
10652
10653 self = self;
10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5))
10655 return NULL;
10656 if (_argo0) {
10657 if (_argo0 == Py_None) { _arg0 = NULL; }
10658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
10659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
10660 return NULL;
10661 }
10662 }
10663 if (_obj2)
10664 {
10665 _arg2 = wxString_in_helper(_obj2);
10666 if (_arg2 == NULL)
10667 return NULL;
10668 }
10669 if (_obj3)
10670 {
10671 _arg3 = wxString_in_helper(_obj3);
10672 if (_arg3 == NULL)
10673 return NULL;
10674 }
10675 if (_argo5) {
10676 if (_argo5 == Py_None) { _arg5 = NULL; }
10677 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
10678 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
10679 return NULL;
10680 }
10681 }
10682 {
10683 PyThreadState* __tstate = wxPyBeginAllowThreads();
10684 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
10685
10686 wxPyEndAllowThreads(__tstate);
10687 if (PyErr_Occurred()) return NULL;
10688 } if (_result) {
10689 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
10690 _resultobj = Py_BuildValue("s",_ptemp);
10691 } else {
10692 Py_INCREF(Py_None);
10693 _resultobj = Py_None;
10694 }
10695 {
10696 if (_obj2)
10697 delete _arg2;
10698 }
10699 {
10700 if (_obj3)
10701 delete _arg3;
10702 }
10703 return _resultobj;
10704 }
10705
10706 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
10707 static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10708 PyObject * _resultobj;
10709 wxMenu * _result;
10710 wxMenuItem * _arg0;
10711 PyObject * _argo0 = 0;
10712 char *_kwnames[] = { "self", NULL };
10713
10714 self = self;
10715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0))
10716 return NULL;
10717 if (_argo0) {
10718 if (_argo0 == Py_None) { _arg0 = NULL; }
10719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
10721 return NULL;
10722 }
10723 }
10724 {
10725 PyThreadState* __tstate = wxPyBeginAllowThreads();
10726 _result = (wxMenu *)wxMenuItem_GetMenu(_arg0);
10727
10728 wxPyEndAllowThreads(__tstate);
10729 if (PyErr_Occurred()) return NULL;
10730 }{ _resultobj = wxPyMake_wxObject(_result); }
10731 return _resultobj;
10732 }
10733
10734 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
10735 static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
10736 PyObject * _resultobj;
10737 wxMenuItem * _arg0;
10738 int _arg1;
10739 PyObject * _argo0 = 0;
10740 char *_kwnames[] = { "self","id", NULL };
10741
10742 self = self;
10743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1))
10744 return NULL;
10745 if (_argo0) {
10746 if (_argo0 == Py_None) { _arg0 = NULL; }
10747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
10749 return NULL;
10750 }
10751 }
10752 {
10753 PyThreadState* __tstate = wxPyBeginAllowThreads();
10754 wxMenuItem_SetId(_arg0,_arg1);
10755
10756 wxPyEndAllowThreads(__tstate);
10757 if (PyErr_Occurred()) return NULL;
10758 } Py_INCREF(Py_None);
10759 _resultobj = Py_None;
10760 return _resultobj;
10761 }
10762
10763 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
10764 static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
10765 PyObject * _resultobj;
10766 int _result;
10767 wxMenuItem * _arg0;
10768 PyObject * _argo0 = 0;
10769 char *_kwnames[] = { "self", NULL };
10770
10771 self = self;
10772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
10773 return NULL;
10774 if (_argo0) {
10775 if (_argo0 == Py_None) { _arg0 = NULL; }
10776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
10778 return NULL;
10779 }
10780 }
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 _result = (int )wxMenuItem_GetId(_arg0);
10784
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) return NULL;
10787 } _resultobj = Py_BuildValue("i",_result);
10788 return _resultobj;
10789 }
10790
10791 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
10792 static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
10793 PyObject * _resultobj;
10794 bool _result;
10795 wxMenuItem * _arg0;
10796 PyObject * _argo0 = 0;
10797 char *_kwnames[] = { "self", NULL };
10798
10799 self = self;
10800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
10801 return NULL;
10802 if (_argo0) {
10803 if (_argo0 == Py_None) { _arg0 = NULL; }
10804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
10806 return NULL;
10807 }
10808 }
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 _result = (bool )wxMenuItem_IsSeparator(_arg0);
10812
10813 wxPyEndAllowThreads(__tstate);
10814 if (PyErr_Occurred()) return NULL;
10815 } _resultobj = Py_BuildValue("i",_result);
10816 return _resultobj;
10817 }
10818
10819 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
10820 static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
10821 PyObject * _resultobj;
10822 wxMenuItem * _arg0;
10823 wxString * _arg1;
10824 PyObject * _argo0 = 0;
10825 PyObject * _obj1 = 0;
10826 char *_kwnames[] = { "self","str", NULL };
10827
10828 self = self;
10829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1))
10830 return NULL;
10831 if (_argo0) {
10832 if (_argo0 == Py_None) { _arg0 = NULL; }
10833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
10835 return NULL;
10836 }
10837 }
10838 {
10839 _arg1 = wxString_in_helper(_obj1);
10840 if (_arg1 == NULL)
10841 return NULL;
10842 }
10843 {
10844 PyThreadState* __tstate = wxPyBeginAllowThreads();
10845 wxMenuItem_SetText(_arg0,*_arg1);
10846
10847 wxPyEndAllowThreads(__tstate);
10848 if (PyErr_Occurred()) return NULL;
10849 } Py_INCREF(Py_None);
10850 _resultobj = Py_None;
10851 {
10852 if (_obj1)
10853 delete _arg1;
10854 }
10855 return _resultobj;
10856 }
10857
10858 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
10859 static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10860 PyObject * _resultobj;
10861 wxString * _result;
10862 wxMenuItem * _arg0;
10863 PyObject * _argo0 = 0;
10864 char *_kwnames[] = { "self", NULL };
10865
10866 self = self;
10867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0))
10868 return NULL;
10869 if (_argo0) {
10870 if (_argo0 == Py_None) { _arg0 = NULL; }
10871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
10873 return NULL;
10874 }
10875 }
10876 {
10877 PyThreadState* __tstate = wxPyBeginAllowThreads();
10878 _result = new wxString (wxMenuItem_GetLabel(_arg0));
10879
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) return NULL;
10882 }{
10883 #if wxUSE_UNICODE
10884 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10885 #else
10886 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10887 #endif
10888 }
10889 {
10890 delete _result;
10891 }
10892 return _resultobj;
10893 }
10894
10895 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
10896 static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
10897 PyObject * _resultobj;
10898 wxString * _result;
10899 wxMenuItem * _arg0;
10900 PyObject * _argo0 = 0;
10901 char *_kwnames[] = { "self", NULL };
10902
10903 self = self;
10904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0))
10905 return NULL;
10906 if (_argo0) {
10907 if (_argo0 == Py_None) { _arg0 = NULL; }
10908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
10910 return NULL;
10911 }
10912 }
10913 {
10914 PyThreadState* __tstate = wxPyBeginAllowThreads();
10915 const wxString & _result_ref = wxMenuItem_GetText(_arg0);
10916 _result = (wxString *) &_result_ref;
10917
10918 wxPyEndAllowThreads(__tstate);
10919 if (PyErr_Occurred()) return NULL;
10920 }{
10921 #if wxUSE_UNICODE
10922 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10923 #else
10924 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10925 #endif
10926 }
10927 return _resultobj;
10928 }
10929
10930 #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind())
10931 static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
10932 PyObject * _resultobj;
10933 wxItemKind _result;
10934 wxMenuItem * _arg0;
10935 PyObject * _argo0 = 0;
10936 char *_kwnames[] = { "self", NULL };
10937
10938 self = self;
10939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0))
10940 return NULL;
10941 if (_argo0) {
10942 if (_argo0 == Py_None) { _arg0 = NULL; }
10943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p.");
10945 return NULL;
10946 }
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 _result = (wxItemKind )wxMenuItem_GetKind(_arg0);
10951
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) return NULL;
10954 } _resultobj = Py_BuildValue("i",_result);
10955 return _resultobj;
10956 }
10957
10958 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
10959 static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
10960 PyObject * _resultobj;
10961 wxMenuItem * _arg0;
10962 bool _arg1;
10963 PyObject * _argo0 = 0;
10964 int tempbool1;
10965 char *_kwnames[] = { "self","checkable", NULL };
10966
10967 self = self;
10968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1))
10969 return NULL;
10970 if (_argo0) {
10971 if (_argo0 == Py_None) { _arg0 = NULL; }
10972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
10974 return NULL;
10975 }
10976 }
10977 _arg1 = (bool ) tempbool1;
10978 {
10979 PyThreadState* __tstate = wxPyBeginAllowThreads();
10980 wxMenuItem_SetCheckable(_arg0,_arg1);
10981
10982 wxPyEndAllowThreads(__tstate);
10983 if (PyErr_Occurred()) return NULL;
10984 } Py_INCREF(Py_None);
10985 _resultobj = Py_None;
10986 return _resultobj;
10987 }
10988
10989 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
10990 static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
10991 PyObject * _resultobj;
10992 bool _result;
10993 wxMenuItem * _arg0;
10994 PyObject * _argo0 = 0;
10995 char *_kwnames[] = { "self", NULL };
10996
10997 self = self;
10998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0))
10999 return NULL;
11000 if (_argo0) {
11001 if (_argo0 == Py_None) { _arg0 = NULL; }
11002 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11003 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
11004 return NULL;
11005 }
11006 }
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 _result = (bool )wxMenuItem_IsCheckable(_arg0);
11010
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) return NULL;
11013 } _resultobj = Py_BuildValue("i",_result);
11014 return _resultobj;
11015 }
11016
11017 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
11018 static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
11019 PyObject * _resultobj;
11020 bool _result;
11021 wxMenuItem * _arg0;
11022 PyObject * _argo0 = 0;
11023 char *_kwnames[] = { "self", NULL };
11024
11025 self = self;
11026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0))
11027 return NULL;
11028 if (_argo0) {
11029 if (_argo0 == Py_None) { _arg0 = NULL; }
11030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
11032 return NULL;
11033 }
11034 }
11035 {
11036 PyThreadState* __tstate = wxPyBeginAllowThreads();
11037 _result = (bool )wxMenuItem_IsSubMenu(_arg0);
11038
11039 wxPyEndAllowThreads(__tstate);
11040 if (PyErr_Occurred()) return NULL;
11041 } _resultobj = Py_BuildValue("i",_result);
11042 return _resultobj;
11043 }
11044
11045 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
11046 static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
11047 PyObject * _resultobj;
11048 wxMenuItem * _arg0;
11049 wxMenu * _arg1;
11050 PyObject * _argo0 = 0;
11051 PyObject * _argo1 = 0;
11052 char *_kwnames[] = { "self","menu", NULL };
11053
11054 self = self;
11055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1))
11056 return NULL;
11057 if (_argo0) {
11058 if (_argo0 == Py_None) { _arg0 = NULL; }
11059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
11061 return NULL;
11062 }
11063 }
11064 if (_argo1) {
11065 if (_argo1 == Py_None) { _arg1 = NULL; }
11066 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
11067 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
11068 return NULL;
11069 }
11070 }
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 wxMenuItem_SetSubMenu(_arg0,_arg1);
11074
11075 wxPyEndAllowThreads(__tstate);
11076 if (PyErr_Occurred()) return NULL;
11077 } Py_INCREF(Py_None);
11078 _resultobj = Py_None;
11079 return _resultobj;
11080 }
11081
11082 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
11083 static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
11084 PyObject * _resultobj;
11085 wxMenu * _result;
11086 wxMenuItem * _arg0;
11087 PyObject * _argo0 = 0;
11088 char *_kwnames[] = { "self", NULL };
11089
11090 self = self;
11091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
11092 return NULL;
11093 if (_argo0) {
11094 if (_argo0 == Py_None) { _arg0 = NULL; }
11095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
11097 return NULL;
11098 }
11099 }
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
11103
11104 wxPyEndAllowThreads(__tstate);
11105 if (PyErr_Occurred()) return NULL;
11106 }{ _resultobj = wxPyMake_wxObject(_result); }
11107 return _resultobj;
11108 }
11109
11110 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
11111 static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
11112 PyObject * _resultobj;
11113 wxMenuItem * _arg0;
11114 bool _arg1 = (bool ) TRUE;
11115 PyObject * _argo0 = 0;
11116 int tempbool1 = (int) TRUE;
11117 char *_kwnames[] = { "self","enable", NULL };
11118
11119 self = self;
11120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
11121 return NULL;
11122 if (_argo0) {
11123 if (_argo0 == Py_None) { _arg0 = NULL; }
11124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
11126 return NULL;
11127 }
11128 }
11129 _arg1 = (bool ) tempbool1;
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 wxMenuItem_Enable(_arg0,_arg1);
11133
11134 wxPyEndAllowThreads(__tstate);
11135 if (PyErr_Occurred()) return NULL;
11136 } Py_INCREF(Py_None);
11137 _resultobj = Py_None;
11138 return _resultobj;
11139 }
11140
11141 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
11142 static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11143 PyObject * _resultobj;
11144 bool _result;
11145 wxMenuItem * _arg0;
11146 PyObject * _argo0 = 0;
11147 char *_kwnames[] = { "self", NULL };
11148
11149 self = self;
11150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
11151 return NULL;
11152 if (_argo0) {
11153 if (_argo0 == Py_None) { _arg0 = NULL; }
11154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
11156 return NULL;
11157 }
11158 }
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 _result = (bool )wxMenuItem_IsEnabled(_arg0);
11162
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) return NULL;
11165 } _resultobj = Py_BuildValue("i",_result);
11166 return _resultobj;
11167 }
11168
11169 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
11170 static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
11171 PyObject * _resultobj;
11172 wxMenuItem * _arg0;
11173 bool _arg1 = (bool ) TRUE;
11174 PyObject * _argo0 = 0;
11175 int tempbool1 = (int) TRUE;
11176 char *_kwnames[] = { "self","check", NULL };
11177
11178 self = self;
11179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
11180 return NULL;
11181 if (_argo0) {
11182 if (_argo0 == Py_None) { _arg0 = NULL; }
11183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
11185 return NULL;
11186 }
11187 }
11188 _arg1 = (bool ) tempbool1;
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 wxMenuItem_Check(_arg0,_arg1);
11192
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) return NULL;
11195 } Py_INCREF(Py_None);
11196 _resultobj = Py_None;
11197 return _resultobj;
11198 }
11199
11200 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
11201 static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
11202 PyObject * _resultobj;
11203 bool _result;
11204 wxMenuItem * _arg0;
11205 PyObject * _argo0 = 0;
11206 char *_kwnames[] = { "self", NULL };
11207
11208 self = self;
11209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
11210 return NULL;
11211 if (_argo0) {
11212 if (_argo0 == Py_None) { _arg0 = NULL; }
11213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
11215 return NULL;
11216 }
11217 }
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 _result = (bool )wxMenuItem_IsChecked(_arg0);
11221
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) return NULL;
11224 } _resultobj = Py_BuildValue("i",_result);
11225 return _resultobj;
11226 }
11227
11228 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
11229 static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
11230 PyObject * _resultobj;
11231 wxMenuItem * _arg0;
11232 PyObject * _argo0 = 0;
11233 char *_kwnames[] = { "self", NULL };
11234
11235 self = self;
11236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0))
11237 return NULL;
11238 if (_argo0) {
11239 if (_argo0 == Py_None) { _arg0 = NULL; }
11240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
11242 return NULL;
11243 }
11244 }
11245 {
11246 PyThreadState* __tstate = wxPyBeginAllowThreads();
11247 wxMenuItem_Toggle(_arg0);
11248
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) return NULL;
11251 } Py_INCREF(Py_None);
11252 _resultobj = Py_None;
11253 return _resultobj;
11254 }
11255
11256 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
11257 static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
11258 PyObject * _resultobj;
11259 wxMenuItem * _arg0;
11260 wxString * _arg1;
11261 PyObject * _argo0 = 0;
11262 PyObject * _obj1 = 0;
11263 char *_kwnames[] = { "self","str", NULL };
11264
11265 self = self;
11266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
11267 return NULL;
11268 if (_argo0) {
11269 if (_argo0 == Py_None) { _arg0 = NULL; }
11270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
11272 return NULL;
11273 }
11274 }
11275 {
11276 _arg1 = wxString_in_helper(_obj1);
11277 if (_arg1 == NULL)
11278 return NULL;
11279 }
11280 {
11281 PyThreadState* __tstate = wxPyBeginAllowThreads();
11282 wxMenuItem_SetHelp(_arg0,*_arg1);
11283
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) return NULL;
11286 } Py_INCREF(Py_None);
11287 _resultobj = Py_None;
11288 {
11289 if (_obj1)
11290 delete _arg1;
11291 }
11292 return _resultobj;
11293 }
11294
11295 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
11296 static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
11297 PyObject * _resultobj;
11298 wxString * _result;
11299 wxMenuItem * _arg0;
11300 PyObject * _argo0 = 0;
11301 char *_kwnames[] = { "self", NULL };
11302
11303 self = self;
11304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
11305 return NULL;
11306 if (_argo0) {
11307 if (_argo0 == Py_None) { _arg0 = NULL; }
11308 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11309 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
11310 return NULL;
11311 }
11312 }
11313 {
11314 PyThreadState* __tstate = wxPyBeginAllowThreads();
11315 const wxString & _result_ref = wxMenuItem_GetHelp(_arg0);
11316 _result = (wxString *) &_result_ref;
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) return NULL;
11320 }{
11321 #if wxUSE_UNICODE
11322 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
11323 #else
11324 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
11325 #endif
11326 }
11327 return _resultobj;
11328 }
11329
11330 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
11331 static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
11332 PyObject * _resultobj;
11333 wxAcceleratorEntry * _result;
11334 wxMenuItem * _arg0;
11335 PyObject * _argo0 = 0;
11336 char *_kwnames[] = { "self", NULL };
11337 char _ptemp[128];
11338
11339 self = self;
11340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0))
11341 return NULL;
11342 if (_argo0) {
11343 if (_argo0 == Py_None) { _arg0 = NULL; }
11344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
11346 return NULL;
11347 }
11348 }
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
11351 _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0);
11352
11353 wxPyEndAllowThreads(__tstate);
11354 if (PyErr_Occurred()) return NULL;
11355 } if (_result) {
11356 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
11357 _resultobj = Py_BuildValue("s",_ptemp);
11358 } else {
11359 Py_INCREF(Py_None);
11360 _resultobj = Py_None;
11361 }
11362 return _resultobj;
11363 }
11364
11365 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
11366 static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
11367 PyObject * _resultobj;
11368 wxMenuItem * _arg0;
11369 wxAcceleratorEntry * _arg1;
11370 PyObject * _argo0 = 0;
11371 PyObject * _argo1 = 0;
11372 char *_kwnames[] = { "self","accel", NULL };
11373
11374 self = self;
11375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1))
11376 return NULL;
11377 if (_argo0) {
11378 if (_argo0 == Py_None) { _arg0 = NULL; }
11379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
11381 return NULL;
11382 }
11383 }
11384 if (_argo1) {
11385 if (_argo1 == Py_None) { _arg1 = NULL; }
11386 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) {
11387 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
11388 return NULL;
11389 }
11390 }
11391 {
11392 PyThreadState* __tstate = wxPyBeginAllowThreads();
11393 wxMenuItem_SetAccel(_arg0,_arg1);
11394
11395 wxPyEndAllowThreads(__tstate);
11396 if (PyErr_Occurred()) return NULL;
11397 } Py_INCREF(Py_None);
11398 _resultobj = Py_None;
11399 return _resultobj;
11400 }
11401
11402 static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
11403 PyObject * _resultobj;
11404 wxString * _result;
11405 wxString * _arg0;
11406 PyObject * _obj0 = 0;
11407 char *_kwnames[] = { "text", NULL };
11408
11409 self = self;
11410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0))
11411 return NULL;
11412 {
11413 _arg0 = wxString_in_helper(_obj0);
11414 if (_arg0 == NULL)
11415 return NULL;
11416 }
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0));
11420
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) return NULL;
11423 }{
11424 #if wxUSE_UNICODE
11425 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
11426 #else
11427 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
11428 #endif
11429 }
11430 {
11431 if (_obj0)
11432 delete _arg0;
11433 }
11434 {
11435 delete _result;
11436 }
11437 return _resultobj;
11438 }
11439
11440 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
11441 static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11442 PyObject * _resultobj;
11443 wxMenuItem * _arg0;
11444 wxFont * _arg1;
11445 PyObject * _argo0 = 0;
11446 PyObject * _argo1 = 0;
11447 char *_kwnames[] = { "self","font", NULL };
11448
11449 self = self;
11450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1))
11451 return NULL;
11452 if (_argo0) {
11453 if (_argo0 == Py_None) { _arg0 = NULL; }
11454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
11456 return NULL;
11457 }
11458 }
11459 if (_argo1) {
11460 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
11461 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
11462 return NULL;
11463 }
11464 }
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 wxMenuItem_SetFont(_arg0,*_arg1);
11468
11469 wxPyEndAllowThreads(__tstate);
11470 if (PyErr_Occurred()) return NULL;
11471 } Py_INCREF(Py_None);
11472 _resultobj = Py_None;
11473 return _resultobj;
11474 }
11475
11476 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
11477 static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11478 PyObject * _resultobj;
11479 wxFont * _result;
11480 wxMenuItem * _arg0;
11481 PyObject * _argo0 = 0;
11482 char *_kwnames[] = { "self", NULL };
11483 char _ptemp[128];
11484
11485 self = self;
11486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0))
11487 return NULL;
11488 if (_argo0) {
11489 if (_argo0 == Py_None) { _arg0 = NULL; }
11490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
11492 return NULL;
11493 }
11494 }
11495 {
11496 PyThreadState* __tstate = wxPyBeginAllowThreads();
11497 _result = new wxFont (wxMenuItem_GetFont(_arg0));
11498
11499 wxPyEndAllowThreads(__tstate);
11500 if (PyErr_Occurred()) return NULL;
11501 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
11502 _resultobj = Py_BuildValue("s",_ptemp);
11503 return _resultobj;
11504 }
11505
11506 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
11507 static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11508 PyObject * _resultobj;
11509 wxMenuItem * _arg0;
11510 wxColour * _arg1;
11511 PyObject * _argo0 = 0;
11512 wxColour temp;
11513 PyObject * _obj1 = 0;
11514 char *_kwnames[] = { "self","colText", NULL };
11515
11516 self = self;
11517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1))
11518 return NULL;
11519 if (_argo0) {
11520 if (_argo0 == Py_None) { _arg0 = NULL; }
11521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
11523 return NULL;
11524 }
11525 }
11526 {
11527 _arg1 = &temp;
11528 if (! wxColour_helper(_obj1, &_arg1))
11529 return NULL;
11530 }
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 wxMenuItem_SetTextColour(_arg0,*_arg1);
11534
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) return NULL;
11537 } Py_INCREF(Py_None);
11538 _resultobj = Py_None;
11539 return _resultobj;
11540 }
11541
11542 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
11543 static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11544 PyObject * _resultobj;
11545 wxColour * _result;
11546 wxMenuItem * _arg0;
11547 PyObject * _argo0 = 0;
11548 char *_kwnames[] = { "self", NULL };
11549 char _ptemp[128];
11550
11551 self = self;
11552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0))
11553 return NULL;
11554 if (_argo0) {
11555 if (_argo0 == Py_None) { _arg0 = NULL; }
11556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
11558 return NULL;
11559 }
11560 }
11561 {
11562 PyThreadState* __tstate = wxPyBeginAllowThreads();
11563 _result = new wxColour (wxMenuItem_GetTextColour(_arg0));
11564
11565 wxPyEndAllowThreads(__tstate);
11566 if (PyErr_Occurred()) return NULL;
11567 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
11568 _resultobj = Py_BuildValue("s",_ptemp);
11569 return _resultobj;
11570 }
11571
11572 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
11573 static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11574 PyObject * _resultobj;
11575 wxMenuItem * _arg0;
11576 wxColour * _arg1;
11577 PyObject * _argo0 = 0;
11578 wxColour temp;
11579 PyObject * _obj1 = 0;
11580 char *_kwnames[] = { "self","colBack", NULL };
11581
11582 self = self;
11583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
11584 return NULL;
11585 if (_argo0) {
11586 if (_argo0 == Py_None) { _arg0 = NULL; }
11587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
11589 return NULL;
11590 }
11591 }
11592 {
11593 _arg1 = &temp;
11594 if (! wxColour_helper(_obj1, &_arg1))
11595 return NULL;
11596 }
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 wxMenuItem_SetBackgroundColour(_arg0,*_arg1);
11600
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) return NULL;
11603 } Py_INCREF(Py_None);
11604 _resultobj = Py_None;
11605 return _resultobj;
11606 }
11607
11608 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
11609 static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11610 PyObject * _resultobj;
11611 wxColour * _result;
11612 wxMenuItem * _arg0;
11613 PyObject * _argo0 = 0;
11614 char *_kwnames[] = { "self", NULL };
11615 char _ptemp[128];
11616
11617 self = self;
11618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0))
11619 return NULL;
11620 if (_argo0) {
11621 if (_argo0 == Py_None) { _arg0 = NULL; }
11622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
11624 return NULL;
11625 }
11626 }
11627 {
11628 PyThreadState* __tstate = wxPyBeginAllowThreads();
11629 _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0));
11630
11631 wxPyEndAllowThreads(__tstate);
11632 if (PyErr_Occurred()) return NULL;
11633 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
11634 _resultobj = Py_BuildValue("s",_ptemp);
11635 return _resultobj;
11636 }
11637
11638 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
11639 static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
11640 PyObject * _resultobj;
11641 wxMenuItem * _arg0;
11642 wxBitmap * _arg1;
11643 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
11644 PyObject * _argo0 = 0;
11645 PyObject * _argo1 = 0;
11646 PyObject * _argo2 = 0;
11647 char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL };
11648
11649 self = self;
11650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2))
11651 return NULL;
11652 if (_argo0) {
11653 if (_argo0 == Py_None) { _arg0 = NULL; }
11654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
11656 return NULL;
11657 }
11658 }
11659 if (_argo1) {
11660 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11661 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
11662 return NULL;
11663 }
11664 }
11665 if (_argo2) {
11666 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11667 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
11668 return NULL;
11669 }
11670 }
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2);
11674
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) return NULL;
11677 } Py_INCREF(Py_None);
11678 _resultobj = Py_None;
11679 return _resultobj;
11680 }
11681
11682 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
11683 static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11684 PyObject * _resultobj;
11685 wxMenuItem * _arg0;
11686 int _arg1;
11687 PyObject * _argo0 = 0;
11688 char *_kwnames[] = { "self","nWidth", NULL };
11689
11690 self = self;
11691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1))
11692 return NULL;
11693 if (_argo0) {
11694 if (_argo0 == Py_None) { _arg0 = NULL; }
11695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
11697 return NULL;
11698 }
11699 }
11700 {
11701 PyThreadState* __tstate = wxPyBeginAllowThreads();
11702 wxMenuItem_SetMarginWidth(_arg0,_arg1);
11703
11704 wxPyEndAllowThreads(__tstate);
11705 if (PyErr_Occurred()) return NULL;
11706 } Py_INCREF(Py_None);
11707 _resultobj = Py_None;
11708 return _resultobj;
11709 }
11710
11711 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
11712 static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11713 PyObject * _resultobj;
11714 int _result;
11715 wxMenuItem * _arg0;
11716 PyObject * _argo0 = 0;
11717 char *_kwnames[] = { "self", NULL };
11718
11719 self = self;
11720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0))
11721 return NULL;
11722 if (_argo0) {
11723 if (_argo0 == Py_None) { _arg0 = NULL; }
11724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
11726 return NULL;
11727 }
11728 }
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 _result = (int )wxMenuItem_GetMarginWidth(_arg0);
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) return NULL;
11735 } _resultobj = Py_BuildValue("i",_result);
11736 return _resultobj;
11737 }
11738
11739 static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11740 PyObject * _resultobj;
11741 int _result;
11742 char *_kwnames[] = { NULL };
11743
11744 self = self;
11745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames))
11746 return NULL;
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 _result = (int )wxMenuItem::GetDefaultMarginWidth();
11750
11751 wxPyEndAllowThreads(__tstate);
11752 if (PyErr_Occurred()) return NULL;
11753 } _resultobj = Py_BuildValue("i",_result);
11754 return _resultobj;
11755 }
11756
11757 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
11758 static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
11759 PyObject * _resultobj;
11760 bool _result;
11761 wxMenuItem * _arg0;
11762 PyObject * _argo0 = 0;
11763 char *_kwnames[] = { "self", NULL };
11764
11765 self = self;
11766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0))
11767 return NULL;
11768 if (_argo0) {
11769 if (_argo0 == Py_None) { _arg0 = NULL; }
11770 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11771 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p.");
11772 return NULL;
11773 }
11774 }
11775 {
11776 PyThreadState* __tstate = wxPyBeginAllowThreads();
11777 _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0);
11778
11779 wxPyEndAllowThreads(__tstate);
11780 if (PyErr_Occurred()) return NULL;
11781 } _resultobj = Py_BuildValue("i",_result);
11782 return _resultobj;
11783 }
11784
11785 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
11786 static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
11787 PyObject * _resultobj;
11788 wxMenuItem * _arg0;
11789 PyObject * _argo0 = 0;
11790 char *_kwnames[] = { "self", NULL };
11791
11792 self = self;
11793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0))
11794 return NULL;
11795 if (_argo0) {
11796 if (_argo0 == Py_None) { _arg0 = NULL; }
11797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
11799 return NULL;
11800 }
11801 }
11802 {
11803 PyThreadState* __tstate = wxPyBeginAllowThreads();
11804 wxMenuItem_ResetOwnerDrawn(_arg0);
11805
11806 wxPyEndAllowThreads(__tstate);
11807 if (PyErr_Occurred()) return NULL;
11808 } Py_INCREF(Py_None);
11809 _resultobj = Py_None;
11810 return _resultobj;
11811 }
11812
11813 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
11814 static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11815 PyObject * _resultobj;
11816 wxMenuItem * _arg0;
11817 wxBitmap * _arg1;
11818 PyObject * _argo0 = 0;
11819 PyObject * _argo1 = 0;
11820 char *_kwnames[] = { "self","bitmap", NULL };
11821
11822 self = self;
11823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1))
11824 return NULL;
11825 if (_argo0) {
11826 if (_argo0 == Py_None) { _arg0 = NULL; }
11827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
11829 return NULL;
11830 }
11831 }
11832 if (_argo1) {
11833 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11834 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
11835 return NULL;
11836 }
11837 }
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 wxMenuItem_SetBitmap(_arg0,*_arg1);
11841
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) return NULL;
11844 } Py_INCREF(Py_None);
11845 _resultobj = Py_None;
11846 return _resultobj;
11847 }
11848
11849 #define wxMenuItem_GetBitmap(_swigobj) (_swigobj->GetBitmap())
11850 static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11851 PyObject * _resultobj;
11852 wxBitmap * _result;
11853 wxMenuItem * _arg0;
11854 PyObject * _argo0 = 0;
11855 char *_kwnames[] = { "self", NULL };
11856 char _ptemp[128];
11857
11858 self = self;
11859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBitmap",_kwnames,&_argo0))
11860 return NULL;
11861 if (_argo0) {
11862 if (_argo0 == Py_None) { _arg0 = NULL; }
11863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
11865 return NULL;
11866 }
11867 }
11868 {
11869 PyThreadState* __tstate = wxPyBeginAllowThreads();
11870 const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0);
11871 _result = (wxBitmap *) &_result_ref;
11872
11873 wxPyEndAllowThreads(__tstate);
11874 if (PyErr_Occurred()) return NULL;
11875 } if (_result) {
11876 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
11877 _resultobj = Py_BuildValue("s",_ptemp);
11878 } else {
11879 Py_INCREF(Py_None);
11880 _resultobj = Py_None;
11881 }
11882 return _resultobj;
11883 }
11884
11885 static PyMethodDef windowscMethods[] = {
11886 { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
11887 { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
11888 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
11889 { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
11890 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
11891 { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
11892 { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
11893 { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
11894 { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11895 { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11896 { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11897 { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11898 { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
11899 { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
11900 { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
11901 { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
11902 { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
11903 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
11904 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
11905 { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
11906 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
11907 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
11908 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
11909 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
11910 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
11911 { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
11912 { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
11913 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
11914 { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
11915 { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
11916 { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
11917 { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
11918 { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
11919 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
11920 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
11921 { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
11922 { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
11923 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
11924 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
11925 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
11926 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
11927 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
11928 { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
11929 { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
11930 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
11931 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
11932 { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
11933 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
11934 { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
11935 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
11936 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
11937 { "wxMenuBar_IsEnabledTop", (PyCFunction) _wrap_wxMenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS },
11938 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
11939 { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
11940 { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
11941 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
11942 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
11943 { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
11944 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
11945 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
11946 { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS },
11947 { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS },
11948 { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS },
11949 { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS },
11950 { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
11951 { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
11952 { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
11953 { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
11954 { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
11955 { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
11956 { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
11957 { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS },
11958 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
11959 { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
11960 { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS },
11961 { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
11962 { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS },
11963 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
11964 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
11965 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
11966 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
11967 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
11968 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
11969 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
11970 { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS },
11971 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
11972 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
11973 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
11974 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
11975 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
11976 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
11977 { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS },
11978 { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
11979 { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
11980 { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
11981 { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
11982 { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS },
11983 { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS },
11984 { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
11985 { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
11986 { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
11987 { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
11988 { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS },
11989 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
11990 { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
11991 { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
11992 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
11993 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
11994 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
11995 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
11996 { "wxScrolledWindow_SetScrollRate", (PyCFunction) _wrap_wxScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS },
11997 { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS },
11998 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS },
11999 { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS },
12000 { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS },
12001 { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS },
12002 { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS },
12003 { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS },
12004 { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS },
12005 { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS },
12006 { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS },
12007 { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS },
12008 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
12009 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
12010 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
12011 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
12012 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
12013 { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS },
12014 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
12015 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
12016 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
12017 { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS },
12018 { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS },
12019 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
12020 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
12021 { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS },
12022 { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS },
12023 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
12024 { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS },
12025 { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS },
12026 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
12027 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
12028 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
12029 { "wxWindow_SetTmpDefaultItem", (PyCFunction) _wrap_wxWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
12030 { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
12031 { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
12032 { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS },
12033 { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
12034 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
12035 { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS },
12036 { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
12037 { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS },
12038 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
12039 { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS },
12040 { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS },
12041 { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS },
12042 { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS },
12043 { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS },
12044 { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS },
12045 { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
12046 { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS },
12047 { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS },
12048 { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS },
12049 { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS },
12050 { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS },
12051 { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS },
12052 { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS },
12053 { "wxWindow_GetAdjustedBestSize", (PyCFunction) _wrap_wxWindow_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS },
12054 { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
12055 { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS },
12056 { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
12057 { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
12058 { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
12059 { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
12060 { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
12061 { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
12062 { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS },
12063 { "wxWindow_SetSizerAndFit", (PyCFunction) _wrap_wxWindow_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS },
12064 { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
12065 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
12066 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
12067 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
12068 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
12069 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
12070 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
12071 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
12072 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
12073 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
12074 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
12075 { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
12076 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
12077 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
12078 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
12079 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
12080 { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
12081 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
12082 { "wxWindow_GetCursor", (PyCFunction) _wrap_wxWindow_GetCursor, METH_VARARGS | METH_KEYWORDS },
12083 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
12084 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
12085 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
12086 { "wxWindow_GetBestVirtualSize", (PyCFunction) _wrap_wxWindow_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS },
12087 { "wxWindow_GetVirtualSizeTuple", (PyCFunction) _wrap_wxWindow_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS },
12088 { "wxWindow_GetVirtualSize", (PyCFunction) _wrap_wxWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
12089 { "wxWindow_SetVirtualSizeWH", (PyCFunction) _wrap_wxWindow_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS },
12090 { "wxWindow_SetVirtualSize", (PyCFunction) _wrap_wxWindow_SetVirtualSize, METH_VARARGS | METH_KEYWORDS },
12091 { "wxWindow_SetVirtualSizeHints", (PyCFunction) _wrap_wxWindow_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
12092 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
12093 { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS },
12094 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
12095 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
12096 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
12097 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
12098 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
12099 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
12100 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
12101 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
12102 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
12103 { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
12104 { "wxWindow_SetFocusFromKbd", (PyCFunction) _wrap_wxWindow_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS },
12105 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
12106 { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS },
12107 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
12108 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
12109 { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
12110 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
12111 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
12112 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
12113 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
12114 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
12115 { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS },
12116 { "wxWindow_AddChild", (PyCFunction) _wrap_wxWindow_AddChild, METH_VARARGS | METH_KEYWORDS },
12117 { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS },
12118 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
12119 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
12120 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
12121 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
12122 { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
12123 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
12124 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
12125 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
12126 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
12127 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
12128 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
12129 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
12130 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
12131 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
12132 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
12133 { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
12134 { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
12135 { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS },
12136 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
12137 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
12138 { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS },
12139 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
12140 { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
12141 { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS },
12142 { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
12143 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
12144 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
12145 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
12146 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
12147 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
12148 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
12149 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
12150 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
12151 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
12152 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
12153 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
12154 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
12155 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
12156 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
12157 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
12158 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
12159 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
12160 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
12161 { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS },
12162 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
12163 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
12164 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
12165 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
12166 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
12167 { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS },
12168 { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
12169 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
12170 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
12171 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
12172 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
12173 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
12174 { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS },
12175 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
12176 { "wxWindow_FitInside", (PyCFunction) _wrap_wxWindow_FitInside, METH_VARARGS | METH_KEYWORDS },
12177 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
12178 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
12179 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
12180 { "wxWindow_Disable", (PyCFunction) _wrap_wxWindow_Disable, METH_VARARGS | METH_KEYWORDS },
12181 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
12182 { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
12183 { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
12184 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
12185 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
12186 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
12187 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
12188 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
12189 { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS },
12190 { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
12191 { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS },
12192 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
12193 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
12194 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
12195 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
12196 { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS },
12197 { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS },
12198 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
12199 { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
12200 { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
12201 { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
12202 { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
12203 { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
12204 { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
12205 { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
12206 { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
12207 { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
12208 { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
12209 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
12210 { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
12211 { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
12212 { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
12213 { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
12214 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
12215 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
12216 { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
12217 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
12218 { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS },
12219 { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
12220 { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS },
12221 { "wxFindWindowById", (PyCFunction) _wrap_wxFindWindowById, METH_VARARGS | METH_KEYWORDS },
12222 { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS },
12223 { NULL, NULL }
12224 };
12225 #ifdef __cplusplus
12226 }
12227 #endif
12228 /*
12229 * This table is used by the pointer type-checker
12230 */
12231 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12232 { "_signed_long","_long",0},
12233 { "_wxPrintQuality","_wxCoord",0},
12234 { "_wxPrintQuality","_int",0},
12235 { "_wxPrintQuality","_signed_int",0},
12236 { "_wxPrintQuality","_unsigned_int",0},
12237 { "_wxPrintQuality","_wxWindowID",0},
12238 { "_wxPrintQuality","_uint",0},
12239 { "_wxPrintQuality","_EBool",0},
12240 { "_wxPrintQuality","_size_t",0},
12241 { "_wxPrintQuality","_time_t",0},
12242 { "_byte","_unsigned_char",0},
12243 { "_long","_unsigned_long",0},
12244 { "_long","_signed_long",0},
12245 { "_size_t","_wxCoord",0},
12246 { "_size_t","_wxPrintQuality",0},
12247 { "_size_t","_time_t",0},
12248 { "_size_t","_unsigned_int",0},
12249 { "_size_t","_int",0},
12250 { "_size_t","_wxWindowID",0},
12251 { "_size_t","_uint",0},
12252 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
12253 { "_uint","_wxCoord",0},
12254 { "_uint","_wxPrintQuality",0},
12255 { "_uint","_time_t",0},
12256 { "_uint","_size_t",0},
12257 { "_uint","_unsigned_int",0},
12258 { "_uint","_int",0},
12259 { "_uint","_wxWindowID",0},
12260 { "_wxChar","_char",0},
12261 { "_char","_wxChar",0},
12262 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12263 { "_EBool","_wxCoord",0},
12264 { "_EBool","_wxPrintQuality",0},
12265 { "_EBool","_signed_int",0},
12266 { "_EBool","_int",0},
12267 { "_EBool","_wxWindowID",0},
12268 { "_unsigned_long","_long",0},
12269 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12270 { "_signed_int","_wxCoord",0},
12271 { "_signed_int","_wxPrintQuality",0},
12272 { "_signed_int","_EBool",0},
12273 { "_signed_int","_wxWindowID",0},
12274 { "_signed_int","_int",0},
12275 { "_WXTYPE","_short",0},
12276 { "_WXTYPE","_signed_short",0},
12277 { "_WXTYPE","_unsigned_short",0},
12278 { "_unsigned_short","_WXTYPE",0},
12279 { "_unsigned_short","_short",0},
12280 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject},
12281 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject},
12282 { "_wxObject","_wxMenu",SwigwxMenuTowxObject},
12283 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
12284 { "_wxObject","_wxPanel",SwigwxPanelTowxObject},
12285 { "_wxObject","_wxWindow",SwigwxWindowTowxObject},
12286 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject},
12287 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject},
12288 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject},
12289 { "_signed_short","_WXTYPE",0},
12290 { "_signed_short","_short",0},
12291 { "_unsigned_char","_byte",0},
12292 { "_unsigned_int","_wxCoord",0},
12293 { "_unsigned_int","_wxPrintQuality",0},
12294 { "_unsigned_int","_time_t",0},
12295 { "_unsigned_int","_size_t",0},
12296 { "_unsigned_int","_uint",0},
12297 { "_unsigned_int","_wxWindowID",0},
12298 { "_unsigned_int","_int",0},
12299 { "_short","_WXTYPE",0},
12300 { "_short","_unsigned_short",0},
12301 { "_short","_signed_short",0},
12302 { "_wxWindowID","_wxCoord",0},
12303 { "_wxWindowID","_wxPrintQuality",0},
12304 { "_wxWindowID","_time_t",0},
12305 { "_wxWindowID","_size_t",0},
12306 { "_wxWindowID","_EBool",0},
12307 { "_wxWindowID","_uint",0},
12308 { "_wxWindowID","_int",0},
12309 { "_wxWindowID","_signed_int",0},
12310 { "_wxWindowID","_unsigned_int",0},
12311 { "_int","_wxCoord",0},
12312 { "_int","_wxPrintQuality",0},
12313 { "_int","_time_t",0},
12314 { "_int","_size_t",0},
12315 { "_int","_EBool",0},
12316 { "_int","_uint",0},
12317 { "_int","_wxWindowID",0},
12318 { "_int","_unsigned_int",0},
12319 { "_int","_signed_int",0},
12320 { "_time_t","_wxCoord",0},
12321 { "_time_t","_wxPrintQuality",0},
12322 { "_time_t","_unsigned_int",0},
12323 { "_time_t","_int",0},
12324 { "_time_t","_wxWindowID",0},
12325 { "_time_t","_uint",0},
12326 { "_time_t","_size_t",0},
12327 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
12328 { "_wxCoord","_int",0},
12329 { "_wxCoord","_signed_int",0},
12330 { "_wxCoord","_unsigned_int",0},
12331 { "_wxCoord","_wxWindowID",0},
12332 { "_wxCoord","_uint",0},
12333 { "_wxCoord","_EBool",0},
12334 { "_wxCoord","_size_t",0},
12335 { "_wxCoord","_time_t",0},
12336 { "_wxCoord","_wxPrintQuality",0},
12337 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
12338 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
12339 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
12340 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
12341 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
12342 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
12343 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
12344 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
12345 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
12346 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
12347 {0,0,0}};
12348
12349 static PyObject *SWIG_globals;
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 SWIGEXPORT(void) initwindowsc() {
12354 PyObject *m, *d;
12355 SWIG_globals = SWIG_newvarlink();
12356 m = Py_InitModule("windowsc", windowscMethods);
12357 d = PyModule_GetDict(m);
12358 {
12359 int i;
12360 for (i = 0; _swig_mapping[i].n1; i++)
12361 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12362 }
12363 }