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