]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/windows.cpp
Added missing CreateManifest() to initialisation
[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_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
4038 static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
4039 PyObject * _resultobj;
4040 bool _result;
4041 wxWindow * _arg0;
4042 PyObject * _argo0 = 0;
4043 char *_kwnames[] = { "self", NULL };
4044
4045 self = self;
4046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0))
4047 return NULL;
4048 if (_argo0) {
4049 if (_argo0 == Py_None) { _arg0 = NULL; }
4050 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4051 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
4052 return NULL;
4053 }
4054 }
4055 {
4056 PyThreadState* __tstate = wxPyBeginAllowThreads();
4057 _result = (bool )wxWindow_AcceptsFocus(_arg0);
4058
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) return NULL;
4061 } _resultobj = Py_BuildValue("i",_result);
4062 return _resultobj;
4063 }
4064
4065 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
4066 static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4067 PyObject * _resultobj;
4068 wxWindow * _arg0;
4069 wxFont * _arg1;
4070 PyObject * _argo0 = 0;
4071 PyObject * _argo1 = 0;
4072 char *_kwnames[] = { "self","font", NULL };
4073
4074 self = self;
4075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1))
4076 return NULL;
4077 if (_argo0) {
4078 if (_argo0 == Py_None) { _arg0 = NULL; }
4079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
4081 return NULL;
4082 }
4083 }
4084 if (_argo1) {
4085 if (_argo1 == Py_None) { _arg1 = NULL; }
4086 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4087 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
4088 return NULL;
4089 }
4090 }
4091 {
4092 PyThreadState* __tstate = wxPyBeginAllowThreads();
4093 wxWindow_SetFont(_arg0,*_arg1);
4094
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) return NULL;
4097 } Py_INCREF(Py_None);
4098 _resultobj = Py_None;
4099 return _resultobj;
4100 }
4101
4102 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
4103 static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4104 PyObject * _resultobj;
4105 wxWindow * _arg0;
4106 wxColour * _arg1;
4107 PyObject * _argo0 = 0;
4108 wxColour temp;
4109 PyObject * _obj1 = 0;
4110 char *_kwnames[] = { "self","colour", NULL };
4111
4112 self = self;
4113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1))
4114 return NULL;
4115 if (_argo0) {
4116 if (_argo0 == Py_None) { _arg0 = NULL; }
4117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
4119 return NULL;
4120 }
4121 }
4122 {
4123 _arg1 = &temp;
4124 if (! wxColour_helper(_obj1, &_arg1))
4125 return NULL;
4126 }
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 wxWindow_SetForegroundColour(_arg0,*_arg1);
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) return NULL;
4133 } Py_INCREF(Py_None);
4134 _resultobj = Py_None;
4135 return _resultobj;
4136 }
4137
4138 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
4139 static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
4140 PyObject * _resultobj;
4141 wxWindow * _arg0;
4142 int _arg1;
4143 PyObject * _argo0 = 0;
4144 char *_kwnames[] = { "self","id", NULL };
4145
4146 self = self;
4147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1))
4148 return NULL;
4149 if (_argo0) {
4150 if (_argo0 == Py_None) { _arg0 = NULL; }
4151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
4153 return NULL;
4154 }
4155 }
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 wxWindow_SetId(_arg0,_arg1);
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) return NULL;
4162 } Py_INCREF(Py_None);
4163 _resultobj = Py_None;
4164 return _resultobj;
4165 }
4166
4167 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
4168 static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
4169 PyObject * _resultobj;
4170 wxWindow * _arg0;
4171 wxString * _arg1;
4172 PyObject * _argo0 = 0;
4173 PyObject * _obj1 = 0;
4174 char *_kwnames[] = { "self","name", NULL };
4175
4176 self = self;
4177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1))
4178 return NULL;
4179 if (_argo0) {
4180 if (_argo0 == Py_None) { _arg0 = NULL; }
4181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
4183 return NULL;
4184 }
4185 }
4186 {
4187 _arg1 = wxString_in_helper(_obj1);
4188 if (_arg1 == NULL)
4189 return NULL;
4190 }
4191 {
4192 PyThreadState* __tstate = wxPyBeginAllowThreads();
4193 wxWindow_SetName(_arg0,*_arg1);
4194
4195 wxPyEndAllowThreads(__tstate);
4196 if (PyErr_Occurred()) return NULL;
4197 } Py_INCREF(Py_None);
4198 _resultobj = Py_None;
4199 {
4200 if (_obj1)
4201 delete _arg1;
4202 }
4203 return _resultobj;
4204 }
4205
4206 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4207 static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
4208 PyObject * _resultobj;
4209 wxWindow * _arg0;
4210 int _arg1;
4211 int _arg2;
4212 int _arg3;
4213 int _arg4;
4214 int _arg5 = (int ) TRUE;
4215 PyObject * _argo0 = 0;
4216 char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL };
4217
4218 self = self;
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4220 return NULL;
4221 if (_argo0) {
4222 if (_argo0 == Py_None) { _arg0 = NULL; }
4223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
4225 return NULL;
4226 }
4227 }
4228 {
4229 PyThreadState* __tstate = wxPyBeginAllowThreads();
4230 wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4231
4232 wxPyEndAllowThreads(__tstate);
4233 if (PyErr_Occurred()) return NULL;
4234 } Py_INCREF(Py_None);
4235 _resultobj = Py_None;
4236 return _resultobj;
4237 }
4238
4239 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
4240 static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
4241 PyObject * _resultobj;
4242 wxWindow * _arg0;
4243 int _arg1;
4244 int _arg2;
4245 bool _arg3 = (bool ) TRUE;
4246 PyObject * _argo0 = 0;
4247 int tempbool3 = (int) TRUE;
4248 char *_kwnames[] = { "self","orientation","pos","refresh", NULL };
4249
4250 self = self;
4251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3))
4252 return NULL;
4253 if (_argo0) {
4254 if (_argo0 == Py_None) { _arg0 = NULL; }
4255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
4257 return NULL;
4258 }
4259 }
4260 _arg3 = (bool ) tempbool3;
4261 {
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3);
4264
4265 wxPyEndAllowThreads(__tstate);
4266 if (PyErr_Occurred()) return NULL;
4267 } Py_INCREF(Py_None);
4268 _resultobj = Py_None;
4269 return _resultobj;
4270 }
4271
4272 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4273 static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
4274 PyObject * _resultobj;
4275 wxWindow * _arg0;
4276 int _arg1;
4277 int _arg2;
4278 int _arg3;
4279 int _arg4;
4280 int _arg5 = (int ) wxSIZE_AUTO;
4281 PyObject * _argo0 = 0;
4282 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
4283
4284 self = self;
4285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
4286 return NULL;
4287 if (_argo0) {
4288 if (_argo0 == Py_None) { _arg0 = NULL; }
4289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
4291 return NULL;
4292 }
4293 }
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4297
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) return NULL;
4300 } Py_INCREF(Py_None);
4301 _resultobj = Py_None;
4302 return _resultobj;
4303 }
4304
4305 static void wxWindow_SetSize(wxWindow *self,const wxSize & size) {
4306 self->SetSize(size);
4307 }
4308 static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4309 PyObject * _resultobj;
4310 wxWindow * _arg0;
4311 wxSize * _arg1;
4312 PyObject * _argo0 = 0;
4313 wxSize temp;
4314 PyObject * _obj1 = 0;
4315 char *_kwnames[] = { "self","size", NULL };
4316
4317 self = self;
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1))
4319 return NULL;
4320 if (_argo0) {
4321 if (_argo0 == Py_None) { _arg0 = NULL; }
4322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
4324 return NULL;
4325 }
4326 }
4327 {
4328 _arg1 = &temp;
4329 if (! wxSize_helper(_obj1, &_arg1))
4330 return NULL;
4331 }
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 wxWindow_SetSize(_arg0,*_arg1);
4335
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) return NULL;
4338 } Py_INCREF(Py_None);
4339 _resultobj = Py_None;
4340 return _resultobj;
4341 }
4342
4343 static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) {
4344 self->Move(pos, flags);
4345 }
4346 static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4347 PyObject * _resultobj;
4348 wxWindow * _arg0;
4349 wxPoint * _arg1;
4350 int _arg2 = (int ) wxSIZE_USE_EXISTING;
4351 PyObject * _argo0 = 0;
4352 wxPoint temp;
4353 PyObject * _obj1 = 0;
4354 char *_kwnames[] = { "self","pos","flags", NULL };
4355
4356 self = self;
4357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2))
4358 return NULL;
4359 if (_argo0) {
4360 if (_argo0 == Py_None) { _arg0 = NULL; }
4361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
4363 return NULL;
4364 }
4365 }
4366 {
4367 _arg1 = &temp;
4368 if (! wxPoint_helper(_obj1, &_arg1))
4369 return NULL;
4370 }
4371 {
4372 PyThreadState* __tstate = wxPyBeginAllowThreads();
4373 wxWindow_SetPosition(_arg0,*_arg1,_arg2);
4374
4375 wxPyEndAllowThreads(__tstate);
4376 if (PyErr_Occurred()) return NULL;
4377 } Py_INCREF(Py_None);
4378 _resultobj = Py_None;
4379 return _resultobj;
4380 }
4381
4382 static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) {
4383 self->SetSize(rect, sizeFlags);
4384 }
4385 static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4386 PyObject * _resultobj;
4387 wxWindow * _arg0;
4388 wxRect * _arg1;
4389 int _arg2 = (int ) wxSIZE_AUTO;
4390 PyObject * _argo0 = 0;
4391 wxRect temp;
4392 PyObject * _obj1 = 0;
4393 char *_kwnames[] = { "self","rect","sizeFlags", NULL };
4394
4395 self = self;
4396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2))
4397 return NULL;
4398 if (_argo0) {
4399 if (_argo0 == Py_None) { _arg0 = NULL; }
4400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p.");
4402 return NULL;
4403 }
4404 }
4405 {
4406 _arg1 = &temp;
4407 if (! wxRect_helper(_obj1, &_arg1))
4408 return NULL;
4409 }
4410 {
4411 PyThreadState* __tstate = wxPyBeginAllowThreads();
4412 wxWindow_SetRect(_arg0,*_arg1,_arg2);
4413
4414 wxPyEndAllowThreads(__tstate);
4415 if (PyErr_Occurred()) return NULL;
4416 } Py_INCREF(Py_None);
4417 _resultobj = Py_None;
4418 return _resultobj;
4419 }
4420
4421 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4422 static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
4423 PyObject * _resultobj;
4424 wxWindow * _arg0;
4425 int _arg1 = (int ) -1;
4426 int _arg2 = (int ) -1;
4427 int _arg3 = (int ) -1;
4428 int _arg4 = (int ) -1;
4429 int _arg5 = (int ) -1;
4430 int _arg6 = (int ) -1;
4431 PyObject * _argo0 = 0;
4432 char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL };
4433
4434 self = self;
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4436 return NULL;
4437 if (_argo0) {
4438 if (_argo0 == Py_None) { _arg0 = NULL; }
4439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
4441 return NULL;
4442 }
4443 }
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) return NULL;
4450 } Py_INCREF(Py_None);
4451 _resultobj = Py_None;
4452 return _resultobj;
4453 }
4454
4455 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
4456 static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4457 PyObject * _resultobj;
4458 wxWindow * _arg0;
4459 int _arg1;
4460 int _arg2;
4461 PyObject * _argo0 = 0;
4462 char *_kwnames[] = { "self","width","height", NULL };
4463
4464 self = self;
4465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
4466 return NULL;
4467 if (_argo0) {
4468 if (_argo0 == Py_None) { _arg0 = NULL; }
4469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
4471 return NULL;
4472 }
4473 }
4474 {
4475 PyThreadState* __tstate = wxPyBeginAllowThreads();
4476 wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2);
4477
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) return NULL;
4480 } Py_INCREF(Py_None);
4481 _resultobj = Py_None;
4482 return _resultobj;
4483 }
4484
4485 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
4486 static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4487 PyObject * _resultobj;
4488 wxWindow * _arg0;
4489 wxSize * _arg1;
4490 PyObject * _argo0 = 0;
4491 wxSize temp;
4492 PyObject * _obj1 = 0;
4493 char *_kwnames[] = { "self","size", NULL };
4494
4495 self = self;
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1))
4497 return NULL;
4498 if (_argo0) {
4499 if (_argo0 == Py_None) { _arg0 = NULL; }
4500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
4502 return NULL;
4503 }
4504 }
4505 {
4506 _arg1 = &temp;
4507 if (! wxSize_helper(_obj1, &_arg1))
4508 return NULL;
4509 }
4510 {
4511 PyThreadState* __tstate = wxPyBeginAllowThreads();
4512 wxWindow_SetClientSize(_arg0,*_arg1);
4513
4514 wxPyEndAllowThreads(__tstate);
4515 if (PyErr_Occurred()) return NULL;
4516 } Py_INCREF(Py_None);
4517 _resultobj = Py_None;
4518 return _resultobj;
4519 }
4520
4521 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
4522 static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject * _resultobj;
4524 wxWindow * _arg0;
4525 wxCursor * _arg1;
4526 PyObject * _argo0 = 0;
4527 PyObject * _argo1 = 0;
4528 char *_kwnames[] = { "self","cursor", NULL };
4529
4530 self = self;
4531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1))
4532 return NULL;
4533 if (_argo0) {
4534 if (_argo0 == Py_None) { _arg0 = NULL; }
4535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
4537 return NULL;
4538 }
4539 }
4540 if (_argo1) {
4541 if (_argo1 == Py_None) { _arg1 = NULL; }
4542 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
4543 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
4544 return NULL;
4545 }
4546 }
4547 {
4548 PyThreadState* __tstate = wxPyBeginAllowThreads();
4549 wxWindow_SetCursor(_arg0,*_arg1);
4550
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) return NULL;
4553 } Py_INCREF(Py_None);
4554 _resultobj = Py_None;
4555 return _resultobj;
4556 }
4557
4558 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
4559 static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
4560 PyObject * _resultobj;
4561 wxWindow * _arg0;
4562 wxEvtHandler * _arg1;
4563 PyObject * _argo0 = 0;
4564 PyObject * _argo1 = 0;
4565 char *_kwnames[] = { "self","handler", NULL };
4566
4567 self = self;
4568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1))
4569 return NULL;
4570 if (_argo0) {
4571 if (_argo0 == Py_None) { _arg0 = NULL; }
4572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
4574 return NULL;
4575 }
4576 }
4577 if (_argo1) {
4578 if (_argo1 == Py_None) { _arg1 = NULL; }
4579 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
4580 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
4581 return NULL;
4582 }
4583 }
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 wxWindow_SetEventHandler(_arg0,_arg1);
4587
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) return NULL;
4590 } Py_INCREF(Py_None);
4591 _resultobj = Py_None;
4592 return _resultobj;
4593 }
4594
4595 #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0))
4596 static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4597 PyObject * _resultobj;
4598 wxWindow * _arg0;
4599 long _arg1;
4600 PyObject * _argo0 = 0;
4601 char *_kwnames[] = { "self","exStyle", NULL };
4602
4603 self = self;
4604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1))
4605 return NULL;
4606 if (_argo0) {
4607 if (_argo0 == Py_None) { _arg0 = NULL; }
4608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p.");
4610 return NULL;
4611 }
4612 }
4613 {
4614 PyThreadState* __tstate = wxPyBeginAllowThreads();
4615 wxWindow_SetExtraStyle(_arg0,_arg1);
4616
4617 wxPyEndAllowThreads(__tstate);
4618 if (PyErr_Occurred()) return NULL;
4619 } Py_INCREF(Py_None);
4620 _resultobj = Py_None;
4621 return _resultobj;
4622 }
4623
4624 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4625 static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4626 PyObject * _resultobj;
4627 wxWindow * _arg0;
4628 wxString * _arg1;
4629 PyObject * _argo0 = 0;
4630 PyObject * _obj1 = 0;
4631 char *_kwnames[] = { "self","title", NULL };
4632
4633 self = self;
4634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1))
4635 return NULL;
4636 if (_argo0) {
4637 if (_argo0 == Py_None) { _arg0 = NULL; }
4638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
4640 return NULL;
4641 }
4642 }
4643 {
4644 _arg1 = wxString_in_helper(_obj1);
4645 if (_arg1 == NULL)
4646 return NULL;
4647 }
4648 {
4649 PyThreadState* __tstate = wxPyBeginAllowThreads();
4650 wxWindow_SetTitle(_arg0,*_arg1);
4651
4652 wxPyEndAllowThreads(__tstate);
4653 if (PyErr_Occurred()) return NULL;
4654 } Py_INCREF(Py_None);
4655 _resultobj = Py_None;
4656 {
4657 if (_obj1)
4658 delete _arg1;
4659 }
4660 return _resultobj;
4661 }
4662
4663 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4664 static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4665 PyObject * _resultobj;
4666 bool _result;
4667 wxWindow * _arg0;
4668 bool _arg1 = (bool ) TRUE;
4669 PyObject * _argo0 = 0;
4670 int tempbool1 = (int) TRUE;
4671 char *_kwnames[] = { "self","show", NULL };
4672
4673 self = self;
4674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1))
4675 return NULL;
4676 if (_argo0) {
4677 if (_argo0 == Py_None) { _arg0 = NULL; }
4678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
4680 return NULL;
4681 }
4682 }
4683 _arg1 = (bool ) tempbool1;
4684 {
4685 PyThreadState* __tstate = wxPyBeginAllowThreads();
4686 _result = (bool )wxWindow_Show(_arg0,_arg1);
4687
4688 wxPyEndAllowThreads(__tstate);
4689 if (PyErr_Occurred()) return NULL;
4690 } _resultobj = Py_BuildValue("i",_result);
4691 return _resultobj;
4692 }
4693
4694 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
4695 static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4696 PyObject * _resultobj;
4697 bool _result;
4698 wxWindow * _arg0;
4699 PyObject * _argo0 = 0;
4700 char *_kwnames[] = { "self", NULL };
4701
4702 self = self;
4703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0))
4704 return NULL;
4705 if (_argo0) {
4706 if (_argo0 == Py_None) { _arg0 = NULL; }
4707 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4708 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
4709 return NULL;
4710 }
4711 }
4712 {
4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
4714 _result = (bool )wxWindow_TransferDataFromWindow(_arg0);
4715
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) return NULL;
4718 } _resultobj = Py_BuildValue("i",_result);
4719 return _resultobj;
4720 }
4721
4722 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
4723 static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4724 PyObject * _resultobj;
4725 bool _result;
4726 wxWindow * _arg0;
4727 PyObject * _argo0 = 0;
4728 char *_kwnames[] = { "self", NULL };
4729
4730 self = self;
4731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0))
4732 return NULL;
4733 if (_argo0) {
4734 if (_argo0 == Py_None) { _arg0 = NULL; }
4735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
4737 return NULL;
4738 }
4739 }
4740 {
4741 PyThreadState* __tstate = wxPyBeginAllowThreads();
4742 _result = (bool )wxWindow_TransferDataToWindow(_arg0);
4743
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) return NULL;
4746 } _resultobj = Py_BuildValue("i",_result);
4747 return _resultobj;
4748 }
4749
4750 #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI())
4751 static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
4752 PyObject * _resultobj;
4753 wxWindow * _arg0;
4754 PyObject * _argo0 = 0;
4755 char *_kwnames[] = { "self", NULL };
4756
4757 self = self;
4758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0))
4759 return NULL;
4760 if (_argo0) {
4761 if (_argo0 == Py_None) { _arg0 = NULL; }
4762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p.");
4764 return NULL;
4765 }
4766 }
4767 {
4768 PyThreadState* __tstate = wxPyBeginAllowThreads();
4769 wxWindow_UpdateWindowUI(_arg0);
4770
4771 wxPyEndAllowThreads(__tstate);
4772 if (PyErr_Occurred()) return NULL;
4773 } Py_INCREF(Py_None);
4774 _resultobj = Py_None;
4775 return _resultobj;
4776 }
4777
4778 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4779 static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
4780 PyObject * _resultobj;
4781 bool _result;
4782 wxWindow * _arg0;
4783 PyObject * _argo0 = 0;
4784 char *_kwnames[] = { "self", NULL };
4785
4786 self = self;
4787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0))
4788 return NULL;
4789 if (_argo0) {
4790 if (_argo0 == Py_None) { _arg0 = NULL; }
4791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4793 return NULL;
4794 }
4795 }
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 _result = (bool )wxWindow_Validate(_arg0);
4799
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) return NULL;
4802 } _resultobj = Py_BuildValue("i",_result);
4803 return _resultobj;
4804 }
4805
4806 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4807 static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4808 PyObject * _resultobj;
4809 wxPoint * _result;
4810 wxWindow * _arg0;
4811 wxPoint * _arg1;
4812 PyObject * _argo0 = 0;
4813 wxPoint temp;
4814 PyObject * _obj1 = 0;
4815 char *_kwnames[] = { "self","pt", NULL };
4816 char _ptemp[128];
4817
4818 self = self;
4819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1))
4820 return NULL;
4821 if (_argo0) {
4822 if (_argo0 == Py_None) { _arg0 = NULL; }
4823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4825 return NULL;
4826 }
4827 }
4828 {
4829 _arg1 = &temp;
4830 if (! wxPoint_helper(_obj1, &_arg1))
4831 return NULL;
4832 }
4833 {
4834 PyThreadState* __tstate = wxPyBeginAllowThreads();
4835 _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1));
4836
4837 wxPyEndAllowThreads(__tstate);
4838 if (PyErr_Occurred()) return NULL;
4839 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4840 _resultobj = Py_BuildValue("s",_ptemp);
4841 return _resultobj;
4842 }
4843
4844 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4845 static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4846 PyObject * _resultobj;
4847 wxSize * _result;
4848 wxWindow * _arg0;
4849 wxSize * _arg1;
4850 PyObject * _argo0 = 0;
4851 wxSize temp;
4852 PyObject * _obj1 = 0;
4853 char *_kwnames[] = { "self","sz", NULL };
4854 char _ptemp[128];
4855
4856 self = self;
4857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1))
4858 return NULL;
4859 if (_argo0) {
4860 if (_argo0 == Py_None) { _arg0 = NULL; }
4861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4863 return NULL;
4864 }
4865 }
4866 {
4867 _arg1 = &temp;
4868 if (! wxSize_helper(_obj1, &_arg1))
4869 return NULL;
4870 }
4871 {
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1));
4874
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) return NULL;
4877 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4878 _resultobj = Py_BuildValue("s",_ptemp);
4879 return _resultobj;
4880 }
4881
4882 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4883 static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4884 PyObject * _resultobj;
4885 wxPoint * _result;
4886 wxWindow * _arg0;
4887 wxPoint * _arg1;
4888 PyObject * _argo0 = 0;
4889 wxPoint temp;
4890 PyObject * _obj1 = 0;
4891 char *_kwnames[] = { "self","pt", NULL };
4892 char _ptemp[128];
4893
4894 self = self;
4895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1))
4896 return NULL;
4897 if (_argo0) {
4898 if (_argo0 == Py_None) { _arg0 = NULL; }
4899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4901 return NULL;
4902 }
4903 }
4904 {
4905 _arg1 = &temp;
4906 if (! wxPoint_helper(_obj1, &_arg1))
4907 return NULL;
4908 }
4909 {
4910 PyThreadState* __tstate = wxPyBeginAllowThreads();
4911 _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1));
4912
4913 wxPyEndAllowThreads(__tstate);
4914 if (PyErr_Occurred()) return NULL;
4915 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4916 _resultobj = Py_BuildValue("s",_ptemp);
4917 return _resultobj;
4918 }
4919
4920 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4921 static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4922 PyObject * _resultobj;
4923 wxSize * _result;
4924 wxWindow * _arg0;
4925 wxSize * _arg1;
4926 PyObject * _argo0 = 0;
4927 wxSize temp;
4928 PyObject * _obj1 = 0;
4929 char *_kwnames[] = { "self","sz", NULL };
4930 char _ptemp[128];
4931
4932 self = self;
4933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1))
4934 return NULL;
4935 if (_argo0) {
4936 if (_argo0 == Py_None) { _arg0 = NULL; }
4937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4939 return NULL;
4940 }
4941 }
4942 {
4943 _arg1 = &temp;
4944 if (! wxSize_helper(_obj1, &_arg1))
4945 return NULL;
4946 }
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1));
4950
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) return NULL;
4953 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4954 _resultobj = Py_BuildValue("s",_ptemp);
4955 return _resultobj;
4956 }
4957
4958 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4959 static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
4960 PyObject * _resultobj;
4961 wxWindow * _arg0;
4962 wxString * _arg1;
4963 PyObject * _argo0 = 0;
4964 PyObject * _obj1 = 0;
4965 char *_kwnames[] = { "self","tip", NULL };
4966
4967 self = self;
4968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1))
4969 return NULL;
4970 if (_argo0) {
4971 if (_argo0 == Py_None) { _arg0 = NULL; }
4972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4974 return NULL;
4975 }
4976 }
4977 {
4978 _arg1 = wxString_in_helper(_obj1);
4979 if (_arg1 == NULL)
4980 return NULL;
4981 }
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 wxWindow_SetToolTipString(_arg0,*_arg1);
4985
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) return NULL;
4988 } Py_INCREF(Py_None);
4989 _resultobj = Py_None;
4990 {
4991 if (_obj1)
4992 delete _arg1;
4993 }
4994 return _resultobj;
4995 }
4996
4997 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4998 static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4999 PyObject * _resultobj;
5000 wxWindow * _arg0;
5001 wxToolTip * _arg1;
5002 PyObject * _argo0 = 0;
5003 PyObject * _argo1 = 0;
5004 char *_kwnames[] = { "self","tooltip", NULL };
5005
5006 self = self;
5007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1))
5008 return NULL;
5009 if (_argo0) {
5010 if (_argo0 == Py_None) { _arg0 = NULL; }
5011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
5013 return NULL;
5014 }
5015 }
5016 if (_argo1) {
5017 if (_argo1 == Py_None) { _arg1 = NULL; }
5018 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) {
5019 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
5020 return NULL;
5021 }
5022 }
5023 {
5024 PyThreadState* __tstate = wxPyBeginAllowThreads();
5025 wxWindow_SetToolTip(_arg0,_arg1);
5026
5027 wxPyEndAllowThreads(__tstate);
5028 if (PyErr_Occurred()) return NULL;
5029 } Py_INCREF(Py_None);
5030 _resultobj = Py_None;
5031 return _resultobj;
5032 }
5033
5034 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
5035 static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5036 PyObject * _resultobj;
5037 wxToolTip * _result;
5038 wxWindow * _arg0;
5039 PyObject * _argo0 = 0;
5040 char *_kwnames[] = { "self", NULL };
5041
5042 self = self;
5043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
5044 return NULL;
5045 if (_argo0) {
5046 if (_argo0 == Py_None) { _arg0 = NULL; }
5047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
5049 return NULL;
5050 }
5051 }
5052 {
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 _result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
5055
5056 wxPyEndAllowThreads(__tstate);
5057 if (PyErr_Occurred()) return NULL;
5058 }{ _resultobj = wxPyMake_wxObject(_result); }
5059 return _resultobj;
5060 }
5061
5062 #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1))
5063 static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5064 PyObject * _resultobj;
5065 wxWindow * _arg0;
5066 wxSizer * _arg1;
5067 bool _arg2 = (bool ) TRUE;
5068 PyObject * _argo0 = 0;
5069 PyObject * _argo1 = 0;
5070 int tempbool2 = (int) TRUE;
5071 char *_kwnames[] = { "self","sizer","deleteOld", NULL };
5072
5073 self = self;
5074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2))
5075 return NULL;
5076 if (_argo0) {
5077 if (_argo0 == Py_None) { _arg0 = NULL; }
5078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
5080 return NULL;
5081 }
5082 }
5083 if (_argo1) {
5084 if (_argo1 == Py_None) { _arg1 = NULL; }
5085 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
5086 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
5087 return NULL;
5088 }
5089 }
5090 _arg2 = (bool ) tempbool2;
5091 {
5092 PyThreadState* __tstate = wxPyBeginAllowThreads();
5093 wxWindow_SetSizer(_arg0,_arg1,_arg2);
5094
5095 wxPyEndAllowThreads(__tstate);
5096 if (PyErr_Occurred()) return NULL;
5097 } Py_INCREF(Py_None);
5098 _resultobj = Py_None;
5099 return _resultobj;
5100 }
5101
5102 #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer())
5103 static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5104 PyObject * _resultobj;
5105 wxSizer * _result;
5106 wxWindow * _arg0;
5107 PyObject * _argo0 = 0;
5108 char *_kwnames[] = { "self", NULL };
5109
5110 self = self;
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0))
5112 return NULL;
5113 if (_argo0) {
5114 if (_argo0 == Py_None) { _arg0 = NULL; }
5115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p.");
5117 return NULL;
5118 }
5119 }
5120 {
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 _result = (wxSizer *)wxWindow_GetSizer(_arg0);
5123
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) return NULL;
5126 }{ _resultobj = wxPyMake_wxSizer(_result); }
5127 return _resultobj;
5128 }
5129
5130 #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0))
5131 static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5132 PyObject * _resultobj;
5133 wxWindow * _arg0;
5134 wxSizer * _arg1;
5135 PyObject * _argo0 = 0;
5136 PyObject * _argo1 = 0;
5137 char *_kwnames[] = { "self","sizer", NULL };
5138
5139 self = self;
5140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1))
5141 return NULL;
5142 if (_argo0) {
5143 if (_argo0 == Py_None) { _arg0 = NULL; }
5144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p.");
5146 return NULL;
5147 }
5148 }
5149 if (_argo1) {
5150 if (_argo1 == Py_None) { _arg1 = NULL; }
5151 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
5152 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p.");
5153 return NULL;
5154 }
5155 }
5156 {
5157 PyThreadState* __tstate = wxPyBeginAllowThreads();
5158 wxWindow_SetContainingSizer(_arg0,_arg1);
5159
5160 wxPyEndAllowThreads(__tstate);
5161 if (PyErr_Occurred()) return NULL;
5162 } Py_INCREF(Py_None);
5163 _resultobj = Py_None;
5164 return _resultobj;
5165 }
5166
5167 #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer())
5168 static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
5169 PyObject * _resultobj;
5170 wxSizer * _result;
5171 wxWindow * _arg0;
5172 PyObject * _argo0 = 0;
5173 char *_kwnames[] = { "self", NULL };
5174
5175 self = self;
5176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0))
5177 return NULL;
5178 if (_argo0) {
5179 if (_argo0 == Py_None) { _arg0 = NULL; }
5180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p.");
5182 return NULL;
5183 }
5184 }
5185 {
5186 PyThreadState* __tstate = wxPyBeginAllowThreads();
5187 _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0);
5188
5189 wxPyEndAllowThreads(__tstate);
5190 if (PyErr_Occurred()) return NULL;
5191 }{ _resultobj = wxPyMake_wxSizer(_result); }
5192 return _resultobj;
5193 }
5194
5195 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
5196 static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
5197 PyObject * _resultobj;
5198 wxValidator * _result;
5199 wxWindow * _arg0;
5200 PyObject * _argo0 = 0;
5201 char *_kwnames[] = { "self", NULL };
5202
5203 self = self;
5204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0))
5205 return NULL;
5206 if (_argo0) {
5207 if (_argo0 == Py_None) { _arg0 = NULL; }
5208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
5210 return NULL;
5211 }
5212 }
5213 {
5214 PyThreadState* __tstate = wxPyBeginAllowThreads();
5215 _result = (wxValidator *)wxWindow_GetValidator(_arg0);
5216
5217 wxPyEndAllowThreads(__tstate);
5218 if (PyErr_Occurred()) return NULL;
5219 }{ _resultobj = wxPyMake_wxObject(_result); }
5220 return _resultobj;
5221 }
5222
5223 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
5224 static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
5225 PyObject * _resultobj;
5226 wxWindow * _arg0;
5227 wxValidator * _arg1;
5228 PyObject * _argo0 = 0;
5229 PyObject * _argo1 = 0;
5230 char *_kwnames[] = { "self","validator", NULL };
5231
5232 self = self;
5233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1))
5234 return NULL;
5235 if (_argo0) {
5236 if (_argo0 == Py_None) { _arg0 = NULL; }
5237 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5238 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
5239 return NULL;
5240 }
5241 }
5242 if (_argo1) {
5243 if (_argo1 == Py_None) { _arg1 = NULL; }
5244 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) {
5245 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
5246 return NULL;
5247 }
5248 }
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 wxWindow_SetValidator(_arg0,*_arg1);
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) return NULL;
5255 } Py_INCREF(Py_None);
5256 _resultobj = Py_None;
5257 return _resultobj;
5258 }
5259
5260 #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0))
5261 static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject * _resultobj;
5263 wxWindow * _arg0;
5264 wxDropTarget * _arg1;
5265 PyObject * _argo0 = 0;
5266 PyObject * _argo1 = 0;
5267 char *_kwnames[] = { "self","target", NULL };
5268
5269 self = self;
5270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1))
5271 return NULL;
5272 if (_argo0) {
5273 if (_argo0 == Py_None) { _arg0 = NULL; }
5274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p.");
5276 return NULL;
5277 }
5278 }
5279 if (_argo1) {
5280 if (_argo1 == Py_None) { _arg1 = NULL; }
5281 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) {
5282 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p.");
5283 return NULL;
5284 }
5285 }
5286 {
5287 PyThreadState* __tstate = wxPyBeginAllowThreads();
5288 wxWindow_SetDropTarget(_arg0,_arg1);
5289
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) return NULL;
5292 } Py_INCREF(Py_None);
5293 _resultobj = Py_None;
5294 return _resultobj;
5295 }
5296
5297 #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget())
5298 static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject * _resultobj;
5300 wxDropTarget * _result;
5301 wxWindow * _arg0;
5302 PyObject * _argo0 = 0;
5303 char *_kwnames[] = { "self", NULL };
5304 char _ptemp[128];
5305
5306 self = self;
5307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0))
5308 return NULL;
5309 if (_argo0) {
5310 if (_argo0 == Py_None) { _arg0 = NULL; }
5311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p.");
5313 return NULL;
5314 }
5315 }
5316 {
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0);
5319
5320 wxPyEndAllowThreads(__tstate);
5321 if (PyErr_Occurred()) return NULL;
5322 } if (_result) {
5323 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p");
5324 _resultobj = Py_BuildValue("s",_ptemp);
5325 } else {
5326 Py_INCREF(Py_None);
5327 _resultobj = Py_None;
5328 }
5329 return _resultobj;
5330 }
5331
5332 #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize())
5333 static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5334 PyObject * _resultobj;
5335 wxSize * _result;
5336 wxWindow * _arg0;
5337 PyObject * _argo0 = 0;
5338 char *_kwnames[] = { "self", NULL };
5339 char _ptemp[128];
5340
5341 self = self;
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0))
5343 return NULL;
5344 if (_argo0) {
5345 if (_argo0 == Py_None) { _arg0 = NULL; }
5346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p.");
5348 return NULL;
5349 }
5350 }
5351 {
5352 PyThreadState* __tstate = wxPyBeginAllowThreads();
5353 _result = new wxSize (wxWindow_GetBestSize(_arg0));
5354
5355 wxPyEndAllowThreads(__tstate);
5356 if (PyErr_Occurred()) return NULL;
5357 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5358 _resultobj = Py_BuildValue("s",_ptemp);
5359 return _resultobj;
5360 }
5361
5362 #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize())
5363 static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5364 PyObject * _resultobj;
5365 wxSize * _result;
5366 wxWindow * _arg0;
5367 PyObject * _argo0 = 0;
5368 char *_kwnames[] = { "self", NULL };
5369 char _ptemp[128];
5370
5371 self = self;
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0))
5373 return NULL;
5374 if (_argo0) {
5375 if (_argo0 == Py_None) { _arg0 = NULL; }
5376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p.");
5378 return NULL;
5379 }
5380 }
5381 {
5382 PyThreadState* __tstate = wxPyBeginAllowThreads();
5383 _result = new wxSize (wxWindow_GetMaxSize(_arg0));
5384
5385 wxPyEndAllowThreads(__tstate);
5386 if (PyErr_Occurred()) return NULL;
5387 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
5388 _resultobj = Py_BuildValue("s",_ptemp);
5389 return _resultobj;
5390 }
5391
5392 #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0))
5393 static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5394 PyObject * _resultobj;
5395 wxWindow * _arg0;
5396 wxCaret * _arg1;
5397 PyObject * _argo0 = 0;
5398 PyObject * _argo1 = 0;
5399 char *_kwnames[] = { "self","caret", NULL };
5400
5401 self = self;
5402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1))
5403 return NULL;
5404 if (_argo0) {
5405 if (_argo0 == Py_None) { _arg0 = NULL; }
5406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p.");
5408 return NULL;
5409 }
5410 }
5411 if (_argo1) {
5412 if (_argo1 == Py_None) { _arg1 = NULL; }
5413 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) {
5414 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p.");
5415 return NULL;
5416 }
5417 }
5418 {
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 wxWindow_SetCaret(_arg0,_arg1);
5421
5422 wxPyEndAllowThreads(__tstate);
5423 if (PyErr_Occurred()) return NULL;
5424 } Py_INCREF(Py_None);
5425 _resultobj = Py_None;
5426 return _resultobj;
5427 }
5428
5429 #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret())
5430 static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
5431 PyObject * _resultobj;
5432 wxCaret * _result;
5433 wxWindow * _arg0;
5434 PyObject * _argo0 = 0;
5435 char *_kwnames[] = { "self", NULL };
5436 char _ptemp[128];
5437
5438 self = self;
5439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0))
5440 return NULL;
5441 if (_argo0) {
5442 if (_argo0 == Py_None) { _arg0 = NULL; }
5443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p.");
5445 return NULL;
5446 }
5447 }
5448 {
5449 PyThreadState* __tstate = wxPyBeginAllowThreads();
5450 _result = (wxCaret *)wxWindow_GetCaret(_arg0);
5451
5452 wxPyEndAllowThreads(__tstate);
5453 if (PyErr_Occurred()) return NULL;
5454 } if (_result) {
5455 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p");
5456 _resultobj = Py_BuildValue("s",_ptemp);
5457 } else {
5458 Py_INCREF(Py_None);
5459 _resultobj = Py_None;
5460 }
5461 return _resultobj;
5462 }
5463
5464 #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze())
5465 static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
5466 PyObject * _resultobj;
5467 wxWindow * _arg0;
5468 PyObject * _argo0 = 0;
5469 char *_kwnames[] = { "self", NULL };
5470
5471 self = self;
5472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0))
5473 return NULL;
5474 if (_argo0) {
5475 if (_argo0 == Py_None) { _arg0 = NULL; }
5476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p.");
5478 return NULL;
5479 }
5480 }
5481 {
5482 PyThreadState* __tstate = wxPyBeginAllowThreads();
5483 wxWindow_Freeze(_arg0);
5484
5485 wxPyEndAllowThreads(__tstate);
5486 if (PyErr_Occurred()) return NULL;
5487 } Py_INCREF(Py_None);
5488 _resultobj = Py_None;
5489 return _resultobj;
5490 }
5491
5492 #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw())
5493 static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
5494 PyObject * _resultobj;
5495 wxWindow * _arg0;
5496 PyObject * _argo0 = 0;
5497 char *_kwnames[] = { "self", NULL };
5498
5499 self = self;
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0))
5501 return NULL;
5502 if (_argo0) {
5503 if (_argo0 == Py_None) { _arg0 = NULL; }
5504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p.");
5506 return NULL;
5507 }
5508 }
5509 {
5510 PyThreadState* __tstate = wxPyBeginAllowThreads();
5511 wxWindow_Thaw(_arg0);
5512
5513 wxPyEndAllowThreads(__tstate);
5514 if (PyErr_Occurred()) return NULL;
5515 } Py_INCREF(Py_None);
5516 _resultobj = Py_None;
5517 return _resultobj;
5518 }
5519
5520 #define wxWindow_Update(_swigobj) (_swigobj->Update())
5521 static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
5522 PyObject * _resultobj;
5523 wxWindow * _arg0;
5524 PyObject * _argo0 = 0;
5525 char *_kwnames[] = { "self", NULL };
5526
5527 self = self;
5528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0))
5529 return NULL;
5530 if (_argo0) {
5531 if (_argo0 == Py_None) { _arg0 = NULL; }
5532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p.");
5534 return NULL;
5535 }
5536 }
5537 {
5538 PyThreadState* __tstate = wxPyBeginAllowThreads();
5539 wxWindow_Update(_arg0);
5540
5541 wxPyEndAllowThreads(__tstate);
5542 if (PyErr_Occurred()) return NULL;
5543 } Py_INCREF(Py_None);
5544 _resultobj = Py_None;
5545 return _resultobj;
5546 }
5547
5548 #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText())
5549 static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
5550 PyObject * _resultobj;
5551 wxString * _result;
5552 wxWindow * _arg0;
5553 PyObject * _argo0 = 0;
5554 char *_kwnames[] = { "self", NULL };
5555
5556 self = self;
5557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0))
5558 return NULL;
5559 if (_argo0) {
5560 if (_argo0 == Py_None) { _arg0 = NULL; }
5561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p.");
5563 return NULL;
5564 }
5565 }
5566 {
5567 PyThreadState* __tstate = wxPyBeginAllowThreads();
5568 _result = new wxString (wxWindow_GetHelpText(_arg0));
5569
5570 wxPyEndAllowThreads(__tstate);
5571 if (PyErr_Occurred()) return NULL;
5572 }{
5573 #if wxUSE_UNICODE
5574 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
5575 #else
5576 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5577 #endif
5578 }
5579 {
5580 delete _result;
5581 }
5582 return _resultobj;
5583 }
5584
5585 #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0))
5586 static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
5587 PyObject * _resultobj;
5588 wxWindow * _arg0;
5589 wxString * _arg1;
5590 PyObject * _argo0 = 0;
5591 PyObject * _obj1 = 0;
5592 char *_kwnames[] = { "self","helpText", NULL };
5593
5594 self = self;
5595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1))
5596 return NULL;
5597 if (_argo0) {
5598 if (_argo0 == Py_None) { _arg0 = NULL; }
5599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p.");
5601 return NULL;
5602 }
5603 }
5604 {
5605 _arg1 = wxString_in_helper(_obj1);
5606 if (_arg1 == NULL)
5607 return NULL;
5608 }
5609 {
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 wxWindow_SetHelpText(_arg0,*_arg1);
5612
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) return NULL;
5615 } Py_INCREF(Py_None);
5616 _resultobj = Py_None;
5617 {
5618 if (_obj1)
5619 delete _arg1;
5620 }
5621 return _resultobj;
5622 }
5623
5624 #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0))
5625 static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject * _resultobj;
5627 wxWindow * _arg0;
5628 wxString * _arg1;
5629 PyObject * _argo0 = 0;
5630 PyObject * _obj1 = 0;
5631 char *_kwnames[] = { "self","text", NULL };
5632
5633 self = self;
5634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1))
5635 return NULL;
5636 if (_argo0) {
5637 if (_argo0 == Py_None) { _arg0 = NULL; }
5638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p.");
5640 return NULL;
5641 }
5642 }
5643 {
5644 _arg1 = wxString_in_helper(_obj1);
5645 if (_arg1 == NULL)
5646 return NULL;
5647 }
5648 {
5649 PyThreadState* __tstate = wxPyBeginAllowThreads();
5650 wxWindow_SetHelpTextForId(_arg0,*_arg1);
5651
5652 wxPyEndAllowThreads(__tstate);
5653 if (PyErr_Occurred()) return NULL;
5654 } Py_INCREF(Py_None);
5655 _resultobj = Py_None;
5656 {
5657 if (_obj1)
5658 delete _arg1;
5659 }
5660 return _resultobj;
5661 }
5662
5663 #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0))
5664 static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
5665 PyObject * _resultobj;
5666 bool _result;
5667 wxWindow * _arg0;
5668 int _arg1;
5669 PyObject * _argo0 = 0;
5670 char *_kwnames[] = { "self","lines", NULL };
5671
5672 self = self;
5673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1))
5674 return NULL;
5675 if (_argo0) {
5676 if (_argo0 == Py_None) { _arg0 = NULL; }
5677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p.");
5679 return NULL;
5680 }
5681 }
5682 {
5683 PyThreadState* __tstate = wxPyBeginAllowThreads();
5684 _result = (bool )wxWindow_ScrollLines(_arg0,_arg1);
5685
5686 wxPyEndAllowThreads(__tstate);
5687 if (PyErr_Occurred()) return NULL;
5688 } _resultobj = Py_BuildValue("i",_result);
5689 return _resultobj;
5690 }
5691
5692 #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0))
5693 static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
5694 PyObject * _resultobj;
5695 bool _result;
5696 wxWindow * _arg0;
5697 int _arg1;
5698 PyObject * _argo0 = 0;
5699 char *_kwnames[] = { "self","pages", NULL };
5700
5701 self = self;
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1))
5703 return NULL;
5704 if (_argo0) {
5705 if (_argo0 == Py_None) { _arg0 = NULL; }
5706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p.");
5708 return NULL;
5709 }
5710 }
5711 {
5712 PyThreadState* __tstate = wxPyBeginAllowThreads();
5713 _result = (bool )wxWindow_ScrollPages(_arg0,_arg1);
5714
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) return NULL;
5717 } _resultobj = Py_BuildValue("i",_result);
5718 return _resultobj;
5719 }
5720
5721 #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp())
5722 static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
5723 PyObject * _resultobj;
5724 bool _result;
5725 wxWindow * _arg0;
5726 PyObject * _argo0 = 0;
5727 char *_kwnames[] = { "self", NULL };
5728
5729 self = self;
5730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0))
5731 return NULL;
5732 if (_argo0) {
5733 if (_argo0 == Py_None) { _arg0 = NULL; }
5734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p.");
5736 return NULL;
5737 }
5738 }
5739 {
5740 PyThreadState* __tstate = wxPyBeginAllowThreads();
5741 _result = (bool )wxWindow_LineUp(_arg0);
5742
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) return NULL;
5745 } _resultobj = Py_BuildValue("i",_result);
5746 return _resultobj;
5747 }
5748
5749 #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown())
5750 static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
5751 PyObject * _resultobj;
5752 bool _result;
5753 wxWindow * _arg0;
5754 PyObject * _argo0 = 0;
5755 char *_kwnames[] = { "self", NULL };
5756
5757 self = self;
5758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0))
5759 return NULL;
5760 if (_argo0) {
5761 if (_argo0 == Py_None) { _arg0 = NULL; }
5762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p.");
5764 return NULL;
5765 }
5766 }
5767 {
5768 PyThreadState* __tstate = wxPyBeginAllowThreads();
5769 _result = (bool )wxWindow_LineDown(_arg0);
5770
5771 wxPyEndAllowThreads(__tstate);
5772 if (PyErr_Occurred()) return NULL;
5773 } _resultobj = Py_BuildValue("i",_result);
5774 return _resultobj;
5775 }
5776
5777 #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp())
5778 static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
5779 PyObject * _resultobj;
5780 bool _result;
5781 wxWindow * _arg0;
5782 PyObject * _argo0 = 0;
5783 char *_kwnames[] = { "self", NULL };
5784
5785 self = self;
5786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0))
5787 return NULL;
5788 if (_argo0) {
5789 if (_argo0 == Py_None) { _arg0 = NULL; }
5790 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5791 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p.");
5792 return NULL;
5793 }
5794 }
5795 {
5796 PyThreadState* __tstate = wxPyBeginAllowThreads();
5797 _result = (bool )wxWindow_PageUp(_arg0);
5798
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) return NULL;
5801 } _resultobj = Py_BuildValue("i",_result);
5802 return _resultobj;
5803 }
5804
5805 #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown())
5806 static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
5807 PyObject * _resultobj;
5808 bool _result;
5809 wxWindow * _arg0;
5810 PyObject * _argo0 = 0;
5811 char *_kwnames[] = { "self", NULL };
5812
5813 self = self;
5814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0))
5815 return NULL;
5816 if (_argo0) {
5817 if (_argo0 == Py_None) { _arg0 = NULL; }
5818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p.");
5820 return NULL;
5821 }
5822 }
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 _result = (bool )wxWindow_PageDown(_arg0);
5826
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) return NULL;
5829 } _resultobj = Py_BuildValue("i",_result);
5830 return _resultobj;
5831 }
5832
5833 static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
5834 PyObject * _resultobj;
5835 wxWindow * _result;
5836 char *_kwnames[] = { NULL };
5837
5838 self = self;
5839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames))
5840 return NULL;
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 _result = (wxWindow *)wxWindow::FindFocus();
5844
5845 wxPyEndAllowThreads(__tstate);
5846 if (PyErr_Occurred()) return NULL;
5847 }{ _resultobj = wxPyMake_wxObject(_result); }
5848 return _resultobj;
5849 }
5850
5851 static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5852 PyObject * _resultobj;
5853 int _result;
5854 char *_kwnames[] = { NULL };
5855
5856 self = self;
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames))
5858 return NULL;
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 _result = (int )wxWindow::NewControlId();
5862
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) return NULL;
5865 } _resultobj = Py_BuildValue("i",_result);
5866 return _resultobj;
5867 }
5868
5869 static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5870 PyObject * _resultobj;
5871 int _result;
5872 int _arg0;
5873 char *_kwnames[] = { "id", NULL };
5874
5875 self = self;
5876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0))
5877 return NULL;
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 _result = (int )wxWindow::NextControlId(_arg0);
5881
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) return NULL;
5884 } _resultobj = Py_BuildValue("i",_result);
5885 return _resultobj;
5886 }
5887
5888 static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
5889 PyObject * _resultobj;
5890 int _result;
5891 int _arg0;
5892 char *_kwnames[] = { "id", NULL };
5893
5894 self = self;
5895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0))
5896 return NULL;
5897 {
5898 PyThreadState* __tstate = wxPyBeginAllowThreads();
5899 _result = (int )wxWindow::PrevControlId(_arg0);
5900
5901 wxPyEndAllowThreads(__tstate);
5902 if (PyErr_Occurred()) return NULL;
5903 } _resultobj = Py_BuildValue("i",_result);
5904 return _resultobj;
5905 }
5906
5907 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
5908 static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5909 PyObject * _resultobj;
5910 wxWindow * _arg0;
5911 wxAcceleratorTable * _arg1;
5912 PyObject * _argo0 = 0;
5913 PyObject * _argo1 = 0;
5914 char *_kwnames[] = { "self","accel", NULL };
5915
5916 self = self;
5917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
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_SetAcceleratorTable. Expected _wxWindow_p.");
5923 return NULL;
5924 }
5925 }
5926 if (_argo1) {
5927 if (_argo1 == Py_None) { _arg1 = NULL; }
5928 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
5929 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
5930 return NULL;
5931 }
5932 }
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 wxWindow_SetAcceleratorTable(_arg0,*_arg1);
5936
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) return NULL;
5939 } Py_INCREF(Py_None);
5940 _resultobj = Py_None;
5941 return _resultobj;
5942 }
5943
5944 #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable())
5945 static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5946 PyObject * _resultobj;
5947 wxAcceleratorTable * _result;
5948 wxWindow * _arg0;
5949 PyObject * _argo0 = 0;
5950 char *_kwnames[] = { "self", NULL };
5951 char _ptemp[128];
5952
5953 self = self;
5954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0))
5955 return NULL;
5956 if (_argo0) {
5957 if (_argo0 == Py_None) { _arg0 = NULL; }
5958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p.");
5960 return NULL;
5961 }
5962 }
5963 {
5964 PyThreadState* __tstate = wxPyBeginAllowThreads();
5965 _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0);
5966
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) return NULL;
5969 } if (_result) {
5970 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
5971 _resultobj = Py_BuildValue("s",_ptemp);
5972 } else {
5973 Py_INCREF(Py_None);
5974 _resultobj = Py_None;
5975 }
5976 return _resultobj;
5977 }
5978
5979 #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0))
5980 static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) {
5981 PyObject * _resultobj;
5982 wxWindow * _arg0;
5983 wxPaintEvent * _arg1;
5984 PyObject * _argo0 = 0;
5985 PyObject * _argo1 = 0;
5986 char *_kwnames[] = { "self","event", NULL };
5987
5988 self = self;
5989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1))
5990 return NULL;
5991 if (_argo0) {
5992 if (_argo0 == Py_None) { _arg0 = NULL; }
5993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p.");
5995 return NULL;
5996 }
5997 }
5998 if (_argo1) {
5999 if (_argo1 == Py_None) { _arg1 = NULL; }
6000 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) {
6001 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p.");
6002 return NULL;
6003 }
6004 }
6005 {
6006 PyThreadState* __tstate = wxPyBeginAllowThreads();
6007 wxWindow_OnPaint(_arg0,*_arg1);
6008
6009 wxPyEndAllowThreads(__tstate);
6010 if (PyErr_Occurred()) return NULL;
6011 } Py_INCREF(Py_None);
6012 _resultobj = Py_None;
6013 return _resultobj;
6014 }
6015
6016 #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
6017 static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6018 PyObject * _resultobj;
6019 wxWindow * _result;
6020 wxWindow * _arg0;
6021 PyObject * _argo0 = 0;
6022 char *_kwnames[] = { "self", NULL };
6023
6024 self = self;
6025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0))
6026 return NULL;
6027 if (_argo0) {
6028 if (_argo0 == Py_None) { _arg0 = NULL; }
6029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p.");
6031 return NULL;
6032 }
6033 }
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0);
6037
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) return NULL;
6040 }{ _resultobj = wxPyMake_wxObject(_result); }
6041 return _resultobj;
6042 }
6043
6044 #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
6045 static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6046 PyObject * _resultobj;
6047 wxWindow * _result;
6048 wxWindow * _arg0;
6049 wxWindow * _arg1;
6050 PyObject * _argo0 = 0;
6051 PyObject * _argo1 = 0;
6052 char *_kwnames[] = { "self","btn", NULL };
6053
6054 self = self;
6055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1))
6056 return NULL;
6057 if (_argo0) {
6058 if (_argo0 == Py_None) { _arg0 = NULL; }
6059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p.");
6061 return NULL;
6062 }
6063 }
6064 if (_argo1) {
6065 if (_argo1 == Py_None) { _arg1 = NULL; }
6066 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6067 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p.");
6068 return NULL;
6069 }
6070 }
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1);
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) return NULL;
6077 }{ _resultobj = wxPyMake_wxObject(_result); }
6078 return _resultobj;
6079 }
6080
6081 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
6082 static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
6083 PyObject * _resultobj;
6084 wxWindow * _arg0;
6085 int _arg1;
6086 int _arg2;
6087 PyObject * _argo0 = 0;
6088 char *_kwnames[] = { "self","x","y", NULL };
6089
6090 self = self;
6091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2))
6092 return NULL;
6093 if (_argo0) {
6094 if (_argo0 == Py_None) { _arg0 = NULL; }
6095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
6097 return NULL;
6098 }
6099 }
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 wxWindow_WarpPointer(_arg0,_arg1,_arg2);
6103
6104 wxPyEndAllowThreads(__tstate);
6105 if (PyErr_Occurred()) return NULL;
6106 } Py_INCREF(Py_None);
6107 _resultobj = Py_None;
6108 return _resultobj;
6109 }
6110
6111 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
6112 static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
6113 PyObject * _resultobj;
6114 wxWindow * _arg0;
6115 PyObject * _argo0 = 0;
6116 char *_kwnames[] = { "self", NULL };
6117
6118 self = self;
6119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0))
6120 return NULL;
6121 if (_argo0) {
6122 if (_argo0 == Py_None) { _arg0 = NULL; }
6123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
6125 return NULL;
6126 }
6127 }
6128 {
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 wxWindow_CaptureMouse(_arg0);
6131
6132 wxPyEndAllowThreads(__tstate);
6133 if (PyErr_Occurred()) return NULL;
6134 } Py_INCREF(Py_None);
6135 _resultobj = Py_None;
6136 return _resultobj;
6137 }
6138
6139 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
6140 static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
6141 PyObject * _resultobj;
6142 wxWindow * _arg0;
6143 PyObject * _argo0 = 0;
6144 char *_kwnames[] = { "self", NULL };
6145
6146 self = self;
6147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0))
6148 return NULL;
6149 if (_argo0) {
6150 if (_argo0 == Py_None) { _arg0 = NULL; }
6151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
6153 return NULL;
6154 }
6155 }
6156 {
6157 PyThreadState* __tstate = wxPyBeginAllowThreads();
6158 wxWindow_ReleaseMouse(_arg0);
6159
6160 wxPyEndAllowThreads(__tstate);
6161 if (PyErr_Occurred()) return NULL;
6162 } Py_INCREF(Py_None);
6163 _resultobj = Py_None;
6164 return _resultobj;
6165 }
6166
6167 static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
6168 PyObject * _resultobj;
6169 wxWindow * _result;
6170 char *_kwnames[] = { NULL };
6171
6172 self = self;
6173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames))
6174 return NULL;
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 _result = (wxWindow *)wxWindow::GetCapture();
6178
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) return NULL;
6181 }{ _resultobj = wxPyMake_wxObject(_result); }
6182 return _resultobj;
6183 }
6184
6185 #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture())
6186 static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
6187 PyObject * _resultobj;
6188 bool _result;
6189 wxWindow * _arg0;
6190 PyObject * _argo0 = 0;
6191 char *_kwnames[] = { "self", NULL };
6192
6193 self = self;
6194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0))
6195 return NULL;
6196 if (_argo0) {
6197 if (_argo0 == Py_None) { _arg0 = NULL; }
6198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p.");
6200 return NULL;
6201 }
6202 }
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 _result = (bool )wxWindow_HasCapture(_arg0);
6206
6207 wxPyEndAllowThreads(__tstate);
6208 if (PyErr_Occurred()) return NULL;
6209 } _resultobj = Py_BuildValue("i",_result);
6210 return _resultobj;
6211 }
6212
6213 static void *SwigwxPanelTowxWindow(void *ptr) {
6214 wxPanel *src;
6215 wxWindow *dest;
6216 src = (wxPanel *) ptr;
6217 dest = (wxWindow *) src;
6218 return (void *) dest;
6219 }
6220
6221 static void *SwigwxPanelTowxEvtHandler(void *ptr) {
6222 wxPanel *src;
6223 wxEvtHandler *dest;
6224 src = (wxPanel *) ptr;
6225 dest = (wxEvtHandler *) src;
6226 return (void *) dest;
6227 }
6228
6229 static void *SwigwxPanelTowxObject(void *ptr) {
6230 wxPanel *src;
6231 wxObject *dest;
6232 src = (wxPanel *) ptr;
6233 dest = (wxObject *) src;
6234 return (void *) dest;
6235 }
6236
6237 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6238 static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
6239 PyObject * _resultobj;
6240 wxPanel * _result;
6241 wxWindow * _arg0;
6242 wxWindowID _arg1;
6243 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6244 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6245 long _arg4 = (long ) wxTAB_TRAVERSAL;
6246 wxString * _arg5 = (wxString *) &wxPyPanelNameStr;
6247 PyObject * _argo0 = 0;
6248 wxPoint temp;
6249 PyObject * _obj2 = 0;
6250 wxSize temp0;
6251 PyObject * _obj3 = 0;
6252 PyObject * _obj5 = 0;
6253 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
6254 char _ptemp[128];
6255
6256 self = self;
6257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
6258 return NULL;
6259 if (_argo0) {
6260 if (_argo0 == Py_None) { _arg0 = NULL; }
6261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
6263 return NULL;
6264 }
6265 }
6266 if (_obj2)
6267 {
6268 _arg2 = &temp;
6269 if (! wxPoint_helper(_obj2, &_arg2))
6270 return NULL;
6271 }
6272 if (_obj3)
6273 {
6274 _arg3 = &temp0;
6275 if (! wxSize_helper(_obj3, &_arg3))
6276 return NULL;
6277 }
6278 if (_obj5)
6279 {
6280 _arg5 = wxString_in_helper(_obj5);
6281 if (_arg5 == NULL)
6282 return NULL;
6283 }
6284 {
6285 PyThreadState* __tstate = wxPyBeginAllowThreads();
6286 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
6287
6288 wxPyEndAllowThreads(__tstate);
6289 if (PyErr_Occurred()) return NULL;
6290 } if (_result) {
6291 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
6292 _resultobj = Py_BuildValue("s",_ptemp);
6293 } else {
6294 Py_INCREF(Py_None);
6295 _resultobj = Py_None;
6296 }
6297 {
6298 if (_obj5)
6299 delete _arg5;
6300 }
6301 return _resultobj;
6302 }
6303
6304 #define new_wxPrePanel() (new wxPanel())
6305 static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject * _resultobj;
6307 wxPanel * _result;
6308 char *_kwnames[] = { NULL };
6309 char _ptemp[128];
6310
6311 self = self;
6312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames))
6313 return NULL;
6314 {
6315 PyThreadState* __tstate = wxPyBeginAllowThreads();
6316 _result = (wxPanel *)new_wxPrePanel();
6317
6318 wxPyEndAllowThreads(__tstate);
6319 if (PyErr_Occurred()) return NULL;
6320 } if (_result) {
6321 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
6322 _resultobj = Py_BuildValue("s",_ptemp);
6323 } else {
6324 Py_INCREF(Py_None);
6325 _resultobj = Py_None;
6326 }
6327 return _resultobj;
6328 }
6329
6330 #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6331 static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject * _resultobj;
6333 bool _result;
6334 wxPanel * _arg0;
6335 wxWindow * _arg1;
6336 wxWindowID _arg2;
6337 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6338 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6339 long _arg5 = (long ) wxTAB_TRAVERSAL;
6340 wxString * _arg6 = (wxString *) &wxPyPanelNameStr;
6341 PyObject * _argo0 = 0;
6342 PyObject * _argo1 = 0;
6343 wxPoint temp;
6344 PyObject * _obj3 = 0;
6345 wxSize temp0;
6346 PyObject * _obj4 = 0;
6347 PyObject * _obj6 = 0;
6348 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
6349
6350 self = self;
6351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
6352 return NULL;
6353 if (_argo0) {
6354 if (_argo0 == Py_None) { _arg0 = NULL; }
6355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
6356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p.");
6357 return NULL;
6358 }
6359 }
6360 if (_argo1) {
6361 if (_argo1 == Py_None) { _arg1 = NULL; }
6362 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6363 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p.");
6364 return NULL;
6365 }
6366 }
6367 if (_obj3)
6368 {
6369 _arg3 = &temp;
6370 if (! wxPoint_helper(_obj3, &_arg3))
6371 return NULL;
6372 }
6373 if (_obj4)
6374 {
6375 _arg4 = &temp0;
6376 if (! wxSize_helper(_obj4, &_arg4))
6377 return NULL;
6378 }
6379 if (_obj6)
6380 {
6381 _arg6 = wxString_in_helper(_obj6);
6382 if (_arg6 == NULL)
6383 return NULL;
6384 }
6385 {
6386 PyThreadState* __tstate = wxPyBeginAllowThreads();
6387 _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
6388
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) return NULL;
6391 } _resultobj = Py_BuildValue("i",_result);
6392 {
6393 if (_obj6)
6394 delete _arg6;
6395 }
6396 return _resultobj;
6397 }
6398
6399 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
6400 static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
6401 PyObject * _resultobj;
6402 wxPanel * _arg0;
6403 PyObject * _argo0 = 0;
6404 char *_kwnames[] = { "self", NULL };
6405
6406 self = self;
6407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0))
6408 return NULL;
6409 if (_argo0) {
6410 if (_argo0 == Py_None) { _arg0 = NULL; }
6411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
6412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
6413 return NULL;
6414 }
6415 }
6416 {
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 wxPanel_InitDialog(_arg0);
6419
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) return NULL;
6422 } Py_INCREF(Py_None);
6423 _resultobj = Py_None;
6424 return _resultobj;
6425 }
6426
6427 static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
6428 wxScrolledWindow *src;
6429 wxPanel *dest;
6430 src = (wxScrolledWindow *) ptr;
6431 dest = (wxPanel *) src;
6432 return (void *) dest;
6433 }
6434
6435 static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
6436 wxScrolledWindow *src;
6437 wxWindow *dest;
6438 src = (wxScrolledWindow *) ptr;
6439 dest = (wxWindow *) src;
6440 return (void *) dest;
6441 }
6442
6443 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
6444 wxScrolledWindow *src;
6445 wxEvtHandler *dest;
6446 src = (wxScrolledWindow *) ptr;
6447 dest = (wxEvtHandler *) src;
6448 return (void *) dest;
6449 }
6450
6451 static void *SwigwxScrolledWindowTowxObject(void *ptr) {
6452 wxScrolledWindow *src;
6453 wxObject *dest;
6454 src = (wxScrolledWindow *) ptr;
6455 dest = (wxObject *) src;
6456 return (void *) dest;
6457 }
6458
6459 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6460 static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6461 PyObject * _resultobj;
6462 wxScrolledWindow * _result;
6463 wxWindow * _arg0;
6464 wxWindowID _arg1 = (wxWindowID ) -1;
6465 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6466 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6467 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
6468 wxString * _arg5 = (wxString *) &wxPyPanelNameStr;
6469 PyObject * _argo0 = 0;
6470 wxPoint temp;
6471 PyObject * _obj2 = 0;
6472 wxSize temp0;
6473 PyObject * _obj3 = 0;
6474 PyObject * _obj5 = 0;
6475 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
6476 char _ptemp[128];
6477
6478 self = self;
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5))
6480 return NULL;
6481 if (_argo0) {
6482 if (_argo0 == Py_None) { _arg0 = NULL; }
6483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
6484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
6485 return NULL;
6486 }
6487 }
6488 if (_obj2)
6489 {
6490 _arg2 = &temp;
6491 if (! wxPoint_helper(_obj2, &_arg2))
6492 return NULL;
6493 }
6494 if (_obj3)
6495 {
6496 _arg3 = &temp0;
6497 if (! wxSize_helper(_obj3, &_arg3))
6498 return NULL;
6499 }
6500 if (_obj5)
6501 {
6502 _arg5 = wxString_in_helper(_obj5);
6503 if (_arg5 == NULL)
6504 return NULL;
6505 }
6506 {
6507 PyThreadState* __tstate = wxPyBeginAllowThreads();
6508 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
6509
6510 wxPyEndAllowThreads(__tstate);
6511 if (PyErr_Occurred()) return NULL;
6512 } if (_result) {
6513 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
6514 _resultobj = Py_BuildValue("s",_ptemp);
6515 } else {
6516 Py_INCREF(Py_None);
6517 _resultobj = Py_None;
6518 }
6519 {
6520 if (_obj5)
6521 delete _arg5;
6522 }
6523 return _resultobj;
6524 }
6525
6526 #define new_wxPreScrolledWindow() (new wxScrolledWindow())
6527 static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6528 PyObject * _resultobj;
6529 wxScrolledWindow * _result;
6530 char *_kwnames[] = { NULL };
6531 char _ptemp[128];
6532
6533 self = self;
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames))
6535 return NULL;
6536 {
6537 PyThreadState* __tstate = wxPyBeginAllowThreads();
6538 _result = (wxScrolledWindow *)new_wxPreScrolledWindow();
6539
6540 wxPyEndAllowThreads(__tstate);
6541 if (PyErr_Occurred()) return NULL;
6542 } if (_result) {
6543 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
6544 _resultobj = Py_BuildValue("s",_ptemp);
6545 } else {
6546 Py_INCREF(Py_None);
6547 _resultobj = Py_None;
6548 }
6549 return _resultobj;
6550 }
6551
6552 #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6553 static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6554 PyObject * _resultobj;
6555 bool _result;
6556 wxScrolledWindow * _arg0;
6557 wxWindow * _arg1;
6558 wxWindowID _arg2 = (wxWindowID ) -1;
6559 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6560 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6561 long _arg5 = (long ) wxHSCROLL|wxVSCROLL;
6562 wxString * _arg6 = (wxString *) &wxPyPanelNameStr;
6563 PyObject * _argo0 = 0;
6564 PyObject * _argo1 = 0;
6565 wxPoint temp;
6566 PyObject * _obj3 = 0;
6567 wxSize temp0;
6568 PyObject * _obj4 = 0;
6569 PyObject * _obj6 = 0;
6570 char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL };
6571
6572 self = self;
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6))
6574 return NULL;
6575 if (_argo0) {
6576 if (_argo0 == Py_None) { _arg0 = NULL; }
6577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p.");
6579 return NULL;
6580 }
6581 }
6582 if (_argo1) {
6583 if (_argo1 == Py_None) { _arg1 = NULL; }
6584 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6585 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p.");
6586 return NULL;
6587 }
6588 }
6589 if (_obj3)
6590 {
6591 _arg3 = &temp;
6592 if (! wxPoint_helper(_obj3, &_arg3))
6593 return NULL;
6594 }
6595 if (_obj4)
6596 {
6597 _arg4 = &temp0;
6598 if (! wxSize_helper(_obj4, &_arg4))
6599 return NULL;
6600 }
6601 if (_obj6)
6602 {
6603 _arg6 = wxString_in_helper(_obj6);
6604 if (_arg6 == NULL)
6605 return NULL;
6606 }
6607 {
6608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6609 _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
6610
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) return NULL;
6613 } _resultobj = Py_BuildValue("i",_result);
6614 {
6615 if (_obj6)
6616 delete _arg6;
6617 }
6618 return _resultobj;
6619 }
6620
6621 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
6622 static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
6623 PyObject * _resultobj;
6624 wxScrolledWindow * _arg0;
6625 bool _arg1;
6626 bool _arg2;
6627 PyObject * _argo0 = 0;
6628 int tempbool1;
6629 int tempbool2;
6630 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
6631
6632 self = self;
6633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
6634 return NULL;
6635 if (_argo0) {
6636 if (_argo0 == Py_None) { _arg0 = NULL; }
6637 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6638 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
6639 return NULL;
6640 }
6641 }
6642 _arg1 = (bool ) tempbool1;
6643 _arg2 = (bool ) tempbool2;
6644 {
6645 PyThreadState* __tstate = wxPyBeginAllowThreads();
6646 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
6647
6648 wxPyEndAllowThreads(__tstate);
6649 if (PyErr_Occurred()) return NULL;
6650 } Py_INCREF(Py_None);
6651 _resultobj = Py_None;
6652 return _resultobj;
6653 }
6654
6655 #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0))
6656 static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6657 PyObject * _resultobj;
6658 int _result;
6659 wxScrolledWindow * _arg0;
6660 int _arg1;
6661 PyObject * _argo0 = 0;
6662 char *_kwnames[] = { "self","orient", NULL };
6663
6664 self = self;
6665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1))
6666 return NULL;
6667 if (_argo0) {
6668 if (_argo0 == Py_None) { _arg0 = NULL; }
6669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p.");
6671 return NULL;
6672 }
6673 }
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1);
6677
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) return NULL;
6680 } _resultobj = Py_BuildValue("i",_result);
6681 return _resultobj;
6682 }
6683
6684 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
6685 static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
6686 PyObject * _resultobj;
6687 wxScrolledWindow * _arg0;
6688 int * _arg1;
6689 int temp;
6690 int * _arg2;
6691 int temp0;
6692 PyObject * _argo0 = 0;
6693 char *_kwnames[] = { "self", NULL };
6694
6695 self = self;
6696 {
6697 _arg1 = &temp;
6698 }
6699 {
6700 _arg2 = &temp0;
6701 }
6702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
6703 return NULL;
6704 if (_argo0) {
6705 if (_argo0 == Py_None) { _arg0 = NULL; }
6706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
6708 return NULL;
6709 }
6710 }
6711 {
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) return NULL;
6717 } Py_INCREF(Py_None);
6718 _resultobj = Py_None;
6719 {
6720 PyObject *o;
6721 o = PyInt_FromLong((long) (*_arg1));
6722 _resultobj = t_output_helper(_resultobj, o);
6723 }
6724 {
6725 PyObject *o;
6726 o = PyInt_FromLong((long) (*_arg2));
6727 _resultobj = t_output_helper(_resultobj, o);
6728 }
6729 return _resultobj;
6730 }
6731
6732 #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow())
6733 static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6734 PyObject * _resultobj;
6735 wxWindow * _result;
6736 wxScrolledWindow * _arg0;
6737 PyObject * _argo0 = 0;
6738 char *_kwnames[] = { "self", NULL };
6739
6740 self = self;
6741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0))
6742 return NULL;
6743 if (_argo0) {
6744 if (_argo0 == Py_None) { _arg0 = NULL; }
6745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p.");
6747 return NULL;
6748 }
6749 }
6750 {
6751 PyThreadState* __tstate = wxPyBeginAllowThreads();
6752 _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0);
6753
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) return NULL;
6756 }{ _resultobj = wxPyMake_wxObject(_result); }
6757 return _resultobj;
6758 }
6759
6760 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
6761 static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6762 PyObject * _resultobj;
6763 wxScrolledWindow * _arg0;
6764 int * _arg1;
6765 int temp;
6766 int * _arg2;
6767 int temp0;
6768 PyObject * _argo0 = 0;
6769 char *_kwnames[] = { "self", NULL };
6770
6771 self = self;
6772 {
6773 _arg1 = &temp;
6774 }
6775 {
6776 _arg2 = &temp0;
6777 }
6778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0))
6779 return NULL;
6780 if (_argo0) {
6781 if (_argo0 == Py_None) { _arg0 = NULL; }
6782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
6784 return NULL;
6785 }
6786 }
6787 {
6788 PyThreadState* __tstate = wxPyBeginAllowThreads();
6789 wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2);
6790
6791 wxPyEndAllowThreads(__tstate);
6792 if (PyErr_Occurred()) return NULL;
6793 } Py_INCREF(Py_None);
6794 _resultobj = Py_None;
6795 {
6796 PyObject *o;
6797 o = PyInt_FromLong((long) (*_arg1));
6798 _resultobj = t_output_helper(_resultobj, o);
6799 }
6800 {
6801 PyObject *o;
6802 o = PyInt_FromLong((long) (*_arg2));
6803 _resultobj = t_output_helper(_resultobj, o);
6804 }
6805 return _resultobj;
6806 }
6807
6808 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
6809 static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
6810 PyObject * _resultobj;
6811 bool _result;
6812 wxScrolledWindow * _arg0;
6813 PyObject * _argo0 = 0;
6814 char *_kwnames[] = { "self", NULL };
6815
6816 self = self;
6817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
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_IsRetained. Expected _wxScrolledWindow_p.");
6823 return NULL;
6824 }
6825 }
6826 {
6827 PyThreadState* __tstate = wxPyBeginAllowThreads();
6828 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
6829
6830 wxPyEndAllowThreads(__tstate);
6831 if (PyErr_Occurred()) return NULL;
6832 } _resultobj = Py_BuildValue("i",_result);
6833 return _resultobj;
6834 }
6835
6836 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
6837 static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6838 PyObject * _resultobj;
6839 wxScrolledWindow * _arg0;
6840 wxDC * _arg1;
6841 PyObject * _argo0 = 0;
6842 PyObject * _argo1 = 0;
6843 char *_kwnames[] = { "self","dc", NULL };
6844
6845 self = self;
6846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
6847 return NULL;
6848 if (_argo0) {
6849 if (_argo0 == Py_None) { _arg0 = NULL; }
6850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
6852 return NULL;
6853 }
6854 }
6855 if (_argo1) {
6856 if (_argo1 == Py_None) { _arg1 = NULL; }
6857 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
6858 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
6859 return NULL;
6860 }
6861 }
6862 {
6863 PyThreadState* __tstate = wxPyBeginAllowThreads();
6864 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
6865
6866 wxPyEndAllowThreads(__tstate);
6867 if (PyErr_Occurred()) return NULL;
6868 } Py_INCREF(Py_None);
6869 _resultobj = Py_None;
6870 return _resultobj;
6871 }
6872
6873 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
6874 static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
6875 PyObject * _resultobj;
6876 wxScrolledWindow * _arg0;
6877 int _arg1;
6878 int _arg2;
6879 PyObject * _argo0 = 0;
6880 char *_kwnames[] = { "self","x","y", NULL };
6881
6882 self = self;
6883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
6884 return NULL;
6885 if (_argo0) {
6886 if (_argo0 == Py_None) { _arg0 = NULL; }
6887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
6889 return NULL;
6890 }
6891 }
6892 {
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
6895
6896 wxPyEndAllowThreads(__tstate);
6897 if (PyErr_Occurred()) return NULL;
6898 } Py_INCREF(Py_None);
6899 _resultobj = Py_None;
6900 return _resultobj;
6901 }
6902
6903 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6904 static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
6905 PyObject * _resultobj;
6906 wxScrolledWindow * _arg0;
6907 int _arg1;
6908 int _arg2;
6909 int _arg3;
6910 int _arg4;
6911 int _arg5 = (int ) 0;
6912 int _arg6 = (int ) 0;
6913 int _arg7 = (int ) FALSE;
6914 PyObject * _argo0 = 0;
6915 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL };
6916
6917 self = self;
6918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7))
6919 return NULL;
6920 if (_argo0) {
6921 if (_argo0 == Py_None) { _arg0 = NULL; }
6922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
6924 return NULL;
6925 }
6926 }
6927 {
6928 PyThreadState* __tstate = wxPyBeginAllowThreads();
6929 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
6930
6931 wxPyEndAllowThreads(__tstate);
6932 if (PyErr_Occurred()) return NULL;
6933 } Py_INCREF(Py_None);
6934 _resultobj = Py_None;
6935 return _resultobj;
6936 }
6937
6938 #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1))
6939 static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6940 PyObject * _resultobj;
6941 wxScrolledWindow * _arg0;
6942 int _arg1;
6943 int _arg2;
6944 PyObject * _argo0 = 0;
6945 char *_kwnames[] = { "self","orient","pageSize", NULL };
6946
6947 self = self;
6948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2))
6949 return NULL;
6950 if (_argo0) {
6951 if (_argo0 == Py_None) { _arg0 = NULL; }
6952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p.");
6954 return NULL;
6955 }
6956 }
6957 {
6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
6959 wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2);
6960
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) return NULL;
6963 } Py_INCREF(Py_None);
6964 _resultobj = Py_None;
6965 return _resultobj;
6966 }
6967
6968 #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0))
6969 static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
6970 PyObject * _resultobj;
6971 wxScrolledWindow * _arg0;
6972 wxWindow * _arg1;
6973 PyObject * _argo0 = 0;
6974 PyObject * _argo1 = 0;
6975 char *_kwnames[] = { "self","window", NULL };
6976
6977 self = self;
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1))
6979 return NULL;
6980 if (_argo0) {
6981 if (_argo0 == Py_None) { _arg0 = NULL; }
6982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
6983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p.");
6984 return NULL;
6985 }
6986 }
6987 if (_argo1) {
6988 if (_argo1 == Py_None) { _arg1 = NULL; }
6989 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6990 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p.");
6991 return NULL;
6992 }
6993 }
6994 {
6995 PyThreadState* __tstate = wxPyBeginAllowThreads();
6996 wxScrolledWindow_SetTargetWindow(_arg0,_arg1);
6997
6998 wxPyEndAllowThreads(__tstate);
6999 if (PyErr_Occurred()) return NULL;
7000 } Py_INCREF(Py_None);
7001 _resultobj = Py_None;
7002 return _resultobj;
7003 }
7004
7005 #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1))
7006 static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
7007 PyObject * _resultobj;
7008 wxScrolledWindow * _arg0;
7009 int * _arg1;
7010 int temp;
7011 int * _arg2;
7012 int temp0;
7013 PyObject * _argo0 = 0;
7014 char *_kwnames[] = { "self", NULL };
7015
7016 self = self;
7017 {
7018 _arg1 = &temp;
7019 }
7020 {
7021 _arg2 = &temp0;
7022 }
7023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0))
7024 return NULL;
7025 if (_argo0) {
7026 if (_argo0 == Py_None) { _arg0 = NULL; }
7027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p.");
7029 return NULL;
7030 }
7031 }
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2);
7035
7036 wxPyEndAllowThreads(__tstate);
7037 if (PyErr_Occurred()) return NULL;
7038 } Py_INCREF(Py_None);
7039 _resultobj = Py_None;
7040 {
7041 PyObject *o;
7042 o = PyInt_FromLong((long) (*_arg1));
7043 _resultobj = t_output_helper(_resultobj, o);
7044 }
7045 {
7046 PyObject *o;
7047 o = PyInt_FromLong((long) (*_arg2));
7048 _resultobj = t_output_helper(_resultobj, o);
7049 }
7050 return _resultobj;
7051 }
7052
7053 #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0))
7054 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) {
7055 PyObject * _resultobj;
7056 wxPoint * _result;
7057 wxScrolledWindow * _arg0;
7058 wxPoint * _arg1;
7059 PyObject * _argo0 = 0;
7060 wxPoint temp;
7061 PyObject * _obj1 = 0;
7062 char *_kwnames[] = { "self","pt", NULL };
7063 char _ptemp[128];
7064
7065 self = self;
7066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1))
7067 return NULL;
7068 if (_argo0) {
7069 if (_argo0 == Py_None) { _arg0 = NULL; }
7070 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p.");
7072 return NULL;
7073 }
7074 }
7075 {
7076 _arg1 = &temp;
7077 if (! wxPoint_helper(_obj1, &_arg1))
7078 return NULL;
7079 }
7080 {
7081 PyThreadState* __tstate = wxPyBeginAllowThreads();
7082 _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1));
7083
7084 wxPyEndAllowThreads(__tstate);
7085 if (PyErr_Occurred()) return NULL;
7086 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
7087 _resultobj = Py_BuildValue("s",_ptemp);
7088 return _resultobj;
7089 }
7090
7091 #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7092 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) {
7093 PyObject * _resultobj;
7094 wxScrolledWindow * _arg0;
7095 int _arg1;
7096 int _arg2;
7097 int * _arg3;
7098 int temp;
7099 int * _arg4;
7100 int temp0;
7101 PyObject * _argo0 = 0;
7102 char *_kwnames[] = { "self","x","y", NULL };
7103
7104 self = self;
7105 {
7106 _arg3 = &temp;
7107 }
7108 {
7109 _arg4 = &temp0;
7110 }
7111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2))
7112 return NULL;
7113 if (_argo0) {
7114 if (_argo0 == Py_None) { _arg0 = NULL; }
7115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p.");
7117 return NULL;
7118 }
7119 }
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4);
7123
7124 wxPyEndAllowThreads(__tstate);
7125 if (PyErr_Occurred()) return NULL;
7126 } Py_INCREF(Py_None);
7127 _resultobj = Py_None;
7128 {
7129 PyObject *o;
7130 o = PyInt_FromLong((long) (*_arg3));
7131 _resultobj = t_output_helper(_resultobj, o);
7132 }
7133 {
7134 PyObject *o;
7135 o = PyInt_FromLong((long) (*_arg4));
7136 _resultobj = t_output_helper(_resultobj, o);
7137 }
7138 return _resultobj;
7139 }
7140
7141 #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0))
7142 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) {
7143 PyObject * _resultobj;
7144 wxPoint * _result;
7145 wxScrolledWindow * _arg0;
7146 wxPoint * _arg1;
7147 PyObject * _argo0 = 0;
7148 wxPoint temp;
7149 PyObject * _obj1 = 0;
7150 char *_kwnames[] = { "self","pt", NULL };
7151 char _ptemp[128];
7152
7153 self = self;
7154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1))
7155 return NULL;
7156 if (_argo0) {
7157 if (_argo0 == Py_None) { _arg0 = NULL; }
7158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p.");
7160 return NULL;
7161 }
7162 }
7163 {
7164 _arg1 = &temp;
7165 if (! wxPoint_helper(_obj1, &_arg1))
7166 return NULL;
7167 }
7168 {
7169 PyThreadState* __tstate = wxPyBeginAllowThreads();
7170 _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1));
7171
7172 wxPyEndAllowThreads(__tstate);
7173 if (PyErr_Occurred()) return NULL;
7174 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
7175 _resultobj = Py_BuildValue("s",_ptemp);
7176 return _resultobj;
7177 }
7178
7179 #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7180 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) {
7181 PyObject * _resultobj;
7182 wxScrolledWindow * _arg0;
7183 int _arg1;
7184 int _arg2;
7185 int * _arg3;
7186 int temp;
7187 int * _arg4;
7188 int temp0;
7189 PyObject * _argo0 = 0;
7190 char *_kwnames[] = { "self","x","y", NULL };
7191
7192 self = self;
7193 {
7194 _arg3 = &temp;
7195 }
7196 {
7197 _arg4 = &temp0;
7198 }
7199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2))
7200 return NULL;
7201 if (_argo0) {
7202 if (_argo0 == Py_None) { _arg0 = NULL; }
7203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p.");
7205 return NULL;
7206 }
7207 }
7208 {
7209 PyThreadState* __tstate = wxPyBeginAllowThreads();
7210 wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4);
7211
7212 wxPyEndAllowThreads(__tstate);
7213 if (PyErr_Occurred()) return NULL;
7214 } Py_INCREF(Py_None);
7215 _resultobj = Py_None;
7216 {
7217 PyObject *o;
7218 o = PyInt_FromLong((long) (*_arg3));
7219 _resultobj = t_output_helper(_resultobj, o);
7220 }
7221 {
7222 PyObject *o;
7223 o = PyInt_FromLong((long) (*_arg4));
7224 _resultobj = t_output_helper(_resultobj, o);
7225 }
7226 return _resultobj;
7227 }
7228
7229 #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1))
7230 static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7231 PyObject * _resultobj;
7232 wxScrolledWindow * _arg0;
7233 double _arg1;
7234 double _arg2;
7235 PyObject * _argo0 = 0;
7236 char *_kwnames[] = { "self","xs","ys", NULL };
7237
7238 self = self;
7239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2))
7240 return NULL;
7241 if (_argo0) {
7242 if (_argo0 == Py_None) { _arg0 = NULL; }
7243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p.");
7245 return NULL;
7246 }
7247 }
7248 {
7249 PyThreadState* __tstate = wxPyBeginAllowThreads();
7250 wxScrolledWindow_SetScale(_arg0,_arg1,_arg2);
7251
7252 wxPyEndAllowThreads(__tstate);
7253 if (PyErr_Occurred()) return NULL;
7254 } Py_INCREF(Py_None);
7255 _resultobj = Py_None;
7256 return _resultobj;
7257 }
7258
7259 #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX())
7260 static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) {
7261 PyObject * _resultobj;
7262 double _result;
7263 wxScrolledWindow * _arg0;
7264 PyObject * _argo0 = 0;
7265 char *_kwnames[] = { "self", NULL };
7266
7267 self = self;
7268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0))
7269 return NULL;
7270 if (_argo0) {
7271 if (_argo0 == Py_None) { _arg0 = NULL; }
7272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p.");
7274 return NULL;
7275 }
7276 }
7277 {
7278 PyThreadState* __tstate = wxPyBeginAllowThreads();
7279 _result = (double )wxScrolledWindow_GetScaleX(_arg0);
7280
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) return NULL;
7283 } _resultobj = Py_BuildValue("d",_result);
7284 return _resultobj;
7285 }
7286
7287 #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY())
7288 static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject * _resultobj;
7290 double _result;
7291 wxScrolledWindow * _arg0;
7292 PyObject * _argo0 = 0;
7293 char *_kwnames[] = { "self", NULL };
7294
7295 self = self;
7296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0))
7297 return NULL;
7298 if (_argo0) {
7299 if (_argo0 == Py_None) { _arg0 = NULL; }
7300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p.");
7302 return NULL;
7303 }
7304 }
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 _result = (double )wxScrolledWindow_GetScaleY(_arg0);
7308
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) return NULL;
7311 } _resultobj = Py_BuildValue("d",_result);
7312 return _resultobj;
7313 }
7314
7315 #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars())
7316 static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
7317 PyObject * _resultobj;
7318 wxScrolledWindow * _arg0;
7319 PyObject * _argo0 = 0;
7320 char *_kwnames[] = { "self", NULL };
7321
7322 self = self;
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0))
7324 return NULL;
7325 if (_argo0) {
7326 if (_argo0 == Py_None) { _arg0 = NULL; }
7327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p.");
7329 return NULL;
7330 }
7331 }
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 wxScrolledWindow_AdjustScrollbars(_arg0);
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) return NULL;
7338 } Py_INCREF(Py_None);
7339 _resultobj = Py_None;
7340 return _resultobj;
7341 }
7342
7343 #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout())
7344 static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
7345 PyObject * _resultobj;
7346 bool _result;
7347 wxScrolledWindow * _arg0;
7348 PyObject * _argo0 = 0;
7349 char *_kwnames[] = { "self", NULL };
7350
7351 self = self;
7352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0))
7353 return NULL;
7354 if (_argo0) {
7355 if (_argo0 == Py_None) { _arg0 = NULL; }
7356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
7357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p.");
7358 return NULL;
7359 }
7360 }
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 _result = (bool )wxScrolledWindow_Layout(_arg0);
7364
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) return NULL;
7367 } _resultobj = Py_BuildValue("i",_result);
7368 return _resultobj;
7369 }
7370
7371 static void *SwigwxMenuTowxEvtHandler(void *ptr) {
7372 wxMenu *src;
7373 wxEvtHandler *dest;
7374 src = (wxMenu *) ptr;
7375 dest = (wxEvtHandler *) src;
7376 return (void *) dest;
7377 }
7378
7379 static void *SwigwxMenuTowxObject(void *ptr) {
7380 wxMenu *src;
7381 wxObject *dest;
7382 src = (wxMenu *) ptr;
7383 dest = (wxObject *) src;
7384 return (void *) dest;
7385 }
7386
7387 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
7388 static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7389 PyObject * _resultobj;
7390 wxMenu * _result;
7391 wxString * _arg0 = (wxString *) &wxPyEmptyString;
7392 long _arg1 = (long ) 0;
7393 PyObject * _obj0 = 0;
7394 char *_kwnames[] = { "title","style", NULL };
7395 char _ptemp[128];
7396
7397 self = self;
7398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
7399 return NULL;
7400 if (_obj0)
7401 {
7402 _arg0 = wxString_in_helper(_obj0);
7403 if (_arg0 == NULL)
7404 return NULL;
7405 }
7406 {
7407 PyThreadState* __tstate = wxPyBeginAllowThreads();
7408 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
7409
7410 wxPyEndAllowThreads(__tstate);
7411 if (PyErr_Occurred()) return NULL;
7412 } if (_result) {
7413 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7414 _resultobj = Py_BuildValue("s",_ptemp);
7415 } else {
7416 Py_INCREF(Py_None);
7417 _resultobj = Py_None;
7418 }
7419 {
7420 if (_obj0)
7421 delete _arg0;
7422 }
7423 return _resultobj;
7424 }
7425
7426 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7427 static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
7428 PyObject * _resultobj;
7429 wxMenu * _arg0;
7430 int _arg1;
7431 wxString * _arg2;
7432 wxString * _arg3 = (wxString *) &wxPyEmptyString;
7433 wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL;
7434 PyObject * _argo0 = 0;
7435 PyObject * _obj2 = 0;
7436 PyObject * _obj3 = 0;
7437 char *_kwnames[] = { "self","id","item","helpString","kind", NULL };
7438
7439 self = self;
7440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
7441 return NULL;
7442 if (_argo0) {
7443 if (_argo0 == Py_None) { _arg0 = NULL; }
7444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
7446 return NULL;
7447 }
7448 }
7449 {
7450 _arg2 = wxString_in_helper(_obj2);
7451 if (_arg2 == NULL)
7452 return NULL;
7453 }
7454 if (_obj3)
7455 {
7456 _arg3 = wxString_in_helper(_obj3);
7457 if (_arg3 == NULL)
7458 return NULL;
7459 }
7460 {
7461 PyThreadState* __tstate = wxPyBeginAllowThreads();
7462 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
7463
7464 wxPyEndAllowThreads(__tstate);
7465 if (PyErr_Occurred()) return NULL;
7466 } Py_INCREF(Py_None);
7467 _resultobj = Py_None;
7468 {
7469 if (_obj2)
7470 delete _arg2;
7471 }
7472 {
7473 if (_obj3)
7474 delete _arg3;
7475 }
7476 return _resultobj;
7477 }
7478
7479 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7480 static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7481 PyObject * _resultobj;
7482 wxMenu * _arg0;
7483 int _arg1;
7484 wxString * _arg2;
7485 wxMenu * _arg3;
7486 wxString * _arg4 = (wxString *) &wxPyEmptyString;
7487 PyObject * _argo0 = 0;
7488 PyObject * _obj2 = 0;
7489 PyObject * _argo3 = 0;
7490 PyObject * _obj4 = 0;
7491 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
7492
7493 self = self;
7494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
7495 return NULL;
7496 if (_argo0) {
7497 if (_argo0 == Py_None) { _arg0 = NULL; }
7498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7500 return NULL;
7501 }
7502 }
7503 {
7504 _arg2 = wxString_in_helper(_obj2);
7505 if (_arg2 == NULL)
7506 return NULL;
7507 }
7508 if (_argo3) {
7509 if (_argo3 == Py_None) { _arg3 = NULL; }
7510 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
7511 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
7512 return NULL;
7513 }
7514 }
7515 if (_obj4)
7516 {
7517 _arg4 = wxString_in_helper(_obj4);
7518 if (_arg4 == NULL)
7519 return NULL;
7520 }
7521 {
7522 PyThreadState* __tstate = wxPyBeginAllowThreads();
7523 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
7524
7525 wxPyEndAllowThreads(__tstate);
7526 if (PyErr_Occurred()) return NULL;
7527 } Py_INCREF(Py_None);
7528 _resultobj = Py_None;
7529 {
7530 if (_obj2)
7531 delete _arg2;
7532 }
7533 {
7534 if (_obj4)
7535 delete _arg4;
7536 }
7537 return _resultobj;
7538 }
7539
7540 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
7541 static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7542 PyObject * _resultobj;
7543 wxMenu * _arg0;
7544 wxMenuItem * _arg1;
7545 PyObject * _argo0 = 0;
7546 PyObject * _argo1 = 0;
7547 char *_kwnames[] = { "self","item", NULL };
7548
7549 self = self;
7550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
7551 return NULL;
7552 if (_argo0) {
7553 if (_argo0 == Py_None) { _arg0 = NULL; }
7554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
7556 return NULL;
7557 }
7558 }
7559 if (_argo1) {
7560 if (_argo1 == Py_None) { _arg1 = NULL; }
7561 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
7562 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
7563 return NULL;
7564 }
7565 }
7566 {
7567 PyThreadState* __tstate = wxPyBeginAllowThreads();
7568 wxMenu_AppendItem(_arg0,_arg1);
7569
7570 wxPyEndAllowThreads(__tstate);
7571 if (PyErr_Occurred()) return NULL;
7572 } Py_INCREF(Py_None);
7573 _resultobj = Py_None;
7574 return _resultobj;
7575 }
7576
7577 #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2))
7578 static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7579 PyObject * _resultobj;
7580 wxMenu * _arg0;
7581 int _arg1;
7582 wxString * _arg2;
7583 wxString * _arg3 = (wxString *) &wxPyEmptyString;
7584 PyObject * _argo0 = 0;
7585 PyObject * _obj2 = 0;
7586 PyObject * _obj3 = 0;
7587 char *_kwnames[] = { "self","id","text","help", NULL };
7588
7589 self = self;
7590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3))
7591 return NULL;
7592 if (_argo0) {
7593 if (_argo0 == Py_None) { _arg0 = NULL; }
7594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p.");
7596 return NULL;
7597 }
7598 }
7599 {
7600 _arg2 = wxString_in_helper(_obj2);
7601 if (_arg2 == NULL)
7602 return NULL;
7603 }
7604 if (_obj3)
7605 {
7606 _arg3 = wxString_in_helper(_obj3);
7607 if (_arg3 == NULL)
7608 return NULL;
7609 }
7610 {
7611 PyThreadState* __tstate = wxPyBeginAllowThreads();
7612 wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3);
7613
7614 wxPyEndAllowThreads(__tstate);
7615 if (PyErr_Occurred()) return NULL;
7616 } Py_INCREF(Py_None);
7617 _resultobj = Py_None;
7618 {
7619 if (_obj2)
7620 delete _arg2;
7621 }
7622 {
7623 if (_obj3)
7624 delete _arg3;
7625 }
7626 return _resultobj;
7627 }
7628
7629 #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2))
7630 static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7631 PyObject * _resultobj;
7632 wxMenu * _arg0;
7633 int _arg1;
7634 wxString * _arg2;
7635 wxString * _arg3 = (wxString *) &wxPyEmptyString;
7636 PyObject * _argo0 = 0;
7637 PyObject * _obj2 = 0;
7638 PyObject * _obj3 = 0;
7639 char *_kwnames[] = { "self","id","text","help", NULL };
7640
7641 self = self;
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3))
7643 return NULL;
7644 if (_argo0) {
7645 if (_argo0 == Py_None) { _arg0 = NULL; }
7646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p.");
7648 return NULL;
7649 }
7650 }
7651 {
7652 _arg2 = wxString_in_helper(_obj2);
7653 if (_arg2 == NULL)
7654 return NULL;
7655 }
7656 if (_obj3)
7657 {
7658 _arg3 = wxString_in_helper(_obj3);
7659 if (_arg3 == NULL)
7660 return NULL;
7661 }
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3);
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) return NULL;
7668 } Py_INCREF(Py_None);
7669 _resultobj = Py_None;
7670 {
7671 if (_obj2)
7672 delete _arg2;
7673 }
7674 {
7675 if (_obj3)
7676 delete _arg3;
7677 }
7678 return _resultobj;
7679 }
7680
7681 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
7682 static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
7683 PyObject * _resultobj;
7684 wxMenu * _arg0;
7685 PyObject * _argo0 = 0;
7686 char *_kwnames[] = { "self", NULL };
7687
7688 self = self;
7689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
7690 return NULL;
7691 if (_argo0) {
7692 if (_argo0 == Py_None) { _arg0 = NULL; }
7693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
7695 return NULL;
7696 }
7697 }
7698 {
7699 PyThreadState* __tstate = wxPyBeginAllowThreads();
7700 wxMenu_AppendSeparator(_arg0);
7701
7702 wxPyEndAllowThreads(__tstate);
7703 if (PyErr_Occurred()) return NULL;
7704 } Py_INCREF(Py_None);
7705 _resultobj = Py_None;
7706 return _resultobj;
7707 }
7708
7709 #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7710 static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
7711 PyObject * _resultobj;
7712 wxMenu * _arg0;
7713 size_t _arg1;
7714 int _arg2;
7715 wxString * _arg3;
7716 wxString * _arg4 = (wxString *) &wxPyEmptyString;
7717 wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL;
7718 PyObject * _argo0 = 0;
7719 PyObject * _obj3 = 0;
7720 PyObject * _obj4 = 0;
7721 char *_kwnames[] = { "self","pos","id","text","help","kind", NULL };
7722
7723 self = self;
7724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5))
7725 return NULL;
7726 if (_argo0) {
7727 if (_argo0 == Py_None) { _arg0 = NULL; }
7728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p.");
7730 return NULL;
7731 }
7732 }
7733 {
7734 _arg3 = wxString_in_helper(_obj3);
7735 if (_arg3 == NULL)
7736 return NULL;
7737 }
7738 if (_obj4)
7739 {
7740 _arg4 = wxString_in_helper(_obj4);
7741 if (_arg4 == NULL)
7742 return NULL;
7743 }
7744 {
7745 PyThreadState* __tstate = wxPyBeginAllowThreads();
7746 wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5);
7747
7748 wxPyEndAllowThreads(__tstate);
7749 if (PyErr_Occurred()) return NULL;
7750 } Py_INCREF(Py_None);
7751 _resultobj = Py_None;
7752 {
7753 if (_obj3)
7754 delete _arg3;
7755 }
7756 {
7757 if (_obj4)
7758 delete _arg4;
7759 }
7760 return _resultobj;
7761 }
7762
7763 #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0))
7764 static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
7765 PyObject * _resultobj;
7766 wxMenu * _arg0;
7767 size_t _arg1;
7768 PyObject * _argo0 = 0;
7769 char *_kwnames[] = { "self","pos", NULL };
7770
7771 self = self;
7772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1))
7773 return NULL;
7774 if (_argo0) {
7775 if (_argo0 == Py_None) { _arg0 = NULL; }
7776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p.");
7778 return NULL;
7779 }
7780 }
7781 {
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 wxMenu_InsertSeparator(_arg0,_arg1);
7784
7785 wxPyEndAllowThreads(__tstate);
7786 if (PyErr_Occurred()) return NULL;
7787 } Py_INCREF(Py_None);
7788 _resultobj = Py_None;
7789 return _resultobj;
7790 }
7791
7792 #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7793 static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7794 PyObject * _resultobj;
7795 wxMenu * _arg0;
7796 size_t _arg1;
7797 int _arg2;
7798 wxString * _arg3;
7799 wxString * _arg4 = (wxString *) &wxPyEmptyString;
7800 PyObject * _argo0 = 0;
7801 PyObject * _obj3 = 0;
7802 PyObject * _obj4 = 0;
7803 char *_kwnames[] = { "self","pos","id","text","help", NULL };
7804
7805 self = self;
7806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4))
7807 return NULL;
7808 if (_argo0) {
7809 if (_argo0 == Py_None) { _arg0 = NULL; }
7810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p.");
7812 return NULL;
7813 }
7814 }
7815 {
7816 _arg3 = wxString_in_helper(_obj3);
7817 if (_arg3 == NULL)
7818 return NULL;
7819 }
7820 if (_obj4)
7821 {
7822 _arg4 = wxString_in_helper(_obj4);
7823 if (_arg4 == NULL)
7824 return NULL;
7825 }
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4);
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) return NULL;
7832 } Py_INCREF(Py_None);
7833 _resultobj = Py_None;
7834 {
7835 if (_obj3)
7836 delete _arg3;
7837 }
7838 {
7839 if (_obj4)
7840 delete _arg4;
7841 }
7842 return _resultobj;
7843 }
7844
7845 #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7846 static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7847 PyObject * _resultobj;
7848 wxMenu * _arg0;
7849 size_t _arg1;
7850 int _arg2;
7851 wxString * _arg3;
7852 wxString * _arg4 = (wxString *) &wxPyEmptyString;
7853 PyObject * _argo0 = 0;
7854 PyObject * _obj3 = 0;
7855 PyObject * _obj4 = 0;
7856 char *_kwnames[] = { "self","pos","id","text","help", NULL };
7857
7858 self = self;
7859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4))
7860 return NULL;
7861 if (_argo0) {
7862 if (_argo0 == Py_None) { _arg0 = NULL; }
7863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p.");
7865 return NULL;
7866 }
7867 }
7868 {
7869 _arg3 = wxString_in_helper(_obj3);
7870 if (_arg3 == NULL)
7871 return NULL;
7872 }
7873 if (_obj4)
7874 {
7875 _arg4 = wxString_in_helper(_obj4);
7876 if (_arg4 == NULL)
7877 return NULL;
7878 }
7879 {
7880 PyThreadState* __tstate = wxPyBeginAllowThreads();
7881 wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4);
7882
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) return NULL;
7885 } Py_INCREF(Py_None);
7886 _resultobj = Py_None;
7887 {
7888 if (_obj3)
7889 delete _arg3;
7890 }
7891 {
7892 if (_obj4)
7893 delete _arg4;
7894 }
7895 return _resultobj;
7896 }
7897
7898 #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7899 static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7900 PyObject * _resultobj;
7901 wxMenu * _arg0;
7902 size_t _arg1;
7903 int _arg2;
7904 wxString * _arg3;
7905 wxMenu * _arg4;
7906 wxString * _arg5 = (wxString *) &wxPyEmptyString;
7907 PyObject * _argo0 = 0;
7908 PyObject * _obj3 = 0;
7909 PyObject * _argo4 = 0;
7910 PyObject * _obj5 = 0;
7911 char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL };
7912
7913 self = self;
7914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5))
7915 return NULL;
7916 if (_argo0) {
7917 if (_argo0 == Py_None) { _arg0 = NULL; }
7918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p.");
7920 return NULL;
7921 }
7922 }
7923 {
7924 _arg3 = wxString_in_helper(_obj3);
7925 if (_arg3 == NULL)
7926 return NULL;
7927 }
7928 if (_argo4) {
7929 if (_argo4 == Py_None) { _arg4 = NULL; }
7930 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) {
7931 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p.");
7932 return NULL;
7933 }
7934 }
7935 if (_obj5)
7936 {
7937 _arg5 = wxString_in_helper(_obj5);
7938 if (_arg5 == NULL)
7939 return NULL;
7940 }
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5);
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) return NULL;
7947 } Py_INCREF(Py_None);
7948 _resultobj = Py_None;
7949 {
7950 if (_obj3)
7951 delete _arg3;
7952 }
7953 {
7954 if (_obj5)
7955 delete _arg5;
7956 }
7957 return _resultobj;
7958 }
7959
7960 #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1))
7961 static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
7962 PyObject * _resultobj;
7963 bool _result;
7964 wxMenu * _arg0;
7965 size_t _arg1;
7966 wxMenuItem * _arg2;
7967 PyObject * _argo0 = 0;
7968 PyObject * _argo2 = 0;
7969 char *_kwnames[] = { "self","pos","item", NULL };
7970
7971 self = self;
7972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2))
7973 return NULL;
7974 if (_argo0) {
7975 if (_argo0 == Py_None) { _arg0 = NULL; }
7976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
7977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p.");
7978 return NULL;
7979 }
7980 }
7981 if (_argo2) {
7982 if (_argo2 == Py_None) { _arg2 = NULL; }
7983 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) {
7984 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p.");
7985 return NULL;
7986 }
7987 }
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2);
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) return NULL;
7994 } _resultobj = Py_BuildValue("i",_result);
7995 return _resultobj;
7996 }
7997
7998 #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7999 static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
8000 PyObject * _resultobj;
8001 wxMenu * _arg0;
8002 int _arg1;
8003 wxString * _arg2;
8004 wxString * _arg3 = (wxString *) &wxPyEmptyString;
8005 wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL;
8006 PyObject * _argo0 = 0;
8007 PyObject * _obj2 = 0;
8008 PyObject * _obj3 = 0;
8009 char *_kwnames[] = { "self","id","text","help","kind", NULL };
8010
8011 self = self;
8012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
8013 return NULL;
8014 if (_argo0) {
8015 if (_argo0 == Py_None) { _arg0 = NULL; }
8016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p.");
8018 return NULL;
8019 }
8020 }
8021 {
8022 _arg2 = wxString_in_helper(_obj2);
8023 if (_arg2 == NULL)
8024 return NULL;
8025 }
8026 if (_obj3)
8027 {
8028 _arg3 = wxString_in_helper(_obj3);
8029 if (_arg3 == NULL)
8030 return NULL;
8031 }
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4);
8035
8036 wxPyEndAllowThreads(__tstate);
8037 if (PyErr_Occurred()) return NULL;
8038 } Py_INCREF(Py_None);
8039 _resultobj = Py_None;
8040 {
8041 if (_obj2)
8042 delete _arg2;
8043 }
8044 {
8045 if (_obj3)
8046 delete _arg3;
8047 }
8048 return _resultobj;
8049 }
8050
8051 #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator())
8052 static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject * _resultobj;
8054 wxMenu * _arg0;
8055 PyObject * _argo0 = 0;
8056 char *_kwnames[] = { "self", NULL };
8057
8058 self = self;
8059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0))
8060 return NULL;
8061 if (_argo0) {
8062 if (_argo0 == Py_None) { _arg0 = NULL; }
8063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p.");
8065 return NULL;
8066 }
8067 }
8068 {
8069 PyThreadState* __tstate = wxPyBeginAllowThreads();
8070 wxMenu_PrependSeparator(_arg0);
8071
8072 wxPyEndAllowThreads(__tstate);
8073 if (PyErr_Occurred()) return NULL;
8074 } Py_INCREF(Py_None);
8075 _resultobj = Py_None;
8076 return _resultobj;
8077 }
8078
8079 #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2))
8080 static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8081 PyObject * _resultobj;
8082 wxMenu * _arg0;
8083 int _arg1;
8084 wxString * _arg2;
8085 wxString * _arg3 = (wxString *) &wxPyEmptyString;
8086 PyObject * _argo0 = 0;
8087 PyObject * _obj2 = 0;
8088 PyObject * _obj3 = 0;
8089 char *_kwnames[] = { "self","id","text","help", NULL };
8090
8091 self = self;
8092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3))
8093 return NULL;
8094 if (_argo0) {
8095 if (_argo0 == Py_None) { _arg0 = NULL; }
8096 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8097 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p.");
8098 return NULL;
8099 }
8100 }
8101 {
8102 _arg2 = wxString_in_helper(_obj2);
8103 if (_arg2 == NULL)
8104 return NULL;
8105 }
8106 if (_obj3)
8107 {
8108 _arg3 = wxString_in_helper(_obj3);
8109 if (_arg3 == NULL)
8110 return NULL;
8111 }
8112 {
8113 PyThreadState* __tstate = wxPyBeginAllowThreads();
8114 wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3);
8115
8116 wxPyEndAllowThreads(__tstate);
8117 if (PyErr_Occurred()) return NULL;
8118 } Py_INCREF(Py_None);
8119 _resultobj = Py_None;
8120 {
8121 if (_obj2)
8122 delete _arg2;
8123 }
8124 {
8125 if (_obj3)
8126 delete _arg3;
8127 }
8128 return _resultobj;
8129 }
8130
8131 #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2))
8132 static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8133 PyObject * _resultobj;
8134 wxMenu * _arg0;
8135 int _arg1;
8136 wxString * _arg2;
8137 wxString * _arg3 = (wxString *) &wxPyEmptyString;
8138 PyObject * _argo0 = 0;
8139 PyObject * _obj2 = 0;
8140 PyObject * _obj3 = 0;
8141 char *_kwnames[] = { "self","id","text","help", NULL };
8142
8143 self = self;
8144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3))
8145 return NULL;
8146 if (_argo0) {
8147 if (_argo0 == Py_None) { _arg0 = NULL; }
8148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p.");
8150 return NULL;
8151 }
8152 }
8153 {
8154 _arg2 = wxString_in_helper(_obj2);
8155 if (_arg2 == NULL)
8156 return NULL;
8157 }
8158 if (_obj3)
8159 {
8160 _arg3 = wxString_in_helper(_obj3);
8161 if (_arg3 == NULL)
8162 return NULL;
8163 }
8164 {
8165 PyThreadState* __tstate = wxPyBeginAllowThreads();
8166 wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3);
8167
8168 wxPyEndAllowThreads(__tstate);
8169 if (PyErr_Occurred()) return NULL;
8170 } Py_INCREF(Py_None);
8171 _resultobj = Py_None;
8172 {
8173 if (_obj2)
8174 delete _arg2;
8175 }
8176 {
8177 if (_obj3)
8178 delete _arg3;
8179 }
8180 return _resultobj;
8181 }
8182
8183 #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8184 static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
8185 PyObject * _resultobj;
8186 wxMenu * _arg0;
8187 int _arg1;
8188 wxString * _arg2;
8189 wxMenu * _arg3;
8190 wxString * _arg4 = (wxString *) &wxPyEmptyString;
8191 PyObject * _argo0 = 0;
8192 PyObject * _obj2 = 0;
8193 PyObject * _argo3 = 0;
8194 PyObject * _obj4 = 0;
8195 char *_kwnames[] = { "self","id","text","submenu","help", NULL };
8196
8197 self = self;
8198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
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_PrependMenu. Expected _wxMenu_p.");
8204 return NULL;
8205 }
8206 }
8207 {
8208 _arg2 = wxString_in_helper(_obj2);
8209 if (_arg2 == NULL)
8210 return NULL;
8211 }
8212 if (_argo3) {
8213 if (_argo3 == Py_None) { _arg3 = NULL; }
8214 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
8215 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p.");
8216 return NULL;
8217 }
8218 }
8219 if (_obj4)
8220 {
8221 _arg4 = wxString_in_helper(_obj4);
8222 if (_arg4 == NULL)
8223 return NULL;
8224 }
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) return NULL;
8231 } Py_INCREF(Py_None);
8232 _resultobj = Py_None;
8233 {
8234 if (_obj2)
8235 delete _arg2;
8236 }
8237 {
8238 if (_obj4)
8239 delete _arg4;
8240 }
8241 return _resultobj;
8242 }
8243
8244 #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0))
8245 static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject * _resultobj;
8247 wxMenu * _arg0;
8248 wxMenuItem * _arg1;
8249 PyObject * _argo0 = 0;
8250 PyObject * _argo1 = 0;
8251 char *_kwnames[] = { "self","item", NULL };
8252
8253 self = self;
8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1))
8255 return NULL;
8256 if (_argo0) {
8257 if (_argo0 == Py_None) { _arg0 = NULL; }
8258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p.");
8260 return NULL;
8261 }
8262 }
8263 if (_argo1) {
8264 if (_argo1 == Py_None) { _arg1 = NULL; }
8265 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
8266 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p.");
8267 return NULL;
8268 }
8269 }
8270 {
8271 PyThreadState* __tstate = wxPyBeginAllowThreads();
8272 wxMenu_PrependItem(_arg0,_arg1);
8273
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) return NULL;
8276 } Py_INCREF(Py_None);
8277 _resultobj = Py_None;
8278 return _resultobj;
8279 }
8280
8281 #define wxMenu_Break(_swigobj) (_swigobj->Break())
8282 static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
8283 PyObject * _resultobj;
8284 wxMenu * _arg0;
8285 PyObject * _argo0 = 0;
8286 char *_kwnames[] = { "self", NULL };
8287
8288 self = self;
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
8290 return NULL;
8291 if (_argo0) {
8292 if (_argo0 == Py_None) { _arg0 = NULL; }
8293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
8295 return NULL;
8296 }
8297 }
8298 {
8299 PyThreadState* __tstate = wxPyBeginAllowThreads();
8300 wxMenu_Break(_arg0);
8301
8302 wxPyEndAllowThreads(__tstate);
8303 if (PyErr_Occurred()) return NULL;
8304 } Py_INCREF(Py_None);
8305 _resultobj = Py_None;
8306 return _resultobj;
8307 }
8308
8309 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
8310 static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
8311 PyObject * _resultobj;
8312 wxMenu * _arg0;
8313 int _arg1;
8314 bool _arg2;
8315 PyObject * _argo0 = 0;
8316 int tempbool2;
8317 char *_kwnames[] = { "self","id","flag", NULL };
8318
8319 self = self;
8320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
8321 return NULL;
8322 if (_argo0) {
8323 if (_argo0 == Py_None) { _arg0 = NULL; }
8324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
8326 return NULL;
8327 }
8328 }
8329 _arg2 = (bool ) tempbool2;
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 wxMenu_Check(_arg0,_arg1,_arg2);
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) return NULL;
8336 } Py_INCREF(Py_None);
8337 _resultobj = Py_None;
8338 return _resultobj;
8339 }
8340
8341 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
8342 static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
8343 PyObject * _resultobj;
8344 bool _result;
8345 wxMenu * _arg0;
8346 int _arg1;
8347 PyObject * _argo0 = 0;
8348 char *_kwnames[] = { "self","id", NULL };
8349
8350 self = self;
8351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
8352 return NULL;
8353 if (_argo0) {
8354 if (_argo0 == Py_None) { _arg0 = NULL; }
8355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
8357 return NULL;
8358 }
8359 }
8360 {
8361 PyThreadState* __tstate = wxPyBeginAllowThreads();
8362 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
8363
8364 wxPyEndAllowThreads(__tstate);
8365 if (PyErr_Occurred()) return NULL;
8366 } _resultobj = Py_BuildValue("i",_result);
8367 return _resultobj;
8368 }
8369
8370 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
8371 static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
8372 PyObject * _resultobj;
8373 wxMenu * _arg0;
8374 int _arg1;
8375 bool _arg2;
8376 PyObject * _argo0 = 0;
8377 int tempbool2;
8378 char *_kwnames[] = { "self","id","enable", NULL };
8379
8380 self = self;
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
8382 return NULL;
8383 if (_argo0) {
8384 if (_argo0 == Py_None) { _arg0 = NULL; }
8385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
8387 return NULL;
8388 }
8389 }
8390 _arg2 = (bool ) tempbool2;
8391 {
8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
8393 wxMenu_Enable(_arg0,_arg1,_arg2);
8394
8395 wxPyEndAllowThreads(__tstate);
8396 if (PyErr_Occurred()) return NULL;
8397 } Py_INCREF(Py_None);
8398 _resultobj = Py_None;
8399 return _resultobj;
8400 }
8401
8402 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
8403 static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8404 PyObject * _resultobj;
8405 bool _result;
8406 wxMenu * _arg0;
8407 int _arg1;
8408 PyObject * _argo0 = 0;
8409 char *_kwnames[] = { "self","id", NULL };
8410
8411 self = self;
8412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
8413 return NULL;
8414 if (_argo0) {
8415 if (_argo0 == Py_None) { _arg0 = NULL; }
8416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
8418 return NULL;
8419 }
8420 }
8421 {
8422 PyThreadState* __tstate = wxPyBeginAllowThreads();
8423 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
8424
8425 wxPyEndAllowThreads(__tstate);
8426 if (PyErr_Occurred()) return NULL;
8427 } _resultobj = Py_BuildValue("i",_result);
8428 return _resultobj;
8429 }
8430
8431 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8432 static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8433 PyObject * _resultobj;
8434 int _result;
8435 wxMenu * _arg0;
8436 wxString * _arg1;
8437 PyObject * _argo0 = 0;
8438 PyObject * _obj1 = 0;
8439 char *_kwnames[] = { "self","itemString", NULL };
8440
8441 self = self;
8442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
8443 return NULL;
8444 if (_argo0) {
8445 if (_argo0 == Py_None) { _arg0 = NULL; }
8446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
8448 return NULL;
8449 }
8450 }
8451 {
8452 _arg1 = wxString_in_helper(_obj1);
8453 if (_arg1 == NULL)
8454 return NULL;
8455 }
8456 {
8457 PyThreadState* __tstate = wxPyBeginAllowThreads();
8458 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
8459
8460 wxPyEndAllowThreads(__tstate);
8461 if (PyErr_Occurred()) return NULL;
8462 } _resultobj = Py_BuildValue("i",_result);
8463 {
8464 if (_obj1)
8465 delete _arg1;
8466 }
8467 return _resultobj;
8468 }
8469
8470 #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
8471 static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
8472 PyObject * _resultobj;
8473 wxMenuItem * _result;
8474 wxMenu * _arg0;
8475 int _arg1;
8476 PyObject * _argo0 = 0;
8477 char *_kwnames[] = { "self","id", NULL };
8478
8479 self = self;
8480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1))
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_FindItemById. Expected _wxMenu_p.");
8486 return NULL;
8487 }
8488 }
8489 {
8490 PyThreadState* __tstate = wxPyBeginAllowThreads();
8491 _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1);
8492
8493 wxPyEndAllowThreads(__tstate);
8494 if (PyErr_Occurred()) return NULL;
8495 }{ _resultobj = wxPyMake_wxObject(_result); }
8496 return _resultobj;
8497 }
8498
8499 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
8500 static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
8501 PyObject * _resultobj;
8502 wxString * _result;
8503 wxMenu * _arg0;
8504 PyObject * _argo0 = 0;
8505 char *_kwnames[] = { "self", NULL };
8506
8507 self = self;
8508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
8509 return NULL;
8510 if (_argo0) {
8511 if (_argo0 == Py_None) { _arg0 = NULL; }
8512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
8514 return NULL;
8515 }
8516 }
8517 {
8518 PyThreadState* __tstate = wxPyBeginAllowThreads();
8519 _result = new wxString (wxMenu_GetTitle(_arg0));
8520
8521 wxPyEndAllowThreads(__tstate);
8522 if (PyErr_Occurred()) return NULL;
8523 }{
8524 #if wxUSE_UNICODE
8525 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
8526 #else
8527 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8528 #endif
8529 }
8530 {
8531 delete _result;
8532 }
8533 return _resultobj;
8534 }
8535
8536 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
8537 static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
8538 PyObject * _resultobj;
8539 wxMenu * _arg0;
8540 wxString * _arg1;
8541 PyObject * _argo0 = 0;
8542 PyObject * _obj1 = 0;
8543 char *_kwnames[] = { "self","title", NULL };
8544
8545 self = self;
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
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_SetTitle. Expected _wxMenu_p.");
8552 return NULL;
8553 }
8554 }
8555 {
8556 _arg1 = wxString_in_helper(_obj1);
8557 if (_arg1 == NULL)
8558 return NULL;
8559 }
8560 {
8561 PyThreadState* __tstate = wxPyBeginAllowThreads();
8562 wxMenu_SetTitle(_arg0,*_arg1);
8563
8564 wxPyEndAllowThreads(__tstate);
8565 if (PyErr_Occurred()) return NULL;
8566 } Py_INCREF(Py_None);
8567 _resultobj = Py_None;
8568 {
8569 if (_obj1)
8570 delete _arg1;
8571 }
8572 return _resultobj;
8573 }
8574
8575 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
8576 static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8577 PyObject * _resultobj;
8578 wxString * _result;
8579 wxMenu * _arg0;
8580 int _arg1;
8581 PyObject * _argo0 = 0;
8582 char *_kwnames[] = { "self","id", NULL };
8583
8584 self = self;
8585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
8586 return NULL;
8587 if (_argo0) {
8588 if (_argo0 == Py_None) { _arg0 = NULL; }
8589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
8591 return NULL;
8592 }
8593 }
8594 {
8595 PyThreadState* __tstate = wxPyBeginAllowThreads();
8596 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
8597
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) return NULL;
8600 }{
8601 #if wxUSE_UNICODE
8602 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
8603 #else
8604 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8605 #endif
8606 }
8607 {
8608 delete _result;
8609 }
8610 return _resultobj;
8611 }
8612
8613 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
8614 static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8615 PyObject * _resultobj;
8616 wxMenu * _arg0;
8617 int _arg1;
8618 wxString * _arg2;
8619 PyObject * _argo0 = 0;
8620 PyObject * _obj2 = 0;
8621 char *_kwnames[] = { "self","id","label", NULL };
8622
8623 self = self;
8624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
8625 return NULL;
8626 if (_argo0) {
8627 if (_argo0 == Py_None) { _arg0 = NULL; }
8628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
8630 return NULL;
8631 }
8632 }
8633 {
8634 _arg2 = wxString_in_helper(_obj2);
8635 if (_arg2 == NULL)
8636 return NULL;
8637 }
8638 {
8639 PyThreadState* __tstate = wxPyBeginAllowThreads();
8640 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
8641
8642 wxPyEndAllowThreads(__tstate);
8643 if (PyErr_Occurred()) return NULL;
8644 } Py_INCREF(Py_None);
8645 _resultobj = Py_None;
8646 {
8647 if (_obj2)
8648 delete _arg2;
8649 }
8650 return _resultobj;
8651 }
8652
8653 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
8654 static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
8655 PyObject * _resultobj;
8656 wxString * _result;
8657 wxMenu * _arg0;
8658 int _arg1;
8659 PyObject * _argo0 = 0;
8660 char *_kwnames[] = { "self","id", NULL };
8661
8662 self = self;
8663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
8664 return NULL;
8665 if (_argo0) {
8666 if (_argo0 == Py_None) { _arg0 = NULL; }
8667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
8669 return NULL;
8670 }
8671 }
8672 {
8673 PyThreadState* __tstate = wxPyBeginAllowThreads();
8674 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
8675
8676 wxPyEndAllowThreads(__tstate);
8677 if (PyErr_Occurred()) return NULL;
8678 }{
8679 #if wxUSE_UNICODE
8680 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
8681 #else
8682 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8683 #endif
8684 }
8685 {
8686 delete _result;
8687 }
8688 return _resultobj;
8689 }
8690
8691 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
8692 static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
8693 PyObject * _resultobj;
8694 wxMenu * _arg0;
8695 int _arg1;
8696 wxString * _arg2;
8697 PyObject * _argo0 = 0;
8698 PyObject * _obj2 = 0;
8699 char *_kwnames[] = { "self","id","helpString", NULL };
8700
8701 self = self;
8702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
8703 return NULL;
8704 if (_argo0) {
8705 if (_argo0 == Py_None) { _arg0 = NULL; }
8706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
8708 return NULL;
8709 }
8710 }
8711 {
8712 _arg2 = wxString_in_helper(_obj2);
8713 if (_arg2 == NULL)
8714 return NULL;
8715 }
8716 {
8717 PyThreadState* __tstate = wxPyBeginAllowThreads();
8718 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
8719
8720 wxPyEndAllowThreads(__tstate);
8721 if (PyErr_Occurred()) return NULL;
8722 } Py_INCREF(Py_None);
8723 _resultobj = Py_None;
8724 {
8725 if (_obj2)
8726 delete _arg2;
8727 }
8728 return _resultobj;
8729 }
8730
8731 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
8732 static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
8733 PyObject * _resultobj;
8734 wxMenu * _arg0;
8735 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
8736 PyObject * _argo0 = 0;
8737 PyObject * _argo1 = 0;
8738 char *_kwnames[] = { "self","source", NULL };
8739
8740 self = self;
8741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
8742 return NULL;
8743 if (_argo0) {
8744 if (_argo0 == Py_None) { _arg0 = NULL; }
8745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
8747 return NULL;
8748 }
8749 }
8750 if (_argo1) {
8751 if (_argo1 == Py_None) { _arg1 = NULL; }
8752 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
8753 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
8754 return NULL;
8755 }
8756 }
8757 {
8758 PyThreadState* __tstate = wxPyBeginAllowThreads();
8759 wxMenu_UpdateUI(_arg0,_arg1);
8760
8761 wxPyEndAllowThreads(__tstate);
8762 if (PyErr_Occurred()) return NULL;
8763 } Py_INCREF(Py_None);
8764 _resultobj = Py_None;
8765 return _resultobj;
8766 }
8767
8768 #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
8769 static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
8770 PyObject * _resultobj;
8771 bool _result;
8772 wxMenu * _arg0;
8773 int _arg1;
8774 PyObject * _argo0 = 0;
8775 char *_kwnames[] = { "self","id", NULL };
8776
8777 self = self;
8778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1))
8779 return NULL;
8780 if (_argo0) {
8781 if (_argo0 == Py_None) { _arg0 = NULL; }
8782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p.");
8784 return NULL;
8785 }
8786 }
8787 {
8788 PyThreadState* __tstate = wxPyBeginAllowThreads();
8789 _result = (bool )wxMenu_Delete(_arg0,_arg1);
8790
8791 wxPyEndAllowThreads(__tstate);
8792 if (PyErr_Occurred()) return NULL;
8793 } _resultobj = Py_BuildValue("i",_result);
8794 return _resultobj;
8795 }
8796
8797 #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
8798 static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject * _resultobj;
8800 bool _result;
8801 wxMenu * _arg0;
8802 wxMenuItem * _arg1;
8803 PyObject * _argo0 = 0;
8804 PyObject * _argo1 = 0;
8805 char *_kwnames[] = { "self","item", NULL };
8806
8807 self = self;
8808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1))
8809 return NULL;
8810 if (_argo0) {
8811 if (_argo0 == Py_None) { _arg0 = NULL; }
8812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p.");
8814 return NULL;
8815 }
8816 }
8817 if (_argo1) {
8818 if (_argo1 == Py_None) { _arg1 = NULL; }
8819 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
8820 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p.");
8821 return NULL;
8822 }
8823 }
8824 {
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 _result = (bool )wxMenu_DeleteItem(_arg0,_arg1);
8827
8828 wxPyEndAllowThreads(__tstate);
8829 if (PyErr_Occurred()) return NULL;
8830 } _resultobj = Py_BuildValue("i",_result);
8831 return _resultobj;
8832 }
8833
8834 #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8835 static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8836 PyObject * _resultobj;
8837 wxMenuItem * _result;
8838 wxMenu * _arg0;
8839 int _arg1;
8840 PyObject * _argo0 = 0;
8841 char *_kwnames[] = { "self","id", NULL };
8842
8843 self = self;
8844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1))
8845 return NULL;
8846 if (_argo0) {
8847 if (_argo0 == Py_None) { _arg0 = NULL; }
8848 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8849 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p.");
8850 return NULL;
8851 }
8852 }
8853 {
8854 PyThreadState* __tstate = wxPyBeginAllowThreads();
8855 _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1);
8856
8857 wxPyEndAllowThreads(__tstate);
8858 if (PyErr_Occurred()) return NULL;
8859 }{ _resultobj = wxPyMake_wxObject(_result); }
8860 return _resultobj;
8861 }
8862
8863 #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8864 static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8865 PyObject * _resultobj;
8866 wxMenuItem * _result;
8867 wxMenu * _arg0;
8868 wxMenuItem * _arg1;
8869 PyObject * _argo0 = 0;
8870 PyObject * _argo1 = 0;
8871 char *_kwnames[] = { "self","item", NULL };
8872
8873 self = self;
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1))
8875 return NULL;
8876 if (_argo0) {
8877 if (_argo0 == Py_None) { _arg0 = NULL; }
8878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p.");
8880 return NULL;
8881 }
8882 }
8883 if (_argo1) {
8884 if (_argo1 == Py_None) { _arg1 = NULL; }
8885 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
8886 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p.");
8887 return NULL;
8888 }
8889 }
8890 {
8891 PyThreadState* __tstate = wxPyBeginAllowThreads();
8892 _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1);
8893
8894 wxPyEndAllowThreads(__tstate);
8895 if (PyErr_Occurred()) return NULL;
8896 }{ _resultobj = wxPyMake_wxObject(_result); }
8897 return _resultobj;
8898 }
8899
8900 static void wxMenu_Destroy(wxMenu *self) { delete self; }
8901 static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
8902 PyObject * _resultobj;
8903 wxMenu * _arg0;
8904 PyObject * _argo0 = 0;
8905 char *_kwnames[] = { "self", NULL };
8906
8907 self = self;
8908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
8909 return NULL;
8910 if (_argo0) {
8911 if (_argo0 == Py_None) { _arg0 = NULL; }
8912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
8914 return NULL;
8915 }
8916 }
8917 {
8918 PyThreadState* __tstate = wxPyBeginAllowThreads();
8919 wxMenu_Destroy(_arg0);
8920
8921 wxPyEndAllowThreads(__tstate);
8922 if (PyErr_Occurred()) return NULL;
8923 } Py_INCREF(Py_None);
8924 _resultobj = Py_None;
8925 return _resultobj;
8926 }
8927
8928 #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
8929 static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
8930 PyObject * _resultobj;
8931 bool _result;
8932 wxMenu * _arg0;
8933 int _arg1;
8934 PyObject * _argo0 = 0;
8935 char *_kwnames[] = { "self","id", NULL };
8936
8937 self = self;
8938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1))
8939 return NULL;
8940 if (_argo0) {
8941 if (_argo0 == Py_None) { _arg0 = NULL; }
8942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p.");
8944 return NULL;
8945 }
8946 }
8947 {
8948 PyThreadState* __tstate = wxPyBeginAllowThreads();
8949 _result = (bool )wxMenu_DestroyId(_arg0,_arg1);
8950
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) return NULL;
8953 } _resultobj = Py_BuildValue("i",_result);
8954 return _resultobj;
8955 }
8956
8957 #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0))
8958 static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8959 PyObject * _resultobj;
8960 bool _result;
8961 wxMenu * _arg0;
8962 wxMenuItem * _arg1;
8963 PyObject * _argo0 = 0;
8964 PyObject * _argo1 = 0;
8965 char *_kwnames[] = { "self","item", NULL };
8966
8967 self = self;
8968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1))
8969 return NULL;
8970 if (_argo0) {
8971 if (_argo0 == Py_None) { _arg0 = NULL; }
8972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
8973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p.");
8974 return NULL;
8975 }
8976 }
8977 if (_argo1) {
8978 if (_argo1 == Py_None) { _arg1 = NULL; }
8979 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
8980 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p.");
8981 return NULL;
8982 }
8983 }
8984 {
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 _result = (bool )wxMenu_DestroyItem(_arg0,_arg1);
8987
8988 wxPyEndAllowThreads(__tstate);
8989 if (PyErr_Occurred()) return NULL;
8990 } _resultobj = Py_BuildValue("i",_result);
8991 return _resultobj;
8992 }
8993
8994 #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount())
8995 static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8996 PyObject * _resultobj;
8997 size_t _result;
8998 wxMenu * _arg0;
8999 PyObject * _argo0 = 0;
9000 char *_kwnames[] = { "self", NULL };
9001
9002 self = self;
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0))
9004 return NULL;
9005 if (_argo0) {
9006 if (_argo0 == Py_None) { _arg0 = NULL; }
9007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p.");
9009 return NULL;
9010 }
9011 }
9012 {
9013 PyThreadState* __tstate = wxPyBeginAllowThreads();
9014 _result = (size_t )wxMenu_GetMenuItemCount(_arg0);
9015
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) return NULL;
9018 } _resultobj = Py_BuildValue("i",_result);
9019 return _resultobj;
9020 }
9021
9022 static PyObject * wxMenu_GetMenuItems(wxMenu *self) {
9023 wxMenuItemList& list = self->GetMenuItems();
9024 return wxPy_ConvertList(&list, "wxMenuItem");
9025 }
9026 static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
9027 PyObject * _resultobj;
9028 PyObject * _result;
9029 wxMenu * _arg0;
9030 PyObject * _argo0 = 0;
9031 char *_kwnames[] = { "self", NULL };
9032
9033 self = self;
9034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0))
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_GetMenuItems. Expected _wxMenu_p.");
9040 return NULL;
9041 }
9042 }
9043 {
9044 PyThreadState* __tstate = wxPyBeginAllowThreads();
9045 _result = (PyObject *)wxMenu_GetMenuItems(_arg0);
9046
9047 wxPyEndAllowThreads(__tstate);
9048 if (PyErr_Occurred()) return NULL;
9049 }{
9050 _resultobj = _result;
9051 }
9052 return _resultobj;
9053 }
9054
9055 #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
9056 static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
9057 PyObject * _resultobj;
9058 wxMenu * _arg0;
9059 wxEvtHandler * _arg1;
9060 PyObject * _argo0 = 0;
9061 PyObject * _argo1 = 0;
9062 char *_kwnames[] = { "self","handler", NULL };
9063
9064 self = self;
9065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1))
9066 return NULL;
9067 if (_argo0) {
9068 if (_argo0 == Py_None) { _arg0 = NULL; }
9069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p.");
9071 return NULL;
9072 }
9073 }
9074 if (_argo1) {
9075 if (_argo1 == Py_None) { _arg1 = NULL; }
9076 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
9077 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p.");
9078 return NULL;
9079 }
9080 }
9081 {
9082 PyThreadState* __tstate = wxPyBeginAllowThreads();
9083 wxMenu_SetEventHandler(_arg0,_arg1);
9084
9085 wxPyEndAllowThreads(__tstate);
9086 if (PyErr_Occurred()) return NULL;
9087 } Py_INCREF(Py_None);
9088 _resultobj = Py_None;
9089 return _resultobj;
9090 }
9091
9092 #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
9093 static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject * _resultobj;
9095 wxEvtHandler * _result;
9096 wxMenu * _arg0;
9097 PyObject * _argo0 = 0;
9098 char *_kwnames[] = { "self", NULL };
9099
9100 self = self;
9101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0))
9102 return NULL;
9103 if (_argo0) {
9104 if (_argo0 == Py_None) { _arg0 = NULL; }
9105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p.");
9107 return NULL;
9108 }
9109 }
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0);
9113
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) return NULL;
9116 }{ _resultobj = wxPyMake_wxObject(_result); }
9117 return _resultobj;
9118 }
9119
9120 #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0))
9121 static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
9122 PyObject * _resultobj;
9123 wxMenu * _arg0;
9124 wxWindow * _arg1;
9125 PyObject * _argo0 = 0;
9126 PyObject * _argo1 = 0;
9127 char *_kwnames[] = { "self","win", NULL };
9128
9129 self = self;
9130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1))
9131 return NULL;
9132 if (_argo0) {
9133 if (_argo0 == Py_None) { _arg0 = NULL; }
9134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p.");
9136 return NULL;
9137 }
9138 }
9139 if (_argo1) {
9140 if (_argo1 == Py_None) { _arg1 = NULL; }
9141 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9142 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p.");
9143 return NULL;
9144 }
9145 }
9146 {
9147 PyThreadState* __tstate = wxPyBeginAllowThreads();
9148 wxMenu_SetInvokingWindow(_arg0,_arg1);
9149
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) return NULL;
9152 } Py_INCREF(Py_None);
9153 _resultobj = Py_None;
9154 return _resultobj;
9155 }
9156
9157 #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow())
9158 static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
9159 PyObject * _resultobj;
9160 wxWindow * _result;
9161 wxMenu * _arg0;
9162 PyObject * _argo0 = 0;
9163 char *_kwnames[] = { "self", NULL };
9164
9165 self = self;
9166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0))
9167 return NULL;
9168 if (_argo0) {
9169 if (_argo0 == Py_None) { _arg0 = NULL; }
9170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p.");
9172 return NULL;
9173 }
9174 }
9175 {
9176 PyThreadState* __tstate = wxPyBeginAllowThreads();
9177 _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0);
9178
9179 wxPyEndAllowThreads(__tstate);
9180 if (PyErr_Occurred()) return NULL;
9181 }{ _resultobj = wxPyMake_wxObject(_result); }
9182 return _resultobj;
9183 }
9184
9185 #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle())
9186 static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject * _resultobj;
9188 long _result;
9189 wxMenu * _arg0;
9190 PyObject * _argo0 = 0;
9191 char *_kwnames[] = { "self", NULL };
9192
9193 self = self;
9194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0))
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_GetStyle. Expected _wxMenu_p.");
9200 return NULL;
9201 }
9202 }
9203 {
9204 PyThreadState* __tstate = wxPyBeginAllowThreads();
9205 _result = (long )wxMenu_GetStyle(_arg0);
9206
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) return NULL;
9209 } _resultobj = Py_BuildValue("l",_result);
9210 return _resultobj;
9211 }
9212
9213 #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached())
9214 static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
9215 PyObject * _resultobj;
9216 bool _result;
9217 wxMenu * _arg0;
9218 PyObject * _argo0 = 0;
9219 char *_kwnames[] = { "self", NULL };
9220
9221 self = self;
9222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0))
9223 return NULL;
9224 if (_argo0) {
9225 if (_argo0 == Py_None) { _arg0 = NULL; }
9226 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9227 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p.");
9228 return NULL;
9229 }
9230 }
9231 {
9232 PyThreadState* __tstate = wxPyBeginAllowThreads();
9233 _result = (bool )wxMenu_IsAttached(_arg0);
9234
9235 wxPyEndAllowThreads(__tstate);
9236 if (PyErr_Occurred()) return NULL;
9237 } _resultobj = Py_BuildValue("i",_result);
9238 return _resultobj;
9239 }
9240
9241 #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0))
9242 static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
9243 PyObject * _resultobj;
9244 wxMenu * _arg0;
9245 wxMenu * _arg1;
9246 PyObject * _argo0 = 0;
9247 PyObject * _argo1 = 0;
9248 char *_kwnames[] = { "self","parent", NULL };
9249
9250 self = self;
9251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1))
9252 return NULL;
9253 if (_argo0) {
9254 if (_argo0 == Py_None) { _arg0 = NULL; }
9255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p.");
9257 return NULL;
9258 }
9259 }
9260 if (_argo1) {
9261 if (_argo1 == Py_None) { _arg1 = NULL; }
9262 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9263 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p.");
9264 return NULL;
9265 }
9266 }
9267 {
9268 PyThreadState* __tstate = wxPyBeginAllowThreads();
9269 wxMenu_SetParent(_arg0,_arg1);
9270
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) return NULL;
9273 } Py_INCREF(Py_None);
9274 _resultobj = Py_None;
9275 return _resultobj;
9276 }
9277
9278 #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent())
9279 static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
9280 PyObject * _resultobj;
9281 wxMenu * _result;
9282 wxMenu * _arg0;
9283 PyObject * _argo0 = 0;
9284 char *_kwnames[] = { "self", NULL };
9285
9286 self = self;
9287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0))
9288 return NULL;
9289 if (_argo0) {
9290 if (_argo0 == Py_None) { _arg0 = NULL; }
9291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
9292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p.");
9293 return NULL;
9294 }
9295 }
9296 {
9297 PyThreadState* __tstate = wxPyBeginAllowThreads();
9298 _result = (wxMenu *)wxMenu_GetParent(_arg0);
9299
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) return NULL;
9302 }{ _resultobj = wxPyMake_wxObject(_result); }
9303 return _resultobj;
9304 }
9305
9306 static void *SwigwxMenuBarTowxWindow(void *ptr) {
9307 wxMenuBar *src;
9308 wxWindow *dest;
9309 src = (wxMenuBar *) ptr;
9310 dest = (wxWindow *) src;
9311 return (void *) dest;
9312 }
9313
9314 static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
9315 wxMenuBar *src;
9316 wxEvtHandler *dest;
9317 src = (wxMenuBar *) ptr;
9318 dest = (wxEvtHandler *) src;
9319 return (void *) dest;
9320 }
9321
9322 static void *SwigwxMenuBarTowxObject(void *ptr) {
9323 wxMenuBar *src;
9324 wxObject *dest;
9325 src = (wxMenuBar *) ptr;
9326 dest = (wxObject *) src;
9327 return (void *) dest;
9328 }
9329
9330 #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
9331 static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
9332 PyObject * _resultobj;
9333 wxMenuBar * _result;
9334 long _arg0 = (long ) 0;
9335 char *_kwnames[] = { "style", NULL };
9336 char _ptemp[128];
9337
9338 self = self;
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0))
9340 return NULL;
9341 {
9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
9343 _result = (wxMenuBar *)new_wxMenuBar(_arg0);
9344
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) return NULL;
9347 } if (_result) {
9348 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
9349 _resultobj = Py_BuildValue("s",_ptemp);
9350 } else {
9351 Py_INCREF(Py_None);
9352 _resultobj = Py_None;
9353 }
9354 return _resultobj;
9355 }
9356
9357 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
9358 static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
9359 PyObject * _resultobj;
9360 bool _result;
9361 wxMenuBar * _arg0;
9362 wxMenu * _arg1;
9363 wxString * _arg2;
9364 PyObject * _argo0 = 0;
9365 PyObject * _argo1 = 0;
9366 PyObject * _obj2 = 0;
9367 char *_kwnames[] = { "self","menu","title", NULL };
9368
9369 self = self;
9370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
9371 return NULL;
9372 if (_argo0) {
9373 if (_argo0 == Py_None) { _arg0 = NULL; }
9374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
9376 return NULL;
9377 }
9378 }
9379 if (_argo1) {
9380 if (_argo1 == Py_None) { _arg1 = NULL; }
9381 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9382 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
9383 return NULL;
9384 }
9385 }
9386 {
9387 _arg2 = wxString_in_helper(_obj2);
9388 if (_arg2 == NULL)
9389 return NULL;
9390 }
9391 {
9392 PyThreadState* __tstate = wxPyBeginAllowThreads();
9393 _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2);
9394
9395 wxPyEndAllowThreads(__tstate);
9396 if (PyErr_Occurred()) return NULL;
9397 } _resultobj = Py_BuildValue("i",_result);
9398 {
9399 if (_obj2)
9400 delete _arg2;
9401 }
9402 return _resultobj;
9403 }
9404
9405 #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2))
9406 static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
9407 PyObject * _resultobj;
9408 bool _result;
9409 wxMenuBar * _arg0;
9410 size_t _arg1;
9411 wxMenu * _arg2;
9412 wxString * _arg3;
9413 PyObject * _argo0 = 0;
9414 PyObject * _argo2 = 0;
9415 PyObject * _obj3 = 0;
9416 char *_kwnames[] = { "self","pos","menu","title", NULL };
9417
9418 self = self;
9419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
9420 return NULL;
9421 if (_argo0) {
9422 if (_argo0 == Py_None) { _arg0 = NULL; }
9423 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9424 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p.");
9425 return NULL;
9426 }
9427 }
9428 if (_argo2) {
9429 if (_argo2 == Py_None) { _arg2 = NULL; }
9430 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
9431 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p.");
9432 return NULL;
9433 }
9434 }
9435 {
9436 _arg3 = wxString_in_helper(_obj3);
9437 if (_arg3 == NULL)
9438 return NULL;
9439 }
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3);
9443
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) return NULL;
9446 } _resultobj = Py_BuildValue("i",_result);
9447 {
9448 if (_obj3)
9449 delete _arg3;
9450 }
9451 return _resultobj;
9452 }
9453
9454 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
9455 static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9456 PyObject * _resultobj;
9457 size_t _result;
9458 wxMenuBar * _arg0;
9459 PyObject * _argo0 = 0;
9460 char *_kwnames[] = { "self", NULL };
9461
9462 self = self;
9463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
9464 return NULL;
9465 if (_argo0) {
9466 if (_argo0 == Py_None) { _arg0 = NULL; }
9467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
9469 return NULL;
9470 }
9471 }
9472 {
9473 PyThreadState* __tstate = wxPyBeginAllowThreads();
9474 _result = (size_t )wxMenuBar_GetMenuCount(_arg0);
9475
9476 wxPyEndAllowThreads(__tstate);
9477 if (PyErr_Occurred()) return NULL;
9478 } _resultobj = Py_BuildValue("i",_result);
9479 return _resultobj;
9480 }
9481
9482 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
9483 static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9484 PyObject * _resultobj;
9485 wxMenu * _result;
9486 wxMenuBar * _arg0;
9487 size_t _arg1;
9488 PyObject * _argo0 = 0;
9489 char *_kwnames[] = { "self","pos", NULL };
9490
9491 self = self;
9492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
9493 return NULL;
9494 if (_argo0) {
9495 if (_argo0 == Py_None) { _arg0 = NULL; }
9496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
9498 return NULL;
9499 }
9500 }
9501 {
9502 PyThreadState* __tstate = wxPyBeginAllowThreads();
9503 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
9504
9505 wxPyEndAllowThreads(__tstate);
9506 if (PyErr_Occurred()) return NULL;
9507 }{ _resultobj = wxPyMake_wxObject(_result); }
9508 return _resultobj;
9509 }
9510
9511 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
9512 static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
9513 PyObject * _resultobj;
9514 wxMenu * _result;
9515 wxMenuBar * _arg0;
9516 size_t _arg1;
9517 wxMenu * _arg2;
9518 wxString * _arg3;
9519 PyObject * _argo0 = 0;
9520 PyObject * _argo2 = 0;
9521 PyObject * _obj3 = 0;
9522 char *_kwnames[] = { "self","pos","menu","title", NULL };
9523
9524 self = self;
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
9526 return NULL;
9527 if (_argo0) {
9528 if (_argo0 == Py_None) { _arg0 = NULL; }
9529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
9531 return NULL;
9532 }
9533 }
9534 if (_argo2) {
9535 if (_argo2 == Py_None) { _arg2 = NULL; }
9536 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
9537 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
9538 return NULL;
9539 }
9540 }
9541 {
9542 _arg3 = wxString_in_helper(_obj3);
9543 if (_arg3 == NULL)
9544 return NULL;
9545 }
9546 {
9547 PyThreadState* __tstate = wxPyBeginAllowThreads();
9548 _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3);
9549
9550 wxPyEndAllowThreads(__tstate);
9551 if (PyErr_Occurred()) return NULL;
9552 }{ _resultobj = wxPyMake_wxObject(_result); }
9553 {
9554 if (_obj3)
9555 delete _arg3;
9556 }
9557 return _resultobj;
9558 }
9559
9560 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9561 static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
9562 PyObject * _resultobj;
9563 wxMenu * _result;
9564 wxMenuBar * _arg0;
9565 size_t _arg1;
9566 PyObject * _argo0 = 0;
9567 char *_kwnames[] = { "self","pos", NULL };
9568
9569 self = self;
9570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1))
9571 return NULL;
9572 if (_argo0) {
9573 if (_argo0 == Py_None) { _arg0 = NULL; }
9574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
9576 return NULL;
9577 }
9578 }
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1);
9582
9583 wxPyEndAllowThreads(__tstate);
9584 if (PyErr_Occurred()) return NULL;
9585 }{ _resultobj = wxPyMake_wxObject(_result); }
9586 return _resultobj;
9587 }
9588
9589 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
9590 static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9591 PyObject * _resultobj;
9592 wxMenuBar * _arg0;
9593 size_t _arg1;
9594 bool _arg2;
9595 PyObject * _argo0 = 0;
9596 int tempbool2;
9597 char *_kwnames[] = { "self","pos","enable", NULL };
9598
9599 self = self;
9600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
9601 return NULL;
9602 if (_argo0) {
9603 if (_argo0 == Py_None) { _arg0 = NULL; }
9604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
9606 return NULL;
9607 }
9608 }
9609 _arg2 = (bool ) tempbool2;
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
9613
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) return NULL;
9616 } Py_INCREF(Py_None);
9617 _resultobj = Py_None;
9618 return _resultobj;
9619 }
9620
9621 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
9622 static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9623 PyObject * _resultobj;
9624 wxMenuBar * _arg0;
9625 size_t _arg1;
9626 wxString * _arg2;
9627 PyObject * _argo0 = 0;
9628 PyObject * _obj2 = 0;
9629 char *_kwnames[] = { "self","pos","label", NULL };
9630
9631 self = self;
9632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
9633 return NULL;
9634 if (_argo0) {
9635 if (_argo0 == Py_None) { _arg0 = NULL; }
9636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
9638 return NULL;
9639 }
9640 }
9641 {
9642 _arg2 = wxString_in_helper(_obj2);
9643 if (_arg2 == NULL)
9644 return NULL;
9645 }
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
9649
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) return NULL;
9652 } Py_INCREF(Py_None);
9653 _resultobj = Py_None;
9654 {
9655 if (_obj2)
9656 delete _arg2;
9657 }
9658 return _resultobj;
9659 }
9660
9661 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
9662 static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9663 PyObject * _resultobj;
9664 wxString * _result;
9665 wxMenuBar * _arg0;
9666 size_t _arg1;
9667 PyObject * _argo0 = 0;
9668 char *_kwnames[] = { "self","pos", NULL };
9669
9670 self = self;
9671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
9672 return NULL;
9673 if (_argo0) {
9674 if (_argo0 == Py_None) { _arg0 = NULL; }
9675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
9677 return NULL;
9678 }
9679 }
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
9683
9684 wxPyEndAllowThreads(__tstate);
9685 if (PyErr_Occurred()) return NULL;
9686 }{
9687 #if wxUSE_UNICODE
9688 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
9689 #else
9690 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9691 #endif
9692 }
9693 {
9694 delete _result;
9695 }
9696 return _resultobj;
9697 }
9698
9699 #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0))
9700 static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9701 PyObject * _resultobj;
9702 int _result;
9703 wxMenuBar * _arg0;
9704 wxString * _arg1;
9705 PyObject * _argo0 = 0;
9706 PyObject * _obj1 = 0;
9707 char *_kwnames[] = { "self","title", NULL };
9708
9709 self = self;
9710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1))
9711 return NULL;
9712 if (_argo0) {
9713 if (_argo0 == Py_None) { _arg0 = NULL; }
9714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p.");
9716 return NULL;
9717 }
9718 }
9719 {
9720 _arg1 = wxString_in_helper(_obj1);
9721 if (_arg1 == NULL)
9722 return NULL;
9723 }
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
9726 _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1);
9727
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) return NULL;
9730 } _resultobj = Py_BuildValue("i",_result);
9731 {
9732 if (_obj1)
9733 delete _arg1;
9734 }
9735 return _resultobj;
9736 }
9737
9738 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
9739 static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
9740 PyObject * _resultobj;
9741 int _result;
9742 wxMenuBar * _arg0;
9743 wxString * _arg1;
9744 wxString * _arg2;
9745 PyObject * _argo0 = 0;
9746 PyObject * _obj1 = 0;
9747 PyObject * _obj2 = 0;
9748 char *_kwnames[] = { "self","menuString","itemString", NULL };
9749
9750 self = self;
9751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
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_FindMenuItem. Expected _wxMenuBar_p.");
9757 return NULL;
9758 }
9759 }
9760 {
9761 _arg1 = wxString_in_helper(_obj1);
9762 if (_arg1 == NULL)
9763 return NULL;
9764 }
9765 {
9766 _arg2 = wxString_in_helper(_obj2);
9767 if (_arg2 == NULL)
9768 return NULL;
9769 }
9770 {
9771 PyThreadState* __tstate = wxPyBeginAllowThreads();
9772 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
9773
9774 wxPyEndAllowThreads(__tstate);
9775 if (PyErr_Occurred()) return NULL;
9776 } _resultobj = Py_BuildValue("i",_result);
9777 {
9778 if (_obj1)
9779 delete _arg1;
9780 }
9781 {
9782 if (_obj2)
9783 delete _arg2;
9784 }
9785 return _resultobj;
9786 }
9787
9788 #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
9789 static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
9790 PyObject * _resultobj;
9791 wxMenuItem * _result;
9792 wxMenuBar * _arg0;
9793 int _arg1;
9794 PyObject * _argo0 = 0;
9795 char *_kwnames[] = { "self","id", NULL };
9796
9797 self = self;
9798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1))
9799 return NULL;
9800 if (_argo0) {
9801 if (_argo0 == Py_None) { _arg0 = NULL; }
9802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p.");
9804 return NULL;
9805 }
9806 }
9807 {
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1);
9810
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) return NULL;
9813 }{ _resultobj = wxPyMake_wxObject(_result); }
9814 return _resultobj;
9815 }
9816
9817 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
9818 static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
9819 PyObject * _resultobj;
9820 wxMenuBar * _arg0;
9821 int _arg1;
9822 bool _arg2;
9823 PyObject * _argo0 = 0;
9824 int tempbool2;
9825 char *_kwnames[] = { "self","id","enable", NULL };
9826
9827 self = self;
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
9829 return NULL;
9830 if (_argo0) {
9831 if (_argo0 == Py_None) { _arg0 = NULL; }
9832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
9834 return NULL;
9835 }
9836 }
9837 _arg2 = (bool ) tempbool2;
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 wxMenuBar_Enable(_arg0,_arg1,_arg2);
9841
9842 wxPyEndAllowThreads(__tstate);
9843 if (PyErr_Occurred()) return NULL;
9844 } Py_INCREF(Py_None);
9845 _resultobj = Py_None;
9846 return _resultobj;
9847 }
9848
9849 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
9850 static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
9851 PyObject * _resultobj;
9852 wxMenuBar * _arg0;
9853 int _arg1;
9854 bool _arg2;
9855 PyObject * _argo0 = 0;
9856 int tempbool2;
9857 char *_kwnames[] = { "self","id","check", NULL };
9858
9859 self = self;
9860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
9861 return NULL;
9862 if (_argo0) {
9863 if (_argo0 == Py_None) { _arg0 = NULL; }
9864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
9866 return NULL;
9867 }
9868 }
9869 _arg2 = (bool ) tempbool2;
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 wxMenuBar_Check(_arg0,_arg1,_arg2);
9873
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) return NULL;
9876 } Py_INCREF(Py_None);
9877 _resultobj = Py_None;
9878 return _resultobj;
9879 }
9880
9881 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
9882 static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
9883 PyObject * _resultobj;
9884 bool _result;
9885 wxMenuBar * _arg0;
9886 int _arg1;
9887 PyObject * _argo0 = 0;
9888 char *_kwnames[] = { "self","id", NULL };
9889
9890 self = self;
9891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1))
9892 return NULL;
9893 if (_argo0) {
9894 if (_argo0 == Py_None) { _arg0 = NULL; }
9895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
9897 return NULL;
9898 }
9899 }
9900 {
9901 PyThreadState* __tstate = wxPyBeginAllowThreads();
9902 _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1);
9903
9904 wxPyEndAllowThreads(__tstate);
9905 if (PyErr_Occurred()) return NULL;
9906 } _resultobj = Py_BuildValue("i",_result);
9907 return _resultobj;
9908 }
9909
9910 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
9911 static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
9912 PyObject * _resultobj;
9913 bool _result;
9914 wxMenuBar * _arg0;
9915 int _arg1;
9916 PyObject * _argo0 = 0;
9917 char *_kwnames[] = { "self","id", NULL };
9918
9919 self = self;
9920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1))
9921 return NULL;
9922 if (_argo0) {
9923 if (_argo0 == Py_None) { _arg0 = NULL; }
9924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
9926 return NULL;
9927 }
9928 }
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1);
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) return NULL;
9935 } _resultobj = Py_BuildValue("i",_result);
9936 return _resultobj;
9937 }
9938
9939 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
9940 static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9941 PyObject * _resultobj;
9942 wxMenuBar * _arg0;
9943 int _arg1;
9944 wxString * _arg2;
9945 PyObject * _argo0 = 0;
9946 PyObject * _obj2 = 0;
9947 char *_kwnames[] = { "self","id","label", NULL };
9948
9949 self = self;
9950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
9951 return NULL;
9952 if (_argo0) {
9953 if (_argo0 == Py_None) { _arg0 = NULL; }
9954 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9955 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
9956 return NULL;
9957 }
9958 }
9959 {
9960 _arg2 = wxString_in_helper(_obj2);
9961 if (_arg2 == NULL)
9962 return NULL;
9963 }
9964 {
9965 PyThreadState* __tstate = wxPyBeginAllowThreads();
9966 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
9967
9968 wxPyEndAllowThreads(__tstate);
9969 if (PyErr_Occurred()) return NULL;
9970 } Py_INCREF(Py_None);
9971 _resultobj = Py_None;
9972 {
9973 if (_obj2)
9974 delete _arg2;
9975 }
9976 return _resultobj;
9977 }
9978
9979 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
9980 static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
9981 PyObject * _resultobj;
9982 wxString * _result;
9983 wxMenuBar * _arg0;
9984 int _arg1;
9985 PyObject * _argo0 = 0;
9986 char *_kwnames[] = { "self","id", NULL };
9987
9988 self = self;
9989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
9990 return NULL;
9991 if (_argo0) {
9992 if (_argo0 == Py_None) { _arg0 = NULL; }
9993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
9994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
9995 return NULL;
9996 }
9997 }
9998 {
9999 PyThreadState* __tstate = wxPyBeginAllowThreads();
10000 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
10001
10002 wxPyEndAllowThreads(__tstate);
10003 if (PyErr_Occurred()) return NULL;
10004 }{
10005 #if wxUSE_UNICODE
10006 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
10007 #else
10008 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10009 #endif
10010 }
10011 {
10012 delete _result;
10013 }
10014 return _resultobj;
10015 }
10016
10017 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
10018 static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
10019 PyObject * _resultobj;
10020 wxMenuBar * _arg0;
10021 int _arg1;
10022 wxString * _arg2;
10023 PyObject * _argo0 = 0;
10024 PyObject * _obj2 = 0;
10025 char *_kwnames[] = { "self","id","helpString", NULL };
10026
10027 self = self;
10028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
10029 return NULL;
10030 if (_argo0) {
10031 if (_argo0 == Py_None) { _arg0 = NULL; }
10032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
10034 return NULL;
10035 }
10036 }
10037 {
10038 _arg2 = wxString_in_helper(_obj2);
10039 if (_arg2 == NULL)
10040 return NULL;
10041 }
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) return NULL;
10048 } Py_INCREF(Py_None);
10049 _resultobj = Py_None;
10050 {
10051 if (_obj2)
10052 delete _arg2;
10053 }
10054 return _resultobj;
10055 }
10056
10057 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
10058 static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
10059 PyObject * _resultobj;
10060 wxString * _result;
10061 wxMenuBar * _arg0;
10062 int _arg1;
10063 PyObject * _argo0 = 0;
10064 char *_kwnames[] = { "self","id", NULL };
10065
10066 self = self;
10067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
10068 return NULL;
10069 if (_argo0) {
10070 if (_argo0 == Py_None) { _arg0 = NULL; }
10071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
10072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
10073 return NULL;
10074 }
10075 }
10076 {
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
10079
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) return NULL;
10082 }{
10083 #if wxUSE_UNICODE
10084 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
10085 #else
10086 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10087 #endif
10088 }
10089 {
10090 delete _result;
10091 }
10092 return _resultobj;
10093 }
10094
10095 static void *SwigwxMenuItemTowxObject(void *ptr) {
10096 wxMenuItem *src;
10097 wxObject *dest;
10098 src = (wxMenuItem *) ptr;
10099 dest = (wxObject *) src;
10100 return (void *) dest;
10101 }
10102
10103 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10104 static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
10105 PyObject * _resultobj;
10106 wxMenuItem * _result;
10107 wxMenu * _arg0 = (wxMenu *) NULL;
10108 int _arg1 = (int ) wxID_SEPARATOR;
10109 wxString * _arg2 = (wxString *) &wxPyEmptyString;
10110 wxString * _arg3 = (wxString *) &wxPyEmptyString;
10111 wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL;
10112 wxMenu * _arg5 = (wxMenu *) NULL;
10113 PyObject * _argo0 = 0;
10114 PyObject * _obj2 = 0;
10115 PyObject * _obj3 = 0;
10116 PyObject * _argo5 = 0;
10117 char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL };
10118 char _ptemp[128];
10119
10120 self = self;
10121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5))
10122 return NULL;
10123 if (_argo0) {
10124 if (_argo0 == Py_None) { _arg0 = NULL; }
10125 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
10126 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
10127 return NULL;
10128 }
10129 }
10130 if (_obj2)
10131 {
10132 _arg2 = wxString_in_helper(_obj2);
10133 if (_arg2 == NULL)
10134 return NULL;
10135 }
10136 if (_obj3)
10137 {
10138 _arg3 = wxString_in_helper(_obj3);
10139 if (_arg3 == NULL)
10140 return NULL;
10141 }
10142 if (_argo5) {
10143 if (_argo5 == Py_None) { _arg5 = NULL; }
10144 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
10145 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
10146 return NULL;
10147 }
10148 }
10149 {
10150 PyThreadState* __tstate = wxPyBeginAllowThreads();
10151 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
10152
10153 wxPyEndAllowThreads(__tstate);
10154 if (PyErr_Occurred()) return NULL;
10155 } if (_result) {
10156 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
10157 _resultobj = Py_BuildValue("s",_ptemp);
10158 } else {
10159 Py_INCREF(Py_None);
10160 _resultobj = Py_None;
10161 }
10162 {
10163 if (_obj2)
10164 delete _arg2;
10165 }
10166 {
10167 if (_obj3)
10168 delete _arg3;
10169 }
10170 return _resultobj;
10171 }
10172
10173 #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu())
10174 static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10175 PyObject * _resultobj;
10176 wxMenu * _result;
10177 wxMenuItem * _arg0;
10178 PyObject * _argo0 = 0;
10179 char *_kwnames[] = { "self", NULL };
10180
10181 self = self;
10182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0))
10183 return NULL;
10184 if (_argo0) {
10185 if (_argo0 == Py_None) { _arg0 = NULL; }
10186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p.");
10188 return NULL;
10189 }
10190 }
10191 {
10192 PyThreadState* __tstate = wxPyBeginAllowThreads();
10193 _result = (wxMenu *)wxMenuItem_GetMenu(_arg0);
10194
10195 wxPyEndAllowThreads(__tstate);
10196 if (PyErr_Occurred()) return NULL;
10197 }{ _resultobj = wxPyMake_wxObject(_result); }
10198 return _resultobj;
10199 }
10200
10201 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
10202 static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
10203 PyObject * _resultobj;
10204 wxMenuItem * _arg0;
10205 int _arg1;
10206 PyObject * _argo0 = 0;
10207 char *_kwnames[] = { "self","id", NULL };
10208
10209 self = self;
10210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1))
10211 return NULL;
10212 if (_argo0) {
10213 if (_argo0 == Py_None) { _arg0 = NULL; }
10214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
10216 return NULL;
10217 }
10218 }
10219 {
10220 PyThreadState* __tstate = wxPyBeginAllowThreads();
10221 wxMenuItem_SetId(_arg0,_arg1);
10222
10223 wxPyEndAllowThreads(__tstate);
10224 if (PyErr_Occurred()) return NULL;
10225 } Py_INCREF(Py_None);
10226 _resultobj = Py_None;
10227 return _resultobj;
10228 }
10229
10230 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
10231 static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
10232 PyObject * _resultobj;
10233 int _result;
10234 wxMenuItem * _arg0;
10235 PyObject * _argo0 = 0;
10236 char *_kwnames[] = { "self", NULL };
10237
10238 self = self;
10239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
10240 return NULL;
10241 if (_argo0) {
10242 if (_argo0 == Py_None) { _arg0 = NULL; }
10243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
10245 return NULL;
10246 }
10247 }
10248 {
10249 PyThreadState* __tstate = wxPyBeginAllowThreads();
10250 _result = (int )wxMenuItem_GetId(_arg0);
10251
10252 wxPyEndAllowThreads(__tstate);
10253 if (PyErr_Occurred()) return NULL;
10254 } _resultobj = Py_BuildValue("i",_result);
10255 return _resultobj;
10256 }
10257
10258 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
10259 static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
10260 PyObject * _resultobj;
10261 bool _result;
10262 wxMenuItem * _arg0;
10263 PyObject * _argo0 = 0;
10264 char *_kwnames[] = { "self", NULL };
10265
10266 self = self;
10267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
10268 return NULL;
10269 if (_argo0) {
10270 if (_argo0 == Py_None) { _arg0 = NULL; }
10271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
10273 return NULL;
10274 }
10275 }
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 _result = (bool )wxMenuItem_IsSeparator(_arg0);
10279
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) return NULL;
10282 } _resultobj = Py_BuildValue("i",_result);
10283 return _resultobj;
10284 }
10285
10286 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
10287 static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
10288 PyObject * _resultobj;
10289 wxMenuItem * _arg0;
10290 wxString * _arg1;
10291 PyObject * _argo0 = 0;
10292 PyObject * _obj1 = 0;
10293 char *_kwnames[] = { "self","str", NULL };
10294
10295 self = self;
10296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1))
10297 return NULL;
10298 if (_argo0) {
10299 if (_argo0 == Py_None) { _arg0 = NULL; }
10300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
10302 return NULL;
10303 }
10304 }
10305 {
10306 _arg1 = wxString_in_helper(_obj1);
10307 if (_arg1 == NULL)
10308 return NULL;
10309 }
10310 {
10311 PyThreadState* __tstate = wxPyBeginAllowThreads();
10312 wxMenuItem_SetText(_arg0,*_arg1);
10313
10314 wxPyEndAllowThreads(__tstate);
10315 if (PyErr_Occurred()) return NULL;
10316 } Py_INCREF(Py_None);
10317 _resultobj = Py_None;
10318 {
10319 if (_obj1)
10320 delete _arg1;
10321 }
10322 return _resultobj;
10323 }
10324
10325 #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel())
10326 static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
10327 PyObject * _resultobj;
10328 wxString * _result;
10329 wxMenuItem * _arg0;
10330 PyObject * _argo0 = 0;
10331 char *_kwnames[] = { "self", NULL };
10332
10333 self = self;
10334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0))
10335 return NULL;
10336 if (_argo0) {
10337 if (_argo0 == Py_None) { _arg0 = NULL; }
10338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p.");
10340 return NULL;
10341 }
10342 }
10343 {
10344 PyThreadState* __tstate = wxPyBeginAllowThreads();
10345 _result = new wxString (wxMenuItem_GetLabel(_arg0));
10346
10347 wxPyEndAllowThreads(__tstate);
10348 if (PyErr_Occurred()) return NULL;
10349 }{
10350 #if wxUSE_UNICODE
10351 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
10352 #else
10353 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10354 #endif
10355 }
10356 {
10357 delete _result;
10358 }
10359 return _resultobj;
10360 }
10361
10362 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
10363 static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
10364 PyObject * _resultobj;
10365 wxString * _result;
10366 wxMenuItem * _arg0;
10367 PyObject * _argo0 = 0;
10368 char *_kwnames[] = { "self", NULL };
10369
10370 self = self;
10371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0))
10372 return NULL;
10373 if (_argo0) {
10374 if (_argo0 == Py_None) { _arg0 = NULL; }
10375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
10377 return NULL;
10378 }
10379 }
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 const wxString & _result_ref = wxMenuItem_GetText(_arg0);
10383 _result = (wxString *) &_result_ref;
10384
10385 wxPyEndAllowThreads(__tstate);
10386 if (PyErr_Occurred()) return NULL;
10387 }{
10388 #if wxUSE_UNICODE
10389 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
10390 #else
10391 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10392 #endif
10393 }
10394 return _resultobj;
10395 }
10396
10397 #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind())
10398 static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
10399 PyObject * _resultobj;
10400 wxItemKind _result;
10401 wxMenuItem * _arg0;
10402 PyObject * _argo0 = 0;
10403 char *_kwnames[] = { "self", NULL };
10404
10405 self = self;
10406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0))
10407 return NULL;
10408 if (_argo0) {
10409 if (_argo0 == Py_None) { _arg0 = NULL; }
10410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p.");
10412 return NULL;
10413 }
10414 }
10415 {
10416 PyThreadState* __tstate = wxPyBeginAllowThreads();
10417 _result = (wxItemKind )wxMenuItem_GetKind(_arg0);
10418
10419 wxPyEndAllowThreads(__tstate);
10420 if (PyErr_Occurred()) return NULL;
10421 } _resultobj = Py_BuildValue("i",_result);
10422 return _resultobj;
10423 }
10424
10425 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
10426 static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
10427 PyObject * _resultobj;
10428 wxMenuItem * _arg0;
10429 bool _arg1;
10430 PyObject * _argo0 = 0;
10431 int tempbool1;
10432 char *_kwnames[] = { "self","checkable", NULL };
10433
10434 self = self;
10435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1))
10436 return NULL;
10437 if (_argo0) {
10438 if (_argo0 == Py_None) { _arg0 = NULL; }
10439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
10441 return NULL;
10442 }
10443 }
10444 _arg1 = (bool ) tempbool1;
10445 {
10446 PyThreadState* __tstate = wxPyBeginAllowThreads();
10447 wxMenuItem_SetCheckable(_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_IsCheckable(_swigobj) (_swigobj->IsCheckable())
10457 static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
10458 PyObject * _resultobj;
10459 bool _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_IsCheckable",_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_IsCheckable. Expected _wxMenuItem_p.");
10471 return NULL;
10472 }
10473 }
10474 {
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 _result = (bool )wxMenuItem_IsCheckable(_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_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
10485 static PyObject *_wrap_wxMenuItem_IsSubMenu(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_IsSubMenu",_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_IsSubMenu. Expected _wxMenuItem_p.");
10499 return NULL;
10500 }
10501 }
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 _result = (bool )wxMenuItem_IsSubMenu(_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_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
10513 static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10514 PyObject * _resultobj;
10515 wxMenuItem * _arg0;
10516 wxMenu * _arg1;
10517 PyObject * _argo0 = 0;
10518 PyObject * _argo1 = 0;
10519 char *_kwnames[] = { "self","menu", NULL };
10520
10521 self = self;
10522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1))
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_SetSubMenu. Expected _wxMenuItem_p.");
10528 return NULL;
10529 }
10530 }
10531 if (_argo1) {
10532 if (_argo1 == Py_None) { _arg1 = NULL; }
10533 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
10534 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
10535 return NULL;
10536 }
10537 }
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 wxMenuItem_SetSubMenu(_arg0,_arg1);
10541
10542 wxPyEndAllowThreads(__tstate);
10543 if (PyErr_Occurred()) return NULL;
10544 } Py_INCREF(Py_None);
10545 _resultobj = Py_None;
10546 return _resultobj;
10547 }
10548
10549 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
10550 static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10551 PyObject * _resultobj;
10552 wxMenu * _result;
10553 wxMenuItem * _arg0;
10554 PyObject * _argo0 = 0;
10555 char *_kwnames[] = { "self", NULL };
10556
10557 self = self;
10558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
10559 return NULL;
10560 if (_argo0) {
10561 if (_argo0 == Py_None) { _arg0 = NULL; }
10562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
10564 return NULL;
10565 }
10566 }
10567 {
10568 PyThreadState* __tstate = wxPyBeginAllowThreads();
10569 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
10570
10571 wxPyEndAllowThreads(__tstate);
10572 if (PyErr_Occurred()) return NULL;
10573 }{ _resultobj = wxPyMake_wxObject(_result); }
10574 return _resultobj;
10575 }
10576
10577 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
10578 static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
10579 PyObject * _resultobj;
10580 wxMenuItem * _arg0;
10581 bool _arg1 = (bool ) TRUE;
10582 PyObject * _argo0 = 0;
10583 int tempbool1 = (int) TRUE;
10584 char *_kwnames[] = { "self","enable", NULL };
10585
10586 self = self;
10587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
10588 return NULL;
10589 if (_argo0) {
10590 if (_argo0 == Py_None) { _arg0 = NULL; }
10591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
10593 return NULL;
10594 }
10595 }
10596 _arg1 = (bool ) tempbool1;
10597 {
10598 PyThreadState* __tstate = wxPyBeginAllowThreads();
10599 wxMenuItem_Enable(_arg0,_arg1);
10600
10601 wxPyEndAllowThreads(__tstate);
10602 if (PyErr_Occurred()) return NULL;
10603 } Py_INCREF(Py_None);
10604 _resultobj = Py_None;
10605 return _resultobj;
10606 }
10607
10608 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
10609 static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
10610 PyObject * _resultobj;
10611 bool _result;
10612 wxMenuItem * _arg0;
10613 PyObject * _argo0 = 0;
10614 char *_kwnames[] = { "self", NULL };
10615
10616 self = self;
10617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
10618 return NULL;
10619 if (_argo0) {
10620 if (_argo0 == Py_None) { _arg0 = NULL; }
10621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
10623 return NULL;
10624 }
10625 }
10626 {
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 _result = (bool )wxMenuItem_IsEnabled(_arg0);
10629
10630 wxPyEndAllowThreads(__tstate);
10631 if (PyErr_Occurred()) return NULL;
10632 } _resultobj = Py_BuildValue("i",_result);
10633 return _resultobj;
10634 }
10635
10636 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
10637 static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
10638 PyObject * _resultobj;
10639 wxMenuItem * _arg0;
10640 bool _arg1 = (bool ) TRUE;
10641 PyObject * _argo0 = 0;
10642 int tempbool1 = (int) TRUE;
10643 char *_kwnames[] = { "self","check", NULL };
10644
10645 self = self;
10646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
10647 return NULL;
10648 if (_argo0) {
10649 if (_argo0 == Py_None) { _arg0 = NULL; }
10650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
10652 return NULL;
10653 }
10654 }
10655 _arg1 = (bool ) tempbool1;
10656 {
10657 PyThreadState* __tstate = wxPyBeginAllowThreads();
10658 wxMenuItem_Check(_arg0,_arg1);
10659
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) return NULL;
10662 } Py_INCREF(Py_None);
10663 _resultobj = Py_None;
10664 return _resultobj;
10665 }
10666
10667 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
10668 static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
10669 PyObject * _resultobj;
10670 bool _result;
10671 wxMenuItem * _arg0;
10672 PyObject * _argo0 = 0;
10673 char *_kwnames[] = { "self", NULL };
10674
10675 self = self;
10676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
10677 return NULL;
10678 if (_argo0) {
10679 if (_argo0 == Py_None) { _arg0 = NULL; }
10680 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10681 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
10682 return NULL;
10683 }
10684 }
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 _result = (bool )wxMenuItem_IsChecked(_arg0);
10688
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) return NULL;
10691 } _resultobj = Py_BuildValue("i",_result);
10692 return _resultobj;
10693 }
10694
10695 #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle())
10696 static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
10697 PyObject * _resultobj;
10698 wxMenuItem * _arg0;
10699 PyObject * _argo0 = 0;
10700 char *_kwnames[] = { "self", NULL };
10701
10702 self = self;
10703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0))
10704 return NULL;
10705 if (_argo0) {
10706 if (_argo0 == Py_None) { _arg0 = NULL; }
10707 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10708 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p.");
10709 return NULL;
10710 }
10711 }
10712 {
10713 PyThreadState* __tstate = wxPyBeginAllowThreads();
10714 wxMenuItem_Toggle(_arg0);
10715
10716 wxPyEndAllowThreads(__tstate);
10717 if (PyErr_Occurred()) return NULL;
10718 } Py_INCREF(Py_None);
10719 _resultobj = Py_None;
10720 return _resultobj;
10721 }
10722
10723 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
10724 static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
10725 PyObject * _resultobj;
10726 wxMenuItem * _arg0;
10727 wxString * _arg1;
10728 PyObject * _argo0 = 0;
10729 PyObject * _obj1 = 0;
10730 char *_kwnames[] = { "self","str", NULL };
10731
10732 self = self;
10733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
10734 return NULL;
10735 if (_argo0) {
10736 if (_argo0 == Py_None) { _arg0 = NULL; }
10737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
10739 return NULL;
10740 }
10741 }
10742 {
10743 _arg1 = wxString_in_helper(_obj1);
10744 if (_arg1 == NULL)
10745 return NULL;
10746 }
10747 {
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 wxMenuItem_SetHelp(_arg0,*_arg1);
10750
10751 wxPyEndAllowThreads(__tstate);
10752 if (PyErr_Occurred()) return NULL;
10753 } Py_INCREF(Py_None);
10754 _resultobj = Py_None;
10755 {
10756 if (_obj1)
10757 delete _arg1;
10758 }
10759 return _resultobj;
10760 }
10761
10762 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
10763 static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
10764 PyObject * _resultobj;
10765 wxString * _result;
10766 wxMenuItem * _arg0;
10767 PyObject * _argo0 = 0;
10768 char *_kwnames[] = { "self", NULL };
10769
10770 self = self;
10771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
10772 return NULL;
10773 if (_argo0) {
10774 if (_argo0 == Py_None) { _arg0 = NULL; }
10775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
10777 return NULL;
10778 }
10779 }
10780 {
10781 PyThreadState* __tstate = wxPyBeginAllowThreads();
10782 const wxString & _result_ref = wxMenuItem_GetHelp(_arg0);
10783 _result = (wxString *) &_result_ref;
10784
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) return NULL;
10787 }{
10788 #if wxUSE_UNICODE
10789 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
10790 #else
10791 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10792 #endif
10793 }
10794 return _resultobj;
10795 }
10796
10797 #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel())
10798 static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
10799 PyObject * _resultobj;
10800 wxAcceleratorEntry * _result;
10801 wxMenuItem * _arg0;
10802 PyObject * _argo0 = 0;
10803 char *_kwnames[] = { "self", NULL };
10804 char _ptemp[128];
10805
10806 self = self;
10807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0))
10808 return NULL;
10809 if (_argo0) {
10810 if (_argo0 == Py_None) { _arg0 = NULL; }
10811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p.");
10813 return NULL;
10814 }
10815 }
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0);
10819
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) return NULL;
10822 } if (_result) {
10823 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
10824 _resultobj = Py_BuildValue("s",_ptemp);
10825 } else {
10826 Py_INCREF(Py_None);
10827 _resultobj = Py_None;
10828 }
10829 return _resultobj;
10830 }
10831
10832 #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0))
10833 static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
10834 PyObject * _resultobj;
10835 wxMenuItem * _arg0;
10836 wxAcceleratorEntry * _arg1;
10837 PyObject * _argo0 = 0;
10838 PyObject * _argo1 = 0;
10839 char *_kwnames[] = { "self","accel", NULL };
10840
10841 self = self;
10842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1))
10843 return NULL;
10844 if (_argo0) {
10845 if (_argo0 == Py_None) { _arg0 = NULL; }
10846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p.");
10848 return NULL;
10849 }
10850 }
10851 if (_argo1) {
10852 if (_argo1 == Py_None) { _arg1 = NULL; }
10853 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) {
10854 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p.");
10855 return NULL;
10856 }
10857 }
10858 {
10859 PyThreadState* __tstate = wxPyBeginAllowThreads();
10860 wxMenuItem_SetAccel(_arg0,_arg1);
10861
10862 wxPyEndAllowThreads(__tstate);
10863 if (PyErr_Occurred()) return NULL;
10864 } Py_INCREF(Py_None);
10865 _resultobj = Py_None;
10866 return _resultobj;
10867 }
10868
10869 static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
10870 PyObject * _resultobj;
10871 wxString * _result;
10872 wxString * _arg0;
10873 PyObject * _obj0 = 0;
10874 char *_kwnames[] = { "text", NULL };
10875
10876 self = self;
10877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0))
10878 return NULL;
10879 {
10880 _arg0 = wxString_in_helper(_obj0);
10881 if (_arg0 == NULL)
10882 return NULL;
10883 }
10884 {
10885 PyThreadState* __tstate = wxPyBeginAllowThreads();
10886 _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0));
10887
10888 wxPyEndAllowThreads(__tstate);
10889 if (PyErr_Occurred()) return NULL;
10890 }{
10891 #if wxUSE_UNICODE
10892 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
10893 #else
10894 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10895 #endif
10896 }
10897 {
10898 if (_obj0)
10899 delete _arg0;
10900 }
10901 {
10902 delete _result;
10903 }
10904 return _resultobj;
10905 }
10906
10907 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
10908 static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10909 PyObject * _resultobj;
10910 wxMenuItem * _arg0;
10911 wxFont * _arg1;
10912 PyObject * _argo0 = 0;
10913 PyObject * _argo1 = 0;
10914 char *_kwnames[] = { "self","font", NULL };
10915
10916 self = self;
10917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1))
10918 return NULL;
10919 if (_argo0) {
10920 if (_argo0 == Py_None) { _arg0 = NULL; }
10921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
10923 return NULL;
10924 }
10925 }
10926 if (_argo1) {
10927 if (_argo1 == Py_None) { _arg1 = NULL; }
10928 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
10929 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
10930 return NULL;
10931 }
10932 }
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 wxMenuItem_SetFont(_arg0,*_arg1);
10936
10937 wxPyEndAllowThreads(__tstate);
10938 if (PyErr_Occurred()) return NULL;
10939 } Py_INCREF(Py_None);
10940 _resultobj = Py_None;
10941 return _resultobj;
10942 }
10943
10944 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
10945 static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10946 PyObject * _resultobj;
10947 wxFont * _result;
10948 wxMenuItem * _arg0;
10949 PyObject * _argo0 = 0;
10950 char *_kwnames[] = { "self", NULL };
10951 char _ptemp[128];
10952
10953 self = self;
10954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0))
10955 return NULL;
10956 if (_argo0) {
10957 if (_argo0 == Py_None) { _arg0 = NULL; }
10958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
10960 return NULL;
10961 }
10962 }
10963 {
10964 PyThreadState* __tstate = wxPyBeginAllowThreads();
10965 _result = new wxFont (wxMenuItem_GetFont(_arg0));
10966
10967 wxPyEndAllowThreads(__tstate);
10968 if (PyErr_Occurred()) return NULL;
10969 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
10970 _resultobj = Py_BuildValue("s",_ptemp);
10971 return _resultobj;
10972 }
10973
10974 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
10975 static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10976 PyObject * _resultobj;
10977 wxMenuItem * _arg0;
10978 wxColour * _arg1;
10979 PyObject * _argo0 = 0;
10980 wxColour temp;
10981 PyObject * _obj1 = 0;
10982 char *_kwnames[] = { "self","colText", NULL };
10983
10984 self = self;
10985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1))
10986 return NULL;
10987 if (_argo0) {
10988 if (_argo0 == Py_None) { _arg0 = NULL; }
10989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
10990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
10991 return NULL;
10992 }
10993 }
10994 {
10995 _arg1 = &temp;
10996 if (! wxColour_helper(_obj1, &_arg1))
10997 return NULL;
10998 }
10999 {
11000 PyThreadState* __tstate = wxPyBeginAllowThreads();
11001 wxMenuItem_SetTextColour(_arg0,*_arg1);
11002
11003 wxPyEndAllowThreads(__tstate);
11004 if (PyErr_Occurred()) return NULL;
11005 } Py_INCREF(Py_None);
11006 _resultobj = Py_None;
11007 return _resultobj;
11008 }
11009
11010 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
11011 static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11012 PyObject * _resultobj;
11013 wxColour * _result;
11014 wxMenuItem * _arg0;
11015 PyObject * _argo0 = 0;
11016 char *_kwnames[] = { "self", NULL };
11017 char _ptemp[128];
11018
11019 self = self;
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0))
11021 return NULL;
11022 if (_argo0) {
11023 if (_argo0 == Py_None) { _arg0 = NULL; }
11024 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11025 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
11026 return NULL;
11027 }
11028 }
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 _result = new wxColour (wxMenuItem_GetTextColour(_arg0));
11032
11033 wxPyEndAllowThreads(__tstate);
11034 if (PyErr_Occurred()) return NULL;
11035 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
11036 _resultobj = Py_BuildValue("s",_ptemp);
11037 return _resultobj;
11038 }
11039
11040 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
11041 static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11042 PyObject * _resultobj;
11043 wxMenuItem * _arg0;
11044 wxColour * _arg1;
11045 PyObject * _argo0 = 0;
11046 wxColour temp;
11047 PyObject * _obj1 = 0;
11048 char *_kwnames[] = { "self","colBack", NULL };
11049
11050 self = self;
11051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
11052 return NULL;
11053 if (_argo0) {
11054 if (_argo0 == Py_None) { _arg0 = NULL; }
11055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
11057 return NULL;
11058 }
11059 }
11060 {
11061 _arg1 = &temp;
11062 if (! wxColour_helper(_obj1, &_arg1))
11063 return NULL;
11064 }
11065 {
11066 PyThreadState* __tstate = wxPyBeginAllowThreads();
11067 wxMenuItem_SetBackgroundColour(_arg0,*_arg1);
11068
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) return NULL;
11071 } Py_INCREF(Py_None);
11072 _resultobj = Py_None;
11073 return _resultobj;
11074 }
11075
11076 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
11077 static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11078 PyObject * _resultobj;
11079 wxColour * _result;
11080 wxMenuItem * _arg0;
11081 PyObject * _argo0 = 0;
11082 char *_kwnames[] = { "self", NULL };
11083 char _ptemp[128];
11084
11085 self = self;
11086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0))
11087 return NULL;
11088 if (_argo0) {
11089 if (_argo0 == Py_None) { _arg0 = NULL; }
11090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
11092 return NULL;
11093 }
11094 }
11095 {
11096 PyThreadState* __tstate = wxPyBeginAllowThreads();
11097 _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0));
11098
11099 wxPyEndAllowThreads(__tstate);
11100 if (PyErr_Occurred()) return NULL;
11101 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
11102 _resultobj = Py_BuildValue("s",_ptemp);
11103 return _resultobj;
11104 }
11105
11106 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
11107 static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
11108 PyObject * _resultobj;
11109 wxMenuItem * _arg0;
11110 wxBitmap * _arg1;
11111 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
11112 PyObject * _argo0 = 0;
11113 PyObject * _argo1 = 0;
11114 PyObject * _argo2 = 0;
11115 char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL };
11116
11117 self = self;
11118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2))
11119 return NULL;
11120 if (_argo0) {
11121 if (_argo0 == Py_None) { _arg0 = NULL; }
11122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
11124 return NULL;
11125 }
11126 }
11127 if (_argo1) {
11128 if (_argo1 == Py_None) { _arg1 = NULL; }
11129 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11130 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
11131 return NULL;
11132 }
11133 }
11134 if (_argo2) {
11135 if (_argo2 == Py_None) { _arg2 = NULL; }
11136 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
11137 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
11138 return NULL;
11139 }
11140 }
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2);
11144
11145 wxPyEndAllowThreads(__tstate);
11146 if (PyErr_Occurred()) return NULL;
11147 } Py_INCREF(Py_None);
11148 _resultobj = Py_None;
11149 return _resultobj;
11150 }
11151
11152 #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0))
11153 static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11154 PyObject * _resultobj;
11155 wxMenuItem * _arg0;
11156 wxBitmap * _arg1;
11157 PyObject * _argo0 = 0;
11158 PyObject * _argo1 = 0;
11159 char *_kwnames[] = { "self","bmpChecked", NULL };
11160
11161 self = self;
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1))
11163 return NULL;
11164 if (_argo0) {
11165 if (_argo0 == Py_None) { _arg0 = NULL; }
11166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p.");
11168 return NULL;
11169 }
11170 }
11171 if (_argo1) {
11172 if (_argo1 == Py_None) { _arg1 = NULL; }
11173 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
11174 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p.");
11175 return NULL;
11176 }
11177 }
11178 {
11179 PyThreadState* __tstate = wxPyBeginAllowThreads();
11180 wxMenuItem_SetBitmap(_arg0,*_arg1);
11181
11182 wxPyEndAllowThreads(__tstate);
11183 if (PyErr_Occurred()) return NULL;
11184 } Py_INCREF(Py_None);
11185 _resultobj = Py_None;
11186 return _resultobj;
11187 }
11188
11189 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
11190 static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11191 PyObject * _resultobj;
11192 wxBitmap * _result;
11193 wxMenuItem * _arg0;
11194 bool _arg1 = (bool ) TRUE;
11195 PyObject * _argo0 = 0;
11196 int tempbool1 = (int) TRUE;
11197 char *_kwnames[] = { "self","bChecked", NULL };
11198 char _ptemp[128];
11199
11200 self = self;
11201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1))
11202 return NULL;
11203 if (_argo0) {
11204 if (_argo0 == Py_None) { _arg0 = NULL; }
11205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
11207 return NULL;
11208 }
11209 }
11210 _arg1 = (bool ) tempbool1;
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1));
11214
11215 wxPyEndAllowThreads(__tstate);
11216 if (PyErr_Occurred()) return NULL;
11217 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
11218 _resultobj = Py_BuildValue("s",_ptemp);
11219 return _resultobj;
11220 }
11221
11222 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
11223 static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11224 PyObject * _resultobj;
11225 wxMenuItem * _arg0;
11226 int _arg1;
11227 PyObject * _argo0 = 0;
11228 char *_kwnames[] = { "self","nWidth", NULL };
11229
11230 self = self;
11231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1))
11232 return NULL;
11233 if (_argo0) {
11234 if (_argo0 == Py_None) { _arg0 = NULL; }
11235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
11237 return NULL;
11238 }
11239 }
11240 {
11241 PyThreadState* __tstate = wxPyBeginAllowThreads();
11242 wxMenuItem_SetMarginWidth(_arg0,_arg1);
11243
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) return NULL;
11246 } Py_INCREF(Py_None);
11247 _resultobj = Py_None;
11248 return _resultobj;
11249 }
11250
11251 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
11252 static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11253 PyObject * _resultobj;
11254 int _result;
11255 wxMenuItem * _arg0;
11256 PyObject * _argo0 = 0;
11257 char *_kwnames[] = { "self", NULL };
11258
11259 self = self;
11260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0))
11261 return NULL;
11262 if (_argo0) {
11263 if (_argo0 == Py_None) { _arg0 = NULL; }
11264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
11266 return NULL;
11267 }
11268 }
11269 {
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 _result = (int )wxMenuItem_GetMarginWidth(_arg0);
11272
11273 wxPyEndAllowThreads(__tstate);
11274 if (PyErr_Occurred()) return NULL;
11275 } _resultobj = Py_BuildValue("i",_result);
11276 return _resultobj;
11277 }
11278
11279 static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11280 PyObject * _resultobj;
11281 int _result;
11282 char *_kwnames[] = { NULL };
11283
11284 self = self;
11285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames))
11286 return NULL;
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 _result = (int )wxMenuItem::GetDefaultMarginWidth();
11290
11291 wxPyEndAllowThreads(__tstate);
11292 if (PyErr_Occurred()) return NULL;
11293 } _resultobj = Py_BuildValue("i",_result);
11294 return _resultobj;
11295 }
11296
11297 #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn())
11298 static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
11299 PyObject * _resultobj;
11300 bool _result;
11301 wxMenuItem * _arg0;
11302 PyObject * _argo0 = 0;
11303 char *_kwnames[] = { "self", NULL };
11304
11305 self = self;
11306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0))
11307 return NULL;
11308 if (_argo0) {
11309 if (_argo0 == Py_None) { _arg0 = NULL; }
11310 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11311 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p.");
11312 return NULL;
11313 }
11314 }
11315 {
11316 PyThreadState* __tstate = wxPyBeginAllowThreads();
11317 _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0);
11318
11319 wxPyEndAllowThreads(__tstate);
11320 if (PyErr_Occurred()) return NULL;
11321 } _resultobj = Py_BuildValue("i",_result);
11322 return _resultobj;
11323 }
11324
11325 #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn())
11326 static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
11327 PyObject * _resultobj;
11328 wxMenuItem * _arg0;
11329 PyObject * _argo0 = 0;
11330 char *_kwnames[] = { "self", NULL };
11331
11332 self = self;
11333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0))
11334 return NULL;
11335 if (_argo0) {
11336 if (_argo0 == Py_None) { _arg0 = NULL; }
11337 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
11338 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p.");
11339 return NULL;
11340 }
11341 }
11342 {
11343 PyThreadState* __tstate = wxPyBeginAllowThreads();
11344 wxMenuItem_ResetOwnerDrawn(_arg0);
11345
11346 wxPyEndAllowThreads(__tstate);
11347 if (PyErr_Occurred()) return NULL;
11348 } Py_INCREF(Py_None);
11349 _resultobj = Py_None;
11350 return _resultobj;
11351 }
11352
11353 static PyMethodDef windowscMethods[] = {
11354 { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
11355 { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
11356 { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
11357 { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
11358 { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
11359 { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
11360 { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
11361 { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
11362 { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11363 { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11364 { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11365 { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11366 { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
11367 { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
11368 { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
11369 { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
11370 { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
11371 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
11372 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
11373 { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
11374 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
11375 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
11376 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
11377 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
11378 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
11379 { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
11380 { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
11381 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
11382 { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
11383 { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
11384 { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
11385 { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
11386 { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
11387 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
11388 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
11389 { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
11390 { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
11391 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
11392 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
11393 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
11394 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
11395 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
11396 { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
11397 { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
11398 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
11399 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
11400 { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
11401 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
11402 { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
11403 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
11404 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
11405 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
11406 { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
11407 { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
11408 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
11409 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
11410 { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
11411 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
11412 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
11413 { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS },
11414 { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS },
11415 { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS },
11416 { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS },
11417 { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
11418 { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
11419 { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
11420 { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
11421 { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
11422 { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
11423 { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
11424 { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS },
11425 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
11426 { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
11427 { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS },
11428 { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
11429 { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS },
11430 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
11431 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
11432 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
11433 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
11434 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
11435 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
11436 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
11437 { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS },
11438 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
11439 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
11440 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
11441 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
11442 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
11443 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
11444 { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS },
11445 { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
11446 { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
11447 { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
11448 { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
11449 { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS },
11450 { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS },
11451 { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
11452 { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
11453 { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
11454 { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
11455 { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS },
11456 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
11457 { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
11458 { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
11459 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
11460 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
11461 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
11462 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
11463 { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS },
11464 { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS },
11465 { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS },
11466 { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS },
11467 { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS },
11468 { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS },
11469 { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS },
11470 { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS },
11471 { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS },
11472 { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS },
11473 { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS },
11474 { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
11475 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
11476 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
11477 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
11478 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
11479 { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
11480 { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS },
11481 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
11482 { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS },
11483 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
11484 { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS },
11485 { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS },
11486 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
11487 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
11488 { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS },
11489 { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS },
11490 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
11491 { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS },
11492 { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS },
11493 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
11494 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
11495 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
11496 { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
11497 { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
11498 { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS },
11499 { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
11500 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
11501 { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS },
11502 { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
11503 { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS },
11504 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
11505 { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS },
11506 { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS },
11507 { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS },
11508 { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS },
11509 { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS },
11510 { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS },
11511 { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
11512 { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS },
11513 { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS },
11514 { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS },
11515 { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS },
11516 { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS },
11517 { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS },
11518 { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS },
11519 { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
11520 { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS },
11521 { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
11522 { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
11523 { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
11524 { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
11525 { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
11526 { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
11527 { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS },
11528 { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
11529 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
11530 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
11531 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
11532 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
11533 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
11534 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
11535 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
11536 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
11537 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
11538 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
11539 { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
11540 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
11541 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
11542 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
11543 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
11544 { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
11545 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
11546 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
11547 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
11548 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
11549 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
11550 { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS },
11551 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
11552 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
11553 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
11554 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
11555 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
11556 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
11557 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
11558 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
11559 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
11560 { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
11561 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
11562 { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS },
11563 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
11564 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11565 { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
11566 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
11567 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
11568 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
11569 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
11570 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
11571 { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS },
11572 { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS },
11573 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
11574 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
11575 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
11576 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
11577 { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
11578 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
11579 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
11580 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
11581 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
11582 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
11583 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
11584 { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS },
11585 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
11586 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
11587 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
11588 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
11589 { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
11590 { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
11591 { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS },
11592 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
11593 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
11594 { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS },
11595 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
11596 { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
11597 { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS },
11598 { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
11599 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
11600 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
11601 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
11602 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
11603 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
11604 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
11605 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
11606 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
11607 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
11608 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
11609 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
11610 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
11611 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
11612 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
11613 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
11614 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
11615 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
11616 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
11617 { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS },
11618 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
11619 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
11620 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
11621 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
11622 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
11623 { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS },
11624 { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
11625 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
11626 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
11627 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
11628 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
11629 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
11630 { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS },
11631 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11632 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
11633 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
11634 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
11635 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
11636 { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
11637 { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
11638 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
11639 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
11640 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
11641 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
11642 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
11643 { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS },
11644 { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
11645 { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS },
11646 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
11647 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
11648 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
11649 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
11650 { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS },
11651 { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS },
11652 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
11653 { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
11654 { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
11655 { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
11656 { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
11657 { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
11658 { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
11659 { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
11660 { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
11661 { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
11662 { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
11663 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
11664 { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
11665 { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
11666 { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
11667 { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
11668 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
11669 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
11670 { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
11671 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
11672 { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS },
11673 { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS },
11674 { NULL, NULL }
11675 };
11676 #ifdef __cplusplus
11677 }
11678 #endif
11679 /*
11680 * This table is used by the pointer type-checker
11681 */
11682 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
11683 { "_signed_long","_long",0},
11684 { "_wxPrintQuality","_wxCoord",0},
11685 { "_wxPrintQuality","_int",0},
11686 { "_wxPrintQuality","_signed_int",0},
11687 { "_wxPrintQuality","_unsigned_int",0},
11688 { "_wxPrintQuality","_wxWindowID",0},
11689 { "_wxPrintQuality","_uint",0},
11690 { "_wxPrintQuality","_EBool",0},
11691 { "_wxPrintQuality","_size_t",0},
11692 { "_wxPrintQuality","_time_t",0},
11693 { "_byte","_unsigned_char",0},
11694 { "_long","_unsigned_long",0},
11695 { "_long","_signed_long",0},
11696 { "_size_t","_wxCoord",0},
11697 { "_size_t","_wxPrintQuality",0},
11698 { "_size_t","_time_t",0},
11699 { "_size_t","_unsigned_int",0},
11700 { "_size_t","_int",0},
11701 { "_size_t","_wxWindowID",0},
11702 { "_size_t","_uint",0},
11703 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
11704 { "_uint","_wxCoord",0},
11705 { "_uint","_wxPrintQuality",0},
11706 { "_uint","_time_t",0},
11707 { "_uint","_size_t",0},
11708 { "_uint","_unsigned_int",0},
11709 { "_uint","_int",0},
11710 { "_uint","_wxWindowID",0},
11711 { "_wxChar","_char",0},
11712 { "_char","_wxChar",0},
11713 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11714 { "_EBool","_wxCoord",0},
11715 { "_EBool","_wxPrintQuality",0},
11716 { "_EBool","_signed_int",0},
11717 { "_EBool","_int",0},
11718 { "_EBool","_wxWindowID",0},
11719 { "_unsigned_long","_long",0},
11720 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11721 { "_signed_int","_wxCoord",0},
11722 { "_signed_int","_wxPrintQuality",0},
11723 { "_signed_int","_EBool",0},
11724 { "_signed_int","_wxWindowID",0},
11725 { "_signed_int","_int",0},
11726 { "_WXTYPE","_short",0},
11727 { "_WXTYPE","_signed_short",0},
11728 { "_WXTYPE","_unsigned_short",0},
11729 { "_unsigned_short","_WXTYPE",0},
11730 { "_unsigned_short","_short",0},
11731 { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject},
11732 { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject},
11733 { "_wxObject","_wxMenu",SwigwxMenuTowxObject},
11734 { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
11735 { "_wxObject","_wxPanel",SwigwxPanelTowxObject},
11736 { "_wxObject","_wxWindow",SwigwxWindowTowxObject},
11737 { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject},
11738 { "_wxObject","_wxValidator",SwigwxValidatorTowxObject},
11739 { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject},
11740 { "_signed_short","_WXTYPE",0},
11741 { "_signed_short","_short",0},
11742 { "_unsigned_char","_byte",0},
11743 { "_unsigned_int","_wxCoord",0},
11744 { "_unsigned_int","_wxPrintQuality",0},
11745 { "_unsigned_int","_time_t",0},
11746 { "_unsigned_int","_size_t",0},
11747 { "_unsigned_int","_uint",0},
11748 { "_unsigned_int","_wxWindowID",0},
11749 { "_unsigned_int","_int",0},
11750 { "_short","_WXTYPE",0},
11751 { "_short","_unsigned_short",0},
11752 { "_short","_signed_short",0},
11753 { "_wxWindowID","_wxCoord",0},
11754 { "_wxWindowID","_wxPrintQuality",0},
11755 { "_wxWindowID","_time_t",0},
11756 { "_wxWindowID","_size_t",0},
11757 { "_wxWindowID","_EBool",0},
11758 { "_wxWindowID","_uint",0},
11759 { "_wxWindowID","_int",0},
11760 { "_wxWindowID","_signed_int",0},
11761 { "_wxWindowID","_unsigned_int",0},
11762 { "_int","_wxCoord",0},
11763 { "_int","_wxPrintQuality",0},
11764 { "_int","_time_t",0},
11765 { "_int","_size_t",0},
11766 { "_int","_EBool",0},
11767 { "_int","_uint",0},
11768 { "_int","_wxWindowID",0},
11769 { "_int","_unsigned_int",0},
11770 { "_int","_signed_int",0},
11771 { "_time_t","_wxCoord",0},
11772 { "_time_t","_wxPrintQuality",0},
11773 { "_time_t","_unsigned_int",0},
11774 { "_time_t","_int",0},
11775 { "_time_t","_wxWindowID",0},
11776 { "_time_t","_uint",0},
11777 { "_time_t","_size_t",0},
11778 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
11779 { "_wxCoord","_int",0},
11780 { "_wxCoord","_signed_int",0},
11781 { "_wxCoord","_unsigned_int",0},
11782 { "_wxCoord","_wxWindowID",0},
11783 { "_wxCoord","_uint",0},
11784 { "_wxCoord","_EBool",0},
11785 { "_wxCoord","_size_t",0},
11786 { "_wxCoord","_time_t",0},
11787 { "_wxCoord","_wxPrintQuality",0},
11788 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
11789 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
11790 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
11791 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
11792 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
11793 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
11794 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
11795 { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow},
11796 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
11797 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
11798 {0,0,0}};
11799
11800 static PyObject *SWIG_globals;
11801 #ifdef __cplusplus
11802 extern "C"
11803 #endif
11804 SWIGEXPORT(void) initwindowsc() {
11805 PyObject *m, *d;
11806 SWIG_globals = SWIG_newvarlink();
11807 m = Py_InitModule("windowsc", windowscMethods);
11808 d = PyModule_GetDict(m);
11809 {
11810 int i;
11811 for (i = 0; _swig_mapping[i].n1; i++)
11812 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
11813 }
11814 }