]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/windows.cpp
Fixed a deadlock problem when using threads
[wxWidgets.git] / utils / wxPython / src / msw / windows.cpp
1 /*
2 * FILE : msw/windows.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 810)
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 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initwindowsc
53
54 #define SWIG_name "windowsc"
55
56 #include "helpers.h"
57 #include <wx/menuitem.h>
58
59 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
60 PyObject* o2;
61 PyObject* o3;
62 if (!target) {
63 target = o;
64 } else if (target == Py_None) {
65 Py_DECREF(Py_None);
66 target = o;
67 } else {
68 if (!PyList_Check(target)) {
69 o2 = target;
70 target = PyList_New(0);
71 PyList_Append(target, o2);
72 Py_XDECREF(o2);
73 }
74 PyList_Append(target,o);
75 Py_XDECREF(o);
76 }
77 return target;
78 }
79
80 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
81 PyObject* o2;
82 PyObject* o3;
83
84 if (!target) {
85 target = o;
86 } else if (target == Py_None) {
87 Py_DECREF(Py_None);
88 target = o;
89 } else {
90 if (!PyTuple_Check(target)) {
91 o2 = target;
92 target = PyTuple_New(1);
93 PyTuple_SetItem(target, 0, o2);
94 }
95 o3 = PyTuple_New(1);
96 PyTuple_SetItem(o3, 0, o);
97
98 o2 = target;
99 target = PySequence_Concat(o2, o3);
100 Py_DECREF(o2);
101 Py_DECREF(o3);
102 }
103 return target;
104 }
105
106 static char* wxStringErrorMsg = "string type is required for parameter";
107
108 bool wxValidator_IsSilent() {
109 return wxValidator::IsSilent();
110 }
111
112 void wxValidator_SetBellOnError(int doIt = TRUE) {
113 wxValidator::SetBellOnError(doIt);
114 }
115
116 class wxPyValidator : public wxValidator {
117 DECLARE_DYNAMIC_CLASS(wxPyValidator);
118 public:
119 wxPyValidator() {
120 }
121 // wxPyValidator(const wxPyValidator& other);
122
123 ~wxPyValidator() {
124 }
125
126 wxObject* wxPyValidator::Clone() const {
127 wxPyValidator* ptr = NULL;
128 wxPyValidator* self = (wxPyValidator*)this;
129
130 bool doSave = wxPyRestoreThread();
131 if (self->m_myInst.findCallback("Clone")) {
132 PyObject* ro;
133 ro = self->m_myInst.callCallbackObj(Py_BuildValue("()"));
134 SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p");
135 }
136 // This is very dangerous!!! But is the only way I could find
137 // to squash a memory leak. Currently it is okay, but if the
138 // validator architecture in wxWindows ever changes, problems
139 // could arise.
140 delete self;
141
142 wxPySaveThread(doSave);
143 return ptr;
144 }
145
146
147 DEC_PYCALLBACK_BOOL_WXWIN(Validate);
148 DEC_PYCALLBACK_BOOL_(TransferToWindow);
149 DEC_PYCALLBACK_BOOL_(TransferFromWindow);
150
151 PYPRIVATE;
152 // PyObject* m_data;
153 };
154
155 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
156 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
157 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
158
159 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
160
161
162 wxWindow* wxWindow_FindFocus() {
163 return wxWindow::FindFocus();
164 }
165
166 wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
167 wxWindow* win = new wxWindow;
168 win->SetHWND(hWnd);
169 win->SubclassWin(hWnd);
170 return win;
171 }
172 #ifdef __cplusplus
173 extern "C" {
174 #endif
175 static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
176 PyObject * _resultobj;
177 bool _result;
178 char *_kwnames[] = { NULL };
179
180 self = self;
181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames))
182 return NULL;
183 {
184 wxPy_BEGIN_ALLOW_THREADS;
185 _result = (bool )wxValidator_IsSilent();
186
187 wxPy_END_ALLOW_THREADS;
188 } _resultobj = Py_BuildValue("i",_result);
189 return _resultobj;
190 }
191
192 static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
193 PyObject * _resultobj;
194 int _arg0 = (int ) TRUE;
195 char *_kwnames[] = { "doIt", NULL };
196
197 self = self;
198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0))
199 return NULL;
200 {
201 wxPy_BEGIN_ALLOW_THREADS;
202 wxValidator_SetBellOnError(_arg0);
203
204 wxPy_END_ALLOW_THREADS;
205 } Py_INCREF(Py_None);
206 _resultobj = Py_None;
207 return _resultobj;
208 }
209
210 static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
211 PyObject * _resultobj;
212 wxWindow * _result;
213 char *_kwnames[] = { NULL };
214 char _ptemp[128];
215
216 self = self;
217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames))
218 return NULL;
219 {
220 wxPy_BEGIN_ALLOW_THREADS;
221 _result = (wxWindow *)wxWindow_FindFocus();
222
223 wxPy_END_ALLOW_THREADS;
224 } if (_result) {
225 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
226 _resultobj = Py_BuildValue("s",_ptemp);
227 } else {
228 Py_INCREF(Py_None);
229 _resultobj = Py_None;
230 }
231 return _resultobj;
232 }
233
234 static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
235 PyObject * _resultobj;
236 wxWindow * _result;
237 unsigned long _arg0;
238 char *_kwnames[] = { "hWnd", NULL };
239 char _ptemp[128];
240
241 self = self;
242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0))
243 return NULL;
244 {
245 wxPy_BEGIN_ALLOW_THREADS;
246 _result = (wxWindow *)wxWindow_FromHWND(_arg0);
247
248 wxPy_END_ALLOW_THREADS;
249 } if (_result) {
250 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
251 _resultobj = Py_BuildValue("s",_ptemp);
252 } else {
253 Py_INCREF(Py_None);
254 _resultobj = Py_None;
255 }
256 return _resultobj;
257 }
258
259 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
260 static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
261 PyObject * _resultobj;
262 bool _result;
263 wxEvtHandler * _arg0;
264 wxEvent * _arg1;
265 PyObject * _argo0 = 0;
266 PyObject * _argo1 = 0;
267 char *_kwnames[] = { "self","event", NULL };
268
269 self = self;
270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1))
271 return NULL;
272 if (_argo0) {
273 if (_argo0 == Py_None) { _arg0 = NULL; }
274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
276 return NULL;
277 }
278 }
279 if (_argo1) {
280 if (_argo1 == Py_None) { _arg1 = NULL; }
281 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
282 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
283 return NULL;
284 }
285 }
286 {
287 wxPy_BEGIN_ALLOW_THREADS;
288 _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1);
289
290 wxPy_END_ALLOW_THREADS;
291 } _resultobj = Py_BuildValue("i",_result);
292 return _resultobj;
293 }
294
295 #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled())
296 static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
297 PyObject * _resultobj;
298 bool _result;
299 wxEvtHandler * _arg0;
300 PyObject * _argo0 = 0;
301 char *_kwnames[] = { "self", NULL };
302
303 self = self;
304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0))
305 return NULL;
306 if (_argo0) {
307 if (_argo0 == Py_None) { _arg0 = NULL; }
308 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
309 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
310 return NULL;
311 }
312 }
313 {
314 wxPy_BEGIN_ALLOW_THREADS;
315 _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0);
316
317 wxPy_END_ALLOW_THREADS;
318 } _resultobj = Py_BuildValue("i",_result);
319 return _resultobj;
320 }
321
322 #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0))
323 static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
324 PyObject * _resultobj;
325 wxEvtHandler * _arg0;
326 bool _arg1;
327 PyObject * _argo0 = 0;
328 int tempbool1;
329 char *_kwnames[] = { "self","enabled", NULL };
330
331 self = self;
332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1))
333 return NULL;
334 if (_argo0) {
335 if (_argo0 == Py_None) { _arg0 = NULL; }
336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p.");
338 return NULL;
339 }
340 }
341 _arg1 = (bool ) tempbool1;
342 {
343 wxPy_BEGIN_ALLOW_THREADS;
344 wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1);
345
346 wxPy_END_ALLOW_THREADS;
347 } Py_INCREF(Py_None);
348 _resultobj = Py_None;
349 return _resultobj;
350 }
351
352 #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler())
353 static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
354 PyObject * _resultobj;
355 wxEvtHandler * _result;
356 wxEvtHandler * _arg0;
357 PyObject * _argo0 = 0;
358 char *_kwnames[] = { "self", NULL };
359 char _ptemp[128];
360
361 self = self;
362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0))
363 return NULL;
364 if (_argo0) {
365 if (_argo0 == Py_None) { _arg0 = NULL; }
366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p.");
368 return NULL;
369 }
370 }
371 {
372 wxPy_BEGIN_ALLOW_THREADS;
373 _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0);
374
375 wxPy_END_ALLOW_THREADS;
376 } if (_result) {
377 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
378 _resultobj = Py_BuildValue("s",_ptemp);
379 } else {
380 Py_INCREF(Py_None);
381 _resultobj = Py_None;
382 }
383 return _resultobj;
384 }
385
386 #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler())
387 static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
388 PyObject * _resultobj;
389 wxEvtHandler * _result;
390 wxEvtHandler * _arg0;
391 PyObject * _argo0 = 0;
392 char *_kwnames[] = { "self", NULL };
393 char _ptemp[128];
394
395 self = self;
396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0))
397 return NULL;
398 if (_argo0) {
399 if (_argo0 == Py_None) { _arg0 = NULL; }
400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p.");
402 return NULL;
403 }
404 }
405 {
406 wxPy_BEGIN_ALLOW_THREADS;
407 _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0);
408
409 wxPy_END_ALLOW_THREADS;
410 } if (_result) {
411 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
412 _resultobj = Py_BuildValue("s",_ptemp);
413 } else {
414 Py_INCREF(Py_None);
415 _resultobj = Py_None;
416 }
417 return _resultobj;
418 }
419
420 #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0))
421 static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
422 PyObject * _resultobj;
423 wxEvtHandler * _arg0;
424 wxEvtHandler * _arg1;
425 PyObject * _argo0 = 0;
426 PyObject * _argo1 = 0;
427 char *_kwnames[] = { "self","handler", NULL };
428
429 self = self;
430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1))
431 return NULL;
432 if (_argo0) {
433 if (_argo0 == Py_None) { _arg0 = NULL; }
434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
436 return NULL;
437 }
438 }
439 if (_argo1) {
440 if (_argo1 == Py_None) { _arg1 = NULL; }
441 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
442 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p.");
443 return NULL;
444 }
445 }
446 {
447 wxPy_BEGIN_ALLOW_THREADS;
448 wxEvtHandler_SetNextHandler(_arg0,_arg1);
449
450 wxPy_END_ALLOW_THREADS;
451 } Py_INCREF(Py_None);
452 _resultobj = Py_None;
453 return _resultobj;
454 }
455
456 #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0))
457 static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
458 PyObject * _resultobj;
459 wxEvtHandler * _arg0;
460 wxEvtHandler * _arg1;
461 PyObject * _argo0 = 0;
462 PyObject * _argo1 = 0;
463 char *_kwnames[] = { "self","handler", NULL };
464
465 self = self;
466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1))
467 return NULL;
468 if (_argo0) {
469 if (_argo0 == Py_None) { _arg0 = NULL; }
470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
472 return NULL;
473 }
474 }
475 if (_argo1) {
476 if (_argo1 == Py_None) { _arg1 = NULL; }
477 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
478 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p.");
479 return NULL;
480 }
481 }
482 {
483 wxPy_BEGIN_ALLOW_THREADS;
484 wxEvtHandler_SetPreviousHandler(_arg0,_arg1);
485
486 wxPy_END_ALLOW_THREADS;
487 } Py_INCREF(Py_None);
488 _resultobj = Py_None;
489 return _resultobj;
490 }
491
492 static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) {
493 if (PyCallable_Check(func)) {
494 self->Connect(id, lastId, eventType,
495 (wxObjectEventFunction) &wxPyCallback::EventThunker,
496 new wxPyCallback(func));
497 }
498 }
499 static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
500 PyObject * _resultobj;
501 wxEvtHandler * _arg0;
502 int _arg1;
503 int _arg2;
504 int _arg3;
505 PyObject * _arg4;
506 PyObject * _argo0 = 0;
507 PyObject * _obj4 = 0;
508 char *_kwnames[] = { "self","id","lastId","eventType","func", NULL };
509
510 self = self;
511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
512 return NULL;
513 if (_argo0) {
514 if (_argo0 == Py_None) { _arg0 = NULL; }
515 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
516 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
517 return NULL;
518 }
519 }
520 {
521 _arg4 = _obj4;
522 }
523 {
524 wxPy_BEGIN_ALLOW_THREADS;
525 wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4);
526
527 wxPy_END_ALLOW_THREADS;
528 } Py_INCREF(Py_None);
529 _resultobj = Py_None;
530 return _resultobj;
531 }
532
533 static void *SwigwxValidatorTowxEvtHandler(void *ptr) {
534 wxValidator *src;
535 wxEvtHandler *dest;
536 src = (wxValidator *) ptr;
537 dest = (wxEvtHandler *) src;
538 return (void *) dest;
539 }
540
541 #define new_wxValidator() (new wxValidator())
542 static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
543 PyObject * _resultobj;
544 wxValidator * _result;
545 char *_kwnames[] = { NULL };
546 char _ptemp[128];
547
548 self = self;
549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames))
550 return NULL;
551 {
552 wxPy_BEGIN_ALLOW_THREADS;
553 _result = (wxValidator *)new_wxValidator();
554
555 wxPy_END_ALLOW_THREADS;
556 } if (_result) {
557 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
558 _resultobj = Py_BuildValue("s",_ptemp);
559 } else {
560 Py_INCREF(Py_None);
561 _resultobj = Py_None;
562 }
563 return _resultobj;
564 }
565
566 #define wxValidator_Clone(_swigobj) (_swigobj->Clone())
567 static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
568 PyObject * _resultobj;
569 wxValidator * _result;
570 wxValidator * _arg0;
571 PyObject * _argo0 = 0;
572 char *_kwnames[] = { "self", NULL };
573 char _ptemp[128];
574
575 self = self;
576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0))
577 return NULL;
578 if (_argo0) {
579 if (_argo0 == Py_None) { _arg0 = NULL; }
580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p.");
582 return NULL;
583 }
584 }
585 {
586 wxPy_BEGIN_ALLOW_THREADS;
587 _result = (wxValidator *)wxValidator_Clone(_arg0);
588
589 wxPy_END_ALLOW_THREADS;
590 } if (_result) {
591 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
592 _resultobj = Py_BuildValue("s",_ptemp);
593 } else {
594 Py_INCREF(Py_None);
595 _resultobj = Py_None;
596 }
597 return _resultobj;
598 }
599
600 #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow())
601 static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
602 PyObject * _resultobj;
603 wxWindow * _result;
604 wxValidator * _arg0;
605 PyObject * _argo0 = 0;
606 char *_kwnames[] = { "self", NULL };
607 char _ptemp[128];
608
609 self = self;
610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0))
611 return NULL;
612 if (_argo0) {
613 if (_argo0 == Py_None) { _arg0 = NULL; }
614 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
615 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p.");
616 return NULL;
617 }
618 }
619 {
620 wxPy_BEGIN_ALLOW_THREADS;
621 _result = (wxWindow *)wxValidator_GetWindow(_arg0);
622
623 wxPy_END_ALLOW_THREADS;
624 } if (_result) {
625 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
626 _resultobj = Py_BuildValue("s",_ptemp);
627 } else {
628 Py_INCREF(Py_None);
629 _resultobj = Py_None;
630 }
631 return _resultobj;
632 }
633
634 #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0))
635 static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
636 PyObject * _resultobj;
637 wxValidator * _arg0;
638 wxWindow * _arg1;
639 PyObject * _argo0 = 0;
640 PyObject * _argo1 = 0;
641 char *_kwnames[] = { "self","window", NULL };
642
643 self = self;
644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1))
645 return NULL;
646 if (_argo0) {
647 if (_argo0 == Py_None) { _arg0 = NULL; }
648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) {
649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p.");
650 return NULL;
651 }
652 }
653 if (_argo1) {
654 if (_argo1 == Py_None) { _arg1 = NULL; }
655 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
656 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p.");
657 return NULL;
658 }
659 }
660 {
661 wxPy_BEGIN_ALLOW_THREADS;
662 wxValidator_SetWindow(_arg0,_arg1);
663
664 wxPy_END_ALLOW_THREADS;
665 } Py_INCREF(Py_None);
666 _resultobj = Py_None;
667 return _resultobj;
668 }
669
670 static void *SwigwxPyValidatorTowxValidator(void *ptr) {
671 wxPyValidator *src;
672 wxValidator *dest;
673 src = (wxPyValidator *) ptr;
674 dest = (wxValidator *) src;
675 return (void *) dest;
676 }
677
678 static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) {
679 wxPyValidator *src;
680 wxEvtHandler *dest;
681 src = (wxPyValidator *) ptr;
682 dest = (wxEvtHandler *) src;
683 return (void *) dest;
684 }
685
686 #define new_wxPyValidator() (new wxPyValidator())
687 static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
688 PyObject * _resultobj;
689 wxPyValidator * _result;
690 char *_kwnames[] = { NULL };
691 char _ptemp[128];
692
693 self = self;
694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames))
695 return NULL;
696 {
697 wxPy_BEGIN_ALLOW_THREADS;
698 _result = (wxPyValidator *)new_wxPyValidator();
699
700 wxPy_END_ALLOW_THREADS;
701 } if (_result) {
702 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p");
703 _resultobj = Py_BuildValue("s",_ptemp);
704 } else {
705 Py_INCREF(Py_None);
706 _resultobj = Py_None;
707 }
708 return _resultobj;
709 }
710
711 static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; }
712 static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
713 PyObject * _resultobj;
714 wxPyValidator * _arg0;
715 PyObject * _argo0 = 0;
716 char *_kwnames[] = { "self", NULL };
717
718 self = self;
719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0))
720 return NULL;
721 if (_argo0) {
722 if (_argo0 == Py_None) { _arg0 = NULL; }
723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) {
724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p.");
725 return NULL;
726 }
727 }
728 {
729 wxPy_BEGIN_ALLOW_THREADS;
730 wxPyValidator_Destroy(_arg0);
731
732 wxPy_END_ALLOW_THREADS;
733 } Py_INCREF(Py_None);
734 _resultobj = Py_None;
735 return _resultobj;
736 }
737
738 #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1))
739 static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
740 PyObject * _resultobj;
741 wxPyValidator * _arg0;
742 PyObject * _arg1;
743 int _arg2 = (int ) TRUE;
744 PyObject * _argo0 = 0;
745 PyObject * _obj1 = 0;
746 char *_kwnames[] = { "self","self","incref", NULL };
747
748 self = self;
749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_arg2))
750 return NULL;
751 if (_argo0) {
752 if (_argo0 == Py_None) { _arg0 = NULL; }
753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) {
754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p.");
755 return NULL;
756 }
757 }
758 {
759 _arg1 = _obj1;
760 }
761 {
762 wxPy_BEGIN_ALLOW_THREADS;
763 wxPyValidator__setSelf(_arg0,_arg1,_arg2);
764
765 wxPy_END_ALLOW_THREADS;
766 } Py_INCREF(Py_None);
767 _resultobj = Py_None;
768 return _resultobj;
769 }
770
771 static void *SwigwxWindowTowxEvtHandler(void *ptr) {
772 wxWindow *src;
773 wxEvtHandler *dest;
774 src = (wxWindow *) ptr;
775 dest = (wxEvtHandler *) src;
776 return (void *) dest;
777 }
778
779 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
780 static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
781 PyObject * _resultobj;
782 wxWindow * _result;
783 wxWindow * _arg0;
784 wxWindowID _arg1;
785 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
786 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
787 long _arg4 = (long ) 0;
788 char * _arg5 = (char *) "panel";
789 PyObject * _argo0 = 0;
790 wxPoint temp;
791 PyObject * _obj2 = 0;
792 wxSize temp0;
793 PyObject * _obj3 = 0;
794 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
795 char _ptemp[128];
796
797 self = self;
798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
799 return NULL;
800 if (_argo0) {
801 if (_argo0 == Py_None) { _arg0 = NULL; }
802 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
803 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
804 return NULL;
805 }
806 }
807 if (_obj2)
808 {
809 _arg2 = &temp;
810 if (! wxPoint_helper(_obj2, &_arg2))
811 return NULL;
812 }
813 if (_obj3)
814 {
815 _arg3 = &temp0;
816 if (! wxSize_helper(_obj3, &_arg3))
817 return NULL;
818 }
819 {
820 wxPy_BEGIN_ALLOW_THREADS;
821 _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
822
823 wxPy_END_ALLOW_THREADS;
824 } if (_result) {
825 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
826 _resultobj = Py_BuildValue("s",_ptemp);
827 } else {
828 Py_INCREF(Py_None);
829 _resultobj = Py_None;
830 }
831 return _resultobj;
832 }
833
834 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
835 static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
836 PyObject * _resultobj;
837 wxWindow * _arg0;
838 PyObject * _argo0 = 0;
839 char *_kwnames[] = { "self", NULL };
840
841 self = self;
842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0))
843 return NULL;
844 if (_argo0) {
845 if (_argo0 == Py_None) { _arg0 = NULL; }
846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
848 return NULL;
849 }
850 }
851 {
852 wxPy_BEGIN_ALLOW_THREADS;
853 wxWindow_CaptureMouse(_arg0);
854
855 wxPy_END_ALLOW_THREADS;
856 } Py_INCREF(Py_None);
857 _resultobj = Py_None;
858 return _resultobj;
859 }
860
861 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
862 static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
863 PyObject * _resultobj;
864 wxWindow * _arg0;
865 int _arg1 = (int ) wxBOTH;
866 PyObject * _argo0 = 0;
867 char *_kwnames[] = { "self","direction", NULL };
868
869 self = self;
870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1))
871 return NULL;
872 if (_argo0) {
873 if (_argo0 == Py_None) { _arg0 = NULL; }
874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
876 return NULL;
877 }
878 }
879 {
880 wxPy_BEGIN_ALLOW_THREADS;
881 wxWindow_Center(_arg0,_arg1);
882
883 wxPy_END_ALLOW_THREADS;
884 } Py_INCREF(Py_None);
885 _resultobj = Py_None;
886 return _resultobj;
887 }
888
889 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
890 static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
891 PyObject * _resultobj;
892 wxWindow * _arg0;
893 int _arg1 = (int ) wxBOTH;
894 PyObject * _argo0 = 0;
895 char *_kwnames[] = { "self","direction", NULL };
896
897 self = self;
898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1))
899 return NULL;
900 if (_argo0) {
901 if (_argo0 == Py_None) { _arg0 = NULL; }
902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
904 return NULL;
905 }
906 }
907 {
908 wxPy_BEGIN_ALLOW_THREADS;
909 wxWindow_Centre(_arg0,_arg1);
910
911 wxPy_END_ALLOW_THREADS;
912 } Py_INCREF(Py_None);
913 _resultobj = Py_None;
914 return _resultobj;
915 }
916
917 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
918 static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
919 PyObject * _resultobj;
920 wxWindow * _arg0;
921 int _arg1 = (int ) wxBOTH;
922 PyObject * _argo0 = 0;
923 char *_kwnames[] = { "self","direction", NULL };
924
925 self = self;
926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1))
927 return NULL;
928 if (_argo0) {
929 if (_argo0 == Py_None) { _arg0 = NULL; }
930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
932 return NULL;
933 }
934 }
935 {
936 wxPy_BEGIN_ALLOW_THREADS;
937 wxWindow_CentreOnParent(_arg0,_arg1);
938
939 wxPy_END_ALLOW_THREADS;
940 } Py_INCREF(Py_None);
941 _resultobj = Py_None;
942 return _resultobj;
943 }
944
945 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
946 static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
947 PyObject * _resultobj;
948 wxWindow * _arg0;
949 int _arg1 = (int ) wxBOTH;
950 PyObject * _argo0 = 0;
951 char *_kwnames[] = { "self","direction", NULL };
952
953 self = self;
954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1))
955 return NULL;
956 if (_argo0) {
957 if (_argo0 == Py_None) { _arg0 = NULL; }
958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
960 return NULL;
961 }
962 }
963 {
964 wxPy_BEGIN_ALLOW_THREADS;
965 wxWindow_CenterOnParent(_arg0,_arg1);
966
967 wxPy_END_ALLOW_THREADS;
968 } Py_INCREF(Py_None);
969 _resultobj = Py_None;
970 return _resultobj;
971 }
972
973 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
974 static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
975 PyObject * _resultobj;
976 wxWindow * _arg0;
977 int * _arg1;
978 int * _arg2;
979 PyObject * _argo0 = 0;
980 int temp;
981 PyObject * _obj1 = 0;
982 int temp0;
983 PyObject * _obj2 = 0;
984 char *_kwnames[] = { "self","x","y", NULL };
985
986 self = self;
987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2))
988 return NULL;
989 if (_argo0) {
990 if (_argo0 == Py_None) { _arg0 = NULL; }
991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
993 return NULL;
994 }
995 }
996 {
997 temp = (int) PyInt_AsLong(_obj1);
998 _arg1 = &temp;
999 }
1000 {
1001 temp0 = (int) PyInt_AsLong(_obj2);
1002 _arg2 = &temp0;
1003 }
1004 {
1005 wxPy_BEGIN_ALLOW_THREADS;
1006 wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2);
1007
1008 wxPy_END_ALLOW_THREADS;
1009 } Py_INCREF(Py_None);
1010 _resultobj = Py_None;
1011 {
1012 PyObject *o;
1013 o = PyInt_FromLong((long) (*_arg1));
1014 _resultobj = t_output_helper(_resultobj, o);
1015 }
1016 {
1017 PyObject *o;
1018 o = PyInt_FromLong((long) (*_arg2));
1019 _resultobj = t_output_helper(_resultobj, o);
1020 }
1021 return _resultobj;
1022 }
1023
1024 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
1025 static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1026 PyObject * _resultobj;
1027 wxPoint * _result;
1028 wxWindow * _arg0;
1029 wxPoint * _arg1;
1030 PyObject * _argo0 = 0;
1031 wxPoint temp;
1032 PyObject * _obj1 = 0;
1033 char *_kwnames[] = { "self","pt", NULL };
1034 char _ptemp[128];
1035
1036 self = self;
1037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1))
1038 return NULL;
1039 if (_argo0) {
1040 if (_argo0 == Py_None) { _arg0 = NULL; }
1041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
1043 return NULL;
1044 }
1045 }
1046 {
1047 _arg1 = &temp;
1048 if (! wxPoint_helper(_obj1, &_arg1))
1049 return NULL;
1050 }
1051 {
1052 wxPy_BEGIN_ALLOW_THREADS;
1053 _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1));
1054
1055 wxPy_END_ALLOW_THREADS;
1056 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1057 _resultobj = Py_BuildValue("s",_ptemp);
1058 return _resultobj;
1059 }
1060
1061 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
1062 static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
1063 PyObject * _resultobj;
1064 bool _result;
1065 wxWindow * _arg0;
1066 int _arg1 = (int ) FALSE;
1067 PyObject * _argo0 = 0;
1068 char *_kwnames[] = { "self","force", NULL };
1069
1070 self = self;
1071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1))
1072 return NULL;
1073 if (_argo0) {
1074 if (_argo0 == Py_None) { _arg0 = NULL; }
1075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
1077 return NULL;
1078 }
1079 }
1080 {
1081 wxPy_BEGIN_ALLOW_THREADS;
1082 _result = (bool )wxWindow_Close(_arg0,_arg1);
1083
1084 wxPy_END_ALLOW_THREADS;
1085 } _resultobj = Py_BuildValue("i",_result);
1086 return _resultobj;
1087 }
1088
1089 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
1090 static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1091 PyObject * _resultobj;
1092 bool _result;
1093 wxWindow * _arg0;
1094 PyObject * _argo0 = 0;
1095 char *_kwnames[] = { "self", NULL };
1096
1097 self = self;
1098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0))
1099 return NULL;
1100 if (_argo0) {
1101 if (_argo0 == Py_None) { _arg0 = NULL; }
1102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
1104 return NULL;
1105 }
1106 }
1107 {
1108 wxPy_BEGIN_ALLOW_THREADS;
1109 _result = (bool )wxWindow_Destroy(_arg0);
1110
1111 wxPy_END_ALLOW_THREADS;
1112 } _resultobj = Py_BuildValue("i",_result);
1113 return _resultobj;
1114 }
1115
1116 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
1117 static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1118 PyObject * _resultobj;
1119 wxWindow * _arg0;
1120 PyObject * _argo0 = 0;
1121 char *_kwnames[] = { "self", NULL };
1122
1123 self = self;
1124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0))
1125 return NULL;
1126 if (_argo0) {
1127 if (_argo0 == Py_None) { _arg0 = NULL; }
1128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
1130 return NULL;
1131 }
1132 }
1133 {
1134 wxPy_BEGIN_ALLOW_THREADS;
1135 wxWindow_DestroyChildren(_arg0);
1136
1137 wxPy_END_ALLOW_THREADS;
1138 } Py_INCREF(Py_None);
1139 _resultobj = Py_None;
1140 return _resultobj;
1141 }
1142
1143 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
1144 static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
1145 PyObject * _resultobj;
1146 wxWindow * _arg0;
1147 bool _arg1;
1148 PyObject * _argo0 = 0;
1149 int tempbool1;
1150 char *_kwnames[] = { "self","accept", NULL };
1151
1152 self = self;
1153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1))
1154 return NULL;
1155 if (_argo0) {
1156 if (_argo0 == Py_None) { _arg0 = NULL; }
1157 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1158 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
1159 return NULL;
1160 }
1161 }
1162 _arg1 = (bool ) tempbool1;
1163 {
1164 wxPy_BEGIN_ALLOW_THREADS;
1165 wxWindow_DragAcceptFiles(_arg0,_arg1);
1166
1167 wxPy_END_ALLOW_THREADS;
1168 } Py_INCREF(Py_None);
1169 _resultobj = Py_None;
1170 return _resultobj;
1171 }
1172
1173 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
1174 static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
1175 PyObject * _resultobj;
1176 wxWindow * _arg0;
1177 bool _arg1;
1178 PyObject * _argo0 = 0;
1179 int tempbool1;
1180 char *_kwnames[] = { "self","enable", NULL };
1181
1182 self = self;
1183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1))
1184 return NULL;
1185 if (_argo0) {
1186 if (_argo0 == Py_None) { _arg0 = NULL; }
1187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
1189 return NULL;
1190 }
1191 }
1192 _arg1 = (bool ) tempbool1;
1193 {
1194 wxPy_BEGIN_ALLOW_THREADS;
1195 wxWindow_Enable(_arg0,_arg1);
1196
1197 wxPy_END_ALLOW_THREADS;
1198 } Py_INCREF(Py_None);
1199 _resultobj = Py_None;
1200 return _resultobj;
1201 }
1202
1203 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1204 static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
1205 PyObject * _resultobj;
1206 wxWindow * _result;
1207 wxWindow * _arg0;
1208 long _arg1;
1209 PyObject * _argo0 = 0;
1210 char *_kwnames[] = { "self","id", NULL };
1211 char _ptemp[128];
1212
1213 self = self;
1214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1))
1215 return NULL;
1216 if (_argo0) {
1217 if (_argo0 == Py_None) { _arg0 = NULL; }
1218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
1220 return NULL;
1221 }
1222 }
1223 {
1224 wxPy_BEGIN_ALLOW_THREADS;
1225 _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1);
1226
1227 wxPy_END_ALLOW_THREADS;
1228 } if (_result) {
1229 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1230 _resultobj = Py_BuildValue("s",_ptemp);
1231 } else {
1232 Py_INCREF(Py_None);
1233 _resultobj = Py_None;
1234 }
1235 return _resultobj;
1236 }
1237
1238 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
1239 static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
1240 PyObject * _resultobj;
1241 wxWindow * _result;
1242 wxWindow * _arg0;
1243 wxString * _arg1;
1244 PyObject * _argo0 = 0;
1245 PyObject * _obj1 = 0;
1246 char *_kwnames[] = { "self","name", NULL };
1247 char _ptemp[128];
1248
1249 self = self;
1250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1))
1251 return NULL;
1252 if (_argo0) {
1253 if (_argo0 == Py_None) { _arg0 = NULL; }
1254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
1256 return NULL;
1257 }
1258 }
1259 {
1260 if (!PyString_Check(_obj1)) {
1261 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1262 return NULL;
1263 }
1264 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1265 }
1266 {
1267 wxPy_BEGIN_ALLOW_THREADS;
1268 _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1);
1269
1270 wxPy_END_ALLOW_THREADS;
1271 } if (_result) {
1272 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1273 _resultobj = Py_BuildValue("s",_ptemp);
1274 } else {
1275 Py_INCREF(Py_None);
1276 _resultobj = Py_None;
1277 }
1278 {
1279 if (_obj1)
1280 delete _arg1;
1281 }
1282 return _resultobj;
1283 }
1284
1285 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
1286 static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
1287 PyObject * _resultobj;
1288 wxWindow * _arg0;
1289 PyObject * _argo0 = 0;
1290 char *_kwnames[] = { "self", NULL };
1291
1292 self = self;
1293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0))
1294 return NULL;
1295 if (_argo0) {
1296 if (_argo0 == Py_None) { _arg0 = NULL; }
1297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
1299 return NULL;
1300 }
1301 }
1302 {
1303 wxPy_BEGIN_ALLOW_THREADS;
1304 wxWindow_Fit(_arg0);
1305
1306 wxPy_END_ALLOW_THREADS;
1307 } Py_INCREF(Py_None);
1308 _resultobj = Py_None;
1309 return _resultobj;
1310 }
1311
1312 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1313 static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1314 PyObject * _resultobj;
1315 wxColour * _result;
1316 wxWindow * _arg0;
1317 PyObject * _argo0 = 0;
1318 char *_kwnames[] = { "self", NULL };
1319 char _ptemp[128];
1320
1321 self = self;
1322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0))
1323 return NULL;
1324 if (_argo0) {
1325 if (_argo0 == Py_None) { _arg0 = NULL; }
1326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
1328 return NULL;
1329 }
1330 }
1331 {
1332 wxPy_BEGIN_ALLOW_THREADS;
1333 _result = new wxColour (wxWindow_GetBackgroundColour(_arg0));
1334
1335 wxPy_END_ALLOW_THREADS;
1336 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1337 _resultobj = Py_BuildValue("s",_ptemp);
1338 return _resultobj;
1339 }
1340
1341 static PyObject * wxWindow_GetChildren(wxWindow *self) {
1342 wxWindowList& list = self->GetChildren();
1343 return wxPy_ConvertList(&list, "wxWindow");
1344 }
1345 static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
1346 PyObject * _resultobj;
1347 PyObject * _result;
1348 wxWindow * _arg0;
1349 PyObject * _argo0 = 0;
1350 char *_kwnames[] = { "self", NULL };
1351
1352 self = self;
1353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0))
1354 return NULL;
1355 if (_argo0) {
1356 if (_argo0 == Py_None) { _arg0 = NULL; }
1357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p.");
1359 return NULL;
1360 }
1361 }
1362 {
1363 wxPy_BEGIN_ALLOW_THREADS;
1364 _result = (PyObject *)wxWindow_GetChildren(_arg0);
1365
1366 wxPy_END_ALLOW_THREADS;
1367 }{
1368 _resultobj = _result;
1369 }
1370 return _resultobj;
1371 }
1372
1373 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
1374 static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1375 PyObject * _resultobj;
1376 int _result;
1377 wxWindow * _arg0;
1378 PyObject * _argo0 = 0;
1379 char *_kwnames[] = { "self", NULL };
1380
1381 self = self;
1382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0))
1383 return NULL;
1384 if (_argo0) {
1385 if (_argo0 == Py_None) { _arg0 = NULL; }
1386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
1388 return NULL;
1389 }
1390 }
1391 {
1392 wxPy_BEGIN_ALLOW_THREADS;
1393 _result = (int )wxWindow_GetCharHeight(_arg0);
1394
1395 wxPy_END_ALLOW_THREADS;
1396 } _resultobj = Py_BuildValue("i",_result);
1397 return _resultobj;
1398 }
1399
1400 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
1401 static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1402 PyObject * _resultobj;
1403 int _result;
1404 wxWindow * _arg0;
1405 PyObject * _argo0 = 0;
1406 char *_kwnames[] = { "self", NULL };
1407
1408 self = self;
1409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0))
1410 return NULL;
1411 if (_argo0) {
1412 if (_argo0 == Py_None) { _arg0 = NULL; }
1413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
1415 return NULL;
1416 }
1417 }
1418 {
1419 wxPy_BEGIN_ALLOW_THREADS;
1420 _result = (int )wxWindow_GetCharWidth(_arg0);
1421
1422 wxPy_END_ALLOW_THREADS;
1423 } _resultobj = Py_BuildValue("i",_result);
1424 return _resultobj;
1425 }
1426
1427 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
1428 static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1429 PyObject * _resultobj;
1430 wxWindow * _arg0;
1431 int * _arg1;
1432 int temp;
1433 int * _arg2;
1434 int temp0;
1435 PyObject * _argo0 = 0;
1436 char *_kwnames[] = { "self", NULL };
1437
1438 self = self;
1439 {
1440 _arg1 = &temp;
1441 }
1442 {
1443 _arg2 = &temp0;
1444 }
1445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0))
1446 return NULL;
1447 if (_argo0) {
1448 if (_argo0 == Py_None) { _arg0 = NULL; }
1449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
1451 return NULL;
1452 }
1453 }
1454 {
1455 wxPy_BEGIN_ALLOW_THREADS;
1456 wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2);
1457
1458 wxPy_END_ALLOW_THREADS;
1459 } Py_INCREF(Py_None);
1460 _resultobj = Py_None;
1461 {
1462 PyObject *o;
1463 o = PyInt_FromLong((long) (*_arg1));
1464 _resultobj = t_output_helper(_resultobj, o);
1465 }
1466 {
1467 PyObject *o;
1468 o = PyInt_FromLong((long) (*_arg2));
1469 _resultobj = t_output_helper(_resultobj, o);
1470 }
1471 return _resultobj;
1472 }
1473
1474 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
1475 static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1476 PyObject * _resultobj;
1477 wxSize * _result;
1478 wxWindow * _arg0;
1479 PyObject * _argo0 = 0;
1480 char *_kwnames[] = { "self", NULL };
1481 char _ptemp[128];
1482
1483 self = self;
1484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0))
1485 return NULL;
1486 if (_argo0) {
1487 if (_argo0 == Py_None) { _arg0 = NULL; }
1488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
1490 return NULL;
1491 }
1492 }
1493 {
1494 wxPy_BEGIN_ALLOW_THREADS;
1495 _result = new wxSize (wxWindow_GetClientSize(_arg0));
1496
1497 wxPy_END_ALLOW_THREADS;
1498 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1499 _resultobj = Py_BuildValue("s",_ptemp);
1500 return _resultobj;
1501 }
1502
1503 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
1504 static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
1505 PyObject * _resultobj;
1506 wxLayoutConstraints * _result;
1507 wxWindow * _arg0;
1508 PyObject * _argo0 = 0;
1509 char *_kwnames[] = { "self", NULL };
1510 char _ptemp[128];
1511
1512 self = self;
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0))
1514 return NULL;
1515 if (_argo0) {
1516 if (_argo0 == Py_None) { _arg0 = NULL; }
1517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
1519 return NULL;
1520 }
1521 }
1522 {
1523 wxPy_BEGIN_ALLOW_THREADS;
1524 _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0);
1525
1526 wxPy_END_ALLOW_THREADS;
1527 } if (_result) {
1528 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p");
1529 _resultobj = Py_BuildValue("s",_ptemp);
1530 } else {
1531 Py_INCREF(Py_None);
1532 _resultobj = Py_None;
1533 }
1534 return _resultobj;
1535 }
1536
1537 #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler())
1538 static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
1539 PyObject * _resultobj;
1540 wxEvtHandler * _result;
1541 wxWindow * _arg0;
1542 PyObject * _argo0 = 0;
1543 char *_kwnames[] = { "self", NULL };
1544 char _ptemp[128];
1545
1546 self = self;
1547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0))
1548 return NULL;
1549 if (_argo0) {
1550 if (_argo0 == Py_None) { _arg0 = NULL; }
1551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1552 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p.");
1553 return NULL;
1554 }
1555 }
1556 {
1557 wxPy_BEGIN_ALLOW_THREADS;
1558 _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0);
1559
1560 wxPy_END_ALLOW_THREADS;
1561 } if (_result) {
1562 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
1563 _resultobj = Py_BuildValue("s",_ptemp);
1564 } else {
1565 Py_INCREF(Py_None);
1566 _resultobj = Py_None;
1567 }
1568 return _resultobj;
1569 }
1570
1571 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
1572 static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject * _resultobj;
1574 wxFont * _result;
1575 wxWindow * _arg0;
1576 PyObject * _argo0 = 0;
1577 char *_kwnames[] = { "self", NULL };
1578 char _ptemp[128];
1579
1580 self = self;
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0))
1582 return NULL;
1583 if (_argo0) {
1584 if (_argo0 == Py_None) { _arg0 = NULL; }
1585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1587 return NULL;
1588 }
1589 }
1590 {
1591 wxPy_BEGIN_ALLOW_THREADS;
1592 wxFont & _result_ref = wxWindow_GetFont(_arg0);
1593 _result = (wxFont *) &_result_ref;
1594
1595 wxPy_END_ALLOW_THREADS;
1596 } if (_result) {
1597 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
1598 _resultobj = Py_BuildValue("s",_ptemp);
1599 } else {
1600 Py_INCREF(Py_None);
1601 _resultobj = Py_None;
1602 }
1603 return _resultobj;
1604 }
1605
1606 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1607 static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject * _resultobj;
1609 wxColour * _result;
1610 wxWindow * _arg0;
1611 PyObject * _argo0 = 0;
1612 char *_kwnames[] = { "self", NULL };
1613 char _ptemp[128];
1614
1615 self = self;
1616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0))
1617 return NULL;
1618 if (_argo0) {
1619 if (_argo0 == Py_None) { _arg0 = NULL; }
1620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1622 return NULL;
1623 }
1624 }
1625 {
1626 wxPy_BEGIN_ALLOW_THREADS;
1627 _result = new wxColour (wxWindow_GetForegroundColour(_arg0));
1628
1629 wxPy_END_ALLOW_THREADS;
1630 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1631 _resultobj = Py_BuildValue("s",_ptemp);
1632 return _resultobj;
1633 }
1634
1635 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1636 static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1637 PyObject * _resultobj;
1638 wxWindow * _result;
1639 wxWindow * _arg0;
1640 PyObject * _argo0 = 0;
1641 char *_kwnames[] = { "self", NULL };
1642 char _ptemp[128];
1643
1644 self = self;
1645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0))
1646 return NULL;
1647 if (_argo0) {
1648 if (_argo0 == Py_None) { _arg0 = NULL; }
1649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1651 return NULL;
1652 }
1653 }
1654 {
1655 wxPy_BEGIN_ALLOW_THREADS;
1656 _result = (wxWindow *)wxWindow_GetGrandParent(_arg0);
1657
1658 wxPy_END_ALLOW_THREADS;
1659 } if (_result) {
1660 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1661 _resultobj = Py_BuildValue("s",_ptemp);
1662 } else {
1663 Py_INCREF(Py_None);
1664 _resultobj = Py_None;
1665 }
1666 return _resultobj;
1667 }
1668
1669 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1670 static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
1671 PyObject * _resultobj;
1672 int _result;
1673 wxWindow * _arg0;
1674 PyObject * _argo0 = 0;
1675 char *_kwnames[] = { "self", NULL };
1676
1677 self = self;
1678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0))
1679 return NULL;
1680 if (_argo0) {
1681 if (_argo0 == Py_None) { _arg0 = NULL; }
1682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1684 return NULL;
1685 }
1686 }
1687 {
1688 wxPy_BEGIN_ALLOW_THREADS;
1689 _result = (int )wxWindow_GetId(_arg0);
1690
1691 wxPy_END_ALLOW_THREADS;
1692 } _resultobj = Py_BuildValue("i",_result);
1693 return _resultobj;
1694 }
1695
1696 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1697 static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1698 PyObject * _resultobj;
1699 wxString * _result;
1700 wxWindow * _arg0;
1701 PyObject * _argo0 = 0;
1702 char *_kwnames[] = { "self", NULL };
1703
1704 self = self;
1705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0))
1706 return NULL;
1707 if (_argo0) {
1708 if (_argo0 == Py_None) { _arg0 = NULL; }
1709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1711 return NULL;
1712 }
1713 }
1714 {
1715 wxPy_BEGIN_ALLOW_THREADS;
1716 _result = new wxString (wxWindow_GetLabel(_arg0));
1717
1718 wxPy_END_ALLOW_THREADS;
1719 }{
1720 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1721 }
1722 {
1723 delete _result;
1724 }
1725 return _resultobj;
1726 }
1727
1728 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1729 static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1730 PyObject * _resultobj;
1731 wxWindow * _arg0;
1732 wxString * _arg1;
1733 PyObject * _argo0 = 0;
1734 PyObject * _obj1 = 0;
1735 char *_kwnames[] = { "self","label", NULL };
1736
1737 self = self;
1738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1))
1739 return NULL;
1740 if (_argo0) {
1741 if (_argo0 == Py_None) { _arg0 = NULL; }
1742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
1744 return NULL;
1745 }
1746 }
1747 {
1748 if (!PyString_Check(_obj1)) {
1749 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1750 return NULL;
1751 }
1752 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1753 }
1754 {
1755 wxPy_BEGIN_ALLOW_THREADS;
1756 wxWindow_SetLabel(_arg0,*_arg1);
1757
1758 wxPy_END_ALLOW_THREADS;
1759 } Py_INCREF(Py_None);
1760 _resultobj = Py_None;
1761 {
1762 if (_obj1)
1763 delete _arg1;
1764 }
1765 return _resultobj;
1766 }
1767
1768 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
1769 static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
1770 PyObject * _resultobj;
1771 wxString * _result;
1772 wxWindow * _arg0;
1773 PyObject * _argo0 = 0;
1774 char *_kwnames[] = { "self", NULL };
1775
1776 self = self;
1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0))
1778 return NULL;
1779 if (_argo0) {
1780 if (_argo0 == Py_None) { _arg0 = NULL; }
1781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
1783 return NULL;
1784 }
1785 }
1786 {
1787 wxPy_BEGIN_ALLOW_THREADS;
1788 _result = new wxString (wxWindow_GetName(_arg0));
1789
1790 wxPy_END_ALLOW_THREADS;
1791 }{
1792 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1793 }
1794 {
1795 delete _result;
1796 }
1797 return _resultobj;
1798 }
1799
1800 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
1801 static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1802 PyObject * _resultobj;
1803 wxWindow * _result;
1804 wxWindow * _arg0;
1805 PyObject * _argo0 = 0;
1806 char *_kwnames[] = { "self", NULL };
1807 char _ptemp[128];
1808
1809 self = self;
1810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0))
1811 return NULL;
1812 if (_argo0) {
1813 if (_argo0 == Py_None) { _arg0 = NULL; }
1814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
1816 return NULL;
1817 }
1818 }
1819 {
1820 wxPy_BEGIN_ALLOW_THREADS;
1821 _result = (wxWindow *)wxWindow_GetParent(_arg0);
1822
1823 wxPy_END_ALLOW_THREADS;
1824 } if (_result) {
1825 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1826 _resultobj = Py_BuildValue("s",_ptemp);
1827 } else {
1828 Py_INCREF(Py_None);
1829 _resultobj = Py_None;
1830 }
1831 return _resultobj;
1832 }
1833
1834 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
1835 static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1836 PyObject * _resultobj;
1837 wxWindow * _arg0;
1838 int * _arg1;
1839 int temp;
1840 int * _arg2;
1841 int temp0;
1842 PyObject * _argo0 = 0;
1843 char *_kwnames[] = { "self", NULL };
1844
1845 self = self;
1846 {
1847 _arg1 = &temp;
1848 }
1849 {
1850 _arg2 = &temp0;
1851 }
1852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_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_GetPositionTuple. Expected _wxWindow_p.");
1858 return NULL;
1859 }
1860 }
1861 {
1862 wxPy_BEGIN_ALLOW_THREADS;
1863 wxWindow_GetPositionTuple(_arg0,_arg1,_arg2);
1864
1865 wxPy_END_ALLOW_THREADS;
1866 } Py_INCREF(Py_None);
1867 _resultobj = Py_None;
1868 {
1869 PyObject *o;
1870 o = PyInt_FromLong((long) (*_arg1));
1871 _resultobj = t_output_helper(_resultobj, o);
1872 }
1873 {
1874 PyObject *o;
1875 o = PyInt_FromLong((long) (*_arg2));
1876 _resultobj = t_output_helper(_resultobj, o);
1877 }
1878 return _resultobj;
1879 }
1880
1881 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
1882 static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject * _resultobj;
1884 wxPoint * _result;
1885 wxWindow * _arg0;
1886 PyObject * _argo0 = 0;
1887 char *_kwnames[] = { "self", NULL };
1888 char _ptemp[128];
1889
1890 self = self;
1891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0))
1892 return NULL;
1893 if (_argo0) {
1894 if (_argo0 == Py_None) { _arg0 = NULL; }
1895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
1897 return NULL;
1898 }
1899 }
1900 {
1901 wxPy_BEGIN_ALLOW_THREADS;
1902 _result = new wxPoint (wxWindow_GetPosition(_arg0));
1903
1904 wxPy_END_ALLOW_THREADS;
1905 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1906 _resultobj = Py_BuildValue("s",_ptemp);
1907 return _resultobj;
1908 }
1909
1910 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
1911 static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject * _resultobj;
1913 wxRect * _result;
1914 wxWindow * _arg0;
1915 PyObject * _argo0 = 0;
1916 char *_kwnames[] = { "self", NULL };
1917 char _ptemp[128];
1918
1919 self = self;
1920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0))
1921 return NULL;
1922 if (_argo0) {
1923 if (_argo0 == Py_None) { _arg0 = NULL; }
1924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
1926 return NULL;
1927 }
1928 }
1929 {
1930 wxPy_BEGIN_ALLOW_THREADS;
1931 _result = new wxRect (wxWindow_GetRect(_arg0));
1932
1933 wxPy_END_ALLOW_THREADS;
1934 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
1935 _resultobj = Py_BuildValue("s",_ptemp);
1936 return _resultobj;
1937 }
1938
1939 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
1940 static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
1941 PyObject * _resultobj;
1942 int _result;
1943 wxWindow * _arg0;
1944 int _arg1;
1945 PyObject * _argo0 = 0;
1946 char *_kwnames[] = { "self","orientation", NULL };
1947
1948 self = self;
1949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1))
1950 return NULL;
1951 if (_argo0) {
1952 if (_argo0 == Py_None) { _arg0 = NULL; }
1953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
1955 return NULL;
1956 }
1957 }
1958 {
1959 wxPy_BEGIN_ALLOW_THREADS;
1960 _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1);
1961
1962 wxPy_END_ALLOW_THREADS;
1963 } _resultobj = Py_BuildValue("i",_result);
1964 return _resultobj;
1965 }
1966
1967 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
1968 static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
1969 PyObject * _resultobj;
1970 int _result;
1971 wxWindow * _arg0;
1972 int _arg1;
1973 PyObject * _argo0 = 0;
1974 char *_kwnames[] = { "self","orientation", NULL };
1975
1976 self = self;
1977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1))
1978 return NULL;
1979 if (_argo0) {
1980 if (_argo0 == Py_None) { _arg0 = NULL; }
1981 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1982 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
1983 return NULL;
1984 }
1985 }
1986 {
1987 wxPy_BEGIN_ALLOW_THREADS;
1988 _result = (int )wxWindow_GetScrollPos(_arg0,_arg1);
1989
1990 wxPy_END_ALLOW_THREADS;
1991 } _resultobj = Py_BuildValue("i",_result);
1992 return _resultobj;
1993 }
1994
1995 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
1996 static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
1997 PyObject * _resultobj;
1998 int _result;
1999 wxWindow * _arg0;
2000 int _arg1;
2001 PyObject * _argo0 = 0;
2002 char *_kwnames[] = { "self","orientation", NULL };
2003
2004 self = self;
2005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1))
2006 return NULL;
2007 if (_argo0) {
2008 if (_argo0 == Py_None) { _arg0 = NULL; }
2009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2011 return NULL;
2012 }
2013 }
2014 {
2015 wxPy_BEGIN_ALLOW_THREADS;
2016 _result = (int )wxWindow_GetScrollRange(_arg0,_arg1);
2017
2018 wxPy_END_ALLOW_THREADS;
2019 } _resultobj = Py_BuildValue("i",_result);
2020 return _resultobj;
2021 }
2022
2023 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2024 static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2025 PyObject * _resultobj;
2026 wxWindow * _arg0;
2027 int * _arg1;
2028 int temp;
2029 int * _arg2;
2030 int temp0;
2031 PyObject * _argo0 = 0;
2032 char *_kwnames[] = { "self", NULL };
2033
2034 self = self;
2035 {
2036 _arg1 = &temp;
2037 }
2038 {
2039 _arg2 = &temp0;
2040 }
2041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0))
2042 return NULL;
2043 if (_argo0) {
2044 if (_argo0 == Py_None) { _arg0 = NULL; }
2045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2047 return NULL;
2048 }
2049 }
2050 {
2051 wxPy_BEGIN_ALLOW_THREADS;
2052 wxWindow_GetSizeTuple(_arg0,_arg1,_arg2);
2053
2054 wxPy_END_ALLOW_THREADS;
2055 } Py_INCREF(Py_None);
2056 _resultobj = Py_None;
2057 {
2058 PyObject *o;
2059 o = PyInt_FromLong((long) (*_arg1));
2060 _resultobj = t_output_helper(_resultobj, o);
2061 }
2062 {
2063 PyObject *o;
2064 o = PyInt_FromLong((long) (*_arg2));
2065 _resultobj = t_output_helper(_resultobj, o);
2066 }
2067 return _resultobj;
2068 }
2069
2070 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2071 static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2072 PyObject * _resultobj;
2073 wxSize * _result;
2074 wxWindow * _arg0;
2075 PyObject * _argo0 = 0;
2076 char *_kwnames[] = { "self", NULL };
2077 char _ptemp[128];
2078
2079 self = self;
2080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0))
2081 return NULL;
2082 if (_argo0) {
2083 if (_argo0 == Py_None) { _arg0 = NULL; }
2084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2086 return NULL;
2087 }
2088 }
2089 {
2090 wxPy_BEGIN_ALLOW_THREADS;
2091 _result = new wxSize (wxWindow_GetSize(_arg0));
2092
2093 wxPy_END_ALLOW_THREADS;
2094 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2095 _resultobj = Py_BuildValue("s",_ptemp);
2096 return _resultobj;
2097 }
2098
2099 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2100 static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2101 PyObject * _resultobj;
2102 wxWindow * _arg0;
2103 wxString * _arg1;
2104 int * _arg2;
2105 int temp;
2106 int * _arg3;
2107 int temp0;
2108 PyObject * _argo0 = 0;
2109 PyObject * _obj1 = 0;
2110 char *_kwnames[] = { "self","string", NULL };
2111
2112 self = self;
2113 {
2114 _arg2 = &temp;
2115 }
2116 {
2117 _arg3 = &temp0;
2118 }
2119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1))
2120 return NULL;
2121 if (_argo0) {
2122 if (_argo0 == Py_None) { _arg0 = NULL; }
2123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2125 return NULL;
2126 }
2127 }
2128 {
2129 if (!PyString_Check(_obj1)) {
2130 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2131 return NULL;
2132 }
2133 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
2134 }
2135 {
2136 wxPy_BEGIN_ALLOW_THREADS;
2137 wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
2138
2139 wxPy_END_ALLOW_THREADS;
2140 } Py_INCREF(Py_None);
2141 _resultobj = Py_None;
2142 {
2143 PyObject *o;
2144 o = PyInt_FromLong((long) (*_arg2));
2145 _resultobj = t_output_helper(_resultobj, o);
2146 }
2147 {
2148 PyObject *o;
2149 o = PyInt_FromLong((long) (*_arg3));
2150 _resultobj = t_output_helper(_resultobj, o);
2151 }
2152 {
2153 if (_obj1)
2154 delete _arg1;
2155 }
2156 return _resultobj;
2157 }
2158
2159 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2160 static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2161 PyObject * _resultobj;
2162 wxWindow * _arg0;
2163 wxString * _arg1;
2164 int * _arg2;
2165 int temp;
2166 int * _arg3;
2167 int temp0;
2168 int * _arg4;
2169 int temp1;
2170 int * _arg5;
2171 int temp2;
2172 wxFont * _arg6 = (wxFont *) NULL;
2173 PyObject * _argo0 = 0;
2174 PyObject * _obj1 = 0;
2175 PyObject * _argo6 = 0;
2176 char *_kwnames[] = { "self","string","font", NULL };
2177
2178 self = self;
2179 {
2180 _arg2 = &temp;
2181 }
2182 {
2183 _arg3 = &temp0;
2184 }
2185 {
2186 _arg4 = &temp1;
2187 }
2188 {
2189 _arg5 = &temp2;
2190 }
2191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
2192 return NULL;
2193 if (_argo0) {
2194 if (_argo0 == Py_None) { _arg0 = NULL; }
2195 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2196 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2197 return NULL;
2198 }
2199 }
2200 {
2201 if (!PyString_Check(_obj1)) {
2202 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2203 return NULL;
2204 }
2205 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
2206 }
2207 if (_argo6) {
2208 if (_argo6 == Py_None) { _arg6 = NULL; }
2209 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
2210 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2211 return NULL;
2212 }
2213 }
2214 {
2215 wxPy_BEGIN_ALLOW_THREADS;
2216 wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2217
2218 wxPy_END_ALLOW_THREADS;
2219 } Py_INCREF(Py_None);
2220 _resultobj = Py_None;
2221 {
2222 PyObject *o;
2223 o = PyInt_FromLong((long) (*_arg2));
2224 _resultobj = t_output_helper(_resultobj, o);
2225 }
2226 {
2227 PyObject *o;
2228 o = PyInt_FromLong((long) (*_arg3));
2229 _resultobj = t_output_helper(_resultobj, o);
2230 }
2231 {
2232 PyObject *o;
2233 o = PyInt_FromLong((long) (*_arg4));
2234 _resultobj = t_output_helper(_resultobj, o);
2235 }
2236 {
2237 PyObject *o;
2238 o = PyInt_FromLong((long) (*_arg5));
2239 _resultobj = t_output_helper(_resultobj, o);
2240 }
2241 {
2242 if (_obj1)
2243 delete _arg1;
2244 }
2245 return _resultobj;
2246 }
2247
2248 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2249 static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
2250 PyObject * _resultobj;
2251 wxString * _result;
2252 wxWindow * _arg0;
2253 PyObject * _argo0 = 0;
2254 char *_kwnames[] = { "self", NULL };
2255
2256 self = self;
2257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0))
2258 return NULL;
2259 if (_argo0) {
2260 if (_argo0 == Py_None) { _arg0 = NULL; }
2261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2263 return NULL;
2264 }
2265 }
2266 {
2267 wxPy_BEGIN_ALLOW_THREADS;
2268 _result = new wxString (wxWindow_GetTitle(_arg0));
2269
2270 wxPy_END_ALLOW_THREADS;
2271 }{
2272 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
2273 }
2274 {
2275 delete _result;
2276 }
2277 return _resultobj;
2278 }
2279
2280 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2281 static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
2282 PyObject * _resultobj;
2283 wxRegion * _result;
2284 wxWindow * _arg0;
2285 PyObject * _argo0 = 0;
2286 char *_kwnames[] = { "self", NULL };
2287 char _ptemp[128];
2288
2289 self = self;
2290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0))
2291 return NULL;
2292 if (_argo0) {
2293 if (_argo0 == Py_None) { _arg0 = NULL; }
2294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2296 return NULL;
2297 }
2298 }
2299 {
2300 wxPy_BEGIN_ALLOW_THREADS;
2301 _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0));
2302
2303 wxPy_END_ALLOW_THREADS;
2304 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p");
2305 _resultobj = Py_BuildValue("s",_ptemp);
2306 return _resultobj;
2307 }
2308
2309 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2310 static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2311 PyObject * _resultobj;
2312 long _result;
2313 wxWindow * _arg0;
2314 PyObject * _argo0 = 0;
2315 char *_kwnames[] = { "self", NULL };
2316
2317 self = self;
2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0))
2319 return NULL;
2320 if (_argo0) {
2321 if (_argo0 == Py_None) { _arg0 = NULL; }
2322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2324 return NULL;
2325 }
2326 }
2327 {
2328 wxPy_BEGIN_ALLOW_THREADS;
2329 _result = (long )wxWindow_GetWindowStyleFlag(_arg0);
2330
2331 wxPy_END_ALLOW_THREADS;
2332 } _resultobj = Py_BuildValue("l",_result);
2333 return _resultobj;
2334 }
2335
2336 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2337 static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
2338 PyObject * _resultobj;
2339 bool _result;
2340 wxWindow * _arg0;
2341 PyObject * _argo0 = 0;
2342 char *_kwnames[] = { "self", NULL };
2343
2344 self = self;
2345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0))
2346 return NULL;
2347 if (_argo0) {
2348 if (_argo0 == Py_None) { _arg0 = NULL; }
2349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2351 return NULL;
2352 }
2353 }
2354 {
2355 wxPy_BEGIN_ALLOW_THREADS;
2356 _result = (bool )wxWindow_Hide(_arg0);
2357
2358 wxPy_END_ALLOW_THREADS;
2359 } _resultobj = Py_BuildValue("i",_result);
2360 return _resultobj;
2361 }
2362
2363 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2364 static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2365 PyObject * _resultobj;
2366 wxWindow * _arg0;
2367 PyObject * _argo0 = 0;
2368 char *_kwnames[] = { "self", NULL };
2369
2370 self = self;
2371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0))
2372 return NULL;
2373 if (_argo0) {
2374 if (_argo0 == Py_None) { _arg0 = NULL; }
2375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2377 return NULL;
2378 }
2379 }
2380 {
2381 wxPy_BEGIN_ALLOW_THREADS;
2382 wxWindow_InitDialog(_arg0);
2383
2384 wxPy_END_ALLOW_THREADS;
2385 } Py_INCREF(Py_None);
2386 _resultobj = Py_None;
2387 return _resultobj;
2388 }
2389
2390 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2391 static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
2392 PyObject * _resultobj;
2393 bool _result;
2394 wxWindow * _arg0;
2395 PyObject * _argo0 = 0;
2396 char *_kwnames[] = { "self", NULL };
2397
2398 self = self;
2399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0))
2400 return NULL;
2401 if (_argo0) {
2402 if (_argo0 == Py_None) { _arg0 = NULL; }
2403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2405 return NULL;
2406 }
2407 }
2408 {
2409 wxPy_BEGIN_ALLOW_THREADS;
2410 _result = (bool )wxWindow_IsEnabled(_arg0);
2411
2412 wxPy_END_ALLOW_THREADS;
2413 } _resultobj = Py_BuildValue("i",_result);
2414 return _resultobj;
2415 }
2416
2417 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2418 static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
2419 PyObject * _resultobj;
2420 bool _result;
2421 wxWindow * _arg0;
2422 PyObject * _argo0 = 0;
2423 char *_kwnames[] = { "self", NULL };
2424
2425 self = self;
2426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0))
2427 return NULL;
2428 if (_argo0) {
2429 if (_argo0 == Py_None) { _arg0 = NULL; }
2430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2432 return NULL;
2433 }
2434 }
2435 {
2436 wxPy_BEGIN_ALLOW_THREADS;
2437 _result = (bool )wxWindow_IsRetained(_arg0);
2438
2439 wxPy_END_ALLOW_THREADS;
2440 } _resultobj = Py_BuildValue("i",_result);
2441 return _resultobj;
2442 }
2443
2444 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2445 static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
2446 PyObject * _resultobj;
2447 bool _result;
2448 wxWindow * _arg0;
2449 PyObject * _argo0 = 0;
2450 char *_kwnames[] = { "self", NULL };
2451
2452 self = self;
2453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0))
2454 return NULL;
2455 if (_argo0) {
2456 if (_argo0 == Py_None) { _arg0 = NULL; }
2457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2459 return NULL;
2460 }
2461 }
2462 {
2463 wxPy_BEGIN_ALLOW_THREADS;
2464 _result = (bool )wxWindow_IsShown(_arg0);
2465
2466 wxPy_END_ALLOW_THREADS;
2467 } _resultobj = Py_BuildValue("i",_result);
2468 return _resultobj;
2469 }
2470
2471 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2472 static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
2473 PyObject * _resultobj;
2474 bool _result;
2475 wxWindow * _arg0;
2476 PyObject * _argo0 = 0;
2477 char *_kwnames[] = { "self", NULL };
2478
2479 self = self;
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0))
2481 return NULL;
2482 if (_argo0) {
2483 if (_argo0 == Py_None) { _arg0 = NULL; }
2484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
2486 return NULL;
2487 }
2488 }
2489 {
2490 wxPy_BEGIN_ALLOW_THREADS;
2491 _result = (bool )wxWindow_IsTopLevel(_arg0);
2492
2493 wxPy_END_ALLOW_THREADS;
2494 } _resultobj = Py_BuildValue("i",_result);
2495 return _resultobj;
2496 }
2497
2498 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2499 static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
2500 PyObject * _resultobj;
2501 wxWindow * _arg0;
2502 PyObject * _argo0 = 0;
2503 char *_kwnames[] = { "self", NULL };
2504
2505 self = self;
2506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0))
2507 return NULL;
2508 if (_argo0) {
2509 if (_argo0 == Py_None) { _arg0 = NULL; }
2510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2512 return NULL;
2513 }
2514 }
2515 {
2516 wxPy_BEGIN_ALLOW_THREADS;
2517 wxWindow_Layout(_arg0);
2518
2519 wxPy_END_ALLOW_THREADS;
2520 } Py_INCREF(Py_None);
2521 _resultobj = Py_None;
2522 return _resultobj;
2523 }
2524
2525 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
2526 static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) {
2527 PyObject * _resultobj;
2528 bool _result;
2529 wxWindow * _arg0;
2530 wxWindow * _arg1;
2531 wxString * _arg2;
2532 wxResourceTable * _arg3 = (wxResourceTable *) NULL;
2533 PyObject * _argo0 = 0;
2534 PyObject * _argo1 = 0;
2535 PyObject * _obj2 = 0;
2536 PyObject * _argo3 = 0;
2537 char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL };
2538
2539 self = self;
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3))
2541 return NULL;
2542 if (_argo0) {
2543 if (_argo0 == Py_None) { _arg0 = NULL; }
2544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2546 return NULL;
2547 }
2548 }
2549 if (_argo1) {
2550 if (_argo1 == Py_None) { _arg1 = NULL; }
2551 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2552 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2553 return NULL;
2554 }
2555 }
2556 {
2557 if (!PyString_Check(_obj2)) {
2558 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2559 return NULL;
2560 }
2561 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2562 }
2563 if (_argo3) {
2564 if (_argo3 == Py_None) { _arg3 = NULL; }
2565 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) {
2566 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
2567 return NULL;
2568 }
2569 }
2570 {
2571 wxPy_BEGIN_ALLOW_THREADS;
2572 _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3);
2573
2574 wxPy_END_ALLOW_THREADS;
2575 } _resultobj = Py_BuildValue("i",_result);
2576 {
2577 if (_obj2)
2578 delete _arg2;
2579 }
2580 return _resultobj;
2581 }
2582
2583 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
2584 static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
2585 PyObject * _resultobj;
2586 wxWindow * _arg0;
2587 PyObject * _argo0 = 0;
2588 char *_kwnames[] = { "self", NULL };
2589
2590 self = self;
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0))
2592 return NULL;
2593 if (_argo0) {
2594 if (_argo0 == Py_None) { _arg0 = NULL; }
2595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
2597 return NULL;
2598 }
2599 }
2600 {
2601 wxPy_BEGIN_ALLOW_THREADS;
2602 wxWindow_Lower(_arg0);
2603
2604 wxPy_END_ALLOW_THREADS;
2605 } Py_INCREF(Py_None);
2606 _resultobj = Py_None;
2607 return _resultobj;
2608 }
2609
2610 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
2611 static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2612 PyObject * _resultobj;
2613 wxWindow * _arg0;
2614 bool _arg1;
2615 PyObject * _argo0 = 0;
2616 int tempbool1;
2617 char *_kwnames[] = { "self","flag", NULL };
2618
2619 self = self;
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1))
2621 return NULL;
2622 if (_argo0) {
2623 if (_argo0 == Py_None) { _arg0 = NULL; }
2624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
2626 return NULL;
2627 }
2628 }
2629 _arg1 = (bool ) tempbool1;
2630 {
2631 wxPy_BEGIN_ALLOW_THREADS;
2632 wxWindow_MakeModal(_arg0,_arg1);
2633
2634 wxPy_END_ALLOW_THREADS;
2635 } Py_INCREF(Py_None);
2636 _resultobj = Py_None;
2637 return _resultobj;
2638 }
2639
2640 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
2641 static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2642 PyObject * _resultobj;
2643 wxWindow * _arg0;
2644 int _arg1;
2645 int _arg2;
2646 PyObject * _argo0 = 0;
2647 char *_kwnames[] = { "self","x","y", NULL };
2648
2649 self = self;
2650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2))
2651 return NULL;
2652 if (_argo0) {
2653 if (_argo0 == Py_None) { _arg0 = NULL; }
2654 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2655 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
2656 return NULL;
2657 }
2658 }
2659 {
2660 wxPy_BEGIN_ALLOW_THREADS;
2661 wxWindow_MoveXY(_arg0,_arg1,_arg2);
2662
2663 wxPy_END_ALLOW_THREADS;
2664 } Py_INCREF(Py_None);
2665 _resultobj = Py_None;
2666 return _resultobj;
2667 }
2668
2669 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
2670 static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
2671 PyObject * _resultobj;
2672 wxWindow * _arg0;
2673 wxPoint * _arg1;
2674 PyObject * _argo0 = 0;
2675 wxPoint temp;
2676 PyObject * _obj1 = 0;
2677 char *_kwnames[] = { "self","point", NULL };
2678
2679 self = self;
2680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1))
2681 return NULL;
2682 if (_argo0) {
2683 if (_argo0 == Py_None) { _arg0 = NULL; }
2684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
2686 return NULL;
2687 }
2688 }
2689 {
2690 _arg1 = &temp;
2691 if (! wxPoint_helper(_obj1, &_arg1))
2692 return NULL;
2693 }
2694 {
2695 wxPy_BEGIN_ALLOW_THREADS;
2696 wxWindow_Move(_arg0,*_arg1);
2697
2698 wxPy_END_ALLOW_THREADS;
2699 } Py_INCREF(Py_None);
2700 _resultobj = Py_None;
2701 return _resultobj;
2702 }
2703
2704 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
2705 static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2706 PyObject * _resultobj;
2707 wxEvtHandler * _result;
2708 wxWindow * _arg0;
2709 bool _arg1 = (bool ) FALSE;
2710 PyObject * _argo0 = 0;
2711 int tempbool1 = (int) FALSE;
2712 char *_kwnames[] = { "self","deleteHandler", NULL };
2713 char _ptemp[128];
2714
2715 self = self;
2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1))
2717 return NULL;
2718 if (_argo0) {
2719 if (_argo0 == Py_None) { _arg0 = NULL; }
2720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
2722 return NULL;
2723 }
2724 }
2725 _arg1 = (bool ) tempbool1;
2726 {
2727 wxPy_BEGIN_ALLOW_THREADS;
2728 _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1);
2729
2730 wxPy_END_ALLOW_THREADS;
2731 } if (_result) {
2732 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
2733 _resultobj = Py_BuildValue("s",_ptemp);
2734 } else {
2735 Py_INCREF(Py_None);
2736 _resultobj = Py_None;
2737 }
2738 return _resultobj;
2739 }
2740
2741 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
2742 static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2743 PyObject * _resultobj;
2744 wxWindow * _arg0;
2745 wxEvtHandler * _arg1;
2746 PyObject * _argo0 = 0;
2747 PyObject * _argo1 = 0;
2748 char *_kwnames[] = { "self","handler", NULL };
2749
2750 self = self;
2751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1))
2752 return NULL;
2753 if (_argo0) {
2754 if (_argo0 == Py_None) { _arg0 = NULL; }
2755 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2756 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
2757 return NULL;
2758 }
2759 }
2760 if (_argo1) {
2761 if (_argo1 == Py_None) { _arg1 = NULL; }
2762 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
2763 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
2764 return NULL;
2765 }
2766 }
2767 {
2768 wxPy_BEGIN_ALLOW_THREADS;
2769 wxWindow_PushEventHandler(_arg0,_arg1);
2770
2771 wxPy_END_ALLOW_THREADS;
2772 } Py_INCREF(Py_None);
2773 _resultobj = Py_None;
2774 return _resultobj;
2775 }
2776
2777 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
2778 static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2779 PyObject * _resultobj;
2780 bool _result;
2781 wxWindow * _arg0;
2782 wxMenu * _arg1;
2783 int _arg2;
2784 int _arg3;
2785 PyObject * _argo0 = 0;
2786 PyObject * _argo1 = 0;
2787 char *_kwnames[] = { "self","menu","x","y", NULL };
2788
2789 self = self;
2790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
2791 return NULL;
2792 if (_argo0) {
2793 if (_argo0 == Py_None) { _arg0 = NULL; }
2794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
2796 return NULL;
2797 }
2798 }
2799 if (_argo1) {
2800 if (_argo1 == Py_None) { _arg1 = NULL; }
2801 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
2802 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
2803 return NULL;
2804 }
2805 }
2806 {
2807 wxPy_BEGIN_ALLOW_THREADS;
2808 _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3);
2809
2810 wxPy_END_ALLOW_THREADS;
2811 } _resultobj = Py_BuildValue("i",_result);
2812 return _resultobj;
2813 }
2814
2815 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
2816 static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
2817 PyObject * _resultobj;
2818 bool _result;
2819 wxWindow * _arg0;
2820 wxMenu * _arg1;
2821 wxPoint * _arg2;
2822 PyObject * _argo0 = 0;
2823 PyObject * _argo1 = 0;
2824 wxPoint temp;
2825 PyObject * _obj2 = 0;
2826 char *_kwnames[] = { "self","menu","pos", NULL };
2827
2828 self = self;
2829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2))
2830 return NULL;
2831 if (_argo0) {
2832 if (_argo0 == Py_None) { _arg0 = NULL; }
2833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
2835 return NULL;
2836 }
2837 }
2838 if (_argo1) {
2839 if (_argo1 == Py_None) { _arg1 = NULL; }
2840 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
2841 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
2842 return NULL;
2843 }
2844 }
2845 {
2846 _arg2 = &temp;
2847 if (! wxPoint_helper(_obj2, &_arg2))
2848 return NULL;
2849 }
2850 {
2851 wxPy_BEGIN_ALLOW_THREADS;
2852 _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2);
2853
2854 wxPy_END_ALLOW_THREADS;
2855 } _resultobj = Py_BuildValue("i",_result);
2856 return _resultobj;
2857 }
2858
2859 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
2860 static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
2861 PyObject * _resultobj;
2862 wxWindow * _arg0;
2863 PyObject * _argo0 = 0;
2864 char *_kwnames[] = { "self", NULL };
2865
2866 self = self;
2867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0))
2868 return NULL;
2869 if (_argo0) {
2870 if (_argo0 == Py_None) { _arg0 = NULL; }
2871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
2873 return NULL;
2874 }
2875 }
2876 {
2877 wxPy_BEGIN_ALLOW_THREADS;
2878 wxWindow_Raise(_arg0);
2879
2880 wxPy_END_ALLOW_THREADS;
2881 } Py_INCREF(Py_None);
2882 _resultobj = Py_None;
2883 return _resultobj;
2884 }
2885
2886 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
2887 static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
2888 PyObject * _resultobj;
2889 wxWindow * _arg0;
2890 bool _arg1 = (bool ) TRUE;
2891 wxRect * _arg2 = (wxRect *) NULL;
2892 PyObject * _argo0 = 0;
2893 int tempbool1 = (int) TRUE;
2894 wxRect temp;
2895 PyObject * _obj2 = 0;
2896 char *_kwnames[] = { "self","eraseBackground","rect", NULL };
2897
2898 self = self;
2899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2))
2900 return NULL;
2901 if (_argo0) {
2902 if (_argo0 == Py_None) { _arg0 = NULL; }
2903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
2905 return NULL;
2906 }
2907 }
2908 _arg1 = (bool ) tempbool1;
2909 if (_obj2)
2910 {
2911 _arg2 = &temp;
2912 if (! wxRect_helper(_obj2, &_arg2))
2913 return NULL;
2914 }
2915 {
2916 wxPy_BEGIN_ALLOW_THREADS;
2917 wxWindow_Refresh(_arg0,_arg1,_arg2);
2918
2919 wxPy_END_ALLOW_THREADS;
2920 } Py_INCREF(Py_None);
2921 _resultobj = Py_None;
2922 return _resultobj;
2923 }
2924
2925 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
2926 static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
2927 PyObject * _resultobj;
2928 wxWindow * _arg0;
2929 PyObject * _argo0 = 0;
2930 char *_kwnames[] = { "self", NULL };
2931
2932 self = self;
2933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0))
2934 return NULL;
2935 if (_argo0) {
2936 if (_argo0 == Py_None) { _arg0 = NULL; }
2937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
2939 return NULL;
2940 }
2941 }
2942 {
2943 wxPy_BEGIN_ALLOW_THREADS;
2944 wxWindow_ReleaseMouse(_arg0);
2945
2946 wxPy_END_ALLOW_THREADS;
2947 } Py_INCREF(Py_None);
2948 _resultobj = Py_None;
2949 return _resultobj;
2950 }
2951
2952 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
2953 static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
2954 PyObject * _resultobj;
2955 bool _result;
2956 wxWindow * _arg0;
2957 wxWindow * _arg1;
2958 PyObject * _argo0 = 0;
2959 PyObject * _argo1 = 0;
2960 char *_kwnames[] = { "self","newParent", NULL };
2961
2962 self = self;
2963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1))
2964 return NULL;
2965 if (_argo0) {
2966 if (_argo0 == Py_None) { _arg0 = NULL; }
2967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
2969 return NULL;
2970 }
2971 }
2972 if (_argo1) {
2973 if (_argo1 == Py_None) { _arg1 = NULL; }
2974 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2975 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
2976 return NULL;
2977 }
2978 }
2979 {
2980 wxPy_BEGIN_ALLOW_THREADS;
2981 _result = (bool )wxWindow_Reparent(_arg0,_arg1);
2982
2983 wxPy_END_ALLOW_THREADS;
2984 } _resultobj = Py_BuildValue("i",_result);
2985 return _resultobj;
2986 }
2987
2988 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
2989 static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject * _resultobj;
2991 wxWindow * _arg0;
2992 int * _arg1;
2993 int * _arg2;
2994 PyObject * _argo0 = 0;
2995 int temp;
2996 PyObject * _obj1 = 0;
2997 int temp0;
2998 PyObject * _obj2 = 0;
2999 char *_kwnames[] = { "self","x","y", NULL };
3000
3001 self = self;
3002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2))
3003 return NULL;
3004 if (_argo0) {
3005 if (_argo0 == Py_None) { _arg0 = NULL; }
3006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3008 return NULL;
3009 }
3010 }
3011 {
3012 temp = (int) PyInt_AsLong(_obj1);
3013 _arg1 = &temp;
3014 }
3015 {
3016 temp0 = (int) PyInt_AsLong(_obj2);
3017 _arg2 = &temp0;
3018 }
3019 {
3020 wxPy_BEGIN_ALLOW_THREADS;
3021 wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2);
3022
3023 wxPy_END_ALLOW_THREADS;
3024 } Py_INCREF(Py_None);
3025 _resultobj = Py_None;
3026 {
3027 PyObject *o;
3028 o = PyInt_FromLong((long) (*_arg1));
3029 _resultobj = t_output_helper(_resultobj, o);
3030 }
3031 {
3032 PyObject *o;
3033 o = PyInt_FromLong((long) (*_arg2));
3034 _resultobj = t_output_helper(_resultobj, o);
3035 }
3036 return _resultobj;
3037 }
3038
3039 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3040 static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
3041 PyObject * _resultobj;
3042 wxPoint * _result;
3043 wxWindow * _arg0;
3044 wxPoint * _arg1;
3045 PyObject * _argo0 = 0;
3046 wxPoint temp;
3047 PyObject * _obj1 = 0;
3048 char *_kwnames[] = { "self","pt", NULL };
3049 char _ptemp[128];
3050
3051 self = self;
3052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1))
3053 return NULL;
3054 if (_argo0) {
3055 if (_argo0 == Py_None) { _arg0 = NULL; }
3056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3058 return NULL;
3059 }
3060 }
3061 {
3062 _arg1 = &temp;
3063 if (! wxPoint_helper(_obj1, &_arg1))
3064 return NULL;
3065 }
3066 {
3067 wxPy_BEGIN_ALLOW_THREADS;
3068 _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1));
3069
3070 wxPy_END_ALLOW_THREADS;
3071 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3072 _resultobj = Py_BuildValue("s",_ptemp);
3073 return _resultobj;
3074 }
3075
3076 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3077 static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3078 PyObject * _resultobj;
3079 wxWindow * _arg0;
3080 int _arg1;
3081 int _arg2;
3082 wxRect * _arg3 = (wxRect *) NULL;
3083 PyObject * _argo0 = 0;
3084 wxRect temp;
3085 PyObject * _obj3 = 0;
3086 char *_kwnames[] = { "self","dx","dy","rect", NULL };
3087
3088 self = self;
3089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
3090 return NULL;
3091 if (_argo0) {
3092 if (_argo0 == Py_None) { _arg0 = NULL; }
3093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3095 return NULL;
3096 }
3097 }
3098 if (_obj3)
3099 {
3100 _arg3 = &temp;
3101 if (! wxRect_helper(_obj3, &_arg3))
3102 return NULL;
3103 }
3104 {
3105 wxPy_BEGIN_ALLOW_THREADS;
3106 wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3);
3107
3108 wxPy_END_ALLOW_THREADS;
3109 } Py_INCREF(Py_None);
3110 _resultobj = Py_None;
3111 return _resultobj;
3112 }
3113
3114 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
3115 static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
3116 PyObject * _resultobj;
3117 wxWindow * _arg0;
3118 wxAcceleratorTable * _arg1;
3119 PyObject * _argo0 = 0;
3120 PyObject * _argo1 = 0;
3121 char *_kwnames[] = { "self","accel", NULL };
3122
3123 self = self;
3124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
3125 return NULL;
3126 if (_argo0) {
3127 if (_argo0 == Py_None) { _arg0 = NULL; }
3128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
3130 return NULL;
3131 }
3132 }
3133 if (_argo1) {
3134 if (_argo1 == Py_None) { _arg1 = NULL; }
3135 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
3136 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
3137 return NULL;
3138 }
3139 }
3140 {
3141 wxPy_BEGIN_ALLOW_THREADS;
3142 wxWindow_SetAcceleratorTable(_arg0,*_arg1);
3143
3144 wxPy_END_ALLOW_THREADS;
3145 } Py_INCREF(Py_None);
3146 _resultobj = Py_None;
3147 return _resultobj;
3148 }
3149
3150 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3151 static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3152 PyObject * _resultobj;
3153 wxWindow * _arg0;
3154 bool _arg1;
3155 PyObject * _argo0 = 0;
3156 int tempbool1;
3157 char *_kwnames[] = { "self","autoLayout", NULL };
3158
3159 self = self;
3160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1))
3161 return NULL;
3162 if (_argo0) {
3163 if (_argo0 == Py_None) { _arg0 = NULL; }
3164 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3165 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
3166 return NULL;
3167 }
3168 }
3169 _arg1 = (bool ) tempbool1;
3170 {
3171 wxPy_BEGIN_ALLOW_THREADS;
3172 wxWindow_SetAutoLayout(_arg0,_arg1);
3173
3174 wxPy_END_ALLOW_THREADS;
3175 } Py_INCREF(Py_None);
3176 _resultobj = Py_None;
3177 return _resultobj;
3178 }
3179
3180 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3181 static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3182 PyObject * _resultobj;
3183 bool _result;
3184 wxWindow * _arg0;
3185 PyObject * _argo0 = 0;
3186 char *_kwnames[] = { "self", NULL };
3187
3188 self = self;
3189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0))
3190 return NULL;
3191 if (_argo0) {
3192 if (_argo0 == Py_None) { _arg0 = NULL; }
3193 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3194 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3195 return NULL;
3196 }
3197 }
3198 {
3199 wxPy_BEGIN_ALLOW_THREADS;
3200 _result = (bool )wxWindow_GetAutoLayout(_arg0);
3201
3202 wxPy_END_ALLOW_THREADS;
3203 } _resultobj = Py_BuildValue("i",_result);
3204 return _resultobj;
3205 }
3206
3207 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3208 static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3209 PyObject * _resultobj;
3210 wxWindow * _arg0;
3211 wxColour * _arg1;
3212 PyObject * _argo0 = 0;
3213 PyObject * _argo1 = 0;
3214 char *_kwnames[] = { "self","colour", NULL };
3215
3216 self = self;
3217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_argo1))
3218 return NULL;
3219 if (_argo0) {
3220 if (_argo0 == Py_None) { _arg0 = NULL; }
3221 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3223 return NULL;
3224 }
3225 }
3226 if (_argo1) {
3227 if (_argo1 == Py_None) { _arg1 = NULL; }
3228 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
3229 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetBackgroundColour. Expected _wxColour_p.");
3230 return NULL;
3231 }
3232 }
3233 {
3234 wxPy_BEGIN_ALLOW_THREADS;
3235 wxWindow_SetBackgroundColour(_arg0,*_arg1);
3236
3237 wxPy_END_ALLOW_THREADS;
3238 } Py_INCREF(Py_None);
3239 _resultobj = Py_None;
3240 return _resultobj;
3241 }
3242
3243 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3244 static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
3245 PyObject * _resultobj;
3246 wxWindow * _arg0;
3247 wxLayoutConstraints * _arg1;
3248 PyObject * _argo0 = 0;
3249 PyObject * _argo1 = 0;
3250 char *_kwnames[] = { "self","constraints", NULL };
3251
3252 self = self;
3253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1))
3254 return NULL;
3255 if (_argo0) {
3256 if (_argo0 == Py_None) { _arg0 = NULL; }
3257 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3259 return NULL;
3260 }
3261 }
3262 if (_argo1) {
3263 if (_argo1 == Py_None) { _arg1 = NULL; }
3264 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
3265 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3266 return NULL;
3267 }
3268 }
3269 {
3270 wxPy_BEGIN_ALLOW_THREADS;
3271 wxWindow_SetConstraints(_arg0,_arg1);
3272
3273 wxPy_END_ALLOW_THREADS;
3274 } Py_INCREF(Py_None);
3275 _resultobj = Py_None;
3276 return _resultobj;
3277 }
3278
3279 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3280 static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
3281 PyObject * _resultobj;
3282 wxWindow * _arg0;
3283 wxLayoutConstraints * _arg1;
3284 PyObject * _argo0 = 0;
3285 PyObject * _argo1 = 0;
3286 char *_kwnames[] = { "self","constraints", NULL };
3287
3288 self = self;
3289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1))
3290 return NULL;
3291 if (_argo0) {
3292 if (_argo0 == Py_None) { _arg0 = NULL; }
3293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3295 return NULL;
3296 }
3297 }
3298 if (_argo1) {
3299 if (_argo1 == Py_None) { _arg1 = NULL; }
3300 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
3301 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3302 return NULL;
3303 }
3304 }
3305 {
3306 wxPy_BEGIN_ALLOW_THREADS;
3307 wxWindow_UnsetConstraints(_arg0,_arg1);
3308
3309 wxPy_END_ALLOW_THREADS;
3310 } Py_INCREF(Py_None);
3311 _resultobj = Py_None;
3312 return _resultobj;
3313 }
3314
3315 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3316 static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
3317 PyObject * _resultobj;
3318 wxWindow * _arg0;
3319 PyObject * _argo0 = 0;
3320 char *_kwnames[] = { "self", NULL };
3321
3322 self = self;
3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0))
3324 return NULL;
3325 if (_argo0) {
3326 if (_argo0 == Py_None) { _arg0 = NULL; }
3327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3329 return NULL;
3330 }
3331 }
3332 {
3333 wxPy_BEGIN_ALLOW_THREADS;
3334 wxWindow_SetFocus(_arg0);
3335
3336 wxPy_END_ALLOW_THREADS;
3337 } Py_INCREF(Py_None);
3338 _resultobj = Py_None;
3339 return _resultobj;
3340 }
3341
3342 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3343 static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
3344 PyObject * _resultobj;
3345 bool _result;
3346 wxWindow * _arg0;
3347 PyObject * _argo0 = 0;
3348 char *_kwnames[] = { "self", NULL };
3349
3350 self = self;
3351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0))
3352 return NULL;
3353 if (_argo0) {
3354 if (_argo0 == Py_None) { _arg0 = NULL; }
3355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3357 return NULL;
3358 }
3359 }
3360 {
3361 wxPy_BEGIN_ALLOW_THREADS;
3362 _result = (bool )wxWindow_AcceptsFocus(_arg0);
3363
3364 wxPy_END_ALLOW_THREADS;
3365 } _resultobj = Py_BuildValue("i",_result);
3366 return _resultobj;
3367 }
3368
3369 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3370 static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3371 PyObject * _resultobj;
3372 wxWindow * _arg0;
3373 wxFont * _arg1;
3374 PyObject * _argo0 = 0;
3375 PyObject * _argo1 = 0;
3376 char *_kwnames[] = { "self","font", NULL };
3377
3378 self = self;
3379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1))
3380 return NULL;
3381 if (_argo0) {
3382 if (_argo0 == Py_None) { _arg0 = NULL; }
3383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3385 return NULL;
3386 }
3387 }
3388 if (_argo1) {
3389 if (_argo1 == Py_None) { _arg1 = NULL; }
3390 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
3391 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3392 return NULL;
3393 }
3394 }
3395 {
3396 wxPy_BEGIN_ALLOW_THREADS;
3397 wxWindow_SetFont(_arg0,*_arg1);
3398
3399 wxPy_END_ALLOW_THREADS;
3400 } Py_INCREF(Py_None);
3401 _resultobj = Py_None;
3402 return _resultobj;
3403 }
3404
3405 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3406 static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3407 PyObject * _resultobj;
3408 wxWindow * _arg0;
3409 wxColour * _arg1;
3410 PyObject * _argo0 = 0;
3411 PyObject * _argo1 = 0;
3412 char *_kwnames[] = { "self","colour", NULL };
3413
3414 self = self;
3415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_argo1))
3416 return NULL;
3417 if (_argo0) {
3418 if (_argo0 == Py_None) { _arg0 = NULL; }
3419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3421 return NULL;
3422 }
3423 }
3424 if (_argo1) {
3425 if (_argo1 == Py_None) { _arg1 = NULL; }
3426 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
3427 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetForegroundColour. Expected _wxColour_p.");
3428 return NULL;
3429 }
3430 }
3431 {
3432 wxPy_BEGIN_ALLOW_THREADS;
3433 wxWindow_SetForegroundColour(_arg0,*_arg1);
3434
3435 wxPy_END_ALLOW_THREADS;
3436 } Py_INCREF(Py_None);
3437 _resultobj = Py_None;
3438 return _resultobj;
3439 }
3440
3441 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3442 static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
3443 PyObject * _resultobj;
3444 wxWindow * _arg0;
3445 int _arg1;
3446 PyObject * _argo0 = 0;
3447 char *_kwnames[] = { "self","id", NULL };
3448
3449 self = self;
3450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1))
3451 return NULL;
3452 if (_argo0) {
3453 if (_argo0 == Py_None) { _arg0 = NULL; }
3454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
3456 return NULL;
3457 }
3458 }
3459 {
3460 wxPy_BEGIN_ALLOW_THREADS;
3461 wxWindow_SetId(_arg0,_arg1);
3462
3463 wxPy_END_ALLOW_THREADS;
3464 } Py_INCREF(Py_None);
3465 _resultobj = Py_None;
3466 return _resultobj;
3467 }
3468
3469 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
3470 static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
3471 PyObject * _resultobj;
3472 wxWindow * _arg0;
3473 wxString * _arg1;
3474 PyObject * _argo0 = 0;
3475 PyObject * _obj1 = 0;
3476 char *_kwnames[] = { "self","name", NULL };
3477
3478 self = self;
3479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1))
3480 return NULL;
3481 if (_argo0) {
3482 if (_argo0 == Py_None) { _arg0 = NULL; }
3483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
3485 return NULL;
3486 }
3487 }
3488 {
3489 if (!PyString_Check(_obj1)) {
3490 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3491 return NULL;
3492 }
3493 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
3494 }
3495 {
3496 wxPy_BEGIN_ALLOW_THREADS;
3497 wxWindow_SetName(_arg0,*_arg1);
3498
3499 wxPy_END_ALLOW_THREADS;
3500 } Py_INCREF(Py_None);
3501 _resultobj = Py_None;
3502 {
3503 if (_obj1)
3504 delete _arg1;
3505 }
3506 return _resultobj;
3507 }
3508
3509 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3510 static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
3511 PyObject * _resultobj;
3512 wxWindow * _arg0;
3513 int _arg1;
3514 int _arg2;
3515 int _arg3;
3516 int _arg4;
3517 bool _arg5 = (bool ) TRUE;
3518 PyObject * _argo0 = 0;
3519 int tempbool5 = (int) TRUE;
3520 char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL };
3521
3522 self = self;
3523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
3524 return NULL;
3525 if (_argo0) {
3526 if (_argo0 == Py_None) { _arg0 = NULL; }
3527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
3529 return NULL;
3530 }
3531 }
3532 _arg5 = (bool ) tempbool5;
3533 {
3534 wxPy_BEGIN_ALLOW_THREADS;
3535 wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3536
3537 wxPy_END_ALLOW_THREADS;
3538 } Py_INCREF(Py_None);
3539 _resultobj = Py_None;
3540 return _resultobj;
3541 }
3542
3543 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
3544 static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
3545 PyObject * _resultobj;
3546 wxWindow * _arg0;
3547 int _arg1;
3548 int _arg2;
3549 bool _arg3 = (bool ) TRUE;
3550 PyObject * _argo0 = 0;
3551 int tempbool3 = (int) TRUE;
3552 char *_kwnames[] = { "self","orientation","pos","refresh", NULL };
3553
3554 self = self;
3555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3))
3556 return NULL;
3557 if (_argo0) {
3558 if (_argo0 == Py_None) { _arg0 = NULL; }
3559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
3561 return NULL;
3562 }
3563 }
3564 _arg3 = (bool ) tempbool3;
3565 {
3566 wxPy_BEGIN_ALLOW_THREADS;
3567 wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3);
3568
3569 wxPy_END_ALLOW_THREADS;
3570 } Py_INCREF(Py_None);
3571 _resultobj = Py_None;
3572 return _resultobj;
3573 }
3574
3575 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3576 static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
3577 PyObject * _resultobj;
3578 wxWindow * _arg0;
3579 int _arg1;
3580 int _arg2;
3581 int _arg3;
3582 int _arg4;
3583 int _arg5 = (int ) wxSIZE_AUTO;
3584 PyObject * _argo0 = 0;
3585 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
3586
3587 self = self;
3588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
3589 return NULL;
3590 if (_argo0) {
3591 if (_argo0 == Py_None) { _arg0 = NULL; }
3592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
3594 return NULL;
3595 }
3596 }
3597 {
3598 wxPy_BEGIN_ALLOW_THREADS;
3599 wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3600
3601 wxPy_END_ALLOW_THREADS;
3602 } Py_INCREF(Py_None);
3603 _resultobj = Py_None;
3604 return _resultobj;
3605 }
3606
3607 static void wxWindow_SetSize(wxWindow *self,const wxSize & size) {
3608 self->SetSize(size.x, size.y);
3609 }
3610 static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3611 PyObject * _resultobj;
3612 wxWindow * _arg0;
3613 wxSize * _arg1;
3614 PyObject * _argo0 = 0;
3615 wxSize temp;
3616 PyObject * _obj1 = 0;
3617 char *_kwnames[] = { "self","size", NULL };
3618
3619 self = self;
3620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1))
3621 return NULL;
3622 if (_argo0) {
3623 if (_argo0 == Py_None) { _arg0 = NULL; }
3624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
3626 return NULL;
3627 }
3628 }
3629 {
3630 _arg1 = &temp;
3631 if (! wxSize_helper(_obj1, &_arg1))
3632 return NULL;
3633 }
3634 {
3635 wxPy_BEGIN_ALLOW_THREADS;
3636 wxWindow_SetSize(_arg0,*_arg1);
3637
3638 wxPy_END_ALLOW_THREADS;
3639 } Py_INCREF(Py_None);
3640 _resultobj = Py_None;
3641 return _resultobj;
3642 }
3643
3644 static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) {
3645 self->SetSize(pos.x, pos.y, -1, -1);
3646 }
3647 static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3648 PyObject * _resultobj;
3649 wxWindow * _arg0;
3650 wxPoint * _arg1;
3651 PyObject * _argo0 = 0;
3652 wxPoint temp;
3653 PyObject * _obj1 = 0;
3654 char *_kwnames[] = { "self","pos", NULL };
3655
3656 self = self;
3657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1))
3658 return NULL;
3659 if (_argo0) {
3660 if (_argo0 == Py_None) { _arg0 = NULL; }
3661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
3663 return NULL;
3664 }
3665 }
3666 {
3667 _arg1 = &temp;
3668 if (! wxPoint_helper(_obj1, &_arg1))
3669 return NULL;
3670 }
3671 {
3672 wxPy_BEGIN_ALLOW_THREADS;
3673 wxWindow_SetPosition(_arg0,*_arg1);
3674
3675 wxPy_END_ALLOW_THREADS;
3676 } Py_INCREF(Py_None);
3677 _resultobj = Py_None;
3678 return _resultobj;
3679 }
3680
3681 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3682 static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
3683 PyObject * _resultobj;
3684 wxWindow * _arg0;
3685 int _arg1 = (int ) -1;
3686 int _arg2 = (int ) -1;
3687 int _arg3 = (int ) -1;
3688 int _arg4 = (int ) -1;
3689 int _arg5 = (int ) -1;
3690 int _arg6 = (int ) -1;
3691 PyObject * _argo0 = 0;
3692 char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL };
3693
3694 self = self;
3695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3696 return NULL;
3697 if (_argo0) {
3698 if (_argo0 == Py_None) { _arg0 = NULL; }
3699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
3701 return NULL;
3702 }
3703 }
3704 {
3705 wxPy_BEGIN_ALLOW_THREADS;
3706 wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3707
3708 wxPy_END_ALLOW_THREADS;
3709 } Py_INCREF(Py_None);
3710 _resultobj = Py_None;
3711 return _resultobj;
3712 }
3713
3714 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
3715 static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
3716 PyObject * _resultobj;
3717 wxWindow * _arg0;
3718 int _arg1;
3719 int _arg2;
3720 PyObject * _argo0 = 0;
3721 char *_kwnames[] = { "self","width","height", NULL };
3722
3723 self = self;
3724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
3725 return NULL;
3726 if (_argo0) {
3727 if (_argo0 == Py_None) { _arg0 = NULL; }
3728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
3730 return NULL;
3731 }
3732 }
3733 {
3734 wxPy_BEGIN_ALLOW_THREADS;
3735 wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2);
3736
3737 wxPy_END_ALLOW_THREADS;
3738 } Py_INCREF(Py_None);
3739 _resultobj = Py_None;
3740 return _resultobj;
3741 }
3742
3743 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
3744 static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3745 PyObject * _resultobj;
3746 wxWindow * _arg0;
3747 wxSize * _arg1;
3748 PyObject * _argo0 = 0;
3749 wxSize temp;
3750 PyObject * _obj1 = 0;
3751 char *_kwnames[] = { "self","size", NULL };
3752
3753 self = self;
3754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1))
3755 return NULL;
3756 if (_argo0) {
3757 if (_argo0 == Py_None) { _arg0 = NULL; }
3758 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3759 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
3760 return NULL;
3761 }
3762 }
3763 {
3764 _arg1 = &temp;
3765 if (! wxSize_helper(_obj1, &_arg1))
3766 return NULL;
3767 }
3768 {
3769 wxPy_BEGIN_ALLOW_THREADS;
3770 wxWindow_SetClientSize(_arg0,*_arg1);
3771
3772 wxPy_END_ALLOW_THREADS;
3773 } Py_INCREF(Py_None);
3774 _resultobj = Py_None;
3775 return _resultobj;
3776 }
3777
3778 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
3779 static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3780 PyObject * _resultobj;
3781 wxWindow * _arg0;
3782 wxCursor * _arg1;
3783 PyObject * _argo0 = 0;
3784 PyObject * _argo1 = 0;
3785 char *_kwnames[] = { "self","cursor", NULL };
3786
3787 self = self;
3788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1))
3789 return NULL;
3790 if (_argo0) {
3791 if (_argo0 == Py_None) { _arg0 = NULL; }
3792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
3794 return NULL;
3795 }
3796 }
3797 if (_argo1) {
3798 if (_argo1 == Py_None) { _arg1 = NULL; }
3799 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3800 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
3801 return NULL;
3802 }
3803 }
3804 {
3805 wxPy_BEGIN_ALLOW_THREADS;
3806 wxWindow_SetCursor(_arg0,*_arg1);
3807
3808 wxPy_END_ALLOW_THREADS;
3809 } Py_INCREF(Py_None);
3810 _resultobj = Py_None;
3811 return _resultobj;
3812 }
3813
3814 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
3815 static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3816 PyObject * _resultobj;
3817 wxWindow * _arg0;
3818 wxEvtHandler * _arg1;
3819 PyObject * _argo0 = 0;
3820 PyObject * _argo1 = 0;
3821 char *_kwnames[] = { "self","handler", NULL };
3822
3823 self = self;
3824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1))
3825 return NULL;
3826 if (_argo0) {
3827 if (_argo0 == Py_None) { _arg0 = NULL; }
3828 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3829 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
3830 return NULL;
3831 }
3832 }
3833 if (_argo1) {
3834 if (_argo1 == Py_None) { _arg1 = NULL; }
3835 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
3836 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
3837 return NULL;
3838 }
3839 }
3840 {
3841 wxPy_BEGIN_ALLOW_THREADS;
3842 wxWindow_SetEventHandler(_arg0,_arg1);
3843
3844 wxPy_END_ALLOW_THREADS;
3845 } Py_INCREF(Py_None);
3846 _resultobj = Py_None;
3847 return _resultobj;
3848 }
3849
3850 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
3851 static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3852 PyObject * _resultobj;
3853 wxWindow * _arg0;
3854 wxString * _arg1;
3855 PyObject * _argo0 = 0;
3856 PyObject * _obj1 = 0;
3857 char *_kwnames[] = { "self","title", NULL };
3858
3859 self = self;
3860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1))
3861 return NULL;
3862 if (_argo0) {
3863 if (_argo0 == Py_None) { _arg0 = NULL; }
3864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
3866 return NULL;
3867 }
3868 }
3869 {
3870 if (!PyString_Check(_obj1)) {
3871 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3872 return NULL;
3873 }
3874 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
3875 }
3876 {
3877 wxPy_BEGIN_ALLOW_THREADS;
3878 wxWindow_SetTitle(_arg0,*_arg1);
3879
3880 wxPy_END_ALLOW_THREADS;
3881 } Py_INCREF(Py_None);
3882 _resultobj = Py_None;
3883 {
3884 if (_obj1)
3885 delete _arg1;
3886 }
3887 return _resultobj;
3888 }
3889
3890 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
3891 static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
3892 PyObject * _resultobj;
3893 bool _result;
3894 wxWindow * _arg0;
3895 bool _arg1;
3896 PyObject * _argo0 = 0;
3897 int tempbool1;
3898 char *_kwnames[] = { "self","show", NULL };
3899
3900 self = self;
3901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1))
3902 return NULL;
3903 if (_argo0) {
3904 if (_argo0 == Py_None) { _arg0 = NULL; }
3905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
3907 return NULL;
3908 }
3909 }
3910 _arg1 = (bool ) tempbool1;
3911 {
3912 wxPy_BEGIN_ALLOW_THREADS;
3913 _result = (bool )wxWindow_Show(_arg0,_arg1);
3914
3915 wxPy_END_ALLOW_THREADS;
3916 } _resultobj = Py_BuildValue("i",_result);
3917 return _resultobj;
3918 }
3919
3920 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
3921 static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject * _resultobj;
3923 bool _result;
3924 wxWindow * _arg0;
3925 PyObject * _argo0 = 0;
3926 char *_kwnames[] = { "self", NULL };
3927
3928 self = self;
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0))
3930 return NULL;
3931 if (_argo0) {
3932 if (_argo0 == Py_None) { _arg0 = NULL; }
3933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
3935 return NULL;
3936 }
3937 }
3938 {
3939 wxPy_BEGIN_ALLOW_THREADS;
3940 _result = (bool )wxWindow_TransferDataFromWindow(_arg0);
3941
3942 wxPy_END_ALLOW_THREADS;
3943 } _resultobj = Py_BuildValue("i",_result);
3944 return _resultobj;
3945 }
3946
3947 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
3948 static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3949 PyObject * _resultobj;
3950 bool _result;
3951 wxWindow * _arg0;
3952 PyObject * _argo0 = 0;
3953 char *_kwnames[] = { "self", NULL };
3954
3955 self = self;
3956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0))
3957 return NULL;
3958 if (_argo0) {
3959 if (_argo0 == Py_None) { _arg0 = NULL; }
3960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
3962 return NULL;
3963 }
3964 }
3965 {
3966 wxPy_BEGIN_ALLOW_THREADS;
3967 _result = (bool )wxWindow_TransferDataToWindow(_arg0);
3968
3969 wxPy_END_ALLOW_THREADS;
3970 } _resultobj = Py_BuildValue("i",_result);
3971 return _resultobj;
3972 }
3973
3974 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
3975 static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
3976 PyObject * _resultobj;
3977 bool _result;
3978 wxWindow * _arg0;
3979 PyObject * _argo0 = 0;
3980 char *_kwnames[] = { "self", NULL };
3981
3982 self = self;
3983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0))
3984 return NULL;
3985 if (_argo0) {
3986 if (_argo0 == Py_None) { _arg0 = NULL; }
3987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
3989 return NULL;
3990 }
3991 }
3992 {
3993 wxPy_BEGIN_ALLOW_THREADS;
3994 _result = (bool )wxWindow_Validate(_arg0);
3995
3996 wxPy_END_ALLOW_THREADS;
3997 } _resultobj = Py_BuildValue("i",_result);
3998 return _resultobj;
3999 }
4000
4001 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4002 static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
4003 PyObject * _resultobj;
4004 wxWindow * _arg0;
4005 int _arg1;
4006 int _arg2;
4007 PyObject * _argo0 = 0;
4008 char *_kwnames[] = { "self","x","y", NULL };
4009
4010 self = self;
4011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2))
4012 return NULL;
4013 if (_argo0) {
4014 if (_argo0 == Py_None) { _arg0 = NULL; }
4015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4017 return NULL;
4018 }
4019 }
4020 {
4021 wxPy_BEGIN_ALLOW_THREADS;
4022 wxWindow_WarpPointer(_arg0,_arg1,_arg2);
4023
4024 wxPy_END_ALLOW_THREADS;
4025 } Py_INCREF(Py_None);
4026 _resultobj = Py_None;
4027 return _resultobj;
4028 }
4029
4030 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4031 static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4032 PyObject * _resultobj;
4033 wxPoint * _result;
4034 wxWindow * _arg0;
4035 wxPoint * _arg1;
4036 PyObject * _argo0 = 0;
4037 wxPoint temp;
4038 PyObject * _obj1 = 0;
4039 char *_kwnames[] = { "self","pt", NULL };
4040 char _ptemp[128];
4041
4042 self = self;
4043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1))
4044 return NULL;
4045 if (_argo0) {
4046 if (_argo0 == Py_None) { _arg0 = NULL; }
4047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4049 return NULL;
4050 }
4051 }
4052 {
4053 _arg1 = &temp;
4054 if (! wxPoint_helper(_obj1, &_arg1))
4055 return NULL;
4056 }
4057 {
4058 wxPy_BEGIN_ALLOW_THREADS;
4059 _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1));
4060
4061 wxPy_END_ALLOW_THREADS;
4062 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4063 _resultobj = Py_BuildValue("s",_ptemp);
4064 return _resultobj;
4065 }
4066
4067 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4068 static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4069 PyObject * _resultobj;
4070 wxSize * _result;
4071 wxWindow * _arg0;
4072 wxSize * _arg1;
4073 PyObject * _argo0 = 0;
4074 wxSize temp;
4075 PyObject * _obj1 = 0;
4076 char *_kwnames[] = { "self","sz", NULL };
4077 char _ptemp[128];
4078
4079 self = self;
4080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1))
4081 return NULL;
4082 if (_argo0) {
4083 if (_argo0 == Py_None) { _arg0 = NULL; }
4084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4086 return NULL;
4087 }
4088 }
4089 {
4090 _arg1 = &temp;
4091 if (! wxSize_helper(_obj1, &_arg1))
4092 return NULL;
4093 }
4094 {
4095 wxPy_BEGIN_ALLOW_THREADS;
4096 _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1));
4097
4098 wxPy_END_ALLOW_THREADS;
4099 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4100 _resultobj = Py_BuildValue("s",_ptemp);
4101 return _resultobj;
4102 }
4103
4104 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4105 static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4106 PyObject * _resultobj;
4107 wxPoint * _result;
4108 wxWindow * _arg0;
4109 wxPoint * _arg1;
4110 PyObject * _argo0 = 0;
4111 wxPoint temp;
4112 PyObject * _obj1 = 0;
4113 char *_kwnames[] = { "self","pt", NULL };
4114 char _ptemp[128];
4115
4116 self = self;
4117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1))
4118 return NULL;
4119 if (_argo0) {
4120 if (_argo0 == Py_None) { _arg0 = NULL; }
4121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4123 return NULL;
4124 }
4125 }
4126 {
4127 _arg1 = &temp;
4128 if (! wxPoint_helper(_obj1, &_arg1))
4129 return NULL;
4130 }
4131 {
4132 wxPy_BEGIN_ALLOW_THREADS;
4133 _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1));
4134
4135 wxPy_END_ALLOW_THREADS;
4136 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4137 _resultobj = Py_BuildValue("s",_ptemp);
4138 return _resultobj;
4139 }
4140
4141 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4142 static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4143 PyObject * _resultobj;
4144 wxSize * _result;
4145 wxWindow * _arg0;
4146 wxSize * _arg1;
4147 PyObject * _argo0 = 0;
4148 wxSize temp;
4149 PyObject * _obj1 = 0;
4150 char *_kwnames[] = { "self","sz", NULL };
4151 char _ptemp[128];
4152
4153 self = self;
4154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1))
4155 return NULL;
4156 if (_argo0) {
4157 if (_argo0 == Py_None) { _arg0 = NULL; }
4158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4160 return NULL;
4161 }
4162 }
4163 {
4164 _arg1 = &temp;
4165 if (! wxSize_helper(_obj1, &_arg1))
4166 return NULL;
4167 }
4168 {
4169 wxPy_BEGIN_ALLOW_THREADS;
4170 _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1));
4171
4172 wxPy_END_ALLOW_THREADS;
4173 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4174 _resultobj = Py_BuildValue("s",_ptemp);
4175 return _resultobj;
4176 }
4177
4178 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4179 static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
4180 PyObject * _resultobj;
4181 wxWindow * _arg0;
4182 wxString * _arg1;
4183 PyObject * _argo0 = 0;
4184 PyObject * _obj1 = 0;
4185 char *_kwnames[] = { "self","tip", NULL };
4186
4187 self = self;
4188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1))
4189 return NULL;
4190 if (_argo0) {
4191 if (_argo0 == Py_None) { _arg0 = NULL; }
4192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4194 return NULL;
4195 }
4196 }
4197 {
4198 if (!PyString_Check(_obj1)) {
4199 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4200 return NULL;
4201 }
4202 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4203 }
4204 {
4205 wxPy_BEGIN_ALLOW_THREADS;
4206 wxWindow_SetToolTipString(_arg0,*_arg1);
4207
4208 wxPy_END_ALLOW_THREADS;
4209 } Py_INCREF(Py_None);
4210 _resultobj = Py_None;
4211 {
4212 if (_obj1)
4213 delete _arg1;
4214 }
4215 return _resultobj;
4216 }
4217
4218 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4219 static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4220 PyObject * _resultobj;
4221 wxWindow * _arg0;
4222 wxToolTip * _arg1;
4223 PyObject * _argo0 = 0;
4224 PyObject * _argo1 = 0;
4225 char *_kwnames[] = { "self","tooltip", NULL };
4226
4227 self = self;
4228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1))
4229 return NULL;
4230 if (_argo0) {
4231 if (_argo0 == Py_None) { _arg0 = NULL; }
4232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4234 return NULL;
4235 }
4236 }
4237 if (_argo1) {
4238 if (_argo1 == Py_None) { _arg1 = NULL; }
4239 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) {
4240 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4241 return NULL;
4242 }
4243 }
4244 {
4245 wxPy_BEGIN_ALLOW_THREADS;
4246 wxWindow_SetToolTip(_arg0,_arg1);
4247
4248 wxPy_END_ALLOW_THREADS;
4249 } Py_INCREF(Py_None);
4250 _resultobj = Py_None;
4251 return _resultobj;
4252 }
4253
4254 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4255 static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4256 PyObject * _resultobj;
4257 wxToolTip * _result;
4258 wxWindow * _arg0;
4259 PyObject * _argo0 = 0;
4260 char *_kwnames[] = { "self", NULL };
4261 char _ptemp[128];
4262
4263 self = self;
4264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
4265 return NULL;
4266 if (_argo0) {
4267 if (_argo0 == Py_None) { _arg0 = NULL; }
4268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4270 return NULL;
4271 }
4272 }
4273 {
4274 wxPy_BEGIN_ALLOW_THREADS;
4275 _result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
4276
4277 wxPy_END_ALLOW_THREADS;
4278 } if (_result) {
4279 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p");
4280 _resultobj = Py_BuildValue("s",_ptemp);
4281 } else {
4282 Py_INCREF(Py_None);
4283 _resultobj = Py_None;
4284 }
4285 return _resultobj;
4286 }
4287
4288 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4289 static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
4290 PyObject * _resultobj;
4291 wxWindow * _arg0;
4292 wxSizer * _arg1;
4293 PyObject * _argo0 = 0;
4294 PyObject * _argo1 = 0;
4295 char *_kwnames[] = { "self","sizer", NULL };
4296
4297 self = self;
4298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1))
4299 return NULL;
4300 if (_argo0) {
4301 if (_argo0 == Py_None) { _arg0 = NULL; }
4302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4304 return NULL;
4305 }
4306 }
4307 if (_argo1) {
4308 if (_argo1 == Py_None) { _arg1 = NULL; }
4309 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
4310 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4311 return NULL;
4312 }
4313 }
4314 {
4315 wxPy_BEGIN_ALLOW_THREADS;
4316 wxWindow_SetSizer(_arg0,_arg1);
4317
4318 wxPy_END_ALLOW_THREADS;
4319 } Py_INCREF(Py_None);
4320 _resultobj = Py_None;
4321 return _resultobj;
4322 }
4323
4324 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
4325 static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
4326 PyObject * _resultobj;
4327 wxValidator * _result;
4328 wxWindow * _arg0;
4329 PyObject * _argo0 = 0;
4330 char *_kwnames[] = { "self", NULL };
4331 char _ptemp[128];
4332
4333 self = self;
4334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0))
4335 return NULL;
4336 if (_argo0) {
4337 if (_argo0 == Py_None) { _arg0 = NULL; }
4338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
4340 return NULL;
4341 }
4342 }
4343 {
4344 wxPy_BEGIN_ALLOW_THREADS;
4345 _result = (wxValidator *)wxWindow_GetValidator(_arg0);
4346
4347 wxPy_END_ALLOW_THREADS;
4348 } if (_result) {
4349 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
4350 _resultobj = Py_BuildValue("s",_ptemp);
4351 } else {
4352 Py_INCREF(Py_None);
4353 _resultobj = Py_None;
4354 }
4355 return _resultobj;
4356 }
4357
4358 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
4359 static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
4360 PyObject * _resultobj;
4361 wxWindow * _arg0;
4362 wxValidator * _arg1;
4363 PyObject * _argo0 = 0;
4364 PyObject * _argo1 = 0;
4365 char *_kwnames[] = { "self","validator", NULL };
4366
4367 self = self;
4368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1))
4369 return NULL;
4370 if (_argo0) {
4371 if (_argo0 == Py_None) { _arg0 = NULL; }
4372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
4374 return NULL;
4375 }
4376 }
4377 if (_argo1) {
4378 if (_argo1 == Py_None) { _arg1 = NULL; }
4379 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) {
4380 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
4381 return NULL;
4382 }
4383 }
4384 {
4385 wxPy_BEGIN_ALLOW_THREADS;
4386 wxWindow_SetValidator(_arg0,*_arg1);
4387
4388 wxPy_END_ALLOW_THREADS;
4389 } Py_INCREF(Py_None);
4390 _resultobj = Py_None;
4391 return _resultobj;
4392 }
4393
4394 static void *SwigwxPanelTowxWindow(void *ptr) {
4395 wxPanel *src;
4396 wxWindow *dest;
4397 src = (wxPanel *) ptr;
4398 dest = (wxWindow *) src;
4399 return (void *) dest;
4400 }
4401
4402 static void *SwigwxPanelTowxEvtHandler(void *ptr) {
4403 wxPanel *src;
4404 wxEvtHandler *dest;
4405 src = (wxPanel *) ptr;
4406 dest = (wxEvtHandler *) src;
4407 return (void *) dest;
4408 }
4409
4410 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4411 static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
4412 PyObject * _resultobj;
4413 wxPanel * _result;
4414 wxWindow * _arg0;
4415 wxWindowID _arg1;
4416 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
4417 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
4418 long _arg4 = (long ) wxTAB_TRAVERSAL;
4419 char * _arg5 = (char *) "panel";
4420 PyObject * _argo0 = 0;
4421 wxPoint temp;
4422 PyObject * _obj2 = 0;
4423 wxSize temp0;
4424 PyObject * _obj3 = 0;
4425 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
4426 char _ptemp[128];
4427
4428 self = self;
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
4430 return NULL;
4431 if (_argo0) {
4432 if (_argo0 == Py_None) { _arg0 = NULL; }
4433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
4435 return NULL;
4436 }
4437 }
4438 if (_obj2)
4439 {
4440 _arg2 = &temp;
4441 if (! wxPoint_helper(_obj2, &_arg2))
4442 return NULL;
4443 }
4444 if (_obj3)
4445 {
4446 _arg3 = &temp0;
4447 if (! wxSize_helper(_obj3, &_arg3))
4448 return NULL;
4449 }
4450 {
4451 wxPy_BEGIN_ALLOW_THREADS;
4452 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
4453
4454 wxPy_END_ALLOW_THREADS;
4455 } if (_result) {
4456 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
4457 _resultobj = Py_BuildValue("s",_ptemp);
4458 } else {
4459 Py_INCREF(Py_None);
4460 _resultobj = Py_None;
4461 }
4462 return _resultobj;
4463 }
4464
4465 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
4466 static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4467 PyObject * _resultobj;
4468 wxPanel * _arg0;
4469 PyObject * _argo0 = 0;
4470 char *_kwnames[] = { "self", NULL };
4471
4472 self = self;
4473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0))
4474 return NULL;
4475 if (_argo0) {
4476 if (_argo0 == Py_None) { _arg0 = NULL; }
4477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
4478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
4479 return NULL;
4480 }
4481 }
4482 {
4483 wxPy_BEGIN_ALLOW_THREADS;
4484 wxPanel_InitDialog(_arg0);
4485
4486 wxPy_END_ALLOW_THREADS;
4487 } Py_INCREF(Py_None);
4488 _resultobj = Py_None;
4489 return _resultobj;
4490 }
4491
4492 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
4493 static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4494 PyObject * _resultobj;
4495 wxButton * _result;
4496 wxPanel * _arg0;
4497 PyObject * _argo0 = 0;
4498 char *_kwnames[] = { "self", NULL };
4499 char _ptemp[128];
4500
4501 self = self;
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0))
4503 return NULL;
4504 if (_argo0) {
4505 if (_argo0 == Py_None) { _arg0 = NULL; }
4506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
4507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
4508 return NULL;
4509 }
4510 }
4511 {
4512 wxPy_BEGIN_ALLOW_THREADS;
4513 _result = (wxButton *)wxPanel_GetDefaultItem(_arg0);
4514
4515 wxPy_END_ALLOW_THREADS;
4516 } if (_result) {
4517 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
4518 _resultobj = Py_BuildValue("s",_ptemp);
4519 } else {
4520 Py_INCREF(Py_None);
4521 _resultobj = Py_None;
4522 }
4523 return _resultobj;
4524 }
4525
4526 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
4527 static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4528 PyObject * _resultobj;
4529 wxPanel * _arg0;
4530 wxButton * _arg1;
4531 PyObject * _argo0 = 0;
4532 PyObject * _argo1 = 0;
4533 char *_kwnames[] = { "self","btn", NULL };
4534
4535 self = self;
4536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1))
4537 return NULL;
4538 if (_argo0) {
4539 if (_argo0 == Py_None) { _arg0 = NULL; }
4540 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
4541 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
4542 return NULL;
4543 }
4544 }
4545 if (_argo1) {
4546 if (_argo1 == Py_None) { _arg1 = NULL; }
4547 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) {
4548 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
4549 return NULL;
4550 }
4551 }
4552 {
4553 wxPy_BEGIN_ALLOW_THREADS;
4554 wxPanel_SetDefaultItem(_arg0,_arg1);
4555
4556 wxPy_END_ALLOW_THREADS;
4557 } Py_INCREF(Py_None);
4558 _resultobj = Py_None;
4559 return _resultobj;
4560 }
4561
4562 static void *SwigwxDialogTowxPanel(void *ptr) {
4563 wxDialog *src;
4564 wxPanel *dest;
4565 src = (wxDialog *) ptr;
4566 dest = (wxPanel *) src;
4567 return (void *) dest;
4568 }
4569
4570 static void *SwigwxDialogTowxWindow(void *ptr) {
4571 wxDialog *src;
4572 wxWindow *dest;
4573 src = (wxDialog *) ptr;
4574 dest = (wxWindow *) src;
4575 return (void *) dest;
4576 }
4577
4578 static void *SwigwxDialogTowxEvtHandler(void *ptr) {
4579 wxDialog *src;
4580 wxEvtHandler *dest;
4581 src = (wxDialog *) ptr;
4582 dest = (wxEvtHandler *) src;
4583 return (void *) dest;
4584 }
4585
4586 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4587 static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4588 PyObject * _resultobj;
4589 wxDialog * _result;
4590 wxWindow * _arg0;
4591 wxWindowID _arg1;
4592 wxString * _arg2;
4593 wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition;
4594 wxSize * _arg4 = (wxSize *) &wxPyDefaultSize;
4595 long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE;
4596 char * _arg6 = (char *) "dialogBox";
4597 PyObject * _argo0 = 0;
4598 PyObject * _obj2 = 0;
4599 wxPoint temp;
4600 PyObject * _obj3 = 0;
4601 wxSize temp0;
4602 PyObject * _obj4 = 0;
4603 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
4604 char _ptemp[128];
4605
4606 self = self;
4607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
4608 return NULL;
4609 if (_argo0) {
4610 if (_argo0 == Py_None) { _arg0 = NULL; }
4611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
4613 return NULL;
4614 }
4615 }
4616 {
4617 if (!PyString_Check(_obj2)) {
4618 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4619 return NULL;
4620 }
4621 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
4622 }
4623 if (_obj3)
4624 {
4625 _arg3 = &temp;
4626 if (! wxPoint_helper(_obj3, &_arg3))
4627 return NULL;
4628 }
4629 if (_obj4)
4630 {
4631 _arg4 = &temp0;
4632 if (! wxSize_helper(_obj4, &_arg4))
4633 return NULL;
4634 }
4635 {
4636 wxPy_BEGIN_ALLOW_THREADS;
4637 _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
4638
4639 wxPy_END_ALLOW_THREADS;
4640 } if (_result) {
4641 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
4642 _resultobj = Py_BuildValue("s",_ptemp);
4643 } else {
4644 Py_INCREF(Py_None);
4645 _resultobj = Py_None;
4646 }
4647 {
4648 if (_obj2)
4649 delete _arg2;
4650 }
4651 return _resultobj;
4652 }
4653
4654 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
4655 static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
4656 PyObject * _resultobj;
4657 wxDialog * _arg0;
4658 int _arg1 = (int ) wxBOTH;
4659 PyObject * _argo0 = 0;
4660 char *_kwnames[] = { "self","direction", NULL };
4661
4662 self = self;
4663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1))
4664 return NULL;
4665 if (_argo0) {
4666 if (_argo0 == Py_None) { _arg0 = NULL; }
4667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
4669 return NULL;
4670 }
4671 }
4672 {
4673 wxPy_BEGIN_ALLOW_THREADS;
4674 wxDialog_Centre(_arg0,_arg1);
4675
4676 wxPy_END_ALLOW_THREADS;
4677 } Py_INCREF(Py_None);
4678 _resultobj = Py_None;
4679 return _resultobj;
4680 }
4681
4682 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
4683 static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4684 PyObject * _resultobj;
4685 wxDialog * _arg0;
4686 int _arg1;
4687 PyObject * _argo0 = 0;
4688 char *_kwnames[] = { "self","retCode", NULL };
4689
4690 self = self;
4691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1))
4692 return NULL;
4693 if (_argo0) {
4694 if (_argo0 == Py_None) { _arg0 = NULL; }
4695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
4697 return NULL;
4698 }
4699 }
4700 {
4701 wxPy_BEGIN_ALLOW_THREADS;
4702 wxDialog_EndModal(_arg0,_arg1);
4703
4704 wxPy_END_ALLOW_THREADS;
4705 } Py_INCREF(Py_None);
4706 _resultobj = Py_None;
4707 return _resultobj;
4708 }
4709
4710 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
4711 static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4712 PyObject * _resultobj;
4713 wxString * _result;
4714 wxDialog * _arg0;
4715 PyObject * _argo0 = 0;
4716 char *_kwnames[] = { "self", NULL };
4717
4718 self = self;
4719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0))
4720 return NULL;
4721 if (_argo0) {
4722 if (_argo0 == Py_None) { _arg0 = NULL; }
4723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
4725 return NULL;
4726 }
4727 }
4728 {
4729 wxPy_BEGIN_ALLOW_THREADS;
4730 _result = new wxString (wxDialog_GetTitle(_arg0));
4731
4732 wxPy_END_ALLOW_THREADS;
4733 }{
4734 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
4735 }
4736 {
4737 delete _result;
4738 }
4739 return _resultobj;
4740 }
4741
4742 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
4743 static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) {
4744 PyObject * _resultobj;
4745 wxDialog * _arg0;
4746 bool _arg1;
4747 PyObject * _argo0 = 0;
4748 int tempbool1;
4749 char *_kwnames[] = { "self","iconize", NULL };
4750
4751 self = self;
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1))
4753 return NULL;
4754 if (_argo0) {
4755 if (_argo0 == Py_None) { _arg0 = NULL; }
4756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
4758 return NULL;
4759 }
4760 }
4761 _arg1 = (bool ) tempbool1;
4762 {
4763 wxPy_BEGIN_ALLOW_THREADS;
4764 wxDialog_Iconize(_arg0,_arg1);
4765
4766 wxPy_END_ALLOW_THREADS;
4767 } Py_INCREF(Py_None);
4768 _resultobj = Py_None;
4769 return _resultobj;
4770 }
4771
4772 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
4773 static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) {
4774 PyObject * _resultobj;
4775 bool _result;
4776 wxDialog * _arg0;
4777 PyObject * _argo0 = 0;
4778 char *_kwnames[] = { "self", NULL };
4779
4780 self = self;
4781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0))
4782 return NULL;
4783 if (_argo0) {
4784 if (_argo0 == Py_None) { _arg0 = NULL; }
4785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
4787 return NULL;
4788 }
4789 }
4790 {
4791 wxPy_BEGIN_ALLOW_THREADS;
4792 _result = (bool )wxDialog_IsIconized(_arg0);
4793
4794 wxPy_END_ALLOW_THREADS;
4795 } _resultobj = Py_BuildValue("i",_result);
4796 return _resultobj;
4797 }
4798
4799 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
4800 static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject * _resultobj;
4802 wxDialog * _arg0;
4803 bool _arg1;
4804 PyObject * _argo0 = 0;
4805 int tempbool1;
4806 char *_kwnames[] = { "self","flag", NULL };
4807
4808 self = self;
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1))
4810 return NULL;
4811 if (_argo0) {
4812 if (_argo0 == Py_None) { _arg0 = NULL; }
4813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
4815 return NULL;
4816 }
4817 }
4818 _arg1 = (bool ) tempbool1;
4819 {
4820 wxPy_BEGIN_ALLOW_THREADS;
4821 wxDialog_SetModal(_arg0,_arg1);
4822
4823 wxPy_END_ALLOW_THREADS;
4824 } Py_INCREF(Py_None);
4825 _resultobj = Py_None;
4826 return _resultobj;
4827 }
4828
4829 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
4830 static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4831 PyObject * _resultobj;
4832 bool _result;
4833 wxDialog * _arg0;
4834 PyObject * _argo0 = 0;
4835 char *_kwnames[] = { "self", NULL };
4836
4837 self = self;
4838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0))
4839 return NULL;
4840 if (_argo0) {
4841 if (_argo0 == Py_None) { _arg0 = NULL; }
4842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
4844 return NULL;
4845 }
4846 }
4847 {
4848 wxPy_BEGIN_ALLOW_THREADS;
4849 _result = (bool )wxDialog_IsModal(_arg0);
4850
4851 wxPy_END_ALLOW_THREADS;
4852 } _resultobj = Py_BuildValue("i",_result);
4853 return _resultobj;
4854 }
4855
4856 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4857 static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4858 PyObject * _resultobj;
4859 wxDialog * _arg0;
4860 wxString * _arg1;
4861 PyObject * _argo0 = 0;
4862 PyObject * _obj1 = 0;
4863 char *_kwnames[] = { "self","title", NULL };
4864
4865 self = self;
4866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1))
4867 return NULL;
4868 if (_argo0) {
4869 if (_argo0 == Py_None) { _arg0 = NULL; }
4870 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4871 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
4872 return NULL;
4873 }
4874 }
4875 {
4876 if (!PyString_Check(_obj1)) {
4877 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4878 return NULL;
4879 }
4880 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4881 }
4882 {
4883 wxPy_BEGIN_ALLOW_THREADS;
4884 wxDialog_SetTitle(_arg0,*_arg1);
4885
4886 wxPy_END_ALLOW_THREADS;
4887 } Py_INCREF(Py_None);
4888 _resultobj = Py_None;
4889 {
4890 if (_obj1)
4891 delete _arg1;
4892 }
4893 return _resultobj;
4894 }
4895
4896 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4897 static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4898 PyObject * _resultobj;
4899 bool _result;
4900 wxDialog * _arg0;
4901 bool _arg1;
4902 PyObject * _argo0 = 0;
4903 int tempbool1;
4904 char *_kwnames[] = { "self","show", NULL };
4905
4906 self = self;
4907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1))
4908 return NULL;
4909 if (_argo0) {
4910 if (_argo0 == Py_None) { _arg0 = NULL; }
4911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
4913 return NULL;
4914 }
4915 }
4916 _arg1 = (bool ) tempbool1;
4917 {
4918 wxPy_BEGIN_ALLOW_THREADS;
4919 _result = (bool )wxDialog_Show(_arg0,_arg1);
4920
4921 wxPy_END_ALLOW_THREADS;
4922 } _resultobj = Py_BuildValue("i",_result);
4923 return _resultobj;
4924 }
4925
4926 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
4927 static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4928 PyObject * _resultobj;
4929 int _result;
4930 wxDialog * _arg0;
4931 PyObject * _argo0 = 0;
4932 char *_kwnames[] = { "self", NULL };
4933
4934 self = self;
4935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0))
4936 return NULL;
4937 if (_argo0) {
4938 if (_argo0 == Py_None) { _arg0 = NULL; }
4939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
4941 return NULL;
4942 }
4943 }
4944 {
4945 wxPy_BEGIN_ALLOW_THREADS;
4946 _result = (int )wxDialog_ShowModal(_arg0);
4947
4948 wxPy_END_ALLOW_THREADS;
4949 } _resultobj = Py_BuildValue("i",_result);
4950 return _resultobj;
4951 }
4952
4953 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
4954 static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
4955 PyObject * _resultobj;
4956 int _result;
4957 wxDialog * _arg0;
4958 PyObject * _argo0 = 0;
4959 char *_kwnames[] = { "self", NULL };
4960
4961 self = self;
4962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0))
4963 return NULL;
4964 if (_argo0) {
4965 if (_argo0 == Py_None) { _arg0 = NULL; }
4966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
4968 return NULL;
4969 }
4970 }
4971 {
4972 wxPy_BEGIN_ALLOW_THREADS;
4973 _result = (int )wxDialog_GetReturnCode(_arg0);
4974
4975 wxPy_END_ALLOW_THREADS;
4976 } _resultobj = Py_BuildValue("i",_result);
4977 return _resultobj;
4978 }
4979
4980 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
4981 static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
4982 PyObject * _resultobj;
4983 wxDialog * _arg0;
4984 int _arg1;
4985 PyObject * _argo0 = 0;
4986 char *_kwnames[] = { "self","retCode", NULL };
4987
4988 self = self;
4989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1))
4990 return NULL;
4991 if (_argo0) {
4992 if (_argo0 == Py_None) { _arg0 = NULL; }
4993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
4995 return NULL;
4996 }
4997 }
4998 {
4999 wxPy_BEGIN_ALLOW_THREADS;
5000 wxDialog_SetReturnCode(_arg0,_arg1);
5001
5002 wxPy_END_ALLOW_THREADS;
5003 } Py_INCREF(Py_None);
5004 _resultobj = Py_None;
5005 return _resultobj;
5006 }
5007
5008 static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
5009 wxScrolledWindow *src;
5010 wxPanel *dest;
5011 src = (wxScrolledWindow *) ptr;
5012 dest = (wxPanel *) src;
5013 return (void *) dest;
5014 }
5015
5016 static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
5017 wxScrolledWindow *src;
5018 wxWindow *dest;
5019 src = (wxScrolledWindow *) ptr;
5020 dest = (wxWindow *) src;
5021 return (void *) dest;
5022 }
5023
5024 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
5025 wxScrolledWindow *src;
5026 wxEvtHandler *dest;
5027 src = (wxScrolledWindow *) ptr;
5028 dest = (wxEvtHandler *) src;
5029 return (void *) dest;
5030 }
5031
5032 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5033 static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5034 PyObject * _resultobj;
5035 wxScrolledWindow * _result;
5036 wxWindow * _arg0;
5037 wxWindowID _arg1 = (wxWindowID ) -1;
5038 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
5039 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
5040 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
5041 char * _arg5 = (char *) "scrolledWindow";
5042 PyObject * _argo0 = 0;
5043 wxPoint temp;
5044 PyObject * _obj2 = 0;
5045 wxSize temp0;
5046 PyObject * _obj3 = 0;
5047 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
5048 char _ptemp[128];
5049
5050 self = self;
5051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
5052 return NULL;
5053 if (_argo0) {
5054 if (_argo0 == Py_None) { _arg0 = NULL; }
5055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
5057 return NULL;
5058 }
5059 }
5060 if (_obj2)
5061 {
5062 _arg2 = &temp;
5063 if (! wxPoint_helper(_obj2, &_arg2))
5064 return NULL;
5065 }
5066 if (_obj3)
5067 {
5068 _arg3 = &temp0;
5069 if (! wxSize_helper(_obj3, &_arg3))
5070 return NULL;
5071 }
5072 {
5073 wxPy_BEGIN_ALLOW_THREADS;
5074 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
5075
5076 wxPy_END_ALLOW_THREADS;
5077 } if (_result) {
5078 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
5079 _resultobj = Py_BuildValue("s",_ptemp);
5080 } else {
5081 Py_INCREF(Py_None);
5082 _resultobj = Py_None;
5083 }
5084 return _resultobj;
5085 }
5086
5087 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
5088 static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
5089 PyObject * _resultobj;
5090 wxScrolledWindow * _arg0;
5091 bool _arg1;
5092 bool _arg2;
5093 PyObject * _argo0 = 0;
5094 int tempbool1;
5095 int tempbool2;
5096 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
5097
5098 self = self;
5099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
5100 return NULL;
5101 if (_argo0) {
5102 if (_argo0 == Py_None) { _arg0 = NULL; }
5103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
5105 return NULL;
5106 }
5107 }
5108 _arg1 = (bool ) tempbool1;
5109 _arg2 = (bool ) tempbool2;
5110 {
5111 wxPy_BEGIN_ALLOW_THREADS;
5112 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
5113
5114 wxPy_END_ALLOW_THREADS;
5115 } Py_INCREF(Py_None);
5116 _resultobj = Py_None;
5117 return _resultobj;
5118 }
5119
5120 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
5121 static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
5122 PyObject * _resultobj;
5123 wxScrolledWindow * _arg0;
5124 int * _arg1;
5125 int temp;
5126 int * _arg2;
5127 int temp0;
5128 PyObject * _argo0 = 0;
5129 char *_kwnames[] = { "self", NULL };
5130
5131 self = self;
5132 {
5133 _arg1 = &temp;
5134 }
5135 {
5136 _arg2 = &temp0;
5137 }
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
5139 return NULL;
5140 if (_argo0) {
5141 if (_argo0 == Py_None) { _arg0 = NULL; }
5142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
5144 return NULL;
5145 }
5146 }
5147 {
5148 wxPy_BEGIN_ALLOW_THREADS;
5149 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
5150
5151 wxPy_END_ALLOW_THREADS;
5152 } Py_INCREF(Py_None);
5153 _resultobj = Py_None;
5154 {
5155 PyObject *o;
5156 o = PyInt_FromLong((long) (*_arg1));
5157 _resultobj = t_output_helper(_resultobj, o);
5158 }
5159 {
5160 PyObject *o;
5161 o = PyInt_FromLong((long) (*_arg2));
5162 _resultobj = t_output_helper(_resultobj, o);
5163 }
5164 return _resultobj;
5165 }
5166
5167 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
5168 static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5169 PyObject * _resultobj;
5170 wxScrolledWindow * _arg0;
5171 int * _arg1;
5172 int temp;
5173 int * _arg2;
5174 int temp0;
5175 PyObject * _argo0 = 0;
5176 char *_kwnames[] = { "self", NULL };
5177
5178 self = self;
5179 {
5180 _arg1 = &temp;
5181 }
5182 {
5183 _arg2 = &temp0;
5184 }
5185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0))
5186 return NULL;
5187 if (_argo0) {
5188 if (_argo0 == Py_None) { _arg0 = NULL; }
5189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
5191 return NULL;
5192 }
5193 }
5194 {
5195 wxPy_BEGIN_ALLOW_THREADS;
5196 wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2);
5197
5198 wxPy_END_ALLOW_THREADS;
5199 } Py_INCREF(Py_None);
5200 _resultobj = Py_None;
5201 {
5202 PyObject *o;
5203 o = PyInt_FromLong((long) (*_arg1));
5204 _resultobj = t_output_helper(_resultobj, o);
5205 }
5206 {
5207 PyObject *o;
5208 o = PyInt_FromLong((long) (*_arg2));
5209 _resultobj = t_output_helper(_resultobj, o);
5210 }
5211 return _resultobj;
5212 }
5213
5214 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
5215 static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
5216 PyObject * _resultobj;
5217 bool _result;
5218 wxScrolledWindow * _arg0;
5219 PyObject * _argo0 = 0;
5220 char *_kwnames[] = { "self", NULL };
5221
5222 self = self;
5223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
5224 return NULL;
5225 if (_argo0) {
5226 if (_argo0 == Py_None) { _arg0 = NULL; }
5227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
5229 return NULL;
5230 }
5231 }
5232 {
5233 wxPy_BEGIN_ALLOW_THREADS;
5234 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
5235
5236 wxPy_END_ALLOW_THREADS;
5237 } _resultobj = Py_BuildValue("i",_result);
5238 return _resultobj;
5239 }
5240
5241 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
5242 static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5243 PyObject * _resultobj;
5244 wxScrolledWindow * _arg0;
5245 wxDC * _arg1;
5246 PyObject * _argo0 = 0;
5247 PyObject * _argo1 = 0;
5248 char *_kwnames[] = { "self","dc", NULL };
5249
5250 self = self;
5251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
5252 return NULL;
5253 if (_argo0) {
5254 if (_argo0 == Py_None) { _arg0 = NULL; }
5255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
5257 return NULL;
5258 }
5259 }
5260 if (_argo1) {
5261 if (_argo1 == Py_None) { _arg1 = NULL; }
5262 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
5263 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
5264 return NULL;
5265 }
5266 }
5267 {
5268 wxPy_BEGIN_ALLOW_THREADS;
5269 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
5270
5271 wxPy_END_ALLOW_THREADS;
5272 } Py_INCREF(Py_None);
5273 _resultobj = Py_None;
5274 return _resultobj;
5275 }
5276
5277 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
5278 static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
5279 PyObject * _resultobj;
5280 wxScrolledWindow * _arg0;
5281 int _arg1;
5282 int _arg2;
5283 PyObject * _argo0 = 0;
5284 char *_kwnames[] = { "self","x","y", NULL };
5285
5286 self = self;
5287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
5288 return NULL;
5289 if (_argo0) {
5290 if (_argo0 == Py_None) { _arg0 = NULL; }
5291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
5293 return NULL;
5294 }
5295 }
5296 {
5297 wxPy_BEGIN_ALLOW_THREADS;
5298 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
5299
5300 wxPy_END_ALLOW_THREADS;
5301 } Py_INCREF(Py_None);
5302 _resultobj = Py_None;
5303 return _resultobj;
5304 }
5305
5306 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5307 static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
5308 PyObject * _resultobj;
5309 wxScrolledWindow * _arg0;
5310 int _arg1;
5311 int _arg2;
5312 int _arg3;
5313 int _arg4;
5314 int _arg5 = (int ) 0;
5315 int _arg6 = (int ) 0;
5316 PyObject * _argo0 = 0;
5317 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos", NULL };
5318
5319 self = self;
5320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|ii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5321 return NULL;
5322 if (_argo0) {
5323 if (_argo0 == Py_None) { _arg0 = NULL; }
5324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
5326 return NULL;
5327 }
5328 }
5329 {
5330 wxPy_BEGIN_ALLOW_THREADS;
5331 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5332
5333 wxPy_END_ALLOW_THREADS;
5334 } Py_INCREF(Py_None);
5335 _resultobj = Py_None;
5336 return _resultobj;
5337 }
5338
5339 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
5340 static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
5341 PyObject * _resultobj;
5342 wxScrolledWindow * _arg0;
5343 int * _arg1;
5344 int temp;
5345 int * _arg2;
5346 int temp0;
5347 PyObject * _argo0 = 0;
5348 char *_kwnames[] = { "self", NULL };
5349
5350 self = self;
5351 {
5352 _arg1 = &temp;
5353 }
5354 {
5355 _arg2 = &temp0;
5356 }
5357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0))
5358 return NULL;
5359 if (_argo0) {
5360 if (_argo0 == Py_None) { _arg0 = NULL; }
5361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
5363 return NULL;
5364 }
5365 }
5366 {
5367 wxPy_BEGIN_ALLOW_THREADS;
5368 wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2);
5369
5370 wxPy_END_ALLOW_THREADS;
5371 } Py_INCREF(Py_None);
5372 _resultobj = Py_None;
5373 {
5374 PyObject *o;
5375 o = PyInt_FromLong((long) (*_arg1));
5376 _resultobj = t_output_helper(_resultobj, o);
5377 }
5378 {
5379 PyObject *o;
5380 o = PyInt_FromLong((long) (*_arg2));
5381 _resultobj = t_output_helper(_resultobj, o);
5382 }
5383 return _resultobj;
5384 }
5385
5386 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5387 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5388 PyObject * _resultobj;
5389 wxScrolledWindow * _arg0;
5390 int _arg1;
5391 int _arg2;
5392 int * _arg3;
5393 int temp;
5394 int * _arg4;
5395 int temp0;
5396 PyObject * _argo0 = 0;
5397 char *_kwnames[] = { "self","x","y", NULL };
5398
5399 self = self;
5400 {
5401 _arg3 = &temp;
5402 }
5403 {
5404 _arg4 = &temp0;
5405 }
5406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
5407 return NULL;
5408 if (_argo0) {
5409 if (_argo0 == Py_None) { _arg0 = NULL; }
5410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
5412 return NULL;
5413 }
5414 }
5415 {
5416 wxPy_BEGIN_ALLOW_THREADS;
5417 wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
5418
5419 wxPy_END_ALLOW_THREADS;
5420 } Py_INCREF(Py_None);
5421 _resultobj = Py_None;
5422 {
5423 PyObject *o;
5424 o = PyInt_FromLong((long) (*_arg3));
5425 _resultobj = t_output_helper(_resultobj, o);
5426 }
5427 {
5428 PyObject *o;
5429 o = PyInt_FromLong((long) (*_arg4));
5430 _resultobj = t_output_helper(_resultobj, o);
5431 }
5432 return _resultobj;
5433 }
5434
5435 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5436 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5437 PyObject * _resultobj;
5438 wxScrolledWindow * _arg0;
5439 int _arg1;
5440 int _arg2;
5441 int * _arg3;
5442 int temp;
5443 int * _arg4;
5444 int temp0;
5445 PyObject * _argo0 = 0;
5446 char *_kwnames[] = { "self","x","y", NULL };
5447
5448 self = self;
5449 {
5450 _arg3 = &temp;
5451 }
5452 {
5453 _arg4 = &temp0;
5454 }
5455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
5456 return NULL;
5457 if (_argo0) {
5458 if (_argo0 == Py_None) { _arg0 = NULL; }
5459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
5461 return NULL;
5462 }
5463 }
5464 {
5465 wxPy_BEGIN_ALLOW_THREADS;
5466 wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
5467
5468 wxPy_END_ALLOW_THREADS;
5469 } Py_INCREF(Py_None);
5470 _resultobj = Py_None;
5471 {
5472 PyObject *o;
5473 o = PyInt_FromLong((long) (*_arg3));
5474 _resultobj = t_output_helper(_resultobj, o);
5475 }
5476 {
5477 PyObject *o;
5478 o = PyInt_FromLong((long) (*_arg4));
5479 _resultobj = t_output_helper(_resultobj, o);
5480 }
5481 return _resultobj;
5482 }
5483
5484 static void *SwigwxMenuTowxEvtHandler(void *ptr) {
5485 wxMenu *src;
5486 wxEvtHandler *dest;
5487 src = (wxMenu *) ptr;
5488 dest = (wxEvtHandler *) src;
5489 return (void *) dest;
5490 }
5491
5492 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
5493 static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5494 PyObject * _resultobj;
5495 wxMenu * _result;
5496 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
5497 long _arg1 = (long ) 0;
5498 PyObject * _obj0 = 0;
5499 char *_kwnames[] = { "title","style", NULL };
5500 char _ptemp[128];
5501
5502 self = self;
5503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
5504 return NULL;
5505 if (_obj0)
5506 {
5507 if (!PyString_Check(_obj0)) {
5508 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5509 return NULL;
5510 }
5511 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
5512 }
5513 {
5514 wxPy_BEGIN_ALLOW_THREADS;
5515 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
5516
5517 wxPy_END_ALLOW_THREADS;
5518 } if (_result) {
5519 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
5520 _resultobj = Py_BuildValue("s",_ptemp);
5521 } else {
5522 Py_INCREF(Py_None);
5523 _resultobj = Py_None;
5524 }
5525 {
5526 if (_obj0)
5527 delete _arg0;
5528 }
5529 return _resultobj;
5530 }
5531
5532 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5533 static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5534 PyObject * _resultobj;
5535 wxMenu * _arg0;
5536 int _arg1;
5537 wxString * _arg2;
5538 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
5539 int _arg4 = (int ) FALSE;
5540 PyObject * _argo0 = 0;
5541 PyObject * _obj2 = 0;
5542 PyObject * _obj3 = 0;
5543 char *_kwnames[] = { "self","id","item","helpString","checkable", NULL };
5544
5545 self = self;
5546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
5547 return NULL;
5548 if (_argo0) {
5549 if (_argo0 == Py_None) { _arg0 = NULL; }
5550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
5552 return NULL;
5553 }
5554 }
5555 {
5556 if (!PyString_Check(_obj2)) {
5557 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5558 return NULL;
5559 }
5560 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5561 }
5562 if (_obj3)
5563 {
5564 if (!PyString_Check(_obj3)) {
5565 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5566 return NULL;
5567 }
5568 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
5569 }
5570 {
5571 wxPy_BEGIN_ALLOW_THREADS;
5572 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
5573
5574 wxPy_END_ALLOW_THREADS;
5575 } Py_INCREF(Py_None);
5576 _resultobj = Py_None;
5577 {
5578 if (_obj2)
5579 delete _arg2;
5580 }
5581 {
5582 if (_obj3)
5583 delete _arg3;
5584 }
5585 return _resultobj;
5586 }
5587
5588 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5589 static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5590 PyObject * _resultobj;
5591 wxMenu * _arg0;
5592 int _arg1;
5593 wxString * _arg2;
5594 wxMenu * _arg3;
5595 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
5596 PyObject * _argo0 = 0;
5597 PyObject * _obj2 = 0;
5598 PyObject * _argo3 = 0;
5599 PyObject * _obj4 = 0;
5600 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
5601
5602 self = self;
5603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
5604 return NULL;
5605 if (_argo0) {
5606 if (_argo0 == Py_None) { _arg0 = NULL; }
5607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
5609 return NULL;
5610 }
5611 }
5612 {
5613 if (!PyString_Check(_obj2)) {
5614 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5615 return NULL;
5616 }
5617 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5618 }
5619 if (_argo3) {
5620 if (_argo3 == Py_None) { _arg3 = NULL; }
5621 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
5622 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
5623 return NULL;
5624 }
5625 }
5626 if (_obj4)
5627 {
5628 if (!PyString_Check(_obj4)) {
5629 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5630 return NULL;
5631 }
5632 _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4));
5633 }
5634 {
5635 wxPy_BEGIN_ALLOW_THREADS;
5636 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
5637
5638 wxPy_END_ALLOW_THREADS;
5639 } Py_INCREF(Py_None);
5640 _resultobj = Py_None;
5641 {
5642 if (_obj2)
5643 delete _arg2;
5644 }
5645 {
5646 if (_obj4)
5647 delete _arg4;
5648 }
5649 return _resultobj;
5650 }
5651
5652 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
5653 static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5654 PyObject * _resultobj;
5655 wxMenu * _arg0;
5656 wxMenuItem * _arg1;
5657 PyObject * _argo0 = 0;
5658 PyObject * _argo1 = 0;
5659 char *_kwnames[] = { "self","item", NULL };
5660
5661 self = self;
5662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
5663 return NULL;
5664 if (_argo0) {
5665 if (_argo0 == Py_None) { _arg0 = NULL; }
5666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
5668 return NULL;
5669 }
5670 }
5671 if (_argo1) {
5672 if (_argo1 == Py_None) { _arg1 = NULL; }
5673 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
5674 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
5675 return NULL;
5676 }
5677 }
5678 {
5679 wxPy_BEGIN_ALLOW_THREADS;
5680 wxMenu_AppendItem(_arg0,_arg1);
5681
5682 wxPy_END_ALLOW_THREADS;
5683 } Py_INCREF(Py_None);
5684 _resultobj = Py_None;
5685 return _resultobj;
5686 }
5687
5688 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
5689 static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
5690 PyObject * _resultobj;
5691 wxMenu * _arg0;
5692 PyObject * _argo0 = 0;
5693 char *_kwnames[] = { "self", NULL };
5694
5695 self = self;
5696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
5697 return NULL;
5698 if (_argo0) {
5699 if (_argo0 == Py_None) { _arg0 = NULL; }
5700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
5702 return NULL;
5703 }
5704 }
5705 {
5706 wxPy_BEGIN_ALLOW_THREADS;
5707 wxMenu_AppendSeparator(_arg0);
5708
5709 wxPy_END_ALLOW_THREADS;
5710 } Py_INCREF(Py_None);
5711 _resultobj = Py_None;
5712 return _resultobj;
5713 }
5714
5715 #define wxMenu_Break(_swigobj) (_swigobj->Break())
5716 static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
5717 PyObject * _resultobj;
5718 wxMenu * _arg0;
5719 PyObject * _argo0 = 0;
5720 char *_kwnames[] = { "self", NULL };
5721
5722 self = self;
5723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
5724 return NULL;
5725 if (_argo0) {
5726 if (_argo0 == Py_None) { _arg0 = NULL; }
5727 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5728 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
5729 return NULL;
5730 }
5731 }
5732 {
5733 wxPy_BEGIN_ALLOW_THREADS;
5734 wxMenu_Break(_arg0);
5735
5736 wxPy_END_ALLOW_THREADS;
5737 } Py_INCREF(Py_None);
5738 _resultobj = Py_None;
5739 return _resultobj;
5740 }
5741
5742 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
5743 static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
5744 PyObject * _resultobj;
5745 wxMenu * _arg0;
5746 int _arg1;
5747 bool _arg2;
5748 PyObject * _argo0 = 0;
5749 int tempbool2;
5750 char *_kwnames[] = { "self","id","flag", NULL };
5751
5752 self = self;
5753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
5754 return NULL;
5755 if (_argo0) {
5756 if (_argo0 == Py_None) { _arg0 = NULL; }
5757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
5759 return NULL;
5760 }
5761 }
5762 _arg2 = (bool ) tempbool2;
5763 {
5764 wxPy_BEGIN_ALLOW_THREADS;
5765 wxMenu_Check(_arg0,_arg1,_arg2);
5766
5767 wxPy_END_ALLOW_THREADS;
5768 } Py_INCREF(Py_None);
5769 _resultobj = Py_None;
5770 return _resultobj;
5771 }
5772
5773 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
5774 static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
5775 PyObject * _resultobj;
5776 wxMenu * _arg0;
5777 int _arg1;
5778 bool _arg2;
5779 PyObject * _argo0 = 0;
5780 int tempbool2;
5781 char *_kwnames[] = { "self","id","enable", NULL };
5782
5783 self = self;
5784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
5785 return NULL;
5786 if (_argo0) {
5787 if (_argo0 == Py_None) { _arg0 = NULL; }
5788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
5790 return NULL;
5791 }
5792 }
5793 _arg2 = (bool ) tempbool2;
5794 {
5795 wxPy_BEGIN_ALLOW_THREADS;
5796 wxMenu_Enable(_arg0,_arg1,_arg2);
5797
5798 wxPy_END_ALLOW_THREADS;
5799 } Py_INCREF(Py_None);
5800 _resultobj = Py_None;
5801 return _resultobj;
5802 }
5803
5804 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
5805 static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5806 PyObject * _resultobj;
5807 int _result;
5808 wxMenu * _arg0;
5809 wxString * _arg1;
5810 PyObject * _argo0 = 0;
5811 PyObject * _obj1 = 0;
5812 char *_kwnames[] = { "self","itemString", NULL };
5813
5814 self = self;
5815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
5816 return NULL;
5817 if (_argo0) {
5818 if (_argo0 == Py_None) { _arg0 = NULL; }
5819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
5821 return NULL;
5822 }
5823 }
5824 {
5825 if (!PyString_Check(_obj1)) {
5826 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5827 return NULL;
5828 }
5829 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
5830 }
5831 {
5832 wxPy_BEGIN_ALLOW_THREADS;
5833 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
5834
5835 wxPy_END_ALLOW_THREADS;
5836 } _resultobj = Py_BuildValue("i",_result);
5837 {
5838 if (_obj1)
5839 delete _arg1;
5840 }
5841 return _resultobj;
5842 }
5843
5844 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
5845 static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
5846 PyObject * _resultobj;
5847 wxString * _result;
5848 wxMenu * _arg0;
5849 PyObject * _argo0 = 0;
5850 char *_kwnames[] = { "self", NULL };
5851
5852 self = self;
5853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
5854 return NULL;
5855 if (_argo0) {
5856 if (_argo0 == Py_None) { _arg0 = NULL; }
5857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
5859 return NULL;
5860 }
5861 }
5862 {
5863 wxPy_BEGIN_ALLOW_THREADS;
5864 _result = new wxString (wxMenu_GetTitle(_arg0));
5865
5866 wxPy_END_ALLOW_THREADS;
5867 }{
5868 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
5869 }
5870 {
5871 delete _result;
5872 }
5873 return _resultobj;
5874 }
5875
5876 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
5877 static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
5878 PyObject * _resultobj;
5879 wxMenu * _arg0;
5880 wxString * _arg1;
5881 PyObject * _argo0 = 0;
5882 PyObject * _obj1 = 0;
5883 char *_kwnames[] = { "self","title", NULL };
5884
5885 self = self;
5886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
5887 return NULL;
5888 if (_argo0) {
5889 if (_argo0 == Py_None) { _arg0 = NULL; }
5890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
5892 return NULL;
5893 }
5894 }
5895 {
5896 if (!PyString_Check(_obj1)) {
5897 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5898 return NULL;
5899 }
5900 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
5901 }
5902 {
5903 wxPy_BEGIN_ALLOW_THREADS;
5904 wxMenu_SetTitle(_arg0,*_arg1);
5905
5906 wxPy_END_ALLOW_THREADS;
5907 } Py_INCREF(Py_None);
5908 _resultobj = Py_None;
5909 {
5910 if (_obj1)
5911 delete _arg1;
5912 }
5913 return _resultobj;
5914 }
5915
5916 #define wxMenu_FindItemForId(_swigobj,_swigarg0) (_swigobj->FindItemForId(_swigarg0))
5917 static PyObject *_wrap_wxMenu_FindItemForId(PyObject *self, PyObject *args, PyObject *kwargs) {
5918 PyObject * _resultobj;
5919 wxMenuItem * _result;
5920 wxMenu * _arg0;
5921 int _arg1;
5922 PyObject * _argo0 = 0;
5923 char *_kwnames[] = { "self","id", NULL };
5924 char _ptemp[128];
5925
5926 self = self;
5927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemForId",_kwnames,&_argo0,&_arg1))
5928 return NULL;
5929 if (_argo0) {
5930 if (_argo0 == Py_None) { _arg0 = NULL; }
5931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemForId. Expected _wxMenu_p.");
5933 return NULL;
5934 }
5935 }
5936 {
5937 wxPy_BEGIN_ALLOW_THREADS;
5938 _result = (wxMenuItem *)wxMenu_FindItemForId(_arg0,_arg1);
5939
5940 wxPy_END_ALLOW_THREADS;
5941 } if (_result) {
5942 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
5943 _resultobj = Py_BuildValue("s",_ptemp);
5944 } else {
5945 Py_INCREF(Py_None);
5946 _resultobj = Py_None;
5947 }
5948 return _resultobj;
5949 }
5950
5951 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
5952 static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
5953 PyObject * _resultobj;
5954 wxString * _result;
5955 wxMenu * _arg0;
5956 int _arg1;
5957 PyObject * _argo0 = 0;
5958 char *_kwnames[] = { "self","id", NULL };
5959
5960 self = self;
5961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
5962 return NULL;
5963 if (_argo0) {
5964 if (_argo0 == Py_None) { _arg0 = NULL; }
5965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
5967 return NULL;
5968 }
5969 }
5970 {
5971 wxPy_BEGIN_ALLOW_THREADS;
5972 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
5973
5974 wxPy_END_ALLOW_THREADS;
5975 }{
5976 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
5977 }
5978 {
5979 delete _result;
5980 }
5981 return _resultobj;
5982 }
5983
5984 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
5985 static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5986 PyObject * _resultobj;
5987 wxString * _result;
5988 wxMenu * _arg0;
5989 int _arg1;
5990 PyObject * _argo0 = 0;
5991 char *_kwnames[] = { "self","id", NULL };
5992
5993 self = self;
5994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
5995 return NULL;
5996 if (_argo0) {
5997 if (_argo0 == Py_None) { _arg0 = NULL; }
5998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
6000 return NULL;
6001 }
6002 }
6003 {
6004 wxPy_BEGIN_ALLOW_THREADS;
6005 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
6006
6007 wxPy_END_ALLOW_THREADS;
6008 }{
6009 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6010 }
6011 {
6012 delete _result;
6013 }
6014 return _resultobj;
6015 }
6016
6017 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
6018 static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
6019 PyObject * _resultobj;
6020 wxMenu * _arg0;
6021 int _arg1;
6022 wxString * _arg2;
6023 PyObject * _argo0 = 0;
6024 PyObject * _obj2 = 0;
6025 char *_kwnames[] = { "self","id","helpString", NULL };
6026
6027 self = self;
6028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
6029 return NULL;
6030 if (_argo0) {
6031 if (_argo0 == Py_None) { _arg0 = NULL; }
6032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
6034 return NULL;
6035 }
6036 }
6037 {
6038 if (!PyString_Check(_obj2)) {
6039 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6040 return NULL;
6041 }
6042 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6043 }
6044 {
6045 wxPy_BEGIN_ALLOW_THREADS;
6046 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
6047
6048 wxPy_END_ALLOW_THREADS;
6049 } Py_INCREF(Py_None);
6050 _resultobj = Py_None;
6051 {
6052 if (_obj2)
6053 delete _arg2;
6054 }
6055 return _resultobj;
6056 }
6057
6058 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
6059 static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6060 PyObject * _resultobj;
6061 bool _result;
6062 wxMenu * _arg0;
6063 int _arg1;
6064 PyObject * _argo0 = 0;
6065 char *_kwnames[] = { "self","id", NULL };
6066
6067 self = self;
6068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
6069 return NULL;
6070 if (_argo0) {
6071 if (_argo0 == Py_None) { _arg0 = NULL; }
6072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
6074 return NULL;
6075 }
6076 }
6077 {
6078 wxPy_BEGIN_ALLOW_THREADS;
6079 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
6080
6081 wxPy_END_ALLOW_THREADS;
6082 } _resultobj = Py_BuildValue("i",_result);
6083 return _resultobj;
6084 }
6085
6086 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
6087 static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6088 PyObject * _resultobj;
6089 bool _result;
6090 wxMenu * _arg0;
6091 int _arg1;
6092 PyObject * _argo0 = 0;
6093 char *_kwnames[] = { "self","id", NULL };
6094
6095 self = self;
6096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
6097 return NULL;
6098 if (_argo0) {
6099 if (_argo0 == Py_None) { _arg0 = NULL; }
6100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
6102 return NULL;
6103 }
6104 }
6105 {
6106 wxPy_BEGIN_ALLOW_THREADS;
6107 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
6108
6109 wxPy_END_ALLOW_THREADS;
6110 } _resultobj = Py_BuildValue("i",_result);
6111 return _resultobj;
6112 }
6113
6114 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
6115 static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6116 PyObject * _resultobj;
6117 wxMenu * _arg0;
6118 int _arg1;
6119 wxString * _arg2;
6120 PyObject * _argo0 = 0;
6121 PyObject * _obj2 = 0;
6122 char *_kwnames[] = { "self","id","label", NULL };
6123
6124 self = self;
6125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
6126 return NULL;
6127 if (_argo0) {
6128 if (_argo0 == Py_None) { _arg0 = NULL; }
6129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
6131 return NULL;
6132 }
6133 }
6134 {
6135 if (!PyString_Check(_obj2)) {
6136 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6137 return NULL;
6138 }
6139 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6140 }
6141 {
6142 wxPy_BEGIN_ALLOW_THREADS;
6143 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
6144
6145 wxPy_END_ALLOW_THREADS;
6146 } Py_INCREF(Py_None);
6147 _resultobj = Py_None;
6148 {
6149 if (_obj2)
6150 delete _arg2;
6151 }
6152 return _resultobj;
6153 }
6154
6155 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
6156 static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
6157 PyObject * _resultobj;
6158 wxMenu * _arg0;
6159 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
6160 PyObject * _argo0 = 0;
6161 PyObject * _argo1 = 0;
6162 char *_kwnames[] = { "self","source", NULL };
6163
6164 self = self;
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
6166 return NULL;
6167 if (_argo0) {
6168 if (_argo0 == Py_None) { _arg0 = NULL; }
6169 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6170 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
6171 return NULL;
6172 }
6173 }
6174 if (_argo1) {
6175 if (_argo1 == Py_None) { _arg1 = NULL; }
6176 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
6177 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
6178 return NULL;
6179 }
6180 }
6181 {
6182 wxPy_BEGIN_ALLOW_THREADS;
6183 wxMenu_UpdateUI(_arg0,_arg1);
6184
6185 wxPy_END_ALLOW_THREADS;
6186 } Py_INCREF(Py_None);
6187 _resultobj = Py_None;
6188 return _resultobj;
6189 }
6190
6191 static void wxMenu_Destroy(wxMenu *self) {
6192 delete self;
6193 }
6194 static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6195 PyObject * _resultobj;
6196 wxMenu * _arg0;
6197 PyObject * _argo0 = 0;
6198 char *_kwnames[] = { "self", NULL };
6199
6200 self = self;
6201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
6202 return NULL;
6203 if (_argo0) {
6204 if (_argo0 == Py_None) { _arg0 = NULL; }
6205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
6207 return NULL;
6208 }
6209 }
6210 {
6211 wxPy_BEGIN_ALLOW_THREADS;
6212 wxMenu_Destroy(_arg0);
6213
6214 wxPy_END_ALLOW_THREADS;
6215 } Py_INCREF(Py_None);
6216 _resultobj = Py_None;
6217 return _resultobj;
6218 }
6219
6220 static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
6221 wxMenuBar *src;
6222 wxEvtHandler *dest;
6223 src = (wxMenuBar *) ptr;
6224 dest = (wxEvtHandler *) src;
6225 return (void *) dest;
6226 }
6227
6228 #define new_wxMenuBar() (new wxMenuBar())
6229 static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
6230 PyObject * _resultobj;
6231 wxMenuBar * _result;
6232 char *_kwnames[] = { NULL };
6233 char _ptemp[128];
6234
6235 self = self;
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames))
6237 return NULL;
6238 {
6239 wxPy_BEGIN_ALLOW_THREADS;
6240 _result = (wxMenuBar *)new_wxMenuBar();
6241
6242 wxPy_END_ALLOW_THREADS;
6243 } if (_result) {
6244 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
6245 _resultobj = Py_BuildValue("s",_ptemp);
6246 } else {
6247 Py_INCREF(Py_None);
6248 _resultobj = Py_None;
6249 }
6250 return _resultobj;
6251 }
6252
6253 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
6254 static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
6255 PyObject * _resultobj;
6256 wxMenuBar * _arg0;
6257 wxMenu * _arg1;
6258 wxString * _arg2;
6259 PyObject * _argo0 = 0;
6260 PyObject * _argo1 = 0;
6261 PyObject * _obj2 = 0;
6262 char *_kwnames[] = { "self","menu","title", NULL };
6263
6264 self = self;
6265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
6266 return NULL;
6267 if (_argo0) {
6268 if (_argo0 == Py_None) { _arg0 = NULL; }
6269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
6271 return NULL;
6272 }
6273 }
6274 if (_argo1) {
6275 if (_argo1 == Py_None) { _arg1 = NULL; }
6276 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
6277 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
6278 return NULL;
6279 }
6280 }
6281 {
6282 if (!PyString_Check(_obj2)) {
6283 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6284 return NULL;
6285 }
6286 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6287 }
6288 {
6289 wxPy_BEGIN_ALLOW_THREADS;
6290 wxMenuBar_Append(_arg0,_arg1,*_arg2);
6291
6292 wxPy_END_ALLOW_THREADS;
6293 } Py_INCREF(Py_None);
6294 _resultobj = Py_None;
6295 {
6296 if (_obj2)
6297 delete _arg2;
6298 }
6299 return _resultobj;
6300 }
6301
6302 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
6303 static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6304 PyObject * _resultobj;
6305 wxMenuBar * _arg0;
6306 int _arg1;
6307 bool _arg2;
6308 PyObject * _argo0 = 0;
6309 int tempbool2;
6310 char *_kwnames[] = { "self","id","flag", NULL };
6311
6312 self = self;
6313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
6314 return NULL;
6315 if (_argo0) {
6316 if (_argo0 == Py_None) { _arg0 = NULL; }
6317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
6319 return NULL;
6320 }
6321 }
6322 _arg2 = (bool ) tempbool2;
6323 {
6324 wxPy_BEGIN_ALLOW_THREADS;
6325 wxMenuBar_Check(_arg0,_arg1,_arg2);
6326
6327 wxPy_END_ALLOW_THREADS;
6328 } Py_INCREF(Py_None);
6329 _resultobj = Py_None;
6330 return _resultobj;
6331 }
6332
6333 #define wxMenuBar_Checked(_swigobj,_swigarg0) (_swigobj->Checked(_swigarg0))
6334 static PyObject *_wrap_wxMenuBar_Checked(PyObject *self, PyObject *args, PyObject *kwargs) {
6335 PyObject * _resultobj;
6336 bool _result;
6337 wxMenuBar * _arg0;
6338 int _arg1;
6339 PyObject * _argo0 = 0;
6340 char *_kwnames[] = { "self","id", NULL };
6341
6342 self = self;
6343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Checked",_kwnames,&_argo0,&_arg1))
6344 return NULL;
6345 if (_argo0) {
6346 if (_argo0 == Py_None) { _arg0 = NULL; }
6347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Checked. Expected _wxMenuBar_p.");
6349 return NULL;
6350 }
6351 }
6352 {
6353 wxPy_BEGIN_ALLOW_THREADS;
6354 _result = (bool )wxMenuBar_Checked(_arg0,_arg1);
6355
6356 wxPy_END_ALLOW_THREADS;
6357 } _resultobj = Py_BuildValue("i",_result);
6358 return _resultobj;
6359 }
6360
6361 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
6362 static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
6363 PyObject * _resultobj;
6364 wxMenuBar * _arg0;
6365 int _arg1;
6366 bool _arg2;
6367 PyObject * _argo0 = 0;
6368 int tempbool2;
6369 char *_kwnames[] = { "self","id","enable", NULL };
6370
6371 self = self;
6372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
6373 return NULL;
6374 if (_argo0) {
6375 if (_argo0 == Py_None) { _arg0 = NULL; }
6376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
6378 return NULL;
6379 }
6380 }
6381 _arg2 = (bool ) tempbool2;
6382 {
6383 wxPy_BEGIN_ALLOW_THREADS;
6384 wxMenuBar_Enable(_arg0,_arg1,_arg2);
6385
6386 wxPy_END_ALLOW_THREADS;
6387 } Py_INCREF(Py_None);
6388 _resultobj = Py_None;
6389 return _resultobj;
6390 }
6391
6392 #define wxMenuBar_Enabled(_swigobj,_swigarg0) (_swigobj->Enabled(_swigarg0))
6393 static PyObject *_wrap_wxMenuBar_Enabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6394 PyObject * _resultobj;
6395 bool _result;
6396 wxMenuBar * _arg0;
6397 int _arg1;
6398 PyObject * _argo0 = 0;
6399 char *_kwnames[] = { "self","id", NULL };
6400
6401 self = self;
6402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Enabled",_kwnames,&_argo0,&_arg1))
6403 return NULL;
6404 if (_argo0) {
6405 if (_argo0 == Py_None) { _arg0 = NULL; }
6406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enabled. Expected _wxMenuBar_p.");
6408 return NULL;
6409 }
6410 }
6411 {
6412 wxPy_BEGIN_ALLOW_THREADS;
6413 _result = (bool )wxMenuBar_Enabled(_arg0,_arg1);
6414
6415 wxPy_END_ALLOW_THREADS;
6416 } _resultobj = Py_BuildValue("i",_result);
6417 return _resultobj;
6418 }
6419
6420 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
6421 static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6422 PyObject * _resultobj;
6423 int _result;
6424 wxMenuBar * _arg0;
6425 wxString * _arg1;
6426 wxString * _arg2;
6427 PyObject * _argo0 = 0;
6428 PyObject * _obj1 = 0;
6429 PyObject * _obj2 = 0;
6430 char *_kwnames[] = { "self","menuString","itemString", NULL };
6431
6432 self = self;
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
6434 return NULL;
6435 if (_argo0) {
6436 if (_argo0 == Py_None) { _arg0 = NULL; }
6437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
6439 return NULL;
6440 }
6441 }
6442 {
6443 if (!PyString_Check(_obj1)) {
6444 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6445 return NULL;
6446 }
6447 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
6448 }
6449 {
6450 if (!PyString_Check(_obj2)) {
6451 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6452 return NULL;
6453 }
6454 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6455 }
6456 {
6457 wxPy_BEGIN_ALLOW_THREADS;
6458 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
6459
6460 wxPy_END_ALLOW_THREADS;
6461 } _resultobj = Py_BuildValue("i",_result);
6462 {
6463 if (_obj1)
6464 delete _arg1;
6465 }
6466 {
6467 if (_obj2)
6468 delete _arg2;
6469 }
6470 return _resultobj;
6471 }
6472
6473 #define wxMenuBar_FindItemForId(_swigobj,_swigarg0) (_swigobj->FindItemForId(_swigarg0))
6474 static PyObject *_wrap_wxMenuBar_FindItemForId(PyObject *self, PyObject *args, PyObject *kwargs) {
6475 PyObject * _resultobj;
6476 wxMenuItem * _result;
6477 wxMenuBar * _arg0;
6478 int _arg1;
6479 PyObject * _argo0 = 0;
6480 char *_kwnames[] = { "self","id", NULL };
6481 char _ptemp[128];
6482
6483 self = self;
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemForId",_kwnames,&_argo0,&_arg1))
6485 return NULL;
6486 if (_argo0) {
6487 if (_argo0 == Py_None) { _arg0 = NULL; }
6488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemForId. Expected _wxMenuBar_p.");
6490 return NULL;
6491 }
6492 }
6493 {
6494 wxPy_BEGIN_ALLOW_THREADS;
6495 _result = (wxMenuItem *)wxMenuBar_FindItemForId(_arg0,_arg1);
6496
6497 wxPy_END_ALLOW_THREADS;
6498 } if (_result) {
6499 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
6500 _resultobj = Py_BuildValue("s",_ptemp);
6501 } else {
6502 Py_INCREF(Py_None);
6503 _resultobj = Py_None;
6504 }
6505 return _resultobj;
6506 }
6507
6508 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
6509 static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6510 PyObject * _resultobj;
6511 wxMenuBar * _arg0;
6512 int _arg1;
6513 wxString * _arg2;
6514 PyObject * _argo0 = 0;
6515 PyObject * _obj2 = 0;
6516 char *_kwnames[] = { "self","id","label", NULL };
6517
6518 self = self;
6519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
6520 return NULL;
6521 if (_argo0) {
6522 if (_argo0 == Py_None) { _arg0 = NULL; }
6523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
6525 return NULL;
6526 }
6527 }
6528 {
6529 if (!PyString_Check(_obj2)) {
6530 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6531 return NULL;
6532 }
6533 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6534 }
6535 {
6536 wxPy_BEGIN_ALLOW_THREADS;
6537 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
6538
6539 wxPy_END_ALLOW_THREADS;
6540 } Py_INCREF(Py_None);
6541 _resultobj = Py_None;
6542 {
6543 if (_obj2)
6544 delete _arg2;
6545 }
6546 return _resultobj;
6547 }
6548
6549 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
6550 static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
6551 PyObject * _resultobj;
6552 wxMenuBar * _arg0;
6553 int _arg1;
6554 bool _arg2;
6555 PyObject * _argo0 = 0;
6556 int tempbool2;
6557 char *_kwnames[] = { "self","pos","enable", NULL };
6558
6559 self = self;
6560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
6561 return NULL;
6562 if (_argo0) {
6563 if (_argo0 == Py_None) { _arg0 = NULL; }
6564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
6566 return NULL;
6567 }
6568 }
6569 _arg2 = (bool ) tempbool2;
6570 {
6571 wxPy_BEGIN_ALLOW_THREADS;
6572 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
6573
6574 wxPy_END_ALLOW_THREADS;
6575 } Py_INCREF(Py_None);
6576 _resultobj = Py_None;
6577 return _resultobj;
6578 }
6579
6580 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
6581 static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
6582 PyObject * _resultobj;
6583 wxString * _result;
6584 wxMenuBar * _arg0;
6585 int _arg1;
6586 PyObject * _argo0 = 0;
6587 char *_kwnames[] = { "self","id", NULL };
6588
6589 self = self;
6590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
6591 return NULL;
6592 if (_argo0) {
6593 if (_argo0 == Py_None) { _arg0 = NULL; }
6594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
6596 return NULL;
6597 }
6598 }
6599 {
6600 wxPy_BEGIN_ALLOW_THREADS;
6601 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
6602
6603 wxPy_END_ALLOW_THREADS;
6604 }{
6605 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6606 }
6607 {
6608 delete _result;
6609 }
6610 return _resultobj;
6611 }
6612
6613 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
6614 static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6615 PyObject * _resultobj;
6616 wxString * _result;
6617 wxMenuBar * _arg0;
6618 int _arg1;
6619 PyObject * _argo0 = 0;
6620 char *_kwnames[] = { "self","id", NULL };
6621
6622 self = self;
6623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
6624 return NULL;
6625 if (_argo0) {
6626 if (_argo0 == Py_None) { _arg0 = NULL; }
6627 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6628 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
6629 return NULL;
6630 }
6631 }
6632 {
6633 wxPy_BEGIN_ALLOW_THREADS;
6634 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
6635
6636 wxPy_END_ALLOW_THREADS;
6637 }{
6638 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6639 }
6640 {
6641 delete _result;
6642 }
6643 return _resultobj;
6644 }
6645
6646 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
6647 static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
6648 PyObject * _resultobj;
6649 wxMenuBar * _arg0;
6650 int _arg1;
6651 wxString * _arg2;
6652 PyObject * _argo0 = 0;
6653 PyObject * _obj2 = 0;
6654 char *_kwnames[] = { "self","id","helpString", NULL };
6655
6656 self = self;
6657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
6658 return NULL;
6659 if (_argo0) {
6660 if (_argo0 == Py_None) { _arg0 = NULL; }
6661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
6663 return NULL;
6664 }
6665 }
6666 {
6667 if (!PyString_Check(_obj2)) {
6668 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6669 return NULL;
6670 }
6671 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6672 }
6673 {
6674 wxPy_BEGIN_ALLOW_THREADS;
6675 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
6676
6677 wxPy_END_ALLOW_THREADS;
6678 } Py_INCREF(Py_None);
6679 _resultobj = Py_None;
6680 {
6681 if (_obj2)
6682 delete _arg2;
6683 }
6684 return _resultobj;
6685 }
6686
6687 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
6688 static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
6689 PyObject * _resultobj;
6690 wxString * _result;
6691 wxMenuBar * _arg0;
6692 int _arg1;
6693 PyObject * _argo0 = 0;
6694 char *_kwnames[] = { "self","pos", NULL };
6695
6696 self = self;
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
6698 return NULL;
6699 if (_argo0) {
6700 if (_argo0 == Py_None) { _arg0 = NULL; }
6701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
6703 return NULL;
6704 }
6705 }
6706 {
6707 wxPy_BEGIN_ALLOW_THREADS;
6708 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
6709
6710 wxPy_END_ALLOW_THREADS;
6711 }{
6712 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6713 }
6714 {
6715 delete _result;
6716 }
6717 return _resultobj;
6718 }
6719
6720 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
6721 static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
6722 PyObject * _resultobj;
6723 wxMenuBar * _arg0;
6724 int _arg1;
6725 wxString * _arg2;
6726 PyObject * _argo0 = 0;
6727 PyObject * _obj2 = 0;
6728 char *_kwnames[] = { "self","pos","label", NULL };
6729
6730 self = self;
6731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
6732 return NULL;
6733 if (_argo0) {
6734 if (_argo0 == Py_None) { _arg0 = NULL; }
6735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
6737 return NULL;
6738 }
6739 }
6740 {
6741 if (!PyString_Check(_obj2)) {
6742 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6743 return NULL;
6744 }
6745 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6746 }
6747 {
6748 wxPy_BEGIN_ALLOW_THREADS;
6749 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
6750
6751 wxPy_END_ALLOW_THREADS;
6752 } Py_INCREF(Py_None);
6753 _resultobj = Py_None;
6754 {
6755 if (_obj2)
6756 delete _arg2;
6757 }
6758 return _resultobj;
6759 }
6760
6761 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
6762 static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6763 PyObject * _resultobj;
6764 int _result;
6765 wxMenuBar * _arg0;
6766 PyObject * _argo0 = 0;
6767 char *_kwnames[] = { "self", NULL };
6768
6769 self = self;
6770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
6771 return NULL;
6772 if (_argo0) {
6773 if (_argo0 == Py_None) { _arg0 = NULL; }
6774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
6776 return NULL;
6777 }
6778 }
6779 {
6780 wxPy_BEGIN_ALLOW_THREADS;
6781 _result = (int )wxMenuBar_GetMenuCount(_arg0);
6782
6783 wxPy_END_ALLOW_THREADS;
6784 } _resultobj = Py_BuildValue("i",_result);
6785 return _resultobj;
6786 }
6787
6788 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
6789 static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6790 PyObject * _resultobj;
6791 wxMenu * _result;
6792 wxMenuBar * _arg0;
6793 int _arg1;
6794 PyObject * _argo0 = 0;
6795 char *_kwnames[] = { "self","i", NULL };
6796 char _ptemp[128];
6797
6798 self = self;
6799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
6800 return NULL;
6801 if (_argo0) {
6802 if (_argo0 == Py_None) { _arg0 = NULL; }
6803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
6805 return NULL;
6806 }
6807 }
6808 {
6809 wxPy_BEGIN_ALLOW_THREADS;
6810 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
6811
6812 wxPy_END_ALLOW_THREADS;
6813 } if (_result) {
6814 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
6815 _resultobj = Py_BuildValue("s",_ptemp);
6816 } else {
6817 Py_INCREF(Py_None);
6818 _resultobj = Py_None;
6819 }
6820 return _resultobj;
6821 }
6822
6823 #define wxMenuBar_Refresh(_swigobj) (_swigobj->Refresh())
6824 static PyObject *_wrap_wxMenuBar_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
6825 PyObject * _resultobj;
6826 wxMenuBar * _arg0;
6827 PyObject * _argo0 = 0;
6828 char *_kwnames[] = { "self", NULL };
6829
6830 self = self;
6831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_Refresh",_kwnames,&_argo0))
6832 return NULL;
6833 if (_argo0) {
6834 if (_argo0 == Py_None) { _arg0 = NULL; }
6835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Refresh. Expected _wxMenuBar_p.");
6837 return NULL;
6838 }
6839 }
6840 {
6841 wxPy_BEGIN_ALLOW_THREADS;
6842 wxMenuBar_Refresh(_arg0);
6843
6844 wxPy_END_ALLOW_THREADS;
6845 } Py_INCREF(Py_None);
6846 _resultobj = Py_None;
6847 return _resultobj;
6848 }
6849
6850 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6851 static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6852 PyObject * _resultobj;
6853 wxMenuItem * _result;
6854 wxMenu * _arg0 = (wxMenu *) NULL;
6855 int _arg1 = (int ) ID_SEPARATOR;
6856 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
6857 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
6858 bool _arg4 = (bool ) FALSE;
6859 wxMenu * _arg5 = (wxMenu *) NULL;
6860 PyObject * _argo0 = 0;
6861 PyObject * _obj2 = 0;
6862 PyObject * _obj3 = 0;
6863 int tempbool4 = (int) FALSE;
6864 PyObject * _argo5 = 0;
6865 char *_kwnames[] = { "parentMenu","id","text","helpString","checkable","subMenu", NULL };
6866 char _ptemp[128];
6867
6868 self = self;
6869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5))
6870 return NULL;
6871 if (_argo0) {
6872 if (_argo0 == Py_None) { _arg0 = NULL; }
6873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
6875 return NULL;
6876 }
6877 }
6878 if (_obj2)
6879 {
6880 if (!PyString_Check(_obj2)) {
6881 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6882 return NULL;
6883 }
6884 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6885 }
6886 if (_obj3)
6887 {
6888 if (!PyString_Check(_obj3)) {
6889 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6890 return NULL;
6891 }
6892 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
6893 }
6894 _arg4 = (bool ) tempbool4;
6895 if (_argo5) {
6896 if (_argo5 == Py_None) { _arg5 = NULL; }
6897 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
6898 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
6899 return NULL;
6900 }
6901 }
6902 {
6903 wxPy_BEGIN_ALLOW_THREADS;
6904 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
6905
6906 wxPy_END_ALLOW_THREADS;
6907 } if (_result) {
6908 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
6909 _resultobj = Py_BuildValue("s",_ptemp);
6910 } else {
6911 Py_INCREF(Py_None);
6912 _resultobj = Py_None;
6913 }
6914 {
6915 if (_obj2)
6916 delete _arg2;
6917 }
6918 {
6919 if (_obj3)
6920 delete _arg3;
6921 }
6922 return _resultobj;
6923 }
6924
6925 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
6926 static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
6927 PyObject * _resultobj;
6928 bool _result;
6929 wxMenuItem * _arg0;
6930 PyObject * _argo0 = 0;
6931 char *_kwnames[] = { "self", NULL };
6932
6933 self = self;
6934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
6935 return NULL;
6936 if (_argo0) {
6937 if (_argo0 == Py_None) { _arg0 = NULL; }
6938 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6939 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
6940 return NULL;
6941 }
6942 }
6943 {
6944 wxPy_BEGIN_ALLOW_THREADS;
6945 _result = (bool )wxMenuItem_IsSeparator(_arg0);
6946
6947 wxPy_END_ALLOW_THREADS;
6948 } _resultobj = Py_BuildValue("i",_result);
6949 return _resultobj;
6950 }
6951
6952 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
6953 static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6954 PyObject * _resultobj;
6955 bool _result;
6956 wxMenuItem * _arg0;
6957 PyObject * _argo0 = 0;
6958 char *_kwnames[] = { "self", NULL };
6959
6960 self = self;
6961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
6962 return NULL;
6963 if (_argo0) {
6964 if (_argo0 == Py_None) { _arg0 = NULL; }
6965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
6967 return NULL;
6968 }
6969 }
6970 {
6971 wxPy_BEGIN_ALLOW_THREADS;
6972 _result = (bool )wxMenuItem_IsEnabled(_arg0);
6973
6974 wxPy_END_ALLOW_THREADS;
6975 } _resultobj = Py_BuildValue("i",_result);
6976 return _resultobj;
6977 }
6978
6979 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
6980 static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6981 PyObject * _resultobj;
6982 bool _result;
6983 wxMenuItem * _arg0;
6984 PyObject * _argo0 = 0;
6985 char *_kwnames[] = { "self", NULL };
6986
6987 self = self;
6988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
6989 return NULL;
6990 if (_argo0) {
6991 if (_argo0 == Py_None) { _arg0 = NULL; }
6992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
6994 return NULL;
6995 }
6996 }
6997 {
6998 wxPy_BEGIN_ALLOW_THREADS;
6999 _result = (bool )wxMenuItem_IsChecked(_arg0);
7000
7001 wxPy_END_ALLOW_THREADS;
7002 } _resultobj = Py_BuildValue("i",_result);
7003 return _resultobj;
7004 }
7005
7006 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
7007 static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
7008 PyObject * _resultobj;
7009 bool _result;
7010 wxMenuItem * _arg0;
7011 PyObject * _argo0 = 0;
7012 char *_kwnames[] = { "self", NULL };
7013
7014 self = self;
7015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0))
7016 return NULL;
7017 if (_argo0) {
7018 if (_argo0 == Py_None) { _arg0 = NULL; }
7019 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7020 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
7021 return NULL;
7022 }
7023 }
7024 {
7025 wxPy_BEGIN_ALLOW_THREADS;
7026 _result = (bool )wxMenuItem_IsCheckable(_arg0);
7027
7028 wxPy_END_ALLOW_THREADS;
7029 } _resultobj = Py_BuildValue("i",_result);
7030 return _resultobj;
7031 }
7032
7033 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
7034 static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7035 PyObject * _resultobj;
7036 int _result;
7037 wxMenuItem * _arg0;
7038 PyObject * _argo0 = 0;
7039 char *_kwnames[] = { "self", NULL };
7040
7041 self = self;
7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
7043 return NULL;
7044 if (_argo0) {
7045 if (_argo0 == Py_None) { _arg0 = NULL; }
7046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
7048 return NULL;
7049 }
7050 }
7051 {
7052 wxPy_BEGIN_ALLOW_THREADS;
7053 _result = (int )wxMenuItem_GetId(_arg0);
7054
7055 wxPy_END_ALLOW_THREADS;
7056 } _resultobj = Py_BuildValue("i",_result);
7057 return _resultobj;
7058 }
7059
7060 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
7061 static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7062 PyObject * _resultobj;
7063 wxMenu * _result;
7064 wxMenuItem * _arg0;
7065 PyObject * _argo0 = 0;
7066 char *_kwnames[] = { "self", NULL };
7067 char _ptemp[128];
7068
7069 self = self;
7070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
7071 return NULL;
7072 if (_argo0) {
7073 if (_argo0 == Py_None) { _arg0 = NULL; }
7074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
7076 return NULL;
7077 }
7078 }
7079 {
7080 wxPy_BEGIN_ALLOW_THREADS;
7081 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
7082
7083 wxPy_END_ALLOW_THREADS;
7084 } if (_result) {
7085 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7086 _resultobj = Py_BuildValue("s",_ptemp);
7087 } else {
7088 Py_INCREF(Py_None);
7089 _resultobj = Py_None;
7090 }
7091 return _resultobj;
7092 }
7093
7094 #define wxMenuItem_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
7095 static PyObject *_wrap_wxMenuItem_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
7096 PyObject * _resultobj;
7097 wxMenuItem * _arg0;
7098 wxString * _arg1;
7099 PyObject * _argo0 = 0;
7100 PyObject * _obj1 = 0;
7101 char *_kwnames[] = { "self","strName", NULL };
7102
7103 self = self;
7104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetName",_kwnames,&_argo0,&_obj1))
7105 return NULL;
7106 if (_argo0) {
7107 if (_argo0 == Py_None) { _arg0 = NULL; }
7108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetName. Expected _wxMenuItem_p.");
7110 return NULL;
7111 }
7112 }
7113 {
7114 if (!PyString_Check(_obj1)) {
7115 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7116 return NULL;
7117 }
7118 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
7119 }
7120 {
7121 wxPy_BEGIN_ALLOW_THREADS;
7122 wxMenuItem_SetName(_arg0,*_arg1);
7123
7124 wxPy_END_ALLOW_THREADS;
7125 } Py_INCREF(Py_None);
7126 _resultobj = Py_None;
7127 {
7128 if (_obj1)
7129 delete _arg1;
7130 }
7131 return _resultobj;
7132 }
7133
7134 #define wxMenuItem_GetName(_swigobj) (_swigobj->GetName())
7135 static PyObject *_wrap_wxMenuItem_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject * _resultobj;
7137 wxString * _result;
7138 wxMenuItem * _arg0;
7139 PyObject * _argo0 = 0;
7140 char *_kwnames[] = { "self", NULL };
7141
7142 self = self;
7143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetName",_kwnames,&_argo0))
7144 return NULL;
7145 if (_argo0) {
7146 if (_argo0 == Py_None) { _arg0 = NULL; }
7147 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7148 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetName. Expected _wxMenuItem_p.");
7149 return NULL;
7150 }
7151 }
7152 {
7153 wxPy_BEGIN_ALLOW_THREADS;
7154 _result = new wxString (wxMenuItem_GetName(_arg0));
7155
7156 wxPy_END_ALLOW_THREADS;
7157 }{
7158 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
7159 }
7160 {
7161 delete _result;
7162 }
7163 return _resultobj;
7164 }
7165
7166 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
7167 static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
7168 PyObject * _resultobj;
7169 wxString * _result;
7170 wxMenuItem * _arg0;
7171 PyObject * _argo0 = 0;
7172 char *_kwnames[] = { "self", NULL };
7173
7174 self = self;
7175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
7176 return NULL;
7177 if (_argo0) {
7178 if (_argo0 == Py_None) { _arg0 = NULL; }
7179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
7181 return NULL;
7182 }
7183 }
7184 {
7185 wxPy_BEGIN_ALLOW_THREADS;
7186 _result = new wxString (wxMenuItem_GetHelp(_arg0));
7187
7188 wxPy_END_ALLOW_THREADS;
7189 }{
7190 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
7191 }
7192 {
7193 delete _result;
7194 }
7195 return _resultobj;
7196 }
7197
7198 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
7199 static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
7200 PyObject * _resultobj;
7201 wxMenuItem * _arg0;
7202 wxString * _arg1;
7203 PyObject * _argo0 = 0;
7204 PyObject * _obj1 = 0;
7205 char *_kwnames[] = { "self","strHelp", NULL };
7206
7207 self = self;
7208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
7209 return NULL;
7210 if (_argo0) {
7211 if (_argo0 == Py_None) { _arg0 = NULL; }
7212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
7214 return NULL;
7215 }
7216 }
7217 {
7218 if (!PyString_Check(_obj1)) {
7219 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7220 return NULL;
7221 }
7222 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
7223 }
7224 {
7225 wxPy_BEGIN_ALLOW_THREADS;
7226 wxMenuItem_SetHelp(_arg0,*_arg1);
7227
7228 wxPy_END_ALLOW_THREADS;
7229 } Py_INCREF(Py_None);
7230 _resultobj = Py_None;
7231 {
7232 if (_obj1)
7233 delete _arg1;
7234 }
7235 return _resultobj;
7236 }
7237
7238 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
7239 static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
7240 PyObject * _resultobj;
7241 wxMenuItem * _arg0;
7242 bool _arg1 = (bool ) TRUE;
7243 PyObject * _argo0 = 0;
7244 int tempbool1 = (int) TRUE;
7245 char *_kwnames[] = { "self","bDoEnable", NULL };
7246
7247 self = self;
7248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
7249 return NULL;
7250 if (_argo0) {
7251 if (_argo0 == Py_None) { _arg0 = NULL; }
7252 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7253 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
7254 return NULL;
7255 }
7256 }
7257 _arg1 = (bool ) tempbool1;
7258 {
7259 wxPy_BEGIN_ALLOW_THREADS;
7260 wxMenuItem_Enable(_arg0,_arg1);
7261
7262 wxPy_END_ALLOW_THREADS;
7263 } Py_INCREF(Py_None);
7264 _resultobj = Py_None;
7265 return _resultobj;
7266 }
7267
7268 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
7269 static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
7270 PyObject * _resultobj;
7271 wxMenuItem * _arg0;
7272 bool _arg1 = (bool ) TRUE;
7273 PyObject * _argo0 = 0;
7274 int tempbool1 = (int) TRUE;
7275 char *_kwnames[] = { "self","bDoCheck", NULL };
7276
7277 self = self;
7278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
7279 return NULL;
7280 if (_argo0) {
7281 if (_argo0 == Py_None) { _arg0 = NULL; }
7282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
7284 return NULL;
7285 }
7286 }
7287 _arg1 = (bool ) tempbool1;
7288 {
7289 wxPy_BEGIN_ALLOW_THREADS;
7290 wxMenuItem_Check(_arg0,_arg1);
7291
7292 wxPy_END_ALLOW_THREADS;
7293 } Py_INCREF(Py_None);
7294 _resultobj = Py_None;
7295 return _resultobj;
7296 }
7297
7298 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
7299 static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7300 PyObject * _resultobj;
7301 wxColour * _result;
7302 wxMenuItem * _arg0;
7303 PyObject * _argo0 = 0;
7304 char *_kwnames[] = { "self", NULL };
7305 char _ptemp[128];
7306
7307 self = self;
7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0))
7309 return NULL;
7310 if (_argo0) {
7311 if (_argo0 == Py_None) { _arg0 = NULL; }
7312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
7314 return NULL;
7315 }
7316 }
7317 {
7318 wxPy_BEGIN_ALLOW_THREADS;
7319 wxColour & _result_ref = wxMenuItem_GetBackgroundColour(_arg0);
7320 _result = (wxColour *) &_result_ref;
7321
7322 wxPy_END_ALLOW_THREADS;
7323 } if (_result) {
7324 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7325 _resultobj = Py_BuildValue("s",_ptemp);
7326 } else {
7327 Py_INCREF(Py_None);
7328 _resultobj = Py_None;
7329 }
7330 return _resultobj;
7331 }
7332
7333 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
7334 static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7335 PyObject * _resultobj;
7336 wxBitmap * _result;
7337 wxMenuItem * _arg0;
7338 bool _arg1 = (bool ) TRUE;
7339 PyObject * _argo0 = 0;
7340 int tempbool1 = (int) TRUE;
7341 char *_kwnames[] = { "self","checked", NULL };
7342 char _ptemp[128];
7343
7344 self = self;
7345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1))
7346 return NULL;
7347 if (_argo0) {
7348 if (_argo0 == Py_None) { _arg0 = NULL; }
7349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
7351 return NULL;
7352 }
7353 }
7354 _arg1 = (bool ) tempbool1;
7355 {
7356 wxPy_BEGIN_ALLOW_THREADS;
7357 _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1));
7358
7359 wxPy_END_ALLOW_THREADS;
7360 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
7361 _resultobj = Py_BuildValue("s",_ptemp);
7362 return _resultobj;
7363 }
7364
7365 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
7366 static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7367 PyObject * _resultobj;
7368 wxFont * _result;
7369 wxMenuItem * _arg0;
7370 PyObject * _argo0 = 0;
7371 char *_kwnames[] = { "self", NULL };
7372 char _ptemp[128];
7373
7374 self = self;
7375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0))
7376 return NULL;
7377 if (_argo0) {
7378 if (_argo0 == Py_None) { _arg0 = NULL; }
7379 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7380 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
7381 return NULL;
7382 }
7383 }
7384 {
7385 wxPy_BEGIN_ALLOW_THREADS;
7386 wxFont & _result_ref = wxMenuItem_GetFont(_arg0);
7387 _result = (wxFont *) &_result_ref;
7388
7389 wxPy_END_ALLOW_THREADS;
7390 } if (_result) {
7391 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
7392 _resultobj = Py_BuildValue("s",_ptemp);
7393 } else {
7394 Py_INCREF(Py_None);
7395 _resultobj = Py_None;
7396 }
7397 return _resultobj;
7398 }
7399
7400 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
7401 static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7402 PyObject * _resultobj;
7403 int _result;
7404 wxMenuItem * _arg0;
7405 PyObject * _argo0 = 0;
7406 char *_kwnames[] = { "self", NULL };
7407
7408 self = self;
7409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0))
7410 return NULL;
7411 if (_argo0) {
7412 if (_argo0 == Py_None) { _arg0 = NULL; }
7413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
7415 return NULL;
7416 }
7417 }
7418 {
7419 wxPy_BEGIN_ALLOW_THREADS;
7420 _result = (int )wxMenuItem_GetMarginWidth(_arg0);
7421
7422 wxPy_END_ALLOW_THREADS;
7423 } _resultobj = Py_BuildValue("i",_result);
7424 return _resultobj;
7425 }
7426
7427 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
7428 static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7429 PyObject * _resultobj;
7430 wxColour * _result;
7431 wxMenuItem * _arg0;
7432 PyObject * _argo0 = 0;
7433 char *_kwnames[] = { "self", NULL };
7434 char _ptemp[128];
7435
7436 self = self;
7437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0))
7438 return NULL;
7439 if (_argo0) {
7440 if (_argo0 == Py_None) { _arg0 = NULL; }
7441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
7443 return NULL;
7444 }
7445 }
7446 {
7447 wxPy_BEGIN_ALLOW_THREADS;
7448 wxColour & _result_ref = wxMenuItem_GetTextColour(_arg0);
7449 _result = (wxColour *) &_result_ref;
7450
7451 wxPy_END_ALLOW_THREADS;
7452 } if (_result) {
7453 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7454 _resultobj = Py_BuildValue("s",_ptemp);
7455 } else {
7456 Py_INCREF(Py_None);
7457 _resultobj = Py_None;
7458 }
7459 return _resultobj;
7460 }
7461
7462 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
7463 static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7464 PyObject * _resultobj;
7465 wxMenuItem * _arg0;
7466 wxColour * _arg1;
7467 PyObject * _argo0 = 0;
7468 PyObject * _argo1 = 0;
7469 char *_kwnames[] = { "self","colour", NULL };
7470
7471 self = self;
7472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_argo1))
7473 return NULL;
7474 if (_argo0) {
7475 if (_argo0 == Py_None) { _arg0 = NULL; }
7476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
7478 return NULL;
7479 }
7480 }
7481 if (_argo1) {
7482 if (_argo1 == Py_None) { _arg1 = NULL; }
7483 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
7484 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBackgroundColour. Expected _wxColour_p.");
7485 return NULL;
7486 }
7487 }
7488 {
7489 wxPy_BEGIN_ALLOW_THREADS;
7490 wxMenuItem_SetBackgroundColour(_arg0,*_arg1);
7491
7492 wxPy_END_ALLOW_THREADS;
7493 } Py_INCREF(Py_None);
7494 _resultobj = Py_None;
7495 return _resultobj;
7496 }
7497
7498 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
7499 static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
7500 PyObject * _resultobj;
7501 wxMenuItem * _arg0;
7502 wxBitmap * _arg1;
7503 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
7504 PyObject * _argo0 = 0;
7505 PyObject * _argo1 = 0;
7506 PyObject * _argo2 = 0;
7507 char *_kwnames[] = { "self","checked","unchecked", NULL };
7508
7509 self = self;
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2))
7511 return NULL;
7512 if (_argo0) {
7513 if (_argo0 == Py_None) { _arg0 = NULL; }
7514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
7516 return NULL;
7517 }
7518 }
7519 if (_argo1) {
7520 if (_argo1 == Py_None) { _arg1 = NULL; }
7521 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7522 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
7523 return NULL;
7524 }
7525 }
7526 if (_argo2) {
7527 if (_argo2 == Py_None) { _arg2 = NULL; }
7528 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
7529 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
7530 return NULL;
7531 }
7532 }
7533 {
7534 wxPy_BEGIN_ALLOW_THREADS;
7535 wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2);
7536
7537 wxPy_END_ALLOW_THREADS;
7538 } Py_INCREF(Py_None);
7539 _resultobj = Py_None;
7540 return _resultobj;
7541 }
7542
7543 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7544 static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7545 PyObject * _resultobj;
7546 wxMenuItem * _arg0;
7547 wxFont * _arg1;
7548 PyObject * _argo0 = 0;
7549 PyObject * _argo1 = 0;
7550 char *_kwnames[] = { "self","font", NULL };
7551
7552 self = self;
7553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1))
7554 return NULL;
7555 if (_argo0) {
7556 if (_argo0 == Py_None) { _arg0 = NULL; }
7557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
7559 return NULL;
7560 }
7561 }
7562 if (_argo1) {
7563 if (_argo1 == Py_None) { _arg1 = NULL; }
7564 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
7565 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
7566 return NULL;
7567 }
7568 }
7569 {
7570 wxPy_BEGIN_ALLOW_THREADS;
7571 wxMenuItem_SetFont(_arg0,*_arg1);
7572
7573 wxPy_END_ALLOW_THREADS;
7574 } Py_INCREF(Py_None);
7575 _resultobj = Py_None;
7576 return _resultobj;
7577 }
7578
7579 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
7580 static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7581 PyObject * _resultobj;
7582 wxMenuItem * _arg0;
7583 int _arg1;
7584 PyObject * _argo0 = 0;
7585 char *_kwnames[] = { "self","width", NULL };
7586
7587 self = self;
7588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1))
7589 return NULL;
7590 if (_argo0) {
7591 if (_argo0 == Py_None) { _arg0 = NULL; }
7592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
7594 return NULL;
7595 }
7596 }
7597 {
7598 wxPy_BEGIN_ALLOW_THREADS;
7599 wxMenuItem_SetMarginWidth(_arg0,_arg1);
7600
7601 wxPy_END_ALLOW_THREADS;
7602 } Py_INCREF(Py_None);
7603 _resultobj = Py_None;
7604 return _resultobj;
7605 }
7606
7607 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
7608 static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7609 PyObject * _resultobj;
7610 wxMenuItem * _arg0;
7611 wxColour * _arg1;
7612 PyObject * _argo0 = 0;
7613 PyObject * _argo1 = 0;
7614 char *_kwnames[] = { "self","colour", NULL };
7615
7616 self = self;
7617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_argo1))
7618 return NULL;
7619 if (_argo0) {
7620 if (_argo0 == Py_None) { _arg0 = NULL; }
7621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
7623 return NULL;
7624 }
7625 }
7626 if (_argo1) {
7627 if (_argo1 == Py_None) { _arg1 = NULL; }
7628 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
7629 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetTextColour. Expected _wxColour_p.");
7630 return NULL;
7631 }
7632 }
7633 {
7634 wxPy_BEGIN_ALLOW_THREADS;
7635 wxMenuItem_SetTextColour(_arg0,*_arg1);
7636
7637 wxPy_END_ALLOW_THREADS;
7638 } Py_INCREF(Py_None);
7639 _resultobj = Py_None;
7640 return _resultobj;
7641 }
7642
7643 #define wxMenuItem_DeleteSubMenu(_swigobj) (_swigobj->DeleteSubMenu())
7644 static PyObject *_wrap_wxMenuItem_DeleteSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7645 PyObject * _resultobj;
7646 wxMenuItem * _arg0;
7647 PyObject * _argo0 = 0;
7648 char *_kwnames[] = { "self", NULL };
7649
7650 self = self;
7651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_DeleteSubMenu",_kwnames,&_argo0))
7652 return NULL;
7653 if (_argo0) {
7654 if (_argo0 == Py_None) { _arg0 = NULL; }
7655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_DeleteSubMenu. Expected _wxMenuItem_p.");
7657 return NULL;
7658 }
7659 }
7660 {
7661 wxPy_BEGIN_ALLOW_THREADS;
7662 wxMenuItem_DeleteSubMenu(_arg0);
7663
7664 wxPy_END_ALLOW_THREADS;
7665 } Py_INCREF(Py_None);
7666 _resultobj = Py_None;
7667 return _resultobj;
7668 }
7669
7670 static PyMethodDef windowscMethods[] = {
7671 { "wxMenuItem_DeleteSubMenu", (PyCFunction) _wrap_wxMenuItem_DeleteSubMenu, METH_VARARGS | METH_KEYWORDS },
7672 { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
7673 { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
7674 { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
7675 { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
7676 { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
7677 { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
7678 { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
7679 { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
7680 { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
7681 { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
7682 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
7683 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
7684 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
7685 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
7686 { "wxMenuItem_GetName", (PyCFunction) _wrap_wxMenuItem_GetName, METH_VARARGS | METH_KEYWORDS },
7687 { "wxMenuItem_SetName", (PyCFunction) _wrap_wxMenuItem_SetName, METH_VARARGS | METH_KEYWORDS },
7688 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
7689 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
7690 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
7691 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
7692 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
7693 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
7694 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
7695 { "wxMenuBar_Refresh", (PyCFunction) _wrap_wxMenuBar_Refresh, METH_VARARGS | METH_KEYWORDS },
7696 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
7697 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
7698 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
7699 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
7700 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
7701 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
7702 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
7703 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
7704 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
7705 { "wxMenuBar_FindItemForId", (PyCFunction) _wrap_wxMenuBar_FindItemForId, METH_VARARGS | METH_KEYWORDS },
7706 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
7707 { "wxMenuBar_Enabled", (PyCFunction) _wrap_wxMenuBar_Enabled, METH_VARARGS | METH_KEYWORDS },
7708 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
7709 { "wxMenuBar_Checked", (PyCFunction) _wrap_wxMenuBar_Checked, METH_VARARGS | METH_KEYWORDS },
7710 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
7711 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
7712 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
7713 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
7714 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
7715 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
7716 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
7717 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
7718 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
7719 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
7720 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
7721 { "wxMenu_FindItemForId", (PyCFunction) _wrap_wxMenu_FindItemForId, METH_VARARGS | METH_KEYWORDS },
7722 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
7723 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
7724 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
7725 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
7726 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
7727 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
7728 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
7729 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
7730 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
7731 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
7732 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
7733 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS },
7734 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS },
7735 { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS },
7736 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
7737 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
7738 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
7739 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
7740 { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
7741 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
7742 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
7743 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
7744 { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS },
7745 { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
7746 { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
7747 { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS },
7748 { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS },
7749 { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS },
7750 { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS },
7751 { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS },
7752 { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS },
7753 { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS },
7754 { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS },
7755 { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS },
7756 { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
7757 { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
7758 { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
7759 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
7760 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
7761 { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
7762 { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
7763 { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
7764 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
7765 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
7766 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
7767 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
7768 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
7769 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
7770 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
7771 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
7772 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
7773 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
7774 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
7775 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
7776 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
7777 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
7778 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
7779 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
7780 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
7781 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
7782 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
7783 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
7784 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
7785 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
7786 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
7787 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
7788 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
7789 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
7790 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
7791 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
7792 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
7793 { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
7794 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
7795 { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS },
7796 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
7797 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
7798 { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
7799 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
7800 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
7801 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
7802 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
7803 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
7804 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
7805 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
7806 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
7807 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
7808 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
7809 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
7810 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
7811 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
7812 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
7813 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
7814 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
7815 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
7816 { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS },
7817 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
7818 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
7819 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
7820 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
7821 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
7822 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
7823 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
7824 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
7825 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
7826 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
7827 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
7828 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
7829 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
7830 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
7831 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
7832 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
7833 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
7834 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
7835 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
7836 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
7837 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
7838 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
7839 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
7840 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
7841 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
7842 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
7843 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
7844 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
7845 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
7846 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
7847 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
7848 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
7849 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
7850 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
7851 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
7852 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
7853 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
7854 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
7855 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
7856 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
7857 { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
7858 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
7859 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
7860 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
7861 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
7862 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
7863 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
7864 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
7865 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
7866 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
7867 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
7868 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
7869 { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS },
7870 { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS },
7871 { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
7872 { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
7873 { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
7874 { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
7875 { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
7876 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
7877 { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
7878 { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
7879 { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
7880 { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
7881 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
7882 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
7883 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
7884 { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS },
7885 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
7886 { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
7887 { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
7888 { NULL, NULL }
7889 };
7890 #ifdef __cplusplus
7891 }
7892 #endif
7893 /*
7894 * This table is used by the pointer type-checker
7895 */
7896 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
7897 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
7898 { "_signed_long","_long",0},
7899 { "_wxPrintQuality","_int",0},
7900 { "_wxPrintQuality","_signed_int",0},
7901 { "_wxPrintQuality","_unsigned_int",0},
7902 { "_wxPrintQuality","_wxWindowID",0},
7903 { "_wxPrintQuality","_uint",0},
7904 { "_wxPrintQuality","_EBool",0},
7905 { "_wxPrintQuality","_size_t",0},
7906 { "_class_wxRegionIterator","_wxRegionIterator",0},
7907 { "_class_wxMenuBar","_wxMenuBar",0},
7908 { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
7909 { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
7910 { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
7911 { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
7912 { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
7913 { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
7914 { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
7915 { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
7916 { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
7917 { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
7918 { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
7919 { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
7920 { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
7921 { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
7922 { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler},
7923 { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
7924 { "_class_wxEvtHandler","_wxEvtHandler",0},
7925 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
7926 { "_wxCursor","_class_wxCursor",0},
7927 { "_wxMask","_class_wxMask",0},
7928 { "_wxPen","_class_wxPen",0},
7929 { "_byte","_unsigned_char",0},
7930 { "_long","_wxDash",0},
7931 { "_long","_unsigned_long",0},
7932 { "_long","_signed_long",0},
7933 { "_wxImageList","_class_wxImageList",0},
7934 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
7935 { "_wxDC","_class_wxDC",0},
7936 { "_size_t","_wxPrintQuality",0},
7937 { "_size_t","_unsigned_int",0},
7938 { "_size_t","_int",0},
7939 { "_size_t","_wxWindowID",0},
7940 { "_size_t","_uint",0},
7941 { "_class_wxRealPoint","_wxRealPoint",0},
7942 { "_wxPrinterDC","_class_wxPrinterDC",0},
7943 { "_class_wxMenuItem","_wxMenuItem",0},
7944 { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
7945 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
7946 { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
7947 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
7948 { "_wxPanel","_class_wxPanel",0},
7949 { "_class_wxMask","_wxMask",0},
7950 { "_wxColour","_class_wxColour",0},
7951 { "_class_wxDialog","_wxDialog",0},
7952 { "_wxBrush","_class_wxBrush",0},
7953 { "_uint","_wxPrintQuality",0},
7954 { "_uint","_size_t",0},
7955 { "_uint","_unsigned_int",0},
7956 { "_uint","_int",0},
7957 { "_uint","_wxWindowID",0},
7958 { "_wxPyValidator","_class_wxPyValidator",0},
7959 { "_wxRect","_class_wxRect",0},
7960 { "_wxPoint","_class_wxPoint",0},
7961 { "_wxBitmap","_class_wxBitmap",0},
7962 { "_wxPyTimer","_class_wxPyTimer",0},
7963 { "_wxWindowDC","_class_wxWindowDC",0},
7964 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
7965 { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator},
7966 { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
7967 { "_class_wxValidator","_wxValidator",0},
7968 { "_EBool","_wxPrintQuality",0},
7969 { "_EBool","_signed_int",0},
7970 { "_EBool","_int",0},
7971 { "_EBool","_wxWindowID",0},
7972 { "_class_wxRegion","_wxRegion",0},
7973 { "_wxFont","_class_wxFont",0},
7974 { "_unsigned_long","_wxDash",0},
7975 { "_unsigned_long","_long",0},
7976 { "_class_wxRect","_wxRect",0},
7977 { "_class_wxDC","_wxDC",0},
7978 { "_class_wxPyTimer","_wxPyTimer",0},
7979 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
7980 { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
7981 { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
7982 { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
7983 { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
7984 { "_class_wxPanel","_wxPanel",0},
7985 { "_signed_int","_wxPrintQuality",0},
7986 { "_signed_int","_EBool",0},
7987 { "_signed_int","_wxWindowID",0},
7988 { "_signed_int","_int",0},
7989 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
7990 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
7991 { "_wxMenu","_class_wxMenu",0},
7992 { "_wxScreenDC","_class_wxScreenDC",0},
7993 { "_WXTYPE","_short",0},
7994 { "_WXTYPE","_signed_short",0},
7995 { "_WXTYPE","_unsigned_short",0},
7996 { "_class_wxBrush","_wxBrush",0},
7997 { "_unsigned_short","_WXTYPE",0},
7998 { "_unsigned_short","_short",0},
7999 { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8000 { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8001 { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
8002 { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
8003 { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
8004 { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
8005 { "_class_wxWindow","_wxWindow",0},
8006 { "_class_wxFont","_wxFont",0},
8007 { "_class_wxPyValidator","_wxPyValidator",0},
8008 { "_wxClientDC","_class_wxClientDC",0},
8009 { "_class_wxPoint","_wxPoint",0},
8010 { "_wxRealPoint","_class_wxRealPoint",0},
8011 { "_signed_short","_WXTYPE",0},
8012 { "_signed_short","_short",0},
8013 { "_wxMemoryDC","_class_wxMemoryDC",0},
8014 { "_wxPaintDC","_class_wxPaintDC",0},
8015 { "_class_wxWindowDC","_wxWindowDC",0},
8016 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
8017 { "_class_wxCursor","_wxCursor",0},
8018 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
8019 { "_unsigned_char","_byte",0},
8020 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
8021 { "_class_wxMenu","_wxMenu",0},
8022 { "_unsigned_int","_wxPrintQuality",0},
8023 { "_unsigned_int","_size_t",0},
8024 { "_unsigned_int","_uint",0},
8025 { "_unsigned_int","_wxWindowID",0},
8026 { "_unsigned_int","_int",0},
8027 { "_wxIcon","_class_wxIcon",0},
8028 { "_wxDialog","_class_wxDialog",0},
8029 { "_class_wxPen","_wxPen",0},
8030 { "_short","_WXTYPE",0},
8031 { "_short","_unsigned_short",0},
8032 { "_short","_signed_short",0},
8033 { "_class_wxImageList","_wxImageList",0},
8034 { "_wxWindowID","_wxPrintQuality",0},
8035 { "_wxWindowID","_size_t",0},
8036 { "_wxWindowID","_EBool",0},
8037 { "_wxWindowID","_uint",0},
8038 { "_wxWindowID","_int",0},
8039 { "_wxWindowID","_signed_int",0},
8040 { "_wxWindowID","_unsigned_int",0},
8041 { "_int","_wxPrintQuality",0},
8042 { "_int","_size_t",0},
8043 { "_int","_EBool",0},
8044 { "_int","_uint",0},
8045 { "_int","_wxWindowID",0},
8046 { "_int","_unsigned_int",0},
8047 { "_int","_signed_int",0},
8048 { "_wxSize","_class_wxSize",0},
8049 { "_wxRegionIterator","_class_wxRegionIterator",0},
8050 { "_class_wxPrinterDC","_wxPrinterDC",0},
8051 { "_class_wxPaintDC","_wxPaintDC",0},
8052 { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator},
8053 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
8054 { "_wxValidator","_class_wxValidator",0},
8055 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
8056 { "_class_wxIcon","_wxIcon",0},
8057 { "_class_wxColour","_wxColour",0},
8058 { "_class_wxScreenDC","_wxScreenDC",0},
8059 { "_wxPalette","_class_wxPalette",0},
8060 { "_wxRegion","_class_wxRegion",0},
8061 { "_class_wxClientDC","_wxClientDC",0},
8062 { "_class_wxSize","_wxSize",0},
8063 { "_class_wxBitmap","_wxBitmap",0},
8064 { "_class_wxMemoryDC","_wxMemoryDC",0},
8065 { "_wxMenuBar","_class_wxMenuBar",0},
8066 { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8067 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8068 { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
8069 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
8070 { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8071 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8072 { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
8073 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
8074 { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
8075 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
8076 { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
8077 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
8078 { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8079 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8080 { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler},
8081 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
8082 { "_wxEvtHandler","_class_wxEvtHandler",0},
8083 { "_wxMenuItem","_class_wxMenuItem",0},
8084 { "_wxDash","_unsigned_long",0},
8085 { "_wxDash","_long",0},
8086 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
8087 { "_class_wxPalette","_wxPalette",0},
8088 { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8089 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8090 { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
8091 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
8092 { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
8093 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
8094 { "_wxWindow","_class_wxWindow",0},
8095 {0,0,0}};
8096
8097 static PyObject *SWIG_globals;
8098 #ifdef __cplusplus
8099 extern "C"
8100 #endif
8101 SWIGEXPORT(void) initwindowsc() {
8102 PyObject *m, *d;
8103 SWIG_globals = SWIG_newvarlink();
8104 m = Py_InitModule("windowsc", windowscMethods);
8105 d = PyModule_GetDict(m);
8106 {
8107 int i;
8108 for (i = 0; _swig_mapping[i].n1; i++)
8109 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
8110 }
8111 }