]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/windows.cpp
Added wxPython support of new HTML Printing classes.
[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 static long wxWindow_GetHandle(wxWindow *self) {
1670 return (long)self->GetHandle();
1671 }
1672 static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject * _resultobj;
1674 long _result;
1675 wxWindow * _arg0;
1676 PyObject * _argo0 = 0;
1677 char *_kwnames[] = { "self", NULL };
1678
1679 self = self;
1680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0))
1681 return NULL;
1682 if (_argo0) {
1683 if (_argo0 == Py_None) { _arg0 = NULL; }
1684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p.");
1686 return NULL;
1687 }
1688 }
1689 {
1690 wxPy_BEGIN_ALLOW_THREADS;
1691 _result = (long )wxWindow_GetHandle(_arg0);
1692
1693 wxPy_END_ALLOW_THREADS;
1694 } _resultobj = Py_BuildValue("l",_result);
1695 return _resultobj;
1696 }
1697
1698 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1699 static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
1700 PyObject * _resultobj;
1701 int _result;
1702 wxWindow * _arg0;
1703 PyObject * _argo0 = 0;
1704 char *_kwnames[] = { "self", NULL };
1705
1706 self = self;
1707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0))
1708 return NULL;
1709 if (_argo0) {
1710 if (_argo0 == Py_None) { _arg0 = NULL; }
1711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1713 return NULL;
1714 }
1715 }
1716 {
1717 wxPy_BEGIN_ALLOW_THREADS;
1718 _result = (int )wxWindow_GetId(_arg0);
1719
1720 wxPy_END_ALLOW_THREADS;
1721 } _resultobj = Py_BuildValue("i",_result);
1722 return _resultobj;
1723 }
1724
1725 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1726 static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1727 PyObject * _resultobj;
1728 wxString * _result;
1729 wxWindow * _arg0;
1730 PyObject * _argo0 = 0;
1731 char *_kwnames[] = { "self", NULL };
1732
1733 self = self;
1734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0))
1735 return NULL;
1736 if (_argo0) {
1737 if (_argo0 == Py_None) { _arg0 = NULL; }
1738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1740 return NULL;
1741 }
1742 }
1743 {
1744 wxPy_BEGIN_ALLOW_THREADS;
1745 _result = new wxString (wxWindow_GetLabel(_arg0));
1746
1747 wxPy_END_ALLOW_THREADS;
1748 }{
1749 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1750 }
1751 {
1752 delete _result;
1753 }
1754 return _resultobj;
1755 }
1756
1757 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1758 static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1759 PyObject * _resultobj;
1760 wxWindow * _arg0;
1761 wxString * _arg1;
1762 PyObject * _argo0 = 0;
1763 PyObject * _obj1 = 0;
1764 char *_kwnames[] = { "self","label", NULL };
1765
1766 self = self;
1767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1))
1768 return NULL;
1769 if (_argo0) {
1770 if (_argo0 == Py_None) { _arg0 = NULL; }
1771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
1773 return NULL;
1774 }
1775 }
1776 {
1777 if (!PyString_Check(_obj1)) {
1778 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1779 return NULL;
1780 }
1781 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1782 }
1783 {
1784 wxPy_BEGIN_ALLOW_THREADS;
1785 wxWindow_SetLabel(_arg0,*_arg1);
1786
1787 wxPy_END_ALLOW_THREADS;
1788 } Py_INCREF(Py_None);
1789 _resultobj = Py_None;
1790 {
1791 if (_obj1)
1792 delete _arg1;
1793 }
1794 return _resultobj;
1795 }
1796
1797 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
1798 static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
1799 PyObject * _resultobj;
1800 wxString * _result;
1801 wxWindow * _arg0;
1802 PyObject * _argo0 = 0;
1803 char *_kwnames[] = { "self", NULL };
1804
1805 self = self;
1806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0))
1807 return NULL;
1808 if (_argo0) {
1809 if (_argo0 == Py_None) { _arg0 = NULL; }
1810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
1812 return NULL;
1813 }
1814 }
1815 {
1816 wxPy_BEGIN_ALLOW_THREADS;
1817 _result = new wxString (wxWindow_GetName(_arg0));
1818
1819 wxPy_END_ALLOW_THREADS;
1820 }{
1821 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1822 }
1823 {
1824 delete _result;
1825 }
1826 return _resultobj;
1827 }
1828
1829 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
1830 static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1831 PyObject * _resultobj;
1832 wxWindow * _result;
1833 wxWindow * _arg0;
1834 PyObject * _argo0 = 0;
1835 char *_kwnames[] = { "self", NULL };
1836 char _ptemp[128];
1837
1838 self = self;
1839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0))
1840 return NULL;
1841 if (_argo0) {
1842 if (_argo0 == Py_None) { _arg0 = NULL; }
1843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
1845 return NULL;
1846 }
1847 }
1848 {
1849 wxPy_BEGIN_ALLOW_THREADS;
1850 _result = (wxWindow *)wxWindow_GetParent(_arg0);
1851
1852 wxPy_END_ALLOW_THREADS;
1853 } if (_result) {
1854 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1855 _resultobj = Py_BuildValue("s",_ptemp);
1856 } else {
1857 Py_INCREF(Py_None);
1858 _resultobj = Py_None;
1859 }
1860 return _resultobj;
1861 }
1862
1863 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
1864 static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1865 PyObject * _resultobj;
1866 wxWindow * _arg0;
1867 int * _arg1;
1868 int temp;
1869 int * _arg2;
1870 int temp0;
1871 PyObject * _argo0 = 0;
1872 char *_kwnames[] = { "self", NULL };
1873
1874 self = self;
1875 {
1876 _arg1 = &temp;
1877 }
1878 {
1879 _arg2 = &temp0;
1880 }
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0))
1882 return NULL;
1883 if (_argo0) {
1884 if (_argo0 == Py_None) { _arg0 = NULL; }
1885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
1887 return NULL;
1888 }
1889 }
1890 {
1891 wxPy_BEGIN_ALLOW_THREADS;
1892 wxWindow_GetPositionTuple(_arg0,_arg1,_arg2);
1893
1894 wxPy_END_ALLOW_THREADS;
1895 } Py_INCREF(Py_None);
1896 _resultobj = Py_None;
1897 {
1898 PyObject *o;
1899 o = PyInt_FromLong((long) (*_arg1));
1900 _resultobj = t_output_helper(_resultobj, o);
1901 }
1902 {
1903 PyObject *o;
1904 o = PyInt_FromLong((long) (*_arg2));
1905 _resultobj = t_output_helper(_resultobj, o);
1906 }
1907 return _resultobj;
1908 }
1909
1910 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
1911 static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject * _resultobj;
1913 wxPoint * _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_GetPosition",_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_GetPosition. Expected _wxWindow_p.");
1926 return NULL;
1927 }
1928 }
1929 {
1930 wxPy_BEGIN_ALLOW_THREADS;
1931 _result = new wxPoint (wxWindow_GetPosition(_arg0));
1932
1933 wxPy_END_ALLOW_THREADS;
1934 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1935 _resultobj = Py_BuildValue("s",_ptemp);
1936 return _resultobj;
1937 }
1938
1939 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
1940 static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
1941 PyObject * _resultobj;
1942 wxRect * _result;
1943 wxWindow * _arg0;
1944 PyObject * _argo0 = 0;
1945 char *_kwnames[] = { "self", NULL };
1946 char _ptemp[128];
1947
1948 self = self;
1949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0))
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_GetRect. Expected _wxWindow_p.");
1955 return NULL;
1956 }
1957 }
1958 {
1959 wxPy_BEGIN_ALLOW_THREADS;
1960 _result = new wxRect (wxWindow_GetRect(_arg0));
1961
1962 wxPy_END_ALLOW_THREADS;
1963 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
1964 _resultobj = Py_BuildValue("s",_ptemp);
1965 return _resultobj;
1966 }
1967
1968 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
1969 static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
1970 PyObject * _resultobj;
1971 int _result;
1972 wxWindow * _arg0;
1973 int _arg1;
1974 PyObject * _argo0 = 0;
1975 char *_kwnames[] = { "self","orientation", NULL };
1976
1977 self = self;
1978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1))
1979 return NULL;
1980 if (_argo0) {
1981 if (_argo0 == Py_None) { _arg0 = NULL; }
1982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
1984 return NULL;
1985 }
1986 }
1987 {
1988 wxPy_BEGIN_ALLOW_THREADS;
1989 _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1);
1990
1991 wxPy_END_ALLOW_THREADS;
1992 } _resultobj = Py_BuildValue("i",_result);
1993 return _resultobj;
1994 }
1995
1996 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
1997 static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
1998 PyObject * _resultobj;
1999 int _result;
2000 wxWindow * _arg0;
2001 int _arg1;
2002 PyObject * _argo0 = 0;
2003 char *_kwnames[] = { "self","orientation", NULL };
2004
2005 self = self;
2006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1))
2007 return NULL;
2008 if (_argo0) {
2009 if (_argo0 == Py_None) { _arg0 = NULL; }
2010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
2012 return NULL;
2013 }
2014 }
2015 {
2016 wxPy_BEGIN_ALLOW_THREADS;
2017 _result = (int )wxWindow_GetScrollPos(_arg0,_arg1);
2018
2019 wxPy_END_ALLOW_THREADS;
2020 } _resultobj = Py_BuildValue("i",_result);
2021 return _resultobj;
2022 }
2023
2024 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
2025 static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
2026 PyObject * _resultobj;
2027 int _result;
2028 wxWindow * _arg0;
2029 int _arg1;
2030 PyObject * _argo0 = 0;
2031 char *_kwnames[] = { "self","orientation", NULL };
2032
2033 self = self;
2034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1))
2035 return NULL;
2036 if (_argo0) {
2037 if (_argo0 == Py_None) { _arg0 = NULL; }
2038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
2040 return NULL;
2041 }
2042 }
2043 {
2044 wxPy_BEGIN_ALLOW_THREADS;
2045 _result = (int )wxWindow_GetScrollRange(_arg0,_arg1);
2046
2047 wxPy_END_ALLOW_THREADS;
2048 } _resultobj = Py_BuildValue("i",_result);
2049 return _resultobj;
2050 }
2051
2052 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2053 static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2054 PyObject * _resultobj;
2055 wxWindow * _arg0;
2056 int * _arg1;
2057 int temp;
2058 int * _arg2;
2059 int temp0;
2060 PyObject * _argo0 = 0;
2061 char *_kwnames[] = { "self", NULL };
2062
2063 self = self;
2064 {
2065 _arg1 = &temp;
2066 }
2067 {
2068 _arg2 = &temp0;
2069 }
2070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0))
2071 return NULL;
2072 if (_argo0) {
2073 if (_argo0 == Py_None) { _arg0 = NULL; }
2074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
2076 return NULL;
2077 }
2078 }
2079 {
2080 wxPy_BEGIN_ALLOW_THREADS;
2081 wxWindow_GetSizeTuple(_arg0,_arg1,_arg2);
2082
2083 wxPy_END_ALLOW_THREADS;
2084 } Py_INCREF(Py_None);
2085 _resultobj = Py_None;
2086 {
2087 PyObject *o;
2088 o = PyInt_FromLong((long) (*_arg1));
2089 _resultobj = t_output_helper(_resultobj, o);
2090 }
2091 {
2092 PyObject *o;
2093 o = PyInt_FromLong((long) (*_arg2));
2094 _resultobj = t_output_helper(_resultobj, o);
2095 }
2096 return _resultobj;
2097 }
2098
2099 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
2100 static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2101 PyObject * _resultobj;
2102 wxSize * _result;
2103 wxWindow * _arg0;
2104 PyObject * _argo0 = 0;
2105 char *_kwnames[] = { "self", NULL };
2106 char _ptemp[128];
2107
2108 self = self;
2109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0))
2110 return NULL;
2111 if (_argo0) {
2112 if (_argo0 == Py_None) { _arg0 = NULL; }
2113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
2115 return NULL;
2116 }
2117 }
2118 {
2119 wxPy_BEGIN_ALLOW_THREADS;
2120 _result = new wxSize (wxWindow_GetSize(_arg0));
2121
2122 wxPy_END_ALLOW_THREADS;
2123 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2124 _resultobj = Py_BuildValue("s",_ptemp);
2125 return _resultobj;
2126 }
2127
2128 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
2129 static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2130 PyObject * _resultobj;
2131 wxWindow * _arg0;
2132 wxString * _arg1;
2133 int * _arg2;
2134 int temp;
2135 int * _arg3;
2136 int temp0;
2137 PyObject * _argo0 = 0;
2138 PyObject * _obj1 = 0;
2139 char *_kwnames[] = { "self","string", NULL };
2140
2141 self = self;
2142 {
2143 _arg2 = &temp;
2144 }
2145 {
2146 _arg3 = &temp0;
2147 }
2148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1))
2149 return NULL;
2150 if (_argo0) {
2151 if (_argo0 == Py_None) { _arg0 = NULL; }
2152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
2154 return NULL;
2155 }
2156 }
2157 {
2158 if (!PyString_Check(_obj1)) {
2159 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2160 return NULL;
2161 }
2162 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
2163 }
2164 {
2165 wxPy_BEGIN_ALLOW_THREADS;
2166 wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
2167
2168 wxPy_END_ALLOW_THREADS;
2169 } Py_INCREF(Py_None);
2170 _resultobj = Py_None;
2171 {
2172 PyObject *o;
2173 o = PyInt_FromLong((long) (*_arg2));
2174 _resultobj = t_output_helper(_resultobj, o);
2175 }
2176 {
2177 PyObject *o;
2178 o = PyInt_FromLong((long) (*_arg3));
2179 _resultobj = t_output_helper(_resultobj, o);
2180 }
2181 {
2182 if (_obj1)
2183 delete _arg1;
2184 }
2185 return _resultobj;
2186 }
2187
2188 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2189 static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject * _resultobj;
2191 wxWindow * _arg0;
2192 wxString * _arg1;
2193 int * _arg2;
2194 int temp;
2195 int * _arg3;
2196 int temp0;
2197 int * _arg4;
2198 int temp1;
2199 int * _arg5;
2200 int temp2;
2201 wxFont * _arg6 = (wxFont *) NULL;
2202 PyObject * _argo0 = 0;
2203 PyObject * _obj1 = 0;
2204 PyObject * _argo6 = 0;
2205 char *_kwnames[] = { "self","string","font", NULL };
2206
2207 self = self;
2208 {
2209 _arg2 = &temp;
2210 }
2211 {
2212 _arg3 = &temp0;
2213 }
2214 {
2215 _arg4 = &temp1;
2216 }
2217 {
2218 _arg5 = &temp2;
2219 }
2220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
2221 return NULL;
2222 if (_argo0) {
2223 if (_argo0 == Py_None) { _arg0 = NULL; }
2224 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2225 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
2226 return NULL;
2227 }
2228 }
2229 {
2230 if (!PyString_Check(_obj1)) {
2231 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2232 return NULL;
2233 }
2234 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
2235 }
2236 if (_argo6) {
2237 if (_argo6 == Py_None) { _arg6 = NULL; }
2238 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
2239 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
2240 return NULL;
2241 }
2242 }
2243 {
2244 wxPy_BEGIN_ALLOW_THREADS;
2245 wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2246
2247 wxPy_END_ALLOW_THREADS;
2248 } Py_INCREF(Py_None);
2249 _resultobj = Py_None;
2250 {
2251 PyObject *o;
2252 o = PyInt_FromLong((long) (*_arg2));
2253 _resultobj = t_output_helper(_resultobj, o);
2254 }
2255 {
2256 PyObject *o;
2257 o = PyInt_FromLong((long) (*_arg3));
2258 _resultobj = t_output_helper(_resultobj, o);
2259 }
2260 {
2261 PyObject *o;
2262 o = PyInt_FromLong((long) (*_arg4));
2263 _resultobj = t_output_helper(_resultobj, o);
2264 }
2265 {
2266 PyObject *o;
2267 o = PyInt_FromLong((long) (*_arg5));
2268 _resultobj = t_output_helper(_resultobj, o);
2269 }
2270 {
2271 if (_obj1)
2272 delete _arg1;
2273 }
2274 return _resultobj;
2275 }
2276
2277 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
2278 static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
2279 PyObject * _resultobj;
2280 wxString * _result;
2281 wxWindow * _arg0;
2282 PyObject * _argo0 = 0;
2283 char *_kwnames[] = { "self", NULL };
2284
2285 self = self;
2286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0))
2287 return NULL;
2288 if (_argo0) {
2289 if (_argo0 == Py_None) { _arg0 = NULL; }
2290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
2292 return NULL;
2293 }
2294 }
2295 {
2296 wxPy_BEGIN_ALLOW_THREADS;
2297 _result = new wxString (wxWindow_GetTitle(_arg0));
2298
2299 wxPy_END_ALLOW_THREADS;
2300 }{
2301 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
2302 }
2303 {
2304 delete _result;
2305 }
2306 return _resultobj;
2307 }
2308
2309 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
2310 static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
2311 PyObject * _resultobj;
2312 wxRegion * _result;
2313 wxWindow * _arg0;
2314 PyObject * _argo0 = 0;
2315 char *_kwnames[] = { "self", NULL };
2316 char _ptemp[128];
2317
2318 self = self;
2319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0))
2320 return NULL;
2321 if (_argo0) {
2322 if (_argo0 == Py_None) { _arg0 = NULL; }
2323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
2325 return NULL;
2326 }
2327 }
2328 {
2329 wxPy_BEGIN_ALLOW_THREADS;
2330 _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0));
2331
2332 wxPy_END_ALLOW_THREADS;
2333 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p");
2334 _resultobj = Py_BuildValue("s",_ptemp);
2335 return _resultobj;
2336 }
2337
2338 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
2339 static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
2340 PyObject * _resultobj;
2341 long _result;
2342 wxWindow * _arg0;
2343 PyObject * _argo0 = 0;
2344 char *_kwnames[] = { "self", NULL };
2345
2346 self = self;
2347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0))
2348 return NULL;
2349 if (_argo0) {
2350 if (_argo0 == Py_None) { _arg0 = NULL; }
2351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
2353 return NULL;
2354 }
2355 }
2356 {
2357 wxPy_BEGIN_ALLOW_THREADS;
2358 _result = (long )wxWindow_GetWindowStyleFlag(_arg0);
2359
2360 wxPy_END_ALLOW_THREADS;
2361 } _resultobj = Py_BuildValue("l",_result);
2362 return _resultobj;
2363 }
2364
2365 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
2366 static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
2367 PyObject * _resultobj;
2368 bool _result;
2369 wxWindow * _arg0;
2370 PyObject * _argo0 = 0;
2371 char *_kwnames[] = { "self", NULL };
2372
2373 self = self;
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0))
2375 return NULL;
2376 if (_argo0) {
2377 if (_argo0 == Py_None) { _arg0 = NULL; }
2378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
2380 return NULL;
2381 }
2382 }
2383 {
2384 wxPy_BEGIN_ALLOW_THREADS;
2385 _result = (bool )wxWindow_Hide(_arg0);
2386
2387 wxPy_END_ALLOW_THREADS;
2388 } _resultobj = Py_BuildValue("i",_result);
2389 return _resultobj;
2390 }
2391
2392 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
2393 static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject * _resultobj;
2395 wxWindow * _arg0;
2396 PyObject * _argo0 = 0;
2397 char *_kwnames[] = { "self", NULL };
2398
2399 self = self;
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0))
2401 return NULL;
2402 if (_argo0) {
2403 if (_argo0 == Py_None) { _arg0 = NULL; }
2404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
2406 return NULL;
2407 }
2408 }
2409 {
2410 wxPy_BEGIN_ALLOW_THREADS;
2411 wxWindow_InitDialog(_arg0);
2412
2413 wxPy_END_ALLOW_THREADS;
2414 } Py_INCREF(Py_None);
2415 _resultobj = Py_None;
2416 return _resultobj;
2417 }
2418
2419 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
2420 static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
2421 PyObject * _resultobj;
2422 bool _result;
2423 wxWindow * _arg0;
2424 PyObject * _argo0 = 0;
2425 char *_kwnames[] = { "self", NULL };
2426
2427 self = self;
2428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0))
2429 return NULL;
2430 if (_argo0) {
2431 if (_argo0 == Py_None) { _arg0 = NULL; }
2432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
2434 return NULL;
2435 }
2436 }
2437 {
2438 wxPy_BEGIN_ALLOW_THREADS;
2439 _result = (bool )wxWindow_IsEnabled(_arg0);
2440
2441 wxPy_END_ALLOW_THREADS;
2442 } _resultobj = Py_BuildValue("i",_result);
2443 return _resultobj;
2444 }
2445
2446 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
2447 static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
2448 PyObject * _resultobj;
2449 bool _result;
2450 wxWindow * _arg0;
2451 PyObject * _argo0 = 0;
2452 char *_kwnames[] = { "self", NULL };
2453
2454 self = self;
2455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0))
2456 return NULL;
2457 if (_argo0) {
2458 if (_argo0 == Py_None) { _arg0 = NULL; }
2459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
2461 return NULL;
2462 }
2463 }
2464 {
2465 wxPy_BEGIN_ALLOW_THREADS;
2466 _result = (bool )wxWindow_IsRetained(_arg0);
2467
2468 wxPy_END_ALLOW_THREADS;
2469 } _resultobj = Py_BuildValue("i",_result);
2470 return _resultobj;
2471 }
2472
2473 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
2474 static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
2475 PyObject * _resultobj;
2476 bool _result;
2477 wxWindow * _arg0;
2478 PyObject * _argo0 = 0;
2479 char *_kwnames[] = { "self", NULL };
2480
2481 self = self;
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0))
2483 return NULL;
2484 if (_argo0) {
2485 if (_argo0 == Py_None) { _arg0 = NULL; }
2486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
2488 return NULL;
2489 }
2490 }
2491 {
2492 wxPy_BEGIN_ALLOW_THREADS;
2493 _result = (bool )wxWindow_IsShown(_arg0);
2494
2495 wxPy_END_ALLOW_THREADS;
2496 } _resultobj = Py_BuildValue("i",_result);
2497 return _resultobj;
2498 }
2499
2500 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
2501 static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
2502 PyObject * _resultobj;
2503 bool _result;
2504 wxWindow * _arg0;
2505 PyObject * _argo0 = 0;
2506 char *_kwnames[] = { "self", NULL };
2507
2508 self = self;
2509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0))
2510 return NULL;
2511 if (_argo0) {
2512 if (_argo0 == Py_None) { _arg0 = NULL; }
2513 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2514 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
2515 return NULL;
2516 }
2517 }
2518 {
2519 wxPy_BEGIN_ALLOW_THREADS;
2520 _result = (bool )wxWindow_IsTopLevel(_arg0);
2521
2522 wxPy_END_ALLOW_THREADS;
2523 } _resultobj = Py_BuildValue("i",_result);
2524 return _resultobj;
2525 }
2526
2527 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
2528 static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
2529 PyObject * _resultobj;
2530 wxWindow * _arg0;
2531 PyObject * _argo0 = 0;
2532 char *_kwnames[] = { "self", NULL };
2533
2534 self = self;
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0))
2536 return NULL;
2537 if (_argo0) {
2538 if (_argo0 == Py_None) { _arg0 = NULL; }
2539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
2541 return NULL;
2542 }
2543 }
2544 {
2545 wxPy_BEGIN_ALLOW_THREADS;
2546 wxWindow_Layout(_arg0);
2547
2548 wxPy_END_ALLOW_THREADS;
2549 } Py_INCREF(Py_None);
2550 _resultobj = Py_None;
2551 return _resultobj;
2552 }
2553
2554 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
2555 static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) {
2556 PyObject * _resultobj;
2557 bool _result;
2558 wxWindow * _arg0;
2559 wxWindow * _arg1;
2560 wxString * _arg2;
2561 wxResourceTable * _arg3 = (wxResourceTable *) NULL;
2562 PyObject * _argo0 = 0;
2563 PyObject * _argo1 = 0;
2564 PyObject * _obj2 = 0;
2565 PyObject * _argo3 = 0;
2566 char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL };
2567
2568 self = self;
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3))
2570 return NULL;
2571 if (_argo0) {
2572 if (_argo0 == Py_None) { _arg0 = NULL; }
2573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2575 return NULL;
2576 }
2577 }
2578 if (_argo1) {
2579 if (_argo1 == Py_None) { _arg1 = NULL; }
2580 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2581 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
2582 return NULL;
2583 }
2584 }
2585 {
2586 if (!PyString_Check(_obj2)) {
2587 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2588 return NULL;
2589 }
2590 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2591 }
2592 if (_argo3) {
2593 if (_argo3 == Py_None) { _arg3 = NULL; }
2594 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) {
2595 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
2596 return NULL;
2597 }
2598 }
2599 {
2600 wxPy_BEGIN_ALLOW_THREADS;
2601 _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3);
2602
2603 wxPy_END_ALLOW_THREADS;
2604 } _resultobj = Py_BuildValue("i",_result);
2605 {
2606 if (_obj2)
2607 delete _arg2;
2608 }
2609 return _resultobj;
2610 }
2611
2612 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
2613 static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
2614 PyObject * _resultobj;
2615 wxWindow * _arg0;
2616 PyObject * _argo0 = 0;
2617 char *_kwnames[] = { "self", NULL };
2618
2619 self = self;
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0))
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_Lower. Expected _wxWindow_p.");
2626 return NULL;
2627 }
2628 }
2629 {
2630 wxPy_BEGIN_ALLOW_THREADS;
2631 wxWindow_Lower(_arg0);
2632
2633 wxPy_END_ALLOW_THREADS;
2634 } Py_INCREF(Py_None);
2635 _resultobj = Py_None;
2636 return _resultobj;
2637 }
2638
2639 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
2640 static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2641 PyObject * _resultobj;
2642 wxWindow * _arg0;
2643 bool _arg1;
2644 PyObject * _argo0 = 0;
2645 int tempbool1;
2646 char *_kwnames[] = { "self","flag", NULL };
2647
2648 self = self;
2649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1))
2650 return NULL;
2651 if (_argo0) {
2652 if (_argo0 == Py_None) { _arg0 = NULL; }
2653 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2654 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
2655 return NULL;
2656 }
2657 }
2658 _arg1 = (bool ) tempbool1;
2659 {
2660 wxPy_BEGIN_ALLOW_THREADS;
2661 wxWindow_MakeModal(_arg0,_arg1);
2662
2663 wxPy_END_ALLOW_THREADS;
2664 } Py_INCREF(Py_None);
2665 _resultobj = Py_None;
2666 return _resultobj;
2667 }
2668
2669 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
2670 static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2671 PyObject * _resultobj;
2672 wxWindow * _arg0;
2673 int _arg1;
2674 int _arg2;
2675 PyObject * _argo0 = 0;
2676 char *_kwnames[] = { "self","x","y", NULL };
2677
2678 self = self;
2679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2))
2680 return NULL;
2681 if (_argo0) {
2682 if (_argo0 == Py_None) { _arg0 = NULL; }
2683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
2685 return NULL;
2686 }
2687 }
2688 {
2689 wxPy_BEGIN_ALLOW_THREADS;
2690 wxWindow_MoveXY(_arg0,_arg1,_arg2);
2691
2692 wxPy_END_ALLOW_THREADS;
2693 } Py_INCREF(Py_None);
2694 _resultobj = Py_None;
2695 return _resultobj;
2696 }
2697
2698 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
2699 static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
2700 PyObject * _resultobj;
2701 wxWindow * _arg0;
2702 wxPoint * _arg1;
2703 PyObject * _argo0 = 0;
2704 wxPoint temp;
2705 PyObject * _obj1 = 0;
2706 char *_kwnames[] = { "self","point", NULL };
2707
2708 self = self;
2709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1))
2710 return NULL;
2711 if (_argo0) {
2712 if (_argo0 == Py_None) { _arg0 = NULL; }
2713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
2715 return NULL;
2716 }
2717 }
2718 {
2719 _arg1 = &temp;
2720 if (! wxPoint_helper(_obj1, &_arg1))
2721 return NULL;
2722 }
2723 {
2724 wxPy_BEGIN_ALLOW_THREADS;
2725 wxWindow_Move(_arg0,*_arg1);
2726
2727 wxPy_END_ALLOW_THREADS;
2728 } Py_INCREF(Py_None);
2729 _resultobj = Py_None;
2730 return _resultobj;
2731 }
2732
2733 #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0))
2734 static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject * _resultobj;
2736 wxEvtHandler * _result;
2737 wxWindow * _arg0;
2738 bool _arg1 = (bool ) FALSE;
2739 PyObject * _argo0 = 0;
2740 int tempbool1 = (int) FALSE;
2741 char *_kwnames[] = { "self","deleteHandler", NULL };
2742 char _ptemp[128];
2743
2744 self = self;
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1))
2746 return NULL;
2747 if (_argo0) {
2748 if (_argo0 == Py_None) { _arg0 = NULL; }
2749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p.");
2751 return NULL;
2752 }
2753 }
2754 _arg1 = (bool ) tempbool1;
2755 {
2756 wxPy_BEGIN_ALLOW_THREADS;
2757 _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1);
2758
2759 wxPy_END_ALLOW_THREADS;
2760 } if (_result) {
2761 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
2762 _resultobj = Py_BuildValue("s",_ptemp);
2763 } else {
2764 Py_INCREF(Py_None);
2765 _resultobj = Py_None;
2766 }
2767 return _resultobj;
2768 }
2769
2770 #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0))
2771 static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
2772 PyObject * _resultobj;
2773 wxWindow * _arg0;
2774 wxEvtHandler * _arg1;
2775 PyObject * _argo0 = 0;
2776 PyObject * _argo1 = 0;
2777 char *_kwnames[] = { "self","handler", NULL };
2778
2779 self = self;
2780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1))
2781 return NULL;
2782 if (_argo0) {
2783 if (_argo0 == Py_None) { _arg0 = NULL; }
2784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p.");
2786 return NULL;
2787 }
2788 }
2789 if (_argo1) {
2790 if (_argo1 == Py_None) { _arg1 = NULL; }
2791 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
2792 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p.");
2793 return NULL;
2794 }
2795 }
2796 {
2797 wxPy_BEGIN_ALLOW_THREADS;
2798 wxWindow_PushEventHandler(_arg0,_arg1);
2799
2800 wxPy_END_ALLOW_THREADS;
2801 } Py_INCREF(Py_None);
2802 _resultobj = Py_None;
2803 return _resultobj;
2804 }
2805
2806 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
2807 static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2808 PyObject * _resultobj;
2809 bool _result;
2810 wxWindow * _arg0;
2811 wxMenu * _arg1;
2812 int _arg2;
2813 int _arg3;
2814 PyObject * _argo0 = 0;
2815 PyObject * _argo1 = 0;
2816 char *_kwnames[] = { "self","menu","x","y", NULL };
2817
2818 self = self;
2819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
2820 return NULL;
2821 if (_argo0) {
2822 if (_argo0 == Py_None) { _arg0 = NULL; }
2823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
2825 return NULL;
2826 }
2827 }
2828 if (_argo1) {
2829 if (_argo1 == Py_None) { _arg1 = NULL; }
2830 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
2831 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
2832 return NULL;
2833 }
2834 }
2835 {
2836 wxPy_BEGIN_ALLOW_THREADS;
2837 _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3);
2838
2839 wxPy_END_ALLOW_THREADS;
2840 } _resultobj = Py_BuildValue("i",_result);
2841 return _resultobj;
2842 }
2843
2844 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
2845 static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
2846 PyObject * _resultobj;
2847 bool _result;
2848 wxWindow * _arg0;
2849 wxMenu * _arg1;
2850 wxPoint * _arg2;
2851 PyObject * _argo0 = 0;
2852 PyObject * _argo1 = 0;
2853 wxPoint temp;
2854 PyObject * _obj2 = 0;
2855 char *_kwnames[] = { "self","menu","pos", NULL };
2856
2857 self = self;
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2))
2859 return NULL;
2860 if (_argo0) {
2861 if (_argo0 == Py_None) { _arg0 = NULL; }
2862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
2864 return NULL;
2865 }
2866 }
2867 if (_argo1) {
2868 if (_argo1 == Py_None) { _arg1 = NULL; }
2869 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
2870 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
2871 return NULL;
2872 }
2873 }
2874 {
2875 _arg2 = &temp;
2876 if (! wxPoint_helper(_obj2, &_arg2))
2877 return NULL;
2878 }
2879 {
2880 wxPy_BEGIN_ALLOW_THREADS;
2881 _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2);
2882
2883 wxPy_END_ALLOW_THREADS;
2884 } _resultobj = Py_BuildValue("i",_result);
2885 return _resultobj;
2886 }
2887
2888 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
2889 static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
2890 PyObject * _resultobj;
2891 wxWindow * _arg0;
2892 PyObject * _argo0 = 0;
2893 char *_kwnames[] = { "self", NULL };
2894
2895 self = self;
2896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0))
2897 return NULL;
2898 if (_argo0) {
2899 if (_argo0 == Py_None) { _arg0 = NULL; }
2900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
2902 return NULL;
2903 }
2904 }
2905 {
2906 wxPy_BEGIN_ALLOW_THREADS;
2907 wxWindow_Raise(_arg0);
2908
2909 wxPy_END_ALLOW_THREADS;
2910 } Py_INCREF(Py_None);
2911 _resultobj = Py_None;
2912 return _resultobj;
2913 }
2914
2915 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
2916 static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
2917 PyObject * _resultobj;
2918 wxWindow * _arg0;
2919 bool _arg1 = (bool ) TRUE;
2920 wxRect * _arg2 = (wxRect *) NULL;
2921 PyObject * _argo0 = 0;
2922 int tempbool1 = (int) TRUE;
2923 wxRect temp;
2924 PyObject * _obj2 = 0;
2925 char *_kwnames[] = { "self","eraseBackground","rect", NULL };
2926
2927 self = self;
2928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2))
2929 return NULL;
2930 if (_argo0) {
2931 if (_argo0 == Py_None) { _arg0 = NULL; }
2932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
2934 return NULL;
2935 }
2936 }
2937 _arg1 = (bool ) tempbool1;
2938 if (_obj2)
2939 {
2940 _arg2 = &temp;
2941 if (! wxRect_helper(_obj2, &_arg2))
2942 return NULL;
2943 }
2944 {
2945 wxPy_BEGIN_ALLOW_THREADS;
2946 wxWindow_Refresh(_arg0,_arg1,_arg2);
2947
2948 wxPy_END_ALLOW_THREADS;
2949 } Py_INCREF(Py_None);
2950 _resultobj = Py_None;
2951 return _resultobj;
2952 }
2953
2954 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
2955 static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
2956 PyObject * _resultobj;
2957 wxWindow * _arg0;
2958 PyObject * _argo0 = 0;
2959 char *_kwnames[] = { "self", NULL };
2960
2961 self = self;
2962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0))
2963 return NULL;
2964 if (_argo0) {
2965 if (_argo0 == Py_None) { _arg0 = NULL; }
2966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
2968 return NULL;
2969 }
2970 }
2971 {
2972 wxPy_BEGIN_ALLOW_THREADS;
2973 wxWindow_ReleaseMouse(_arg0);
2974
2975 wxPy_END_ALLOW_THREADS;
2976 } Py_INCREF(Py_None);
2977 _resultobj = Py_None;
2978 return _resultobj;
2979 }
2980
2981 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
2982 static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
2983 PyObject * _resultobj;
2984 bool _result;
2985 wxWindow * _arg0;
2986 wxWindow * _arg1;
2987 PyObject * _argo0 = 0;
2988 PyObject * _argo1 = 0;
2989 char *_kwnames[] = { "self","newParent", NULL };
2990
2991 self = self;
2992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1))
2993 return NULL;
2994 if (_argo0) {
2995 if (_argo0 == Py_None) { _arg0 = NULL; }
2996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p.");
2998 return NULL;
2999 }
3000 }
3001 if (_argo1) {
3002 if (_argo1 == Py_None) { _arg1 = NULL; }
3003 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3004 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
3005 return NULL;
3006 }
3007 }
3008 {
3009 wxPy_BEGIN_ALLOW_THREADS;
3010 _result = (bool )wxWindow_Reparent(_arg0,_arg1);
3011
3012 wxPy_END_ALLOW_THREADS;
3013 } _resultobj = Py_BuildValue("i",_result);
3014 return _resultobj;
3015 }
3016
3017 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
3018 static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3019 PyObject * _resultobj;
3020 wxWindow * _arg0;
3021 int * _arg1;
3022 int * _arg2;
3023 PyObject * _argo0 = 0;
3024 int temp;
3025 PyObject * _obj1 = 0;
3026 int temp0;
3027 PyObject * _obj2 = 0;
3028 char *_kwnames[] = { "self","x","y", NULL };
3029
3030 self = self;
3031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2))
3032 return NULL;
3033 if (_argo0) {
3034 if (_argo0 == Py_None) { _arg0 = NULL; }
3035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
3037 return NULL;
3038 }
3039 }
3040 {
3041 temp = (int) PyInt_AsLong(_obj1);
3042 _arg1 = &temp;
3043 }
3044 {
3045 temp0 = (int) PyInt_AsLong(_obj2);
3046 _arg2 = &temp0;
3047 }
3048 {
3049 wxPy_BEGIN_ALLOW_THREADS;
3050 wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2);
3051
3052 wxPy_END_ALLOW_THREADS;
3053 } Py_INCREF(Py_None);
3054 _resultobj = Py_None;
3055 {
3056 PyObject *o;
3057 o = PyInt_FromLong((long) (*_arg1));
3058 _resultobj = t_output_helper(_resultobj, o);
3059 }
3060 {
3061 PyObject *o;
3062 o = PyInt_FromLong((long) (*_arg2));
3063 _resultobj = t_output_helper(_resultobj, o);
3064 }
3065 return _resultobj;
3066 }
3067
3068 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
3069 static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
3070 PyObject * _resultobj;
3071 wxPoint * _result;
3072 wxWindow * _arg0;
3073 wxPoint * _arg1;
3074 PyObject * _argo0 = 0;
3075 wxPoint temp;
3076 PyObject * _obj1 = 0;
3077 char *_kwnames[] = { "self","pt", NULL };
3078 char _ptemp[128];
3079
3080 self = self;
3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1))
3082 return NULL;
3083 if (_argo0) {
3084 if (_argo0 == Py_None) { _arg0 = NULL; }
3085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
3087 return NULL;
3088 }
3089 }
3090 {
3091 _arg1 = &temp;
3092 if (! wxPoint_helper(_obj1, &_arg1))
3093 return NULL;
3094 }
3095 {
3096 wxPy_BEGIN_ALLOW_THREADS;
3097 _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1));
3098
3099 wxPy_END_ALLOW_THREADS;
3100 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3101 _resultobj = Py_BuildValue("s",_ptemp);
3102 return _resultobj;
3103 }
3104
3105 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
3106 static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3107 PyObject * _resultobj;
3108 wxWindow * _arg0;
3109 int _arg1;
3110 int _arg2;
3111 wxRect * _arg3 = (wxRect *) NULL;
3112 PyObject * _argo0 = 0;
3113 wxRect temp;
3114 PyObject * _obj3 = 0;
3115 char *_kwnames[] = { "self","dx","dy","rect", NULL };
3116
3117 self = self;
3118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3))
3119 return NULL;
3120 if (_argo0) {
3121 if (_argo0 == Py_None) { _arg0 = NULL; }
3122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
3124 return NULL;
3125 }
3126 }
3127 if (_obj3)
3128 {
3129 _arg3 = &temp;
3130 if (! wxRect_helper(_obj3, &_arg3))
3131 return NULL;
3132 }
3133 {
3134 wxPy_BEGIN_ALLOW_THREADS;
3135 wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3);
3136
3137 wxPy_END_ALLOW_THREADS;
3138 } Py_INCREF(Py_None);
3139 _resultobj = Py_None;
3140 return _resultobj;
3141 }
3142
3143 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
3144 static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
3145 PyObject * _resultobj;
3146 wxWindow * _arg0;
3147 wxAcceleratorTable * _arg1;
3148 PyObject * _argo0 = 0;
3149 PyObject * _argo1 = 0;
3150 char *_kwnames[] = { "self","accel", NULL };
3151
3152 self = self;
3153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
3154 return NULL;
3155 if (_argo0) {
3156 if (_argo0 == Py_None) { _arg0 = NULL; }
3157 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3158 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
3159 return NULL;
3160 }
3161 }
3162 if (_argo1) {
3163 if (_argo1 == Py_None) { _arg1 = NULL; }
3164 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
3165 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
3166 return NULL;
3167 }
3168 }
3169 {
3170 wxPy_BEGIN_ALLOW_THREADS;
3171 wxWindow_SetAcceleratorTable(_arg0,*_arg1);
3172
3173 wxPy_END_ALLOW_THREADS;
3174 } Py_INCREF(Py_None);
3175 _resultobj = Py_None;
3176 return _resultobj;
3177 }
3178
3179 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
3180 static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3181 PyObject * _resultobj;
3182 wxWindow * _arg0;
3183 bool _arg1;
3184 PyObject * _argo0 = 0;
3185 int tempbool1;
3186 char *_kwnames[] = { "self","autoLayout", NULL };
3187
3188 self = self;
3189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1))
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_SetAutoLayout. Expected _wxWindow_p.");
3195 return NULL;
3196 }
3197 }
3198 _arg1 = (bool ) tempbool1;
3199 {
3200 wxPy_BEGIN_ALLOW_THREADS;
3201 wxWindow_SetAutoLayout(_arg0,_arg1);
3202
3203 wxPy_END_ALLOW_THREADS;
3204 } Py_INCREF(Py_None);
3205 _resultobj = Py_None;
3206 return _resultobj;
3207 }
3208
3209 #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout())
3210 static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
3211 PyObject * _resultobj;
3212 bool _result;
3213 wxWindow * _arg0;
3214 PyObject * _argo0 = 0;
3215 char *_kwnames[] = { "self", NULL };
3216
3217 self = self;
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0))
3219 return NULL;
3220 if (_argo0) {
3221 if (_argo0 == Py_None) { _arg0 = NULL; }
3222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p.");
3224 return NULL;
3225 }
3226 }
3227 {
3228 wxPy_BEGIN_ALLOW_THREADS;
3229 _result = (bool )wxWindow_GetAutoLayout(_arg0);
3230
3231 wxPy_END_ALLOW_THREADS;
3232 } _resultobj = Py_BuildValue("i",_result);
3233 return _resultobj;
3234 }
3235
3236 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3237 static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject * _resultobj;
3239 wxWindow * _arg0;
3240 wxColour * _arg1;
3241 PyObject * _argo0 = 0;
3242 PyObject * _argo1 = 0;
3243 char *_kwnames[] = { "self","colour", NULL };
3244
3245 self = self;
3246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_argo1))
3247 return NULL;
3248 if (_argo0) {
3249 if (_argo0 == Py_None) { _arg0 = NULL; }
3250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
3252 return NULL;
3253 }
3254 }
3255 if (_argo1) {
3256 if (_argo1 == Py_None) { _arg1 = NULL; }
3257 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
3258 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetBackgroundColour. Expected _wxColour_p.");
3259 return NULL;
3260 }
3261 }
3262 {
3263 wxPy_BEGIN_ALLOW_THREADS;
3264 wxWindow_SetBackgroundColour(_arg0,*_arg1);
3265
3266 wxPy_END_ALLOW_THREADS;
3267 } Py_INCREF(Py_None);
3268 _resultobj = Py_None;
3269 return _resultobj;
3270 }
3271
3272 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
3273 static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
3274 PyObject * _resultobj;
3275 wxWindow * _arg0;
3276 wxLayoutConstraints * _arg1;
3277 PyObject * _argo0 = 0;
3278 PyObject * _argo1 = 0;
3279 char *_kwnames[] = { "self","constraints", NULL };
3280
3281 self = self;
3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1))
3283 return NULL;
3284 if (_argo0) {
3285 if (_argo0 == Py_None) { _arg0 = NULL; }
3286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
3288 return NULL;
3289 }
3290 }
3291 if (_argo1) {
3292 if (_argo1 == Py_None) { _arg1 = NULL; }
3293 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
3294 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
3295 return NULL;
3296 }
3297 }
3298 {
3299 wxPy_BEGIN_ALLOW_THREADS;
3300 wxWindow_SetConstraints(_arg0,_arg1);
3301
3302 wxPy_END_ALLOW_THREADS;
3303 } Py_INCREF(Py_None);
3304 _resultobj = Py_None;
3305 return _resultobj;
3306 }
3307
3308 #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0))
3309 static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
3310 PyObject * _resultobj;
3311 wxWindow * _arg0;
3312 wxLayoutConstraints * _arg1;
3313 PyObject * _argo0 = 0;
3314 PyObject * _argo1 = 0;
3315 char *_kwnames[] = { "self","constraints", NULL };
3316
3317 self = self;
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1))
3319 return NULL;
3320 if (_argo0) {
3321 if (_argo0 == Py_None) { _arg0 = NULL; }
3322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p.");
3324 return NULL;
3325 }
3326 }
3327 if (_argo1) {
3328 if (_argo1 == Py_None) { _arg1 = NULL; }
3329 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
3330 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p.");
3331 return NULL;
3332 }
3333 }
3334 {
3335 wxPy_BEGIN_ALLOW_THREADS;
3336 wxWindow_UnsetConstraints(_arg0,_arg1);
3337
3338 wxPy_END_ALLOW_THREADS;
3339 } Py_INCREF(Py_None);
3340 _resultobj = Py_None;
3341 return _resultobj;
3342 }
3343
3344 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
3345 static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
3346 PyObject * _resultobj;
3347 wxWindow * _arg0;
3348 PyObject * _argo0 = 0;
3349 char *_kwnames[] = { "self", NULL };
3350
3351 self = self;
3352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0))
3353 return NULL;
3354 if (_argo0) {
3355 if (_argo0 == Py_None) { _arg0 = NULL; }
3356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
3358 return NULL;
3359 }
3360 }
3361 {
3362 wxPy_BEGIN_ALLOW_THREADS;
3363 wxWindow_SetFocus(_arg0);
3364
3365 wxPy_END_ALLOW_THREADS;
3366 } Py_INCREF(Py_None);
3367 _resultobj = Py_None;
3368 return _resultobj;
3369 }
3370
3371 #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus())
3372 static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
3373 PyObject * _resultobj;
3374 bool _result;
3375 wxWindow * _arg0;
3376 PyObject * _argo0 = 0;
3377 char *_kwnames[] = { "self", NULL };
3378
3379 self = self;
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0))
3381 return NULL;
3382 if (_argo0) {
3383 if (_argo0 == Py_None) { _arg0 = NULL; }
3384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p.");
3386 return NULL;
3387 }
3388 }
3389 {
3390 wxPy_BEGIN_ALLOW_THREADS;
3391 _result = (bool )wxWindow_AcceptsFocus(_arg0);
3392
3393 wxPy_END_ALLOW_THREADS;
3394 } _resultobj = Py_BuildValue("i",_result);
3395 return _resultobj;
3396 }
3397
3398 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
3399 static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3400 PyObject * _resultobj;
3401 wxWindow * _arg0;
3402 wxFont * _arg1;
3403 PyObject * _argo0 = 0;
3404 PyObject * _argo1 = 0;
3405 char *_kwnames[] = { "self","font", NULL };
3406
3407 self = self;
3408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1))
3409 return NULL;
3410 if (_argo0) {
3411 if (_argo0 == Py_None) { _arg0 = NULL; }
3412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
3414 return NULL;
3415 }
3416 }
3417 if (_argo1) {
3418 if (_argo1 == Py_None) { _arg1 = NULL; }
3419 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
3420 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
3421 return NULL;
3422 }
3423 }
3424 {
3425 wxPy_BEGIN_ALLOW_THREADS;
3426 wxWindow_SetFont(_arg0,*_arg1);
3427
3428 wxPy_END_ALLOW_THREADS;
3429 } Py_INCREF(Py_None);
3430 _resultobj = Py_None;
3431 return _resultobj;
3432 }
3433
3434 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3435 static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3436 PyObject * _resultobj;
3437 wxWindow * _arg0;
3438 wxColour * _arg1;
3439 PyObject * _argo0 = 0;
3440 PyObject * _argo1 = 0;
3441 char *_kwnames[] = { "self","colour", NULL };
3442
3443 self = self;
3444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_argo1))
3445 return NULL;
3446 if (_argo0) {
3447 if (_argo0 == Py_None) { _arg0 = NULL; }
3448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
3450 return NULL;
3451 }
3452 }
3453 if (_argo1) {
3454 if (_argo1 == Py_None) { _arg1 = NULL; }
3455 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
3456 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetForegroundColour. Expected _wxColour_p.");
3457 return NULL;
3458 }
3459 }
3460 {
3461 wxPy_BEGIN_ALLOW_THREADS;
3462 wxWindow_SetForegroundColour(_arg0,*_arg1);
3463
3464 wxPy_END_ALLOW_THREADS;
3465 } Py_INCREF(Py_None);
3466 _resultobj = Py_None;
3467 return _resultobj;
3468 }
3469
3470 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3471 static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
3472 PyObject * _resultobj;
3473 wxWindow * _arg0;
3474 int _arg1;
3475 PyObject * _argo0 = 0;
3476 char *_kwnames[] = { "self","id", NULL };
3477
3478 self = self;
3479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1))
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_SetId. Expected _wxWindow_p.");
3485 return NULL;
3486 }
3487 }
3488 {
3489 wxPy_BEGIN_ALLOW_THREADS;
3490 wxWindow_SetId(_arg0,_arg1);
3491
3492 wxPy_END_ALLOW_THREADS;
3493 } Py_INCREF(Py_None);
3494 _resultobj = Py_None;
3495 return _resultobj;
3496 }
3497
3498 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
3499 static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
3500 PyObject * _resultobj;
3501 wxWindow * _arg0;
3502 wxString * _arg1;
3503 PyObject * _argo0 = 0;
3504 PyObject * _obj1 = 0;
3505 char *_kwnames[] = { "self","name", NULL };
3506
3507 self = self;
3508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1))
3509 return NULL;
3510 if (_argo0) {
3511 if (_argo0 == Py_None) { _arg0 = NULL; }
3512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
3514 return NULL;
3515 }
3516 }
3517 {
3518 if (!PyString_Check(_obj1)) {
3519 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3520 return NULL;
3521 }
3522 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
3523 }
3524 {
3525 wxPy_BEGIN_ALLOW_THREADS;
3526 wxWindow_SetName(_arg0,*_arg1);
3527
3528 wxPy_END_ALLOW_THREADS;
3529 } Py_INCREF(Py_None);
3530 _resultobj = Py_None;
3531 {
3532 if (_obj1)
3533 delete _arg1;
3534 }
3535 return _resultobj;
3536 }
3537
3538 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3539 static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
3540 PyObject * _resultobj;
3541 wxWindow * _arg0;
3542 int _arg1;
3543 int _arg2;
3544 int _arg3;
3545 int _arg4;
3546 bool _arg5 = (bool ) TRUE;
3547 PyObject * _argo0 = 0;
3548 int tempbool5 = (int) TRUE;
3549 char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL };
3550
3551 self = self;
3552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
3553 return NULL;
3554 if (_argo0) {
3555 if (_argo0 == Py_None) { _arg0 = NULL; }
3556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
3558 return NULL;
3559 }
3560 }
3561 _arg5 = (bool ) tempbool5;
3562 {
3563 wxPy_BEGIN_ALLOW_THREADS;
3564 wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3565
3566 wxPy_END_ALLOW_THREADS;
3567 } Py_INCREF(Py_None);
3568 _resultobj = Py_None;
3569 return _resultobj;
3570 }
3571
3572 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
3573 static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
3574 PyObject * _resultobj;
3575 wxWindow * _arg0;
3576 int _arg1;
3577 int _arg2;
3578 bool _arg3 = (bool ) TRUE;
3579 PyObject * _argo0 = 0;
3580 int tempbool3 = (int) TRUE;
3581 char *_kwnames[] = { "self","orientation","pos","refresh", NULL };
3582
3583 self = self;
3584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3))
3585 return NULL;
3586 if (_argo0) {
3587 if (_argo0 == Py_None) { _arg0 = NULL; }
3588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
3590 return NULL;
3591 }
3592 }
3593 _arg3 = (bool ) tempbool3;
3594 {
3595 wxPy_BEGIN_ALLOW_THREADS;
3596 wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3);
3597
3598 wxPy_END_ALLOW_THREADS;
3599 } Py_INCREF(Py_None);
3600 _resultobj = Py_None;
3601 return _resultobj;
3602 }
3603
3604 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
3605 static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
3606 PyObject * _resultobj;
3607 wxWindow * _arg0;
3608 int _arg1;
3609 int _arg2;
3610 int _arg3;
3611 int _arg4;
3612 int _arg5 = (int ) wxSIZE_AUTO;
3613 PyObject * _argo0 = 0;
3614 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
3615
3616 self = self;
3617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
3618 return NULL;
3619 if (_argo0) {
3620 if (_argo0 == Py_None) { _arg0 = NULL; }
3621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
3623 return NULL;
3624 }
3625 }
3626 {
3627 wxPy_BEGIN_ALLOW_THREADS;
3628 wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
3629
3630 wxPy_END_ALLOW_THREADS;
3631 } Py_INCREF(Py_None);
3632 _resultobj = Py_None;
3633 return _resultobj;
3634 }
3635
3636 static void wxWindow_SetSize(wxWindow *self,const wxSize & size) {
3637 self->SetSize(size.x, size.y);
3638 }
3639 static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3640 PyObject * _resultobj;
3641 wxWindow * _arg0;
3642 wxSize * _arg1;
3643 PyObject * _argo0 = 0;
3644 wxSize temp;
3645 PyObject * _obj1 = 0;
3646 char *_kwnames[] = { "self","size", NULL };
3647
3648 self = self;
3649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1))
3650 return NULL;
3651 if (_argo0) {
3652 if (_argo0 == Py_None) { _arg0 = NULL; }
3653 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3654 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
3655 return NULL;
3656 }
3657 }
3658 {
3659 _arg1 = &temp;
3660 if (! wxSize_helper(_obj1, &_arg1))
3661 return NULL;
3662 }
3663 {
3664 wxPy_BEGIN_ALLOW_THREADS;
3665 wxWindow_SetSize(_arg0,*_arg1);
3666
3667 wxPy_END_ALLOW_THREADS;
3668 } Py_INCREF(Py_None);
3669 _resultobj = Py_None;
3670 return _resultobj;
3671 }
3672
3673 static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) {
3674 self->SetSize(pos.x, pos.y, -1, -1);
3675 }
3676 static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3677 PyObject * _resultobj;
3678 wxWindow * _arg0;
3679 wxPoint * _arg1;
3680 PyObject * _argo0 = 0;
3681 wxPoint temp;
3682 PyObject * _obj1 = 0;
3683 char *_kwnames[] = { "self","pos", NULL };
3684
3685 self = self;
3686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1))
3687 return NULL;
3688 if (_argo0) {
3689 if (_argo0 == Py_None) { _arg0 = NULL; }
3690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
3692 return NULL;
3693 }
3694 }
3695 {
3696 _arg1 = &temp;
3697 if (! wxPoint_helper(_obj1, &_arg1))
3698 return NULL;
3699 }
3700 {
3701 wxPy_BEGIN_ALLOW_THREADS;
3702 wxWindow_SetPosition(_arg0,*_arg1);
3703
3704 wxPy_END_ALLOW_THREADS;
3705 } Py_INCREF(Py_None);
3706 _resultobj = Py_None;
3707 return _resultobj;
3708 }
3709
3710 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3711 static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
3712 PyObject * _resultobj;
3713 wxWindow * _arg0;
3714 int _arg1 = (int ) -1;
3715 int _arg2 = (int ) -1;
3716 int _arg3 = (int ) -1;
3717 int _arg4 = (int ) -1;
3718 int _arg5 = (int ) -1;
3719 int _arg6 = (int ) -1;
3720 PyObject * _argo0 = 0;
3721 char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL };
3722
3723 self = self;
3724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
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_SetSizeHints. Expected _wxWindow_p.");
3730 return NULL;
3731 }
3732 }
3733 {
3734 wxPy_BEGIN_ALLOW_THREADS;
3735 wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3736
3737 wxPy_END_ALLOW_THREADS;
3738 } Py_INCREF(Py_None);
3739 _resultobj = Py_None;
3740 return _resultobj;
3741 }
3742
3743 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
3744 static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
3745 PyObject * _resultobj;
3746 wxWindow * _arg0;
3747 int _arg1;
3748 int _arg2;
3749 PyObject * _argo0 = 0;
3750 char *_kwnames[] = { "self","width","height", NULL };
3751
3752 self = self;
3753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
3754 return NULL;
3755 if (_argo0) {
3756 if (_argo0 == Py_None) { _arg0 = NULL; }
3757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
3759 return NULL;
3760 }
3761 }
3762 {
3763 wxPy_BEGIN_ALLOW_THREADS;
3764 wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2);
3765
3766 wxPy_END_ALLOW_THREADS;
3767 } Py_INCREF(Py_None);
3768 _resultobj = Py_None;
3769 return _resultobj;
3770 }
3771
3772 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
3773 static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3774 PyObject * _resultobj;
3775 wxWindow * _arg0;
3776 wxSize * _arg1;
3777 PyObject * _argo0 = 0;
3778 wxSize temp;
3779 PyObject * _obj1 = 0;
3780 char *_kwnames[] = { "self","size", NULL };
3781
3782 self = self;
3783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1))
3784 return NULL;
3785 if (_argo0) {
3786 if (_argo0 == Py_None) { _arg0 = NULL; }
3787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
3789 return NULL;
3790 }
3791 }
3792 {
3793 _arg1 = &temp;
3794 if (! wxSize_helper(_obj1, &_arg1))
3795 return NULL;
3796 }
3797 {
3798 wxPy_BEGIN_ALLOW_THREADS;
3799 wxWindow_SetClientSize(_arg0,*_arg1);
3800
3801 wxPy_END_ALLOW_THREADS;
3802 } Py_INCREF(Py_None);
3803 _resultobj = Py_None;
3804 return _resultobj;
3805 }
3806
3807 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
3808 static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3809 PyObject * _resultobj;
3810 wxWindow * _arg0;
3811 wxCursor * _arg1;
3812 PyObject * _argo0 = 0;
3813 PyObject * _argo1 = 0;
3814 char *_kwnames[] = { "self","cursor", NULL };
3815
3816 self = self;
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
3823 return NULL;
3824 }
3825 }
3826 if (_argo1) {
3827 if (_argo1 == Py_None) { _arg1 = NULL; }
3828 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3829 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
3830 return NULL;
3831 }
3832 }
3833 {
3834 wxPy_BEGIN_ALLOW_THREADS;
3835 wxWindow_SetCursor(_arg0,*_arg1);
3836
3837 wxPy_END_ALLOW_THREADS;
3838 } Py_INCREF(Py_None);
3839 _resultobj = Py_None;
3840 return _resultobj;
3841 }
3842
3843 #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0))
3844 static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject * _resultobj;
3846 wxWindow * _arg0;
3847 wxEvtHandler * _arg1;
3848 PyObject * _argo0 = 0;
3849 PyObject * _argo1 = 0;
3850 char *_kwnames[] = { "self","handler", NULL };
3851
3852 self = self;
3853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1))
3854 return NULL;
3855 if (_argo0) {
3856 if (_argo0 == Py_None) { _arg0 = NULL; }
3857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p.");
3859 return NULL;
3860 }
3861 }
3862 if (_argo1) {
3863 if (_argo1 == Py_None) { _arg1 = NULL; }
3864 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
3865 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p.");
3866 return NULL;
3867 }
3868 }
3869 {
3870 wxPy_BEGIN_ALLOW_THREADS;
3871 wxWindow_SetEventHandler(_arg0,_arg1);
3872
3873 wxPy_END_ALLOW_THREADS;
3874 } Py_INCREF(Py_None);
3875 _resultobj = Py_None;
3876 return _resultobj;
3877 }
3878
3879 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
3880 static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3881 PyObject * _resultobj;
3882 wxWindow * _arg0;
3883 wxString * _arg1;
3884 PyObject * _argo0 = 0;
3885 PyObject * _obj1 = 0;
3886 char *_kwnames[] = { "self","title", NULL };
3887
3888 self = self;
3889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1))
3890 return NULL;
3891 if (_argo0) {
3892 if (_argo0 == Py_None) { _arg0 = NULL; }
3893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
3895 return NULL;
3896 }
3897 }
3898 {
3899 if (!PyString_Check(_obj1)) {
3900 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3901 return NULL;
3902 }
3903 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
3904 }
3905 {
3906 wxPy_BEGIN_ALLOW_THREADS;
3907 wxWindow_SetTitle(_arg0,*_arg1);
3908
3909 wxPy_END_ALLOW_THREADS;
3910 } Py_INCREF(Py_None);
3911 _resultobj = Py_None;
3912 {
3913 if (_obj1)
3914 delete _arg1;
3915 }
3916 return _resultobj;
3917 }
3918
3919 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
3920 static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
3921 PyObject * _resultobj;
3922 bool _result;
3923 wxWindow * _arg0;
3924 bool _arg1;
3925 PyObject * _argo0 = 0;
3926 int tempbool1;
3927 char *_kwnames[] = { "self","show", NULL };
3928
3929 self = self;
3930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1))
3931 return NULL;
3932 if (_argo0) {
3933 if (_argo0 == Py_None) { _arg0 = NULL; }
3934 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3935 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
3936 return NULL;
3937 }
3938 }
3939 _arg1 = (bool ) tempbool1;
3940 {
3941 wxPy_BEGIN_ALLOW_THREADS;
3942 _result = (bool )wxWindow_Show(_arg0,_arg1);
3943
3944 wxPy_END_ALLOW_THREADS;
3945 } _resultobj = Py_BuildValue("i",_result);
3946 return _resultobj;
3947 }
3948
3949 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
3950 static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3951 PyObject * _resultobj;
3952 bool _result;
3953 wxWindow * _arg0;
3954 PyObject * _argo0 = 0;
3955 char *_kwnames[] = { "self", NULL };
3956
3957 self = self;
3958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0))
3959 return NULL;
3960 if (_argo0) {
3961 if (_argo0 == Py_None) { _arg0 = NULL; }
3962 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3963 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
3964 return NULL;
3965 }
3966 }
3967 {
3968 wxPy_BEGIN_ALLOW_THREADS;
3969 _result = (bool )wxWindow_TransferDataFromWindow(_arg0);
3970
3971 wxPy_END_ALLOW_THREADS;
3972 } _resultobj = Py_BuildValue("i",_result);
3973 return _resultobj;
3974 }
3975
3976 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
3977 static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3978 PyObject * _resultobj;
3979 bool _result;
3980 wxWindow * _arg0;
3981 PyObject * _argo0 = 0;
3982 char *_kwnames[] = { "self", NULL };
3983
3984 self = self;
3985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0))
3986 return NULL;
3987 if (_argo0) {
3988 if (_argo0 == Py_None) { _arg0 = NULL; }
3989 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3990 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
3991 return NULL;
3992 }
3993 }
3994 {
3995 wxPy_BEGIN_ALLOW_THREADS;
3996 _result = (bool )wxWindow_TransferDataToWindow(_arg0);
3997
3998 wxPy_END_ALLOW_THREADS;
3999 } _resultobj = Py_BuildValue("i",_result);
4000 return _resultobj;
4001 }
4002
4003 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
4004 static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
4005 PyObject * _resultobj;
4006 bool _result;
4007 wxWindow * _arg0;
4008 PyObject * _argo0 = 0;
4009 char *_kwnames[] = { "self", NULL };
4010
4011 self = self;
4012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0))
4013 return NULL;
4014 if (_argo0) {
4015 if (_argo0 == Py_None) { _arg0 = NULL; }
4016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
4018 return NULL;
4019 }
4020 }
4021 {
4022 wxPy_BEGIN_ALLOW_THREADS;
4023 _result = (bool )wxWindow_Validate(_arg0);
4024
4025 wxPy_END_ALLOW_THREADS;
4026 } _resultobj = Py_BuildValue("i",_result);
4027 return _resultobj;
4028 }
4029
4030 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
4031 static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
4032 PyObject * _resultobj;
4033 wxWindow * _arg0;
4034 int _arg1;
4035 int _arg2;
4036 PyObject * _argo0 = 0;
4037 char *_kwnames[] = { "self","x","y", NULL };
4038
4039 self = self;
4040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2))
4041 return NULL;
4042 if (_argo0) {
4043 if (_argo0 == Py_None) { _arg0 = NULL; }
4044 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4045 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
4046 return NULL;
4047 }
4048 }
4049 {
4050 wxPy_BEGIN_ALLOW_THREADS;
4051 wxWindow_WarpPointer(_arg0,_arg1,_arg2);
4052
4053 wxPy_END_ALLOW_THREADS;
4054 } Py_INCREF(Py_None);
4055 _resultobj = Py_None;
4056 return _resultobj;
4057 }
4058
4059 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4060 static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4061 PyObject * _resultobj;
4062 wxPoint * _result;
4063 wxWindow * _arg0;
4064 wxPoint * _arg1;
4065 PyObject * _argo0 = 0;
4066 wxPoint temp;
4067 PyObject * _obj1 = 0;
4068 char *_kwnames[] = { "self","pt", NULL };
4069 char _ptemp[128];
4070
4071 self = self;
4072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1))
4073 return NULL;
4074 if (_argo0) {
4075 if (_argo0 == Py_None) { _arg0 = NULL; }
4076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
4078 return NULL;
4079 }
4080 }
4081 {
4082 _arg1 = &temp;
4083 if (! wxPoint_helper(_obj1, &_arg1))
4084 return NULL;
4085 }
4086 {
4087 wxPy_BEGIN_ALLOW_THREADS;
4088 _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1));
4089
4090 wxPy_END_ALLOW_THREADS;
4091 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4092 _resultobj = Py_BuildValue("s",_ptemp);
4093 return _resultobj;
4094 }
4095
4096 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
4097 static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4098 PyObject * _resultobj;
4099 wxSize * _result;
4100 wxWindow * _arg0;
4101 wxSize * _arg1;
4102 PyObject * _argo0 = 0;
4103 wxSize temp;
4104 PyObject * _obj1 = 0;
4105 char *_kwnames[] = { "self","sz", NULL };
4106 char _ptemp[128];
4107
4108 self = self;
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1))
4110 return NULL;
4111 if (_argo0) {
4112 if (_argo0 == Py_None) { _arg0 = NULL; }
4113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
4115 return NULL;
4116 }
4117 }
4118 {
4119 _arg1 = &temp;
4120 if (! wxSize_helper(_obj1, &_arg1))
4121 return NULL;
4122 }
4123 {
4124 wxPy_BEGIN_ALLOW_THREADS;
4125 _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1));
4126
4127 wxPy_END_ALLOW_THREADS;
4128 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4129 _resultobj = Py_BuildValue("s",_ptemp);
4130 return _resultobj;
4131 }
4132
4133 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4134 static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4135 PyObject * _resultobj;
4136 wxPoint * _result;
4137 wxWindow * _arg0;
4138 wxPoint * _arg1;
4139 PyObject * _argo0 = 0;
4140 wxPoint temp;
4141 PyObject * _obj1 = 0;
4142 char *_kwnames[] = { "self","pt", NULL };
4143 char _ptemp[128];
4144
4145 self = self;
4146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1))
4147 return NULL;
4148 if (_argo0) {
4149 if (_argo0 == Py_None) { _arg0 = NULL; }
4150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
4152 return NULL;
4153 }
4154 }
4155 {
4156 _arg1 = &temp;
4157 if (! wxPoint_helper(_obj1, &_arg1))
4158 return NULL;
4159 }
4160 {
4161 wxPy_BEGIN_ALLOW_THREADS;
4162 _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1));
4163
4164 wxPy_END_ALLOW_THREADS;
4165 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
4166 _resultobj = Py_BuildValue("s",_ptemp);
4167 return _resultobj;
4168 }
4169
4170 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
4171 static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4172 PyObject * _resultobj;
4173 wxSize * _result;
4174 wxWindow * _arg0;
4175 wxSize * _arg1;
4176 PyObject * _argo0 = 0;
4177 wxSize temp;
4178 PyObject * _obj1 = 0;
4179 char *_kwnames[] = { "self","sz", NULL };
4180 char _ptemp[128];
4181
4182 self = self;
4183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1))
4184 return NULL;
4185 if (_argo0) {
4186 if (_argo0 == Py_None) { _arg0 = NULL; }
4187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
4189 return NULL;
4190 }
4191 }
4192 {
4193 _arg1 = &temp;
4194 if (! wxSize_helper(_obj1, &_arg1))
4195 return NULL;
4196 }
4197 {
4198 wxPy_BEGIN_ALLOW_THREADS;
4199 _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1));
4200
4201 wxPy_END_ALLOW_THREADS;
4202 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
4203 _resultobj = Py_BuildValue("s",_ptemp);
4204 return _resultobj;
4205 }
4206
4207 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4208 static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
4209 PyObject * _resultobj;
4210 wxWindow * _arg0;
4211 wxString * _arg1;
4212 PyObject * _argo0 = 0;
4213 PyObject * _obj1 = 0;
4214 char *_kwnames[] = { "self","tip", NULL };
4215
4216 self = self;
4217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1))
4218 return NULL;
4219 if (_argo0) {
4220 if (_argo0 == Py_None) { _arg0 = NULL; }
4221 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
4223 return NULL;
4224 }
4225 }
4226 {
4227 if (!PyString_Check(_obj1)) {
4228 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4229 return NULL;
4230 }
4231 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4232 }
4233 {
4234 wxPy_BEGIN_ALLOW_THREADS;
4235 wxWindow_SetToolTipString(_arg0,*_arg1);
4236
4237 wxPy_END_ALLOW_THREADS;
4238 } Py_INCREF(Py_None);
4239 _resultobj = Py_None;
4240 {
4241 if (_obj1)
4242 delete _arg1;
4243 }
4244 return _resultobj;
4245 }
4246
4247 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
4248 static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4249 PyObject * _resultobj;
4250 wxWindow * _arg0;
4251 wxToolTip * _arg1;
4252 PyObject * _argo0 = 0;
4253 PyObject * _argo1 = 0;
4254 char *_kwnames[] = { "self","tooltip", NULL };
4255
4256 self = self;
4257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1))
4258 return NULL;
4259 if (_argo0) {
4260 if (_argo0 == Py_None) { _arg0 = NULL; }
4261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
4263 return NULL;
4264 }
4265 }
4266 if (_argo1) {
4267 if (_argo1 == Py_None) { _arg1 = NULL; }
4268 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) {
4269 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
4270 return NULL;
4271 }
4272 }
4273 {
4274 wxPy_BEGIN_ALLOW_THREADS;
4275 wxWindow_SetToolTip(_arg0,_arg1);
4276
4277 wxPy_END_ALLOW_THREADS;
4278 } Py_INCREF(Py_None);
4279 _resultobj = Py_None;
4280 return _resultobj;
4281 }
4282
4283 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
4284 static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4285 PyObject * _resultobj;
4286 wxToolTip * _result;
4287 wxWindow * _arg0;
4288 PyObject * _argo0 = 0;
4289 char *_kwnames[] = { "self", NULL };
4290 char _ptemp[128];
4291
4292 self = self;
4293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
4294 return NULL;
4295 if (_argo0) {
4296 if (_argo0 == Py_None) { _arg0 = NULL; }
4297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
4299 return NULL;
4300 }
4301 }
4302 {
4303 wxPy_BEGIN_ALLOW_THREADS;
4304 _result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
4305
4306 wxPy_END_ALLOW_THREADS;
4307 } if (_result) {
4308 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p");
4309 _resultobj = Py_BuildValue("s",_ptemp);
4310 } else {
4311 Py_INCREF(Py_None);
4312 _resultobj = Py_None;
4313 }
4314 return _resultobj;
4315 }
4316
4317 #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0))
4318 static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
4319 PyObject * _resultobj;
4320 wxWindow * _arg0;
4321 wxSizer * _arg1;
4322 PyObject * _argo0 = 0;
4323 PyObject * _argo1 = 0;
4324 char *_kwnames[] = { "self","sizer", NULL };
4325
4326 self = self;
4327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1))
4328 return NULL;
4329 if (_argo0) {
4330 if (_argo0 == Py_None) { _arg0 = NULL; }
4331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p.");
4333 return NULL;
4334 }
4335 }
4336 if (_argo1) {
4337 if (_argo1 == Py_None) { _arg1 = NULL; }
4338 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) {
4339 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p.");
4340 return NULL;
4341 }
4342 }
4343 {
4344 wxPy_BEGIN_ALLOW_THREADS;
4345 wxWindow_SetSizer(_arg0,_arg1);
4346
4347 wxPy_END_ALLOW_THREADS;
4348 } Py_INCREF(Py_None);
4349 _resultobj = Py_None;
4350 return _resultobj;
4351 }
4352
4353 #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator())
4354 static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
4355 PyObject * _resultobj;
4356 wxValidator * _result;
4357 wxWindow * _arg0;
4358 PyObject * _argo0 = 0;
4359 char *_kwnames[] = { "self", NULL };
4360 char _ptemp[128];
4361
4362 self = self;
4363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0))
4364 return NULL;
4365 if (_argo0) {
4366 if (_argo0 == Py_None) { _arg0 = NULL; }
4367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p.");
4369 return NULL;
4370 }
4371 }
4372 {
4373 wxPy_BEGIN_ALLOW_THREADS;
4374 _result = (wxValidator *)wxWindow_GetValidator(_arg0);
4375
4376 wxPy_END_ALLOW_THREADS;
4377 } if (_result) {
4378 SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
4379 _resultobj = Py_BuildValue("s",_ptemp);
4380 } else {
4381 Py_INCREF(Py_None);
4382 _resultobj = Py_None;
4383 }
4384 return _resultobj;
4385 }
4386
4387 #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0))
4388 static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
4389 PyObject * _resultobj;
4390 wxWindow * _arg0;
4391 wxValidator * _arg1;
4392 PyObject * _argo0 = 0;
4393 PyObject * _argo1 = 0;
4394 char *_kwnames[] = { "self","validator", NULL };
4395
4396 self = self;
4397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1))
4398 return NULL;
4399 if (_argo0) {
4400 if (_argo0 == Py_None) { _arg0 = NULL; }
4401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p.");
4403 return NULL;
4404 }
4405 }
4406 if (_argo1) {
4407 if (_argo1 == Py_None) { _arg1 = NULL; }
4408 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) {
4409 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p.");
4410 return NULL;
4411 }
4412 }
4413 {
4414 wxPy_BEGIN_ALLOW_THREADS;
4415 wxWindow_SetValidator(_arg0,*_arg1);
4416
4417 wxPy_END_ALLOW_THREADS;
4418 } Py_INCREF(Py_None);
4419 _resultobj = Py_None;
4420 return _resultobj;
4421 }
4422
4423 static void *SwigwxPanelTowxWindow(void *ptr) {
4424 wxPanel *src;
4425 wxWindow *dest;
4426 src = (wxPanel *) ptr;
4427 dest = (wxWindow *) src;
4428 return (void *) dest;
4429 }
4430
4431 static void *SwigwxPanelTowxEvtHandler(void *ptr) {
4432 wxPanel *src;
4433 wxEvtHandler *dest;
4434 src = (wxPanel *) ptr;
4435 dest = (wxEvtHandler *) src;
4436 return (void *) dest;
4437 }
4438
4439 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4440 static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
4441 PyObject * _resultobj;
4442 wxPanel * _result;
4443 wxWindow * _arg0;
4444 wxWindowID _arg1;
4445 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
4446 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
4447 long _arg4 = (long ) wxTAB_TRAVERSAL;
4448 char * _arg5 = (char *) "panel";
4449 PyObject * _argo0 = 0;
4450 wxPoint temp;
4451 PyObject * _obj2 = 0;
4452 wxSize temp0;
4453 PyObject * _obj3 = 0;
4454 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
4455 char _ptemp[128];
4456
4457 self = self;
4458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
4459 return NULL;
4460 if (_argo0) {
4461 if (_argo0 == Py_None) { _arg0 = NULL; }
4462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
4464 return NULL;
4465 }
4466 }
4467 if (_obj2)
4468 {
4469 _arg2 = &temp;
4470 if (! wxPoint_helper(_obj2, &_arg2))
4471 return NULL;
4472 }
4473 if (_obj3)
4474 {
4475 _arg3 = &temp0;
4476 if (! wxSize_helper(_obj3, &_arg3))
4477 return NULL;
4478 }
4479 {
4480 wxPy_BEGIN_ALLOW_THREADS;
4481 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
4482
4483 wxPy_END_ALLOW_THREADS;
4484 } if (_result) {
4485 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
4486 _resultobj = Py_BuildValue("s",_ptemp);
4487 } else {
4488 Py_INCREF(Py_None);
4489 _resultobj = Py_None;
4490 }
4491 return _resultobj;
4492 }
4493
4494 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
4495 static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject * _resultobj;
4497 wxPanel * _arg0;
4498 PyObject * _argo0 = 0;
4499 char *_kwnames[] = { "self", NULL };
4500
4501 self = self;
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_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_InitDialog. Expected _wxPanel_p.");
4508 return NULL;
4509 }
4510 }
4511 {
4512 wxPy_BEGIN_ALLOW_THREADS;
4513 wxPanel_InitDialog(_arg0);
4514
4515 wxPy_END_ALLOW_THREADS;
4516 } Py_INCREF(Py_None);
4517 _resultobj = Py_None;
4518 return _resultobj;
4519 }
4520
4521 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
4522 static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject * _resultobj;
4524 wxButton * _result;
4525 wxPanel * _arg0;
4526 PyObject * _argo0 = 0;
4527 char *_kwnames[] = { "self", NULL };
4528 char _ptemp[128];
4529
4530 self = self;
4531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0))
4532 return NULL;
4533 if (_argo0) {
4534 if (_argo0 == Py_None) { _arg0 = NULL; }
4535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
4536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
4537 return NULL;
4538 }
4539 }
4540 {
4541 wxPy_BEGIN_ALLOW_THREADS;
4542 _result = (wxButton *)wxPanel_GetDefaultItem(_arg0);
4543
4544 wxPy_END_ALLOW_THREADS;
4545 } if (_result) {
4546 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
4547 _resultobj = Py_BuildValue("s",_ptemp);
4548 } else {
4549 Py_INCREF(Py_None);
4550 _resultobj = Py_None;
4551 }
4552 return _resultobj;
4553 }
4554
4555 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
4556 static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4557 PyObject * _resultobj;
4558 wxPanel * _arg0;
4559 wxButton * _arg1;
4560 PyObject * _argo0 = 0;
4561 PyObject * _argo1 = 0;
4562 char *_kwnames[] = { "self","btn", NULL };
4563
4564 self = self;
4565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1))
4566 return NULL;
4567 if (_argo0) {
4568 if (_argo0 == Py_None) { _arg0 = NULL; }
4569 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
4570 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
4571 return NULL;
4572 }
4573 }
4574 if (_argo1) {
4575 if (_argo1 == Py_None) { _arg1 = NULL; }
4576 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) {
4577 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
4578 return NULL;
4579 }
4580 }
4581 {
4582 wxPy_BEGIN_ALLOW_THREADS;
4583 wxPanel_SetDefaultItem(_arg0,_arg1);
4584
4585 wxPy_END_ALLOW_THREADS;
4586 } Py_INCREF(Py_None);
4587 _resultobj = Py_None;
4588 return _resultobj;
4589 }
4590
4591 static void *SwigwxDialogTowxPanel(void *ptr) {
4592 wxDialog *src;
4593 wxPanel *dest;
4594 src = (wxDialog *) ptr;
4595 dest = (wxPanel *) src;
4596 return (void *) dest;
4597 }
4598
4599 static void *SwigwxDialogTowxWindow(void *ptr) {
4600 wxDialog *src;
4601 wxWindow *dest;
4602 src = (wxDialog *) ptr;
4603 dest = (wxWindow *) src;
4604 return (void *) dest;
4605 }
4606
4607 static void *SwigwxDialogTowxEvtHandler(void *ptr) {
4608 wxDialog *src;
4609 wxEvtHandler *dest;
4610 src = (wxDialog *) ptr;
4611 dest = (wxEvtHandler *) src;
4612 return (void *) dest;
4613 }
4614
4615 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4616 static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4617 PyObject * _resultobj;
4618 wxDialog * _result;
4619 wxWindow * _arg0;
4620 wxWindowID _arg1;
4621 wxString * _arg2;
4622 wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition;
4623 wxSize * _arg4 = (wxSize *) &wxPyDefaultSize;
4624 long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE;
4625 char * _arg6 = (char *) "dialogBox";
4626 PyObject * _argo0 = 0;
4627 PyObject * _obj2 = 0;
4628 wxPoint temp;
4629 PyObject * _obj3 = 0;
4630 wxSize temp0;
4631 PyObject * _obj4 = 0;
4632 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
4633 char _ptemp[128];
4634
4635 self = self;
4636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
4637 return NULL;
4638 if (_argo0) {
4639 if (_argo0 == Py_None) { _arg0 = NULL; }
4640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
4642 return NULL;
4643 }
4644 }
4645 {
4646 if (!PyString_Check(_obj2)) {
4647 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4648 return NULL;
4649 }
4650 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
4651 }
4652 if (_obj3)
4653 {
4654 _arg3 = &temp;
4655 if (! wxPoint_helper(_obj3, &_arg3))
4656 return NULL;
4657 }
4658 if (_obj4)
4659 {
4660 _arg4 = &temp0;
4661 if (! wxSize_helper(_obj4, &_arg4))
4662 return NULL;
4663 }
4664 {
4665 wxPy_BEGIN_ALLOW_THREADS;
4666 _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
4667
4668 wxPy_END_ALLOW_THREADS;
4669 } if (_result) {
4670 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
4671 _resultobj = Py_BuildValue("s",_ptemp);
4672 } else {
4673 Py_INCREF(Py_None);
4674 _resultobj = Py_None;
4675 }
4676 {
4677 if (_obj2)
4678 delete _arg2;
4679 }
4680 return _resultobj;
4681 }
4682
4683 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
4684 static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
4685 PyObject * _resultobj;
4686 wxDialog * _arg0;
4687 int _arg1 = (int ) wxBOTH;
4688 PyObject * _argo0 = 0;
4689 char *_kwnames[] = { "self","direction", NULL };
4690
4691 self = self;
4692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1))
4693 return NULL;
4694 if (_argo0) {
4695 if (_argo0 == Py_None) { _arg0 = NULL; }
4696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
4698 return NULL;
4699 }
4700 }
4701 {
4702 wxPy_BEGIN_ALLOW_THREADS;
4703 wxDialog_Centre(_arg0,_arg1);
4704
4705 wxPy_END_ALLOW_THREADS;
4706 } Py_INCREF(Py_None);
4707 _resultobj = Py_None;
4708 return _resultobj;
4709 }
4710
4711 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
4712 static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4713 PyObject * _resultobj;
4714 wxDialog * _arg0;
4715 int _arg1;
4716 PyObject * _argo0 = 0;
4717 char *_kwnames[] = { "self","retCode", NULL };
4718
4719 self = self;
4720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1))
4721 return NULL;
4722 if (_argo0) {
4723 if (_argo0 == Py_None) { _arg0 = NULL; }
4724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
4726 return NULL;
4727 }
4728 }
4729 {
4730 wxPy_BEGIN_ALLOW_THREADS;
4731 wxDialog_EndModal(_arg0,_arg1);
4732
4733 wxPy_END_ALLOW_THREADS;
4734 } Py_INCREF(Py_None);
4735 _resultobj = Py_None;
4736 return _resultobj;
4737 }
4738
4739 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
4740 static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4741 PyObject * _resultobj;
4742 wxString * _result;
4743 wxDialog * _arg0;
4744 PyObject * _argo0 = 0;
4745 char *_kwnames[] = { "self", NULL };
4746
4747 self = self;
4748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0))
4749 return NULL;
4750 if (_argo0) {
4751 if (_argo0 == Py_None) { _arg0 = NULL; }
4752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
4754 return NULL;
4755 }
4756 }
4757 {
4758 wxPy_BEGIN_ALLOW_THREADS;
4759 _result = new wxString (wxDialog_GetTitle(_arg0));
4760
4761 wxPy_END_ALLOW_THREADS;
4762 }{
4763 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
4764 }
4765 {
4766 delete _result;
4767 }
4768 return _resultobj;
4769 }
4770
4771 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
4772 static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject * _resultobj;
4774 wxDialog * _arg0;
4775 bool _arg1;
4776 PyObject * _argo0 = 0;
4777 int tempbool1;
4778 char *_kwnames[] = { "self","iconize", NULL };
4779
4780 self = self;
4781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1))
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_Iconize. Expected _wxDialog_p.");
4787 return NULL;
4788 }
4789 }
4790 _arg1 = (bool ) tempbool1;
4791 {
4792 wxPy_BEGIN_ALLOW_THREADS;
4793 wxDialog_Iconize(_arg0,_arg1);
4794
4795 wxPy_END_ALLOW_THREADS;
4796 } Py_INCREF(Py_None);
4797 _resultobj = Py_None;
4798 return _resultobj;
4799 }
4800
4801 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
4802 static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) {
4803 PyObject * _resultobj;
4804 bool _result;
4805 wxDialog * _arg0;
4806 PyObject * _argo0 = 0;
4807 char *_kwnames[] = { "self", NULL };
4808
4809 self = self;
4810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0))
4811 return NULL;
4812 if (_argo0) {
4813 if (_argo0 == Py_None) { _arg0 = NULL; }
4814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
4816 return NULL;
4817 }
4818 }
4819 {
4820 wxPy_BEGIN_ALLOW_THREADS;
4821 _result = (bool )wxDialog_IsIconized(_arg0);
4822
4823 wxPy_END_ALLOW_THREADS;
4824 } _resultobj = Py_BuildValue("i",_result);
4825 return _resultobj;
4826 }
4827
4828 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
4829 static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4830 PyObject * _resultobj;
4831 wxDialog * _arg0;
4832 bool _arg1;
4833 PyObject * _argo0 = 0;
4834 int tempbool1;
4835 char *_kwnames[] = { "self","flag", NULL };
4836
4837 self = self;
4838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1))
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_SetModal. Expected _wxDialog_p.");
4844 return NULL;
4845 }
4846 }
4847 _arg1 = (bool ) tempbool1;
4848 {
4849 wxPy_BEGIN_ALLOW_THREADS;
4850 wxDialog_SetModal(_arg0,_arg1);
4851
4852 wxPy_END_ALLOW_THREADS;
4853 } Py_INCREF(Py_None);
4854 _resultobj = Py_None;
4855 return _resultobj;
4856 }
4857
4858 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
4859 static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4860 PyObject * _resultobj;
4861 bool _result;
4862 wxDialog * _arg0;
4863 PyObject * _argo0 = 0;
4864 char *_kwnames[] = { "self", NULL };
4865
4866 self = self;
4867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0))
4868 return NULL;
4869 if (_argo0) {
4870 if (_argo0 == Py_None) { _arg0 = NULL; }
4871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
4873 return NULL;
4874 }
4875 }
4876 {
4877 wxPy_BEGIN_ALLOW_THREADS;
4878 _result = (bool )wxDialog_IsModal(_arg0);
4879
4880 wxPy_END_ALLOW_THREADS;
4881 } _resultobj = Py_BuildValue("i",_result);
4882 return _resultobj;
4883 }
4884
4885 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4886 static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4887 PyObject * _resultobj;
4888 wxDialog * _arg0;
4889 wxString * _arg1;
4890 PyObject * _argo0 = 0;
4891 PyObject * _obj1 = 0;
4892 char *_kwnames[] = { "self","title", NULL };
4893
4894 self = self;
4895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1))
4896 return NULL;
4897 if (_argo0) {
4898 if (_argo0 == Py_None) { _arg0 = NULL; }
4899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
4901 return NULL;
4902 }
4903 }
4904 {
4905 if (!PyString_Check(_obj1)) {
4906 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4907 return NULL;
4908 }
4909 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4910 }
4911 {
4912 wxPy_BEGIN_ALLOW_THREADS;
4913 wxDialog_SetTitle(_arg0,*_arg1);
4914
4915 wxPy_END_ALLOW_THREADS;
4916 } Py_INCREF(Py_None);
4917 _resultobj = Py_None;
4918 {
4919 if (_obj1)
4920 delete _arg1;
4921 }
4922 return _resultobj;
4923 }
4924
4925 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4926 static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4927 PyObject * _resultobj;
4928 bool _result;
4929 wxDialog * _arg0;
4930 bool _arg1;
4931 PyObject * _argo0 = 0;
4932 int tempbool1;
4933 char *_kwnames[] = { "self","show", NULL };
4934
4935 self = self;
4936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1))
4937 return NULL;
4938 if (_argo0) {
4939 if (_argo0 == Py_None) { _arg0 = NULL; }
4940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
4942 return NULL;
4943 }
4944 }
4945 _arg1 = (bool ) tempbool1;
4946 {
4947 wxPy_BEGIN_ALLOW_THREADS;
4948 _result = (bool )wxDialog_Show(_arg0,_arg1);
4949
4950 wxPy_END_ALLOW_THREADS;
4951 } _resultobj = Py_BuildValue("i",_result);
4952 return _resultobj;
4953 }
4954
4955 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
4956 static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4957 PyObject * _resultobj;
4958 int _result;
4959 wxDialog * _arg0;
4960 PyObject * _argo0 = 0;
4961 char *_kwnames[] = { "self", NULL };
4962
4963 self = self;
4964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0))
4965 return NULL;
4966 if (_argo0) {
4967 if (_argo0 == Py_None) { _arg0 = NULL; }
4968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
4970 return NULL;
4971 }
4972 }
4973 {
4974 wxPy_BEGIN_ALLOW_THREADS;
4975 _result = (int )wxDialog_ShowModal(_arg0);
4976
4977 wxPy_END_ALLOW_THREADS;
4978 } _resultobj = Py_BuildValue("i",_result);
4979 return _resultobj;
4980 }
4981
4982 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
4983 static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
4984 PyObject * _resultobj;
4985 int _result;
4986 wxDialog * _arg0;
4987 PyObject * _argo0 = 0;
4988 char *_kwnames[] = { "self", NULL };
4989
4990 self = self;
4991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0))
4992 return NULL;
4993 if (_argo0) {
4994 if (_argo0 == Py_None) { _arg0 = NULL; }
4995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
4997 return NULL;
4998 }
4999 }
5000 {
5001 wxPy_BEGIN_ALLOW_THREADS;
5002 _result = (int )wxDialog_GetReturnCode(_arg0);
5003
5004 wxPy_END_ALLOW_THREADS;
5005 } _resultobj = Py_BuildValue("i",_result);
5006 return _resultobj;
5007 }
5008
5009 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
5010 static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5011 PyObject * _resultobj;
5012 wxDialog * _arg0;
5013 int _arg1;
5014 PyObject * _argo0 = 0;
5015 char *_kwnames[] = { "self","retCode", NULL };
5016
5017 self = self;
5018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1))
5019 return NULL;
5020 if (_argo0) {
5021 if (_argo0 == Py_None) { _arg0 = NULL; }
5022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
5023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
5024 return NULL;
5025 }
5026 }
5027 {
5028 wxPy_BEGIN_ALLOW_THREADS;
5029 wxDialog_SetReturnCode(_arg0,_arg1);
5030
5031 wxPy_END_ALLOW_THREADS;
5032 } Py_INCREF(Py_None);
5033 _resultobj = Py_None;
5034 return _resultobj;
5035 }
5036
5037 static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
5038 wxScrolledWindow *src;
5039 wxPanel *dest;
5040 src = (wxScrolledWindow *) ptr;
5041 dest = (wxPanel *) src;
5042 return (void *) dest;
5043 }
5044
5045 static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
5046 wxScrolledWindow *src;
5047 wxWindow *dest;
5048 src = (wxScrolledWindow *) ptr;
5049 dest = (wxWindow *) src;
5050 return (void *) dest;
5051 }
5052
5053 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
5054 wxScrolledWindow *src;
5055 wxEvtHandler *dest;
5056 src = (wxScrolledWindow *) ptr;
5057 dest = (wxEvtHandler *) src;
5058 return (void *) dest;
5059 }
5060
5061 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5062 static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5063 PyObject * _resultobj;
5064 wxScrolledWindow * _result;
5065 wxWindow * _arg0;
5066 wxWindowID _arg1 = (wxWindowID ) -1;
5067 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
5068 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
5069 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
5070 char * _arg5 = (char *) "scrolledWindow";
5071 PyObject * _argo0 = 0;
5072 wxPoint temp;
5073 PyObject * _obj2 = 0;
5074 wxSize temp0;
5075 PyObject * _obj3 = 0;
5076 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
5077 char _ptemp[128];
5078
5079 self = self;
5080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5))
5081 return NULL;
5082 if (_argo0) {
5083 if (_argo0 == Py_None) { _arg0 = NULL; }
5084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
5086 return NULL;
5087 }
5088 }
5089 if (_obj2)
5090 {
5091 _arg2 = &temp;
5092 if (! wxPoint_helper(_obj2, &_arg2))
5093 return NULL;
5094 }
5095 if (_obj3)
5096 {
5097 _arg3 = &temp0;
5098 if (! wxSize_helper(_obj3, &_arg3))
5099 return NULL;
5100 }
5101 {
5102 wxPy_BEGIN_ALLOW_THREADS;
5103 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
5104
5105 wxPy_END_ALLOW_THREADS;
5106 } if (_result) {
5107 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
5108 _resultobj = Py_BuildValue("s",_ptemp);
5109 } else {
5110 Py_INCREF(Py_None);
5111 _resultobj = Py_None;
5112 }
5113 return _resultobj;
5114 }
5115
5116 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
5117 static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject * _resultobj;
5119 wxScrolledWindow * _arg0;
5120 bool _arg1;
5121 bool _arg2;
5122 PyObject * _argo0 = 0;
5123 int tempbool1;
5124 int tempbool2;
5125 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
5126
5127 self = self;
5128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
5129 return NULL;
5130 if (_argo0) {
5131 if (_argo0 == Py_None) { _arg0 = NULL; }
5132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
5134 return NULL;
5135 }
5136 }
5137 _arg1 = (bool ) tempbool1;
5138 _arg2 = (bool ) tempbool2;
5139 {
5140 wxPy_BEGIN_ALLOW_THREADS;
5141 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
5142
5143 wxPy_END_ALLOW_THREADS;
5144 } Py_INCREF(Py_None);
5145 _resultobj = Py_None;
5146 return _resultobj;
5147 }
5148
5149 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
5150 static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
5151 PyObject * _resultobj;
5152 wxScrolledWindow * _arg0;
5153 int * _arg1;
5154 int temp;
5155 int * _arg2;
5156 int temp0;
5157 PyObject * _argo0 = 0;
5158 char *_kwnames[] = { "self", NULL };
5159
5160 self = self;
5161 {
5162 _arg1 = &temp;
5163 }
5164 {
5165 _arg2 = &temp0;
5166 }
5167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
5168 return NULL;
5169 if (_argo0) {
5170 if (_argo0 == Py_None) { _arg0 = NULL; }
5171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
5173 return NULL;
5174 }
5175 }
5176 {
5177 wxPy_BEGIN_ALLOW_THREADS;
5178 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
5179
5180 wxPy_END_ALLOW_THREADS;
5181 } Py_INCREF(Py_None);
5182 _resultobj = Py_None;
5183 {
5184 PyObject *o;
5185 o = PyInt_FromLong((long) (*_arg1));
5186 _resultobj = t_output_helper(_resultobj, o);
5187 }
5188 {
5189 PyObject *o;
5190 o = PyInt_FromLong((long) (*_arg2));
5191 _resultobj = t_output_helper(_resultobj, o);
5192 }
5193 return _resultobj;
5194 }
5195
5196 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
5197 static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5198 PyObject * _resultobj;
5199 wxScrolledWindow * _arg0;
5200 int * _arg1;
5201 int temp;
5202 int * _arg2;
5203 int temp0;
5204 PyObject * _argo0 = 0;
5205 char *_kwnames[] = { "self", NULL };
5206
5207 self = self;
5208 {
5209 _arg1 = &temp;
5210 }
5211 {
5212 _arg2 = &temp0;
5213 }
5214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0))
5215 return NULL;
5216 if (_argo0) {
5217 if (_argo0 == Py_None) { _arg0 = NULL; }
5218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
5220 return NULL;
5221 }
5222 }
5223 {
5224 wxPy_BEGIN_ALLOW_THREADS;
5225 wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2);
5226
5227 wxPy_END_ALLOW_THREADS;
5228 } Py_INCREF(Py_None);
5229 _resultobj = Py_None;
5230 {
5231 PyObject *o;
5232 o = PyInt_FromLong((long) (*_arg1));
5233 _resultobj = t_output_helper(_resultobj, o);
5234 }
5235 {
5236 PyObject *o;
5237 o = PyInt_FromLong((long) (*_arg2));
5238 _resultobj = t_output_helper(_resultobj, o);
5239 }
5240 return _resultobj;
5241 }
5242
5243 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
5244 static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
5245 PyObject * _resultobj;
5246 bool _result;
5247 wxScrolledWindow * _arg0;
5248 PyObject * _argo0 = 0;
5249 char *_kwnames[] = { "self", NULL };
5250
5251 self = self;
5252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
5253 return NULL;
5254 if (_argo0) {
5255 if (_argo0 == Py_None) { _arg0 = NULL; }
5256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
5258 return NULL;
5259 }
5260 }
5261 {
5262 wxPy_BEGIN_ALLOW_THREADS;
5263 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
5264
5265 wxPy_END_ALLOW_THREADS;
5266 } _resultobj = Py_BuildValue("i",_result);
5267 return _resultobj;
5268 }
5269
5270 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
5271 static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5272 PyObject * _resultobj;
5273 wxScrolledWindow * _arg0;
5274 wxDC * _arg1;
5275 PyObject * _argo0 = 0;
5276 PyObject * _argo1 = 0;
5277 char *_kwnames[] = { "self","dc", NULL };
5278
5279 self = self;
5280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
5281 return NULL;
5282 if (_argo0) {
5283 if (_argo0 == Py_None) { _arg0 = NULL; }
5284 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5285 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
5286 return NULL;
5287 }
5288 }
5289 if (_argo1) {
5290 if (_argo1 == Py_None) { _arg1 = NULL; }
5291 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
5292 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
5293 return NULL;
5294 }
5295 }
5296 {
5297 wxPy_BEGIN_ALLOW_THREADS;
5298 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
5299
5300 wxPy_END_ALLOW_THREADS;
5301 } Py_INCREF(Py_None);
5302 _resultobj = Py_None;
5303 return _resultobj;
5304 }
5305
5306 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
5307 static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
5308 PyObject * _resultobj;
5309 wxScrolledWindow * _arg0;
5310 int _arg1;
5311 int _arg2;
5312 PyObject * _argo0 = 0;
5313 char *_kwnames[] = { "self","x","y", NULL };
5314
5315 self = self;
5316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
5317 return NULL;
5318 if (_argo0) {
5319 if (_argo0 == Py_None) { _arg0 = NULL; }
5320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
5322 return NULL;
5323 }
5324 }
5325 {
5326 wxPy_BEGIN_ALLOW_THREADS;
5327 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
5328
5329 wxPy_END_ALLOW_THREADS;
5330 } Py_INCREF(Py_None);
5331 _resultobj = Py_None;
5332 return _resultobj;
5333 }
5334
5335 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5336 static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
5337 PyObject * _resultobj;
5338 wxScrolledWindow * _arg0;
5339 int _arg1;
5340 int _arg2;
5341 int _arg3;
5342 int _arg4;
5343 int _arg5 = (int ) 0;
5344 int _arg6 = (int ) 0;
5345 PyObject * _argo0 = 0;
5346 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos", NULL };
5347
5348 self = self;
5349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|ii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5350 return NULL;
5351 if (_argo0) {
5352 if (_argo0 == Py_None) { _arg0 = NULL; }
5353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
5355 return NULL;
5356 }
5357 }
5358 {
5359 wxPy_BEGIN_ALLOW_THREADS;
5360 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5361
5362 wxPy_END_ALLOW_THREADS;
5363 } Py_INCREF(Py_None);
5364 _resultobj = Py_None;
5365 return _resultobj;
5366 }
5367
5368 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
5369 static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
5370 PyObject * _resultobj;
5371 wxScrolledWindow * _arg0;
5372 int * _arg1;
5373 int temp;
5374 int * _arg2;
5375 int temp0;
5376 PyObject * _argo0 = 0;
5377 char *_kwnames[] = { "self", NULL };
5378
5379 self = self;
5380 {
5381 _arg1 = &temp;
5382 }
5383 {
5384 _arg2 = &temp0;
5385 }
5386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0))
5387 return NULL;
5388 if (_argo0) {
5389 if (_argo0 == Py_None) { _arg0 = NULL; }
5390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
5392 return NULL;
5393 }
5394 }
5395 {
5396 wxPy_BEGIN_ALLOW_THREADS;
5397 wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2);
5398
5399 wxPy_END_ALLOW_THREADS;
5400 } Py_INCREF(Py_None);
5401 _resultobj = Py_None;
5402 {
5403 PyObject *o;
5404 o = PyInt_FromLong((long) (*_arg1));
5405 _resultobj = t_output_helper(_resultobj, o);
5406 }
5407 {
5408 PyObject *o;
5409 o = PyInt_FromLong((long) (*_arg2));
5410 _resultobj = t_output_helper(_resultobj, o);
5411 }
5412 return _resultobj;
5413 }
5414
5415 #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5416 static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5417 PyObject * _resultobj;
5418 wxScrolledWindow * _arg0;
5419 int _arg1;
5420 int _arg2;
5421 int * _arg3;
5422 int temp;
5423 int * _arg4;
5424 int temp0;
5425 PyObject * _argo0 = 0;
5426 char *_kwnames[] = { "self","x","y", NULL };
5427
5428 self = self;
5429 {
5430 _arg3 = &temp;
5431 }
5432 {
5433 _arg4 = &temp0;
5434 }
5435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
5436 return NULL;
5437 if (_argo0) {
5438 if (_argo0 == Py_None) { _arg0 = NULL; }
5439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p.");
5441 return NULL;
5442 }
5443 }
5444 {
5445 wxPy_BEGIN_ALLOW_THREADS;
5446 wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
5447
5448 wxPy_END_ALLOW_THREADS;
5449 } Py_INCREF(Py_None);
5450 _resultobj = Py_None;
5451 {
5452 PyObject *o;
5453 o = PyInt_FromLong((long) (*_arg3));
5454 _resultobj = t_output_helper(_resultobj, o);
5455 }
5456 {
5457 PyObject *o;
5458 o = PyInt_FromLong((long) (*_arg4));
5459 _resultobj = t_output_helper(_resultobj, o);
5460 }
5461 return _resultobj;
5462 }
5463
5464 #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5465 static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
5466 PyObject * _resultobj;
5467 wxScrolledWindow * _arg0;
5468 int _arg1;
5469 int _arg2;
5470 int * _arg3;
5471 int temp;
5472 int * _arg4;
5473 int temp0;
5474 PyObject * _argo0 = 0;
5475 char *_kwnames[] = { "self","x","y", NULL };
5476
5477 self = self;
5478 {
5479 _arg3 = &temp;
5480 }
5481 {
5482 _arg4 = &temp0;
5483 }
5484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2))
5485 return NULL;
5486 if (_argo0) {
5487 if (_argo0 == Py_None) { _arg0 = NULL; }
5488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
5489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p.");
5490 return NULL;
5491 }
5492 }
5493 {
5494 wxPy_BEGIN_ALLOW_THREADS;
5495 wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4);
5496
5497 wxPy_END_ALLOW_THREADS;
5498 } Py_INCREF(Py_None);
5499 _resultobj = Py_None;
5500 {
5501 PyObject *o;
5502 o = PyInt_FromLong((long) (*_arg3));
5503 _resultobj = t_output_helper(_resultobj, o);
5504 }
5505 {
5506 PyObject *o;
5507 o = PyInt_FromLong((long) (*_arg4));
5508 _resultobj = t_output_helper(_resultobj, o);
5509 }
5510 return _resultobj;
5511 }
5512
5513 static void *SwigwxMenuTowxEvtHandler(void *ptr) {
5514 wxMenu *src;
5515 wxEvtHandler *dest;
5516 src = (wxMenu *) ptr;
5517 dest = (wxEvtHandler *) src;
5518 return (void *) dest;
5519 }
5520
5521 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
5522 static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5523 PyObject * _resultobj;
5524 wxMenu * _result;
5525 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
5526 long _arg1 = (long ) 0;
5527 PyObject * _obj0 = 0;
5528 char *_kwnames[] = { "title","style", NULL };
5529 char _ptemp[128];
5530
5531 self = self;
5532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
5533 return NULL;
5534 if (_obj0)
5535 {
5536 if (!PyString_Check(_obj0)) {
5537 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5538 return NULL;
5539 }
5540 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
5541 }
5542 {
5543 wxPy_BEGIN_ALLOW_THREADS;
5544 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
5545
5546 wxPy_END_ALLOW_THREADS;
5547 } if (_result) {
5548 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
5549 _resultobj = Py_BuildValue("s",_ptemp);
5550 } else {
5551 Py_INCREF(Py_None);
5552 _resultobj = Py_None;
5553 }
5554 {
5555 if (_obj0)
5556 delete _arg0;
5557 }
5558 return _resultobj;
5559 }
5560
5561 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5562 static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5563 PyObject * _resultobj;
5564 wxMenu * _arg0;
5565 int _arg1;
5566 wxString * _arg2;
5567 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
5568 int _arg4 = (int ) FALSE;
5569 PyObject * _argo0 = 0;
5570 PyObject * _obj2 = 0;
5571 PyObject * _obj3 = 0;
5572 char *_kwnames[] = { "self","id","item","helpString","checkable", NULL };
5573
5574 self = self;
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
5576 return NULL;
5577 if (_argo0) {
5578 if (_argo0 == Py_None) { _arg0 = NULL; }
5579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
5581 return NULL;
5582 }
5583 }
5584 {
5585 if (!PyString_Check(_obj2)) {
5586 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5587 return NULL;
5588 }
5589 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5590 }
5591 if (_obj3)
5592 {
5593 if (!PyString_Check(_obj3)) {
5594 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5595 return NULL;
5596 }
5597 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
5598 }
5599 {
5600 wxPy_BEGIN_ALLOW_THREADS;
5601 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
5602
5603 wxPy_END_ALLOW_THREADS;
5604 } Py_INCREF(Py_None);
5605 _resultobj = Py_None;
5606 {
5607 if (_obj2)
5608 delete _arg2;
5609 }
5610 {
5611 if (_obj3)
5612 delete _arg3;
5613 }
5614 return _resultobj;
5615 }
5616
5617 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5618 static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5619 PyObject * _resultobj;
5620 wxMenu * _arg0;
5621 int _arg1;
5622 wxString * _arg2;
5623 wxMenu * _arg3;
5624 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
5625 PyObject * _argo0 = 0;
5626 PyObject * _obj2 = 0;
5627 PyObject * _argo3 = 0;
5628 PyObject * _obj4 = 0;
5629 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
5630
5631 self = self;
5632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
5633 return NULL;
5634 if (_argo0) {
5635 if (_argo0 == Py_None) { _arg0 = NULL; }
5636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
5638 return NULL;
5639 }
5640 }
5641 {
5642 if (!PyString_Check(_obj2)) {
5643 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5644 return NULL;
5645 }
5646 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5647 }
5648 if (_argo3) {
5649 if (_argo3 == Py_None) { _arg3 = NULL; }
5650 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
5651 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
5652 return NULL;
5653 }
5654 }
5655 if (_obj4)
5656 {
5657 if (!PyString_Check(_obj4)) {
5658 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5659 return NULL;
5660 }
5661 _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4));
5662 }
5663 {
5664 wxPy_BEGIN_ALLOW_THREADS;
5665 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
5666
5667 wxPy_END_ALLOW_THREADS;
5668 } Py_INCREF(Py_None);
5669 _resultobj = Py_None;
5670 {
5671 if (_obj2)
5672 delete _arg2;
5673 }
5674 {
5675 if (_obj4)
5676 delete _arg4;
5677 }
5678 return _resultobj;
5679 }
5680
5681 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
5682 static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5683 PyObject * _resultobj;
5684 wxMenu * _arg0;
5685 wxMenuItem * _arg1;
5686 PyObject * _argo0 = 0;
5687 PyObject * _argo1 = 0;
5688 char *_kwnames[] = { "self","item", NULL };
5689
5690 self = self;
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
5692 return NULL;
5693 if (_argo0) {
5694 if (_argo0 == Py_None) { _arg0 = NULL; }
5695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
5697 return NULL;
5698 }
5699 }
5700 if (_argo1) {
5701 if (_argo1 == Py_None) { _arg1 = NULL; }
5702 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
5703 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
5704 return NULL;
5705 }
5706 }
5707 {
5708 wxPy_BEGIN_ALLOW_THREADS;
5709 wxMenu_AppendItem(_arg0,_arg1);
5710
5711 wxPy_END_ALLOW_THREADS;
5712 } Py_INCREF(Py_None);
5713 _resultobj = Py_None;
5714 return _resultobj;
5715 }
5716
5717 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
5718 static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
5719 PyObject * _resultobj;
5720 wxMenu * _arg0;
5721 PyObject * _argo0 = 0;
5722 char *_kwnames[] = { "self", NULL };
5723
5724 self = self;
5725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
5726 return NULL;
5727 if (_argo0) {
5728 if (_argo0 == Py_None) { _arg0 = NULL; }
5729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
5731 return NULL;
5732 }
5733 }
5734 {
5735 wxPy_BEGIN_ALLOW_THREADS;
5736 wxMenu_AppendSeparator(_arg0);
5737
5738 wxPy_END_ALLOW_THREADS;
5739 } Py_INCREF(Py_None);
5740 _resultobj = Py_None;
5741 return _resultobj;
5742 }
5743
5744 #define wxMenu_Break(_swigobj) (_swigobj->Break())
5745 static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
5746 PyObject * _resultobj;
5747 wxMenu * _arg0;
5748 PyObject * _argo0 = 0;
5749 char *_kwnames[] = { "self", NULL };
5750
5751 self = self;
5752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
5753 return NULL;
5754 if (_argo0) {
5755 if (_argo0 == Py_None) { _arg0 = NULL; }
5756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
5758 return NULL;
5759 }
5760 }
5761 {
5762 wxPy_BEGIN_ALLOW_THREADS;
5763 wxMenu_Break(_arg0);
5764
5765 wxPy_END_ALLOW_THREADS;
5766 } Py_INCREF(Py_None);
5767 _resultobj = Py_None;
5768 return _resultobj;
5769 }
5770
5771 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
5772 static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
5773 PyObject * _resultobj;
5774 wxMenu * _arg0;
5775 int _arg1;
5776 bool _arg2;
5777 PyObject * _argo0 = 0;
5778 int tempbool2;
5779 char *_kwnames[] = { "self","id","flag", NULL };
5780
5781 self = self;
5782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
5783 return NULL;
5784 if (_argo0) {
5785 if (_argo0 == Py_None) { _arg0 = NULL; }
5786 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5787 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
5788 return NULL;
5789 }
5790 }
5791 _arg2 = (bool ) tempbool2;
5792 {
5793 wxPy_BEGIN_ALLOW_THREADS;
5794 wxMenu_Check(_arg0,_arg1,_arg2);
5795
5796 wxPy_END_ALLOW_THREADS;
5797 } Py_INCREF(Py_None);
5798 _resultobj = Py_None;
5799 return _resultobj;
5800 }
5801
5802 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
5803 static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
5804 PyObject * _resultobj;
5805 wxMenu * _arg0;
5806 int _arg1;
5807 bool _arg2;
5808 PyObject * _argo0 = 0;
5809 int tempbool2;
5810 char *_kwnames[] = { "self","id","enable", NULL };
5811
5812 self = self;
5813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
5814 return NULL;
5815 if (_argo0) {
5816 if (_argo0 == Py_None) { _arg0 = NULL; }
5817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
5819 return NULL;
5820 }
5821 }
5822 _arg2 = (bool ) tempbool2;
5823 {
5824 wxPy_BEGIN_ALLOW_THREADS;
5825 wxMenu_Enable(_arg0,_arg1,_arg2);
5826
5827 wxPy_END_ALLOW_THREADS;
5828 } Py_INCREF(Py_None);
5829 _resultobj = Py_None;
5830 return _resultobj;
5831 }
5832
5833 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
5834 static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5835 PyObject * _resultobj;
5836 int _result;
5837 wxMenu * _arg0;
5838 wxString * _arg1;
5839 PyObject * _argo0 = 0;
5840 PyObject * _obj1 = 0;
5841 char *_kwnames[] = { "self","itemString", NULL };
5842
5843 self = self;
5844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
5845 return NULL;
5846 if (_argo0) {
5847 if (_argo0 == Py_None) { _arg0 = NULL; }
5848 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5849 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
5850 return NULL;
5851 }
5852 }
5853 {
5854 if (!PyString_Check(_obj1)) {
5855 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5856 return NULL;
5857 }
5858 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
5859 }
5860 {
5861 wxPy_BEGIN_ALLOW_THREADS;
5862 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
5863
5864 wxPy_END_ALLOW_THREADS;
5865 } _resultobj = Py_BuildValue("i",_result);
5866 {
5867 if (_obj1)
5868 delete _arg1;
5869 }
5870 return _resultobj;
5871 }
5872
5873 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
5874 static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
5875 PyObject * _resultobj;
5876 wxString * _result;
5877 wxMenu * _arg0;
5878 PyObject * _argo0 = 0;
5879 char *_kwnames[] = { "self", NULL };
5880
5881 self = self;
5882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
5883 return NULL;
5884 if (_argo0) {
5885 if (_argo0 == Py_None) { _arg0 = NULL; }
5886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
5888 return NULL;
5889 }
5890 }
5891 {
5892 wxPy_BEGIN_ALLOW_THREADS;
5893 _result = new wxString (wxMenu_GetTitle(_arg0));
5894
5895 wxPy_END_ALLOW_THREADS;
5896 }{
5897 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
5898 }
5899 {
5900 delete _result;
5901 }
5902 return _resultobj;
5903 }
5904
5905 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
5906 static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
5907 PyObject * _resultobj;
5908 wxMenu * _arg0;
5909 wxString * _arg1;
5910 PyObject * _argo0 = 0;
5911 PyObject * _obj1 = 0;
5912 char *_kwnames[] = { "self","title", NULL };
5913
5914 self = self;
5915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
5916 return NULL;
5917 if (_argo0) {
5918 if (_argo0 == Py_None) { _arg0 = NULL; }
5919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
5921 return NULL;
5922 }
5923 }
5924 {
5925 if (!PyString_Check(_obj1)) {
5926 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5927 return NULL;
5928 }
5929 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
5930 }
5931 {
5932 wxPy_BEGIN_ALLOW_THREADS;
5933 wxMenu_SetTitle(_arg0,*_arg1);
5934
5935 wxPy_END_ALLOW_THREADS;
5936 } Py_INCREF(Py_None);
5937 _resultobj = Py_None;
5938 {
5939 if (_obj1)
5940 delete _arg1;
5941 }
5942 return _resultobj;
5943 }
5944
5945 #define wxMenu_FindItemForId(_swigobj,_swigarg0) (_swigobj->FindItemForId(_swigarg0))
5946 static PyObject *_wrap_wxMenu_FindItemForId(PyObject *self, PyObject *args, PyObject *kwargs) {
5947 PyObject * _resultobj;
5948 wxMenuItem * _result;
5949 wxMenu * _arg0;
5950 int _arg1;
5951 PyObject * _argo0 = 0;
5952 char *_kwnames[] = { "self","id", NULL };
5953 char _ptemp[128];
5954
5955 self = self;
5956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemForId",_kwnames,&_argo0,&_arg1))
5957 return NULL;
5958 if (_argo0) {
5959 if (_argo0 == Py_None) { _arg0 = NULL; }
5960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemForId. Expected _wxMenu_p.");
5962 return NULL;
5963 }
5964 }
5965 {
5966 wxPy_BEGIN_ALLOW_THREADS;
5967 _result = (wxMenuItem *)wxMenu_FindItemForId(_arg0,_arg1);
5968
5969 wxPy_END_ALLOW_THREADS;
5970 } if (_result) {
5971 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
5972 _resultobj = Py_BuildValue("s",_ptemp);
5973 } else {
5974 Py_INCREF(Py_None);
5975 _resultobj = Py_None;
5976 }
5977 return _resultobj;
5978 }
5979
5980 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
5981 static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
5982 PyObject * _resultobj;
5983 wxString * _result;
5984 wxMenu * _arg0;
5985 int _arg1;
5986 PyObject * _argo0 = 0;
5987 char *_kwnames[] = { "self","id", NULL };
5988
5989 self = self;
5990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
5991 return NULL;
5992 if (_argo0) {
5993 if (_argo0 == Py_None) { _arg0 = NULL; }
5994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
5996 return NULL;
5997 }
5998 }
5999 {
6000 wxPy_BEGIN_ALLOW_THREADS;
6001 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
6002
6003 wxPy_END_ALLOW_THREADS;
6004 }{
6005 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6006 }
6007 {
6008 delete _result;
6009 }
6010 return _resultobj;
6011 }
6012
6013 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
6014 static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6015 PyObject * _resultobj;
6016 wxString * _result;
6017 wxMenu * _arg0;
6018 int _arg1;
6019 PyObject * _argo0 = 0;
6020 char *_kwnames[] = { "self","id", NULL };
6021
6022 self = self;
6023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
6024 return NULL;
6025 if (_argo0) {
6026 if (_argo0 == Py_None) { _arg0 = NULL; }
6027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
6029 return NULL;
6030 }
6031 }
6032 {
6033 wxPy_BEGIN_ALLOW_THREADS;
6034 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
6035
6036 wxPy_END_ALLOW_THREADS;
6037 }{
6038 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6039 }
6040 {
6041 delete _result;
6042 }
6043 return _resultobj;
6044 }
6045
6046 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
6047 static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
6048 PyObject * _resultobj;
6049 wxMenu * _arg0;
6050 int _arg1;
6051 wxString * _arg2;
6052 PyObject * _argo0 = 0;
6053 PyObject * _obj2 = 0;
6054 char *_kwnames[] = { "self","id","helpString", NULL };
6055
6056 self = self;
6057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
6058 return NULL;
6059 if (_argo0) {
6060 if (_argo0 == Py_None) { _arg0 = NULL; }
6061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
6063 return NULL;
6064 }
6065 }
6066 {
6067 if (!PyString_Check(_obj2)) {
6068 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6069 return NULL;
6070 }
6071 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6072 }
6073 {
6074 wxPy_BEGIN_ALLOW_THREADS;
6075 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
6076
6077 wxPy_END_ALLOW_THREADS;
6078 } Py_INCREF(Py_None);
6079 _resultobj = Py_None;
6080 {
6081 if (_obj2)
6082 delete _arg2;
6083 }
6084 return _resultobj;
6085 }
6086
6087 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
6088 static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6089 PyObject * _resultobj;
6090 bool _result;
6091 wxMenu * _arg0;
6092 int _arg1;
6093 PyObject * _argo0 = 0;
6094 char *_kwnames[] = { "self","id", NULL };
6095
6096 self = self;
6097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
6098 return NULL;
6099 if (_argo0) {
6100 if (_argo0 == Py_None) { _arg0 = NULL; }
6101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
6103 return NULL;
6104 }
6105 }
6106 {
6107 wxPy_BEGIN_ALLOW_THREADS;
6108 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
6109
6110 wxPy_END_ALLOW_THREADS;
6111 } _resultobj = Py_BuildValue("i",_result);
6112 return _resultobj;
6113 }
6114
6115 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
6116 static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6117 PyObject * _resultobj;
6118 bool _result;
6119 wxMenu * _arg0;
6120 int _arg1;
6121 PyObject * _argo0 = 0;
6122 char *_kwnames[] = { "self","id", NULL };
6123
6124 self = self;
6125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
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_IsEnabled. Expected _wxMenu_p.");
6131 return NULL;
6132 }
6133 }
6134 {
6135 wxPy_BEGIN_ALLOW_THREADS;
6136 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
6137
6138 wxPy_END_ALLOW_THREADS;
6139 } _resultobj = Py_BuildValue("i",_result);
6140 return _resultobj;
6141 }
6142
6143 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
6144 static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6145 PyObject * _resultobj;
6146 wxMenu * _arg0;
6147 int _arg1;
6148 wxString * _arg2;
6149 PyObject * _argo0 = 0;
6150 PyObject * _obj2 = 0;
6151 char *_kwnames[] = { "self","id","label", NULL };
6152
6153 self = self;
6154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
6155 return NULL;
6156 if (_argo0) {
6157 if (_argo0 == Py_None) { _arg0 = NULL; }
6158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
6160 return NULL;
6161 }
6162 }
6163 {
6164 if (!PyString_Check(_obj2)) {
6165 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6166 return NULL;
6167 }
6168 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6169 }
6170 {
6171 wxPy_BEGIN_ALLOW_THREADS;
6172 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
6173
6174 wxPy_END_ALLOW_THREADS;
6175 } Py_INCREF(Py_None);
6176 _resultobj = Py_None;
6177 {
6178 if (_obj2)
6179 delete _arg2;
6180 }
6181 return _resultobj;
6182 }
6183
6184 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
6185 static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
6186 PyObject * _resultobj;
6187 wxMenu * _arg0;
6188 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
6189 PyObject * _argo0 = 0;
6190 PyObject * _argo1 = 0;
6191 char *_kwnames[] = { "self","source", NULL };
6192
6193 self = self;
6194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
6195 return NULL;
6196 if (_argo0) {
6197 if (_argo0 == Py_None) { _arg0 = NULL; }
6198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
6200 return NULL;
6201 }
6202 }
6203 if (_argo1) {
6204 if (_argo1 == Py_None) { _arg1 = NULL; }
6205 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
6206 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
6207 return NULL;
6208 }
6209 }
6210 {
6211 wxPy_BEGIN_ALLOW_THREADS;
6212 wxMenu_UpdateUI(_arg0,_arg1);
6213
6214 wxPy_END_ALLOW_THREADS;
6215 } Py_INCREF(Py_None);
6216 _resultobj = Py_None;
6217 return _resultobj;
6218 }
6219
6220 static void wxMenu_Destroy(wxMenu *self) {
6221 delete self;
6222 }
6223 static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6224 PyObject * _resultobj;
6225 wxMenu * _arg0;
6226 PyObject * _argo0 = 0;
6227 char *_kwnames[] = { "self", NULL };
6228
6229 self = self;
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
6231 return NULL;
6232 if (_argo0) {
6233 if (_argo0 == Py_None) { _arg0 = NULL; }
6234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
6236 return NULL;
6237 }
6238 }
6239 {
6240 wxPy_BEGIN_ALLOW_THREADS;
6241 wxMenu_Destroy(_arg0);
6242
6243 wxPy_END_ALLOW_THREADS;
6244 } Py_INCREF(Py_None);
6245 _resultobj = Py_None;
6246 return _resultobj;
6247 }
6248
6249 static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
6250 wxMenuBar *src;
6251 wxEvtHandler *dest;
6252 src = (wxMenuBar *) ptr;
6253 dest = (wxEvtHandler *) src;
6254 return (void *) dest;
6255 }
6256
6257 #define new_wxMenuBar() (new wxMenuBar())
6258 static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
6259 PyObject * _resultobj;
6260 wxMenuBar * _result;
6261 char *_kwnames[] = { NULL };
6262 char _ptemp[128];
6263
6264 self = self;
6265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames))
6266 return NULL;
6267 {
6268 wxPy_BEGIN_ALLOW_THREADS;
6269 _result = (wxMenuBar *)new_wxMenuBar();
6270
6271 wxPy_END_ALLOW_THREADS;
6272 } if (_result) {
6273 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
6274 _resultobj = Py_BuildValue("s",_ptemp);
6275 } else {
6276 Py_INCREF(Py_None);
6277 _resultobj = Py_None;
6278 }
6279 return _resultobj;
6280 }
6281
6282 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
6283 static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
6284 PyObject * _resultobj;
6285 wxMenuBar * _arg0;
6286 wxMenu * _arg1;
6287 wxString * _arg2;
6288 PyObject * _argo0 = 0;
6289 PyObject * _argo1 = 0;
6290 PyObject * _obj2 = 0;
6291 char *_kwnames[] = { "self","menu","title", NULL };
6292
6293 self = self;
6294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
6295 return NULL;
6296 if (_argo0) {
6297 if (_argo0 == Py_None) { _arg0 = NULL; }
6298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
6300 return NULL;
6301 }
6302 }
6303 if (_argo1) {
6304 if (_argo1 == Py_None) { _arg1 = NULL; }
6305 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
6306 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
6307 return NULL;
6308 }
6309 }
6310 {
6311 if (!PyString_Check(_obj2)) {
6312 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6313 return NULL;
6314 }
6315 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6316 }
6317 {
6318 wxPy_BEGIN_ALLOW_THREADS;
6319 wxMenuBar_Append(_arg0,_arg1,*_arg2);
6320
6321 wxPy_END_ALLOW_THREADS;
6322 } Py_INCREF(Py_None);
6323 _resultobj = Py_None;
6324 {
6325 if (_obj2)
6326 delete _arg2;
6327 }
6328 return _resultobj;
6329 }
6330
6331 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
6332 static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6333 PyObject * _resultobj;
6334 wxMenuBar * _arg0;
6335 int _arg1;
6336 bool _arg2;
6337 PyObject * _argo0 = 0;
6338 int tempbool2;
6339 char *_kwnames[] = { "self","id","flag", NULL };
6340
6341 self = self;
6342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
6343 return NULL;
6344 if (_argo0) {
6345 if (_argo0 == Py_None) { _arg0 = NULL; }
6346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
6348 return NULL;
6349 }
6350 }
6351 _arg2 = (bool ) tempbool2;
6352 {
6353 wxPy_BEGIN_ALLOW_THREADS;
6354 wxMenuBar_Check(_arg0,_arg1,_arg2);
6355
6356 wxPy_END_ALLOW_THREADS;
6357 } Py_INCREF(Py_None);
6358 _resultobj = Py_None;
6359 return _resultobj;
6360 }
6361
6362 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
6363 static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
6364 PyObject * _resultobj;
6365 wxMenuBar * _arg0;
6366 int _arg1;
6367 bool _arg2;
6368 PyObject * _argo0 = 0;
6369 int tempbool2;
6370 char *_kwnames[] = { "self","id","enable", NULL };
6371
6372 self = self;
6373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
6374 return NULL;
6375 if (_argo0) {
6376 if (_argo0 == Py_None) { _arg0 = NULL; }
6377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
6379 return NULL;
6380 }
6381 }
6382 _arg2 = (bool ) tempbool2;
6383 {
6384 wxPy_BEGIN_ALLOW_THREADS;
6385 wxMenuBar_Enable(_arg0,_arg1,_arg2);
6386
6387 wxPy_END_ALLOW_THREADS;
6388 } Py_INCREF(Py_None);
6389 _resultobj = Py_None;
6390 return _resultobj;
6391 }
6392
6393 #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
6394 static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
6395 PyObject * _resultobj;
6396 bool _result;
6397 wxMenuBar * _arg0;
6398 int _arg1;
6399 PyObject * _argo0 = 0;
6400 char *_kwnames[] = { "self","id", NULL };
6401
6402 self = self;
6403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1))
6404 return NULL;
6405 if (_argo0) {
6406 if (_argo0 == Py_None) { _arg0 = NULL; }
6407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p.");
6409 return NULL;
6410 }
6411 }
6412 {
6413 wxPy_BEGIN_ALLOW_THREADS;
6414 _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1);
6415
6416 wxPy_END_ALLOW_THREADS;
6417 } _resultobj = Py_BuildValue("i",_result);
6418 return _resultobj;
6419 }
6420
6421 #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
6422 static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6423 PyObject * _resultobj;
6424 bool _result;
6425 wxMenuBar * _arg0;
6426 int _arg1;
6427 PyObject * _argo0 = 0;
6428 char *_kwnames[] = { "self","id", NULL };
6429
6430 self = self;
6431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1))
6432 return NULL;
6433 if (_argo0) {
6434 if (_argo0 == Py_None) { _arg0 = NULL; }
6435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p.");
6437 return NULL;
6438 }
6439 }
6440 {
6441 wxPy_BEGIN_ALLOW_THREADS;
6442 _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1);
6443
6444 wxPy_END_ALLOW_THREADS;
6445 } _resultobj = Py_BuildValue("i",_result);
6446 return _resultobj;
6447 }
6448
6449 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
6450 static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6451 PyObject * _resultobj;
6452 int _result;
6453 wxMenuBar * _arg0;
6454 wxString * _arg1;
6455 wxString * _arg2;
6456 PyObject * _argo0 = 0;
6457 PyObject * _obj1 = 0;
6458 PyObject * _obj2 = 0;
6459 char *_kwnames[] = { "self","menuString","itemString", NULL };
6460
6461 self = self;
6462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
6463 return NULL;
6464 if (_argo0) {
6465 if (_argo0 == Py_None) { _arg0 = NULL; }
6466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
6468 return NULL;
6469 }
6470 }
6471 {
6472 if (!PyString_Check(_obj1)) {
6473 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6474 return NULL;
6475 }
6476 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
6477 }
6478 {
6479 if (!PyString_Check(_obj2)) {
6480 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6481 return NULL;
6482 }
6483 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6484 }
6485 {
6486 wxPy_BEGIN_ALLOW_THREADS;
6487 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
6488
6489 wxPy_END_ALLOW_THREADS;
6490 } _resultobj = Py_BuildValue("i",_result);
6491 {
6492 if (_obj1)
6493 delete _arg1;
6494 }
6495 {
6496 if (_obj2)
6497 delete _arg2;
6498 }
6499 return _resultobj;
6500 }
6501
6502 #define wxMenuBar_FindItemForId(_swigobj,_swigarg0) (_swigobj->FindItemForId(_swigarg0))
6503 static PyObject *_wrap_wxMenuBar_FindItemForId(PyObject *self, PyObject *args, PyObject *kwargs) {
6504 PyObject * _resultobj;
6505 wxMenuItem * _result;
6506 wxMenuBar * _arg0;
6507 int _arg1;
6508 PyObject * _argo0 = 0;
6509 char *_kwnames[] = { "self","id", NULL };
6510 char _ptemp[128];
6511
6512 self = self;
6513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemForId",_kwnames,&_argo0,&_arg1))
6514 return NULL;
6515 if (_argo0) {
6516 if (_argo0 == Py_None) { _arg0 = NULL; }
6517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemForId. Expected _wxMenuBar_p.");
6519 return NULL;
6520 }
6521 }
6522 {
6523 wxPy_BEGIN_ALLOW_THREADS;
6524 _result = (wxMenuItem *)wxMenuBar_FindItemForId(_arg0,_arg1);
6525
6526 wxPy_END_ALLOW_THREADS;
6527 } if (_result) {
6528 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
6529 _resultobj = Py_BuildValue("s",_ptemp);
6530 } else {
6531 Py_INCREF(Py_None);
6532 _resultobj = Py_None;
6533 }
6534 return _resultobj;
6535 }
6536
6537 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
6538 static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6539 PyObject * _resultobj;
6540 wxMenuBar * _arg0;
6541 int _arg1;
6542 wxString * _arg2;
6543 PyObject * _argo0 = 0;
6544 PyObject * _obj2 = 0;
6545 char *_kwnames[] = { "self","id","label", NULL };
6546
6547 self = self;
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
6549 return NULL;
6550 if (_argo0) {
6551 if (_argo0 == Py_None) { _arg0 = NULL; }
6552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
6554 return NULL;
6555 }
6556 }
6557 {
6558 if (!PyString_Check(_obj2)) {
6559 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6560 return NULL;
6561 }
6562 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6563 }
6564 {
6565 wxPy_BEGIN_ALLOW_THREADS;
6566 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
6567
6568 wxPy_END_ALLOW_THREADS;
6569 } Py_INCREF(Py_None);
6570 _resultobj = Py_None;
6571 {
6572 if (_obj2)
6573 delete _arg2;
6574 }
6575 return _resultobj;
6576 }
6577
6578 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
6579 static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
6580 PyObject * _resultobj;
6581 wxMenuBar * _arg0;
6582 int _arg1;
6583 bool _arg2;
6584 PyObject * _argo0 = 0;
6585 int tempbool2;
6586 char *_kwnames[] = { "self","pos","enable", NULL };
6587
6588 self = self;
6589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
6590 return NULL;
6591 if (_argo0) {
6592 if (_argo0 == Py_None) { _arg0 = NULL; }
6593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
6595 return NULL;
6596 }
6597 }
6598 _arg2 = (bool ) tempbool2;
6599 {
6600 wxPy_BEGIN_ALLOW_THREADS;
6601 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
6602
6603 wxPy_END_ALLOW_THREADS;
6604 } Py_INCREF(Py_None);
6605 _resultobj = Py_None;
6606 return _resultobj;
6607 }
6608
6609 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
6610 static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
6611 PyObject * _resultobj;
6612 wxString * _result;
6613 wxMenuBar * _arg0;
6614 int _arg1;
6615 PyObject * _argo0 = 0;
6616 char *_kwnames[] = { "self","id", NULL };
6617
6618 self = self;
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
6620 return NULL;
6621 if (_argo0) {
6622 if (_argo0 == Py_None) { _arg0 = NULL; }
6623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
6625 return NULL;
6626 }
6627 }
6628 {
6629 wxPy_BEGIN_ALLOW_THREADS;
6630 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
6631
6632 wxPy_END_ALLOW_THREADS;
6633 }{
6634 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6635 }
6636 {
6637 delete _result;
6638 }
6639 return _resultobj;
6640 }
6641
6642 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
6643 static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
6644 PyObject * _resultobj;
6645 wxString * _result;
6646 wxMenuBar * _arg0;
6647 int _arg1;
6648 PyObject * _argo0 = 0;
6649 char *_kwnames[] = { "self","id", NULL };
6650
6651 self = self;
6652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
6653 return NULL;
6654 if (_argo0) {
6655 if (_argo0 == Py_None) { _arg0 = NULL; }
6656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
6658 return NULL;
6659 }
6660 }
6661 {
6662 wxPy_BEGIN_ALLOW_THREADS;
6663 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
6664
6665 wxPy_END_ALLOW_THREADS;
6666 }{
6667 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6668 }
6669 {
6670 delete _result;
6671 }
6672 return _resultobj;
6673 }
6674
6675 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
6676 static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
6677 PyObject * _resultobj;
6678 wxMenuBar * _arg0;
6679 int _arg1;
6680 wxString * _arg2;
6681 PyObject * _argo0 = 0;
6682 PyObject * _obj2 = 0;
6683 char *_kwnames[] = { "self","id","helpString", NULL };
6684
6685 self = self;
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
6687 return NULL;
6688 if (_argo0) {
6689 if (_argo0 == Py_None) { _arg0 = NULL; }
6690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
6692 return NULL;
6693 }
6694 }
6695 {
6696 if (!PyString_Check(_obj2)) {
6697 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6698 return NULL;
6699 }
6700 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6701 }
6702 {
6703 wxPy_BEGIN_ALLOW_THREADS;
6704 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
6705
6706 wxPy_END_ALLOW_THREADS;
6707 } Py_INCREF(Py_None);
6708 _resultobj = Py_None;
6709 {
6710 if (_obj2)
6711 delete _arg2;
6712 }
6713 return _resultobj;
6714 }
6715
6716 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
6717 static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
6718 PyObject * _resultobj;
6719 wxString * _result;
6720 wxMenuBar * _arg0;
6721 int _arg1;
6722 PyObject * _argo0 = 0;
6723 char *_kwnames[] = { "self","pos", NULL };
6724
6725 self = self;
6726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
6727 return NULL;
6728 if (_argo0) {
6729 if (_argo0 == Py_None) { _arg0 = NULL; }
6730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
6732 return NULL;
6733 }
6734 }
6735 {
6736 wxPy_BEGIN_ALLOW_THREADS;
6737 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
6738
6739 wxPy_END_ALLOW_THREADS;
6740 }{
6741 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6742 }
6743 {
6744 delete _result;
6745 }
6746 return _resultobj;
6747 }
6748
6749 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
6750 static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
6751 PyObject * _resultobj;
6752 wxMenuBar * _arg0;
6753 int _arg1;
6754 wxString * _arg2;
6755 PyObject * _argo0 = 0;
6756 PyObject * _obj2 = 0;
6757 char *_kwnames[] = { "self","pos","label", NULL };
6758
6759 self = self;
6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
6761 return NULL;
6762 if (_argo0) {
6763 if (_argo0 == Py_None) { _arg0 = NULL; }
6764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
6766 return NULL;
6767 }
6768 }
6769 {
6770 if (!PyString_Check(_obj2)) {
6771 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6772 return NULL;
6773 }
6774 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
6775 }
6776 {
6777 wxPy_BEGIN_ALLOW_THREADS;
6778 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
6779
6780 wxPy_END_ALLOW_THREADS;
6781 } Py_INCREF(Py_None);
6782 _resultobj = Py_None;
6783 {
6784 if (_obj2)
6785 delete _arg2;
6786 }
6787 return _resultobj;
6788 }
6789
6790 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
6791 static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6792 PyObject * _resultobj;
6793 int _result;
6794 wxMenuBar * _arg0;
6795 PyObject * _argo0 = 0;
6796 char *_kwnames[] = { "self", NULL };
6797
6798 self = self;
6799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
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_GetMenuCount. Expected _wxMenuBar_p.");
6805 return NULL;
6806 }
6807 }
6808 {
6809 wxPy_BEGIN_ALLOW_THREADS;
6810 _result = (int )wxMenuBar_GetMenuCount(_arg0);
6811
6812 wxPy_END_ALLOW_THREADS;
6813 } _resultobj = Py_BuildValue("i",_result);
6814 return _resultobj;
6815 }
6816
6817 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
6818 static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6819 PyObject * _resultobj;
6820 wxMenu * _result;
6821 wxMenuBar * _arg0;
6822 int _arg1;
6823 PyObject * _argo0 = 0;
6824 char *_kwnames[] = { "self","i", NULL };
6825 char _ptemp[128];
6826
6827 self = self;
6828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
6829 return NULL;
6830 if (_argo0) {
6831 if (_argo0 == Py_None) { _arg0 = NULL; }
6832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
6834 return NULL;
6835 }
6836 }
6837 {
6838 wxPy_BEGIN_ALLOW_THREADS;
6839 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
6840
6841 wxPy_END_ALLOW_THREADS;
6842 } if (_result) {
6843 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
6844 _resultobj = Py_BuildValue("s",_ptemp);
6845 } else {
6846 Py_INCREF(Py_None);
6847 _resultobj = Py_None;
6848 }
6849 return _resultobj;
6850 }
6851
6852 #define wxMenuBar_Refresh(_swigobj) (_swigobj->Refresh())
6853 static PyObject *_wrap_wxMenuBar_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
6854 PyObject * _resultobj;
6855 wxMenuBar * _arg0;
6856 PyObject * _argo0 = 0;
6857 char *_kwnames[] = { "self", NULL };
6858
6859 self = self;
6860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_Refresh",_kwnames,&_argo0))
6861 return NULL;
6862 if (_argo0) {
6863 if (_argo0 == Py_None) { _arg0 = NULL; }
6864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Refresh. Expected _wxMenuBar_p.");
6866 return NULL;
6867 }
6868 }
6869 {
6870 wxPy_BEGIN_ALLOW_THREADS;
6871 wxMenuBar_Refresh(_arg0);
6872
6873 wxPy_END_ALLOW_THREADS;
6874 } Py_INCREF(Py_None);
6875 _resultobj = Py_None;
6876 return _resultobj;
6877 }
6878
6879 #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
6880 static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
6881 PyObject * _resultobj;
6882 wxMenu * _result;
6883 wxMenuBar * _arg0;
6884 size_t _arg1;
6885 wxMenu * _arg2;
6886 wxString * _arg3;
6887 PyObject * _argo0 = 0;
6888 PyObject * _argo2 = 0;
6889 PyObject * _obj3 = 0;
6890 char *_kwnames[] = { "self","pos","menu","title", NULL };
6891 char _ptemp[128];
6892
6893 self = self;
6894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
6895 return NULL;
6896 if (_argo0) {
6897 if (_argo0 == Py_None) { _arg0 = NULL; }
6898 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6899 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p.");
6900 return NULL;
6901 }
6902 }
6903 if (_argo2) {
6904 if (_argo2 == Py_None) { _arg2 = NULL; }
6905 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) {
6906 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p.");
6907 return NULL;
6908 }
6909 }
6910 {
6911 if (!PyString_Check(_obj3)) {
6912 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6913 return NULL;
6914 }
6915 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
6916 }
6917 {
6918 wxPy_BEGIN_ALLOW_THREADS;
6919 _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3);
6920
6921 wxPy_END_ALLOW_THREADS;
6922 } if (_result) {
6923 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
6924 _resultobj = Py_BuildValue("s",_ptemp);
6925 } else {
6926 Py_INCREF(Py_None);
6927 _resultobj = Py_None;
6928 }
6929 {
6930 if (_obj3)
6931 delete _arg3;
6932 }
6933 return _resultobj;
6934 }
6935
6936 #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
6937 static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
6938 PyObject * _resultobj;
6939 wxMenu * _result;
6940 wxMenuBar * _arg0;
6941 size_t _arg1;
6942 PyObject * _argo0 = 0;
6943 char *_kwnames[] = { "self","pos", NULL };
6944 char _ptemp[128];
6945
6946 self = self;
6947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1))
6948 return NULL;
6949 if (_argo0) {
6950 if (_argo0 == Py_None) { _arg0 = NULL; }
6951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
6952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p.");
6953 return NULL;
6954 }
6955 }
6956 {
6957 wxPy_BEGIN_ALLOW_THREADS;
6958 _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1);
6959
6960 wxPy_END_ALLOW_THREADS;
6961 } if (_result) {
6962 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
6963 _resultobj = Py_BuildValue("s",_ptemp);
6964 } else {
6965 Py_INCREF(Py_None);
6966 _resultobj = Py_None;
6967 }
6968 return _resultobj;
6969 }
6970
6971 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6972 static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
6973 PyObject * _resultobj;
6974 wxMenuItem * _result;
6975 wxMenu * _arg0 = (wxMenu *) NULL;
6976 int _arg1 = (int ) ID_SEPARATOR;
6977 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
6978 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
6979 bool _arg4 = (bool ) FALSE;
6980 wxMenu * _arg5 = (wxMenu *) NULL;
6981 PyObject * _argo0 = 0;
6982 PyObject * _obj2 = 0;
6983 PyObject * _obj3 = 0;
6984 int tempbool4 = (int) FALSE;
6985 PyObject * _argo5 = 0;
6986 char *_kwnames[] = { "parentMenu","id","text","helpString","checkable","subMenu", NULL };
6987 char _ptemp[128];
6988
6989 self = self;
6990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5))
6991 return NULL;
6992 if (_argo0) {
6993 if (_argo0 == Py_None) { _arg0 = NULL; }
6994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
6995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
6996 return NULL;
6997 }
6998 }
6999 if (_obj2)
7000 {
7001 if (!PyString_Check(_obj2)) {
7002 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7003 return NULL;
7004 }
7005 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
7006 }
7007 if (_obj3)
7008 {
7009 if (!PyString_Check(_obj3)) {
7010 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7011 return NULL;
7012 }
7013 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
7014 }
7015 _arg4 = (bool ) tempbool4;
7016 if (_argo5) {
7017 if (_argo5 == Py_None) { _arg5 = NULL; }
7018 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
7019 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
7020 return NULL;
7021 }
7022 }
7023 {
7024 wxPy_BEGIN_ALLOW_THREADS;
7025 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
7026
7027 wxPy_END_ALLOW_THREADS;
7028 } if (_result) {
7029 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
7030 _resultobj = Py_BuildValue("s",_ptemp);
7031 } else {
7032 Py_INCREF(Py_None);
7033 _resultobj = Py_None;
7034 }
7035 {
7036 if (_obj2)
7037 delete _arg2;
7038 }
7039 {
7040 if (_obj3)
7041 delete _arg3;
7042 }
7043 return _resultobj;
7044 }
7045
7046 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
7047 static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject * _resultobj;
7049 bool _result;
7050 wxMenuItem * _arg0;
7051 PyObject * _argo0 = 0;
7052 char *_kwnames[] = { "self", NULL };
7053
7054 self = self;
7055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
7056 return NULL;
7057 if (_argo0) {
7058 if (_argo0 == Py_None) { _arg0 = NULL; }
7059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
7061 return NULL;
7062 }
7063 }
7064 {
7065 wxPy_BEGIN_ALLOW_THREADS;
7066 _result = (bool )wxMenuItem_IsSeparator(_arg0);
7067
7068 wxPy_END_ALLOW_THREADS;
7069 } _resultobj = Py_BuildValue("i",_result);
7070 return _resultobj;
7071 }
7072
7073 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
7074 static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7075 PyObject * _resultobj;
7076 bool _result;
7077 wxMenuItem * _arg0;
7078 PyObject * _argo0 = 0;
7079 char *_kwnames[] = { "self", NULL };
7080
7081 self = self;
7082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
7083 return NULL;
7084 if (_argo0) {
7085 if (_argo0 == Py_None) { _arg0 = NULL; }
7086 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7087 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
7088 return NULL;
7089 }
7090 }
7091 {
7092 wxPy_BEGIN_ALLOW_THREADS;
7093 _result = (bool )wxMenuItem_IsEnabled(_arg0);
7094
7095 wxPy_END_ALLOW_THREADS;
7096 } _resultobj = Py_BuildValue("i",_result);
7097 return _resultobj;
7098 }
7099
7100 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
7101 static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
7102 PyObject * _resultobj;
7103 bool _result;
7104 wxMenuItem * _arg0;
7105 PyObject * _argo0 = 0;
7106 char *_kwnames[] = { "self", NULL };
7107
7108 self = self;
7109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
7110 return NULL;
7111 if (_argo0) {
7112 if (_argo0 == Py_None) { _arg0 = NULL; }
7113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
7115 return NULL;
7116 }
7117 }
7118 {
7119 wxPy_BEGIN_ALLOW_THREADS;
7120 _result = (bool )wxMenuItem_IsChecked(_arg0);
7121
7122 wxPy_END_ALLOW_THREADS;
7123 } _resultobj = Py_BuildValue("i",_result);
7124 return _resultobj;
7125 }
7126
7127 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
7128 static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
7129 PyObject * _resultobj;
7130 bool _result;
7131 wxMenuItem * _arg0;
7132 PyObject * _argo0 = 0;
7133 char *_kwnames[] = { "self", NULL };
7134
7135 self = self;
7136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0))
7137 return NULL;
7138 if (_argo0) {
7139 if (_argo0 == Py_None) { _arg0 = NULL; }
7140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
7142 return NULL;
7143 }
7144 }
7145 {
7146 wxPy_BEGIN_ALLOW_THREADS;
7147 _result = (bool )wxMenuItem_IsCheckable(_arg0);
7148
7149 wxPy_END_ALLOW_THREADS;
7150 } _resultobj = Py_BuildValue("i",_result);
7151 return _resultobj;
7152 }
7153
7154 #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu())
7155 static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject * _resultobj;
7157 bool _result;
7158 wxMenuItem * _arg0;
7159 PyObject * _argo0 = 0;
7160 char *_kwnames[] = { "self", NULL };
7161
7162 self = self;
7163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0))
7164 return NULL;
7165 if (_argo0) {
7166 if (_argo0 == Py_None) { _arg0 = NULL; }
7167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p.");
7169 return NULL;
7170 }
7171 }
7172 {
7173 wxPy_BEGIN_ALLOW_THREADS;
7174 _result = (bool )wxMenuItem_IsSubMenu(_arg0);
7175
7176 wxPy_END_ALLOW_THREADS;
7177 } _resultobj = Py_BuildValue("i",_result);
7178 return _resultobj;
7179 }
7180
7181 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
7182 static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7183 PyObject * _resultobj;
7184 int _result;
7185 wxMenuItem * _arg0;
7186 PyObject * _argo0 = 0;
7187 char *_kwnames[] = { "self", NULL };
7188
7189 self = self;
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
7191 return NULL;
7192 if (_argo0) {
7193 if (_argo0 == Py_None) { _arg0 = NULL; }
7194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
7196 return NULL;
7197 }
7198 }
7199 {
7200 wxPy_BEGIN_ALLOW_THREADS;
7201 _result = (int )wxMenuItem_GetId(_arg0);
7202
7203 wxPy_END_ALLOW_THREADS;
7204 } _resultobj = Py_BuildValue("i",_result);
7205 return _resultobj;
7206 }
7207
7208 #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
7209 static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7210 PyObject * _resultobj;
7211 wxMenuItem * _arg0;
7212 int _arg1;
7213 PyObject * _argo0 = 0;
7214 char *_kwnames[] = { "self","id", NULL };
7215
7216 self = self;
7217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1))
7218 return NULL;
7219 if (_argo0) {
7220 if (_argo0 == Py_None) { _arg0 = NULL; }
7221 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p.");
7223 return NULL;
7224 }
7225 }
7226 {
7227 wxPy_BEGIN_ALLOW_THREADS;
7228 wxMenuItem_SetId(_arg0,_arg1);
7229
7230 wxPy_END_ALLOW_THREADS;
7231 } Py_INCREF(Py_None);
7232 _resultobj = Py_None;
7233 return _resultobj;
7234 }
7235
7236 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
7237 static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7238 PyObject * _resultobj;
7239 wxMenu * _result;
7240 wxMenuItem * _arg0;
7241 PyObject * _argo0 = 0;
7242 char *_kwnames[] = { "self", NULL };
7243 char _ptemp[128];
7244
7245 self = self;
7246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
7247 return NULL;
7248 if (_argo0) {
7249 if (_argo0 == Py_None) { _arg0 = NULL; }
7250 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7251 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
7252 return NULL;
7253 }
7254 }
7255 {
7256 wxPy_BEGIN_ALLOW_THREADS;
7257 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
7258
7259 wxPy_END_ALLOW_THREADS;
7260 } if (_result) {
7261 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
7262 _resultobj = Py_BuildValue("s",_ptemp);
7263 } else {
7264 Py_INCREF(Py_None);
7265 _resultobj = Py_None;
7266 }
7267 return _resultobj;
7268 }
7269
7270 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
7271 static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
7272 PyObject * _resultobj;
7273 wxString * _result;
7274 wxMenuItem * _arg0;
7275 PyObject * _argo0 = 0;
7276 char *_kwnames[] = { "self", NULL };
7277
7278 self = self;
7279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
7280 return NULL;
7281 if (_argo0) {
7282 if (_argo0 == Py_None) { _arg0 = NULL; }
7283 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7284 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
7285 return NULL;
7286 }
7287 }
7288 {
7289 wxPy_BEGIN_ALLOW_THREADS;
7290 _result = new wxString (wxMenuItem_GetHelp(_arg0));
7291
7292 wxPy_END_ALLOW_THREADS;
7293 }{
7294 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
7295 }
7296 {
7297 delete _result;
7298 }
7299 return _resultobj;
7300 }
7301
7302 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
7303 static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
7304 PyObject * _resultobj;
7305 wxMenuItem * _arg0;
7306 wxString * _arg1;
7307 PyObject * _argo0 = 0;
7308 PyObject * _obj1 = 0;
7309 char *_kwnames[] = { "self","strHelp", NULL };
7310
7311 self = self;
7312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
7313 return NULL;
7314 if (_argo0) {
7315 if (_argo0 == Py_None) { _arg0 = NULL; }
7316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
7318 return NULL;
7319 }
7320 }
7321 {
7322 if (!PyString_Check(_obj1)) {
7323 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7324 return NULL;
7325 }
7326 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
7327 }
7328 {
7329 wxPy_BEGIN_ALLOW_THREADS;
7330 wxMenuItem_SetHelp(_arg0,*_arg1);
7331
7332 wxPy_END_ALLOW_THREADS;
7333 } Py_INCREF(Py_None);
7334 _resultobj = Py_None;
7335 {
7336 if (_obj1)
7337 delete _arg1;
7338 }
7339 return _resultobj;
7340 }
7341
7342 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
7343 static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
7344 PyObject * _resultobj;
7345 wxMenuItem * _arg0;
7346 bool _arg1 = (bool ) TRUE;
7347 PyObject * _argo0 = 0;
7348 int tempbool1 = (int) TRUE;
7349 char *_kwnames[] = { "self","bDoEnable", NULL };
7350
7351 self = self;
7352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
7353 return NULL;
7354 if (_argo0) {
7355 if (_argo0 == Py_None) { _arg0 = NULL; }
7356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
7358 return NULL;
7359 }
7360 }
7361 _arg1 = (bool ) tempbool1;
7362 {
7363 wxPy_BEGIN_ALLOW_THREADS;
7364 wxMenuItem_Enable(_arg0,_arg1);
7365
7366 wxPy_END_ALLOW_THREADS;
7367 } Py_INCREF(Py_None);
7368 _resultobj = Py_None;
7369 return _resultobj;
7370 }
7371
7372 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
7373 static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject * _resultobj;
7375 wxMenuItem * _arg0;
7376 bool _arg1 = (bool ) TRUE;
7377 PyObject * _argo0 = 0;
7378 int tempbool1 = (int) TRUE;
7379 char *_kwnames[] = { "self","bDoCheck", NULL };
7380
7381 self = self;
7382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
7383 return NULL;
7384 if (_argo0) {
7385 if (_argo0 == Py_None) { _arg0 = NULL; }
7386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
7388 return NULL;
7389 }
7390 }
7391 _arg1 = (bool ) tempbool1;
7392 {
7393 wxPy_BEGIN_ALLOW_THREADS;
7394 wxMenuItem_Check(_arg0,_arg1);
7395
7396 wxPy_END_ALLOW_THREADS;
7397 } Py_INCREF(Py_None);
7398 _resultobj = Py_None;
7399 return _resultobj;
7400 }
7401
7402 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
7403 static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7404 PyObject * _resultobj;
7405 wxColour * _result;
7406 wxMenuItem * _arg0;
7407 PyObject * _argo0 = 0;
7408 char *_kwnames[] = { "self", NULL };
7409 char _ptemp[128];
7410
7411 self = self;
7412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0))
7413 return NULL;
7414 if (_argo0) {
7415 if (_argo0 == Py_None) { _arg0 = NULL; }
7416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
7418 return NULL;
7419 }
7420 }
7421 {
7422 wxPy_BEGIN_ALLOW_THREADS;
7423 wxColour & _result_ref = wxMenuItem_GetBackgroundColour(_arg0);
7424 _result = (wxColour *) &_result_ref;
7425
7426 wxPy_END_ALLOW_THREADS;
7427 } if (_result) {
7428 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7429 _resultobj = Py_BuildValue("s",_ptemp);
7430 } else {
7431 Py_INCREF(Py_None);
7432 _resultobj = Py_None;
7433 }
7434 return _resultobj;
7435 }
7436
7437 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
7438 static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7439 PyObject * _resultobj;
7440 wxBitmap * _result;
7441 wxMenuItem * _arg0;
7442 bool _arg1 = (bool ) TRUE;
7443 PyObject * _argo0 = 0;
7444 int tempbool1 = (int) TRUE;
7445 char *_kwnames[] = { "self","checked", NULL };
7446 char _ptemp[128];
7447
7448 self = self;
7449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1))
7450 return NULL;
7451 if (_argo0) {
7452 if (_argo0 == Py_None) { _arg0 = NULL; }
7453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
7455 return NULL;
7456 }
7457 }
7458 _arg1 = (bool ) tempbool1;
7459 {
7460 wxPy_BEGIN_ALLOW_THREADS;
7461 _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1));
7462
7463 wxPy_END_ALLOW_THREADS;
7464 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
7465 _resultobj = Py_BuildValue("s",_ptemp);
7466 return _resultobj;
7467 }
7468
7469 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
7470 static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7471 PyObject * _resultobj;
7472 wxFont * _result;
7473 wxMenuItem * _arg0;
7474 PyObject * _argo0 = 0;
7475 char *_kwnames[] = { "self", NULL };
7476 char _ptemp[128];
7477
7478 self = self;
7479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0))
7480 return NULL;
7481 if (_argo0) {
7482 if (_argo0 == Py_None) { _arg0 = NULL; }
7483 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7484 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
7485 return NULL;
7486 }
7487 }
7488 {
7489 wxPy_BEGIN_ALLOW_THREADS;
7490 wxFont & _result_ref = wxMenuItem_GetFont(_arg0);
7491 _result = (wxFont *) &_result_ref;
7492
7493 wxPy_END_ALLOW_THREADS;
7494 } if (_result) {
7495 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
7496 _resultobj = Py_BuildValue("s",_ptemp);
7497 } else {
7498 Py_INCREF(Py_None);
7499 _resultobj = Py_None;
7500 }
7501 return _resultobj;
7502 }
7503
7504 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
7505 static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7506 PyObject * _resultobj;
7507 int _result;
7508 wxMenuItem * _arg0;
7509 PyObject * _argo0 = 0;
7510 char *_kwnames[] = { "self", NULL };
7511
7512 self = self;
7513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0))
7514 return NULL;
7515 if (_argo0) {
7516 if (_argo0 == Py_None) { _arg0 = NULL; }
7517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
7519 return NULL;
7520 }
7521 }
7522 {
7523 wxPy_BEGIN_ALLOW_THREADS;
7524 _result = (int )wxMenuItem_GetMarginWidth(_arg0);
7525
7526 wxPy_END_ALLOW_THREADS;
7527 } _resultobj = Py_BuildValue("i",_result);
7528 return _resultobj;
7529 }
7530
7531 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
7532 static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7533 PyObject * _resultobj;
7534 wxColour * _result;
7535 wxMenuItem * _arg0;
7536 PyObject * _argo0 = 0;
7537 char *_kwnames[] = { "self", NULL };
7538 char _ptemp[128];
7539
7540 self = self;
7541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0))
7542 return NULL;
7543 if (_argo0) {
7544 if (_argo0 == Py_None) { _arg0 = NULL; }
7545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
7547 return NULL;
7548 }
7549 }
7550 {
7551 wxPy_BEGIN_ALLOW_THREADS;
7552 wxColour & _result_ref = wxMenuItem_GetTextColour(_arg0);
7553 _result = (wxColour *) &_result_ref;
7554
7555 wxPy_END_ALLOW_THREADS;
7556 } if (_result) {
7557 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7558 _resultobj = Py_BuildValue("s",_ptemp);
7559 } else {
7560 Py_INCREF(Py_None);
7561 _resultobj = Py_None;
7562 }
7563 return _resultobj;
7564 }
7565
7566 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
7567 static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7568 PyObject * _resultobj;
7569 wxMenuItem * _arg0;
7570 wxColour * _arg1;
7571 PyObject * _argo0 = 0;
7572 PyObject * _argo1 = 0;
7573 char *_kwnames[] = { "self","colour", NULL };
7574
7575 self = self;
7576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_argo1))
7577 return NULL;
7578 if (_argo0) {
7579 if (_argo0 == Py_None) { _arg0 = NULL; }
7580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
7582 return NULL;
7583 }
7584 }
7585 if (_argo1) {
7586 if (_argo1 == Py_None) { _arg1 = NULL; }
7587 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
7588 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBackgroundColour. Expected _wxColour_p.");
7589 return NULL;
7590 }
7591 }
7592 {
7593 wxPy_BEGIN_ALLOW_THREADS;
7594 wxMenuItem_SetBackgroundColour(_arg0,*_arg1);
7595
7596 wxPy_END_ALLOW_THREADS;
7597 } Py_INCREF(Py_None);
7598 _resultobj = Py_None;
7599 return _resultobj;
7600 }
7601
7602 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
7603 static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
7604 PyObject * _resultobj;
7605 wxMenuItem * _arg0;
7606 wxBitmap * _arg1;
7607 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
7608 PyObject * _argo0 = 0;
7609 PyObject * _argo1 = 0;
7610 PyObject * _argo2 = 0;
7611 char *_kwnames[] = { "self","checked","unchecked", NULL };
7612
7613 self = self;
7614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2))
7615 return NULL;
7616 if (_argo0) {
7617 if (_argo0 == Py_None) { _arg0 = NULL; }
7618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
7620 return NULL;
7621 }
7622 }
7623 if (_argo1) {
7624 if (_argo1 == Py_None) { _arg1 = NULL; }
7625 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7626 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
7627 return NULL;
7628 }
7629 }
7630 if (_argo2) {
7631 if (_argo2 == Py_None) { _arg2 = NULL; }
7632 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
7633 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
7634 return NULL;
7635 }
7636 }
7637 {
7638 wxPy_BEGIN_ALLOW_THREADS;
7639 wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2);
7640
7641 wxPy_END_ALLOW_THREADS;
7642 } Py_INCREF(Py_None);
7643 _resultobj = Py_None;
7644 return _resultobj;
7645 }
7646
7647 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7648 static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7649 PyObject * _resultobj;
7650 wxMenuItem * _arg0;
7651 wxFont * _arg1;
7652 PyObject * _argo0 = 0;
7653 PyObject * _argo1 = 0;
7654 char *_kwnames[] = { "self","font", NULL };
7655
7656 self = self;
7657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1))
7658 return NULL;
7659 if (_argo0) {
7660 if (_argo0 == Py_None) { _arg0 = NULL; }
7661 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7662 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
7663 return NULL;
7664 }
7665 }
7666 if (_argo1) {
7667 if (_argo1 == Py_None) { _arg1 = NULL; }
7668 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
7669 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
7670 return NULL;
7671 }
7672 }
7673 {
7674 wxPy_BEGIN_ALLOW_THREADS;
7675 wxMenuItem_SetFont(_arg0,*_arg1);
7676
7677 wxPy_END_ALLOW_THREADS;
7678 } Py_INCREF(Py_None);
7679 _resultobj = Py_None;
7680 return _resultobj;
7681 }
7682
7683 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
7684 static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7685 PyObject * _resultobj;
7686 wxMenuItem * _arg0;
7687 int _arg1;
7688 PyObject * _argo0 = 0;
7689 char *_kwnames[] = { "self","width", NULL };
7690
7691 self = self;
7692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1))
7693 return NULL;
7694 if (_argo0) {
7695 if (_argo0 == Py_None) { _arg0 = NULL; }
7696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
7698 return NULL;
7699 }
7700 }
7701 {
7702 wxPy_BEGIN_ALLOW_THREADS;
7703 wxMenuItem_SetMarginWidth(_arg0,_arg1);
7704
7705 wxPy_END_ALLOW_THREADS;
7706 } Py_INCREF(Py_None);
7707 _resultobj = Py_None;
7708 return _resultobj;
7709 }
7710
7711 #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
7712 static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
7713 PyObject * _resultobj;
7714 wxMenuItem * _arg0;
7715 wxString * _arg1;
7716 PyObject * _argo0 = 0;
7717 PyObject * _obj1 = 0;
7718 char *_kwnames[] = { "self","str", NULL };
7719
7720 self = self;
7721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1))
7722 return NULL;
7723 if (_argo0) {
7724 if (_argo0 == Py_None) { _arg0 = NULL; }
7725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p.");
7727 return NULL;
7728 }
7729 }
7730 {
7731 if (!PyString_Check(_obj1)) {
7732 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7733 return NULL;
7734 }
7735 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
7736 }
7737 {
7738 wxPy_BEGIN_ALLOW_THREADS;
7739 wxMenuItem_SetText(_arg0,*_arg1);
7740
7741 wxPy_END_ALLOW_THREADS;
7742 } Py_INCREF(Py_None);
7743 _resultobj = Py_None;
7744 {
7745 if (_obj1)
7746 delete _arg1;
7747 }
7748 return _resultobj;
7749 }
7750
7751 #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText())
7752 static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject * _resultobj;
7754 wxString * _result;
7755 wxMenuItem * _arg0;
7756 PyObject * _argo0 = 0;
7757 char *_kwnames[] = { "self", NULL };
7758
7759 self = self;
7760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0))
7761 return NULL;
7762 if (_argo0) {
7763 if (_argo0 == Py_None) { _arg0 = NULL; }
7764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p.");
7766 return NULL;
7767 }
7768 }
7769 {
7770 wxPy_BEGIN_ALLOW_THREADS;
7771 const wxString & _result_ref = wxMenuItem_GetText(_arg0);
7772 _result = (wxString *) &_result_ref;
7773
7774 wxPy_END_ALLOW_THREADS;
7775 }{
7776 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
7777 }
7778 return _resultobj;
7779 }
7780
7781 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
7782 static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject * _resultobj;
7784 wxMenuItem * _arg0;
7785 wxColour * _arg1;
7786 PyObject * _argo0 = 0;
7787 PyObject * _argo1 = 0;
7788 char *_kwnames[] = { "self","colour", NULL };
7789
7790 self = self;
7791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_argo1))
7792 return NULL;
7793 if (_argo0) {
7794 if (_argo0 == Py_None) { _arg0 = NULL; }
7795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
7797 return NULL;
7798 }
7799 }
7800 if (_argo1) {
7801 if (_argo1 == Py_None) { _arg1 = NULL; }
7802 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
7803 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetTextColour. Expected _wxColour_p.");
7804 return NULL;
7805 }
7806 }
7807 {
7808 wxPy_BEGIN_ALLOW_THREADS;
7809 wxMenuItem_SetTextColour(_arg0,*_arg1);
7810
7811 wxPy_END_ALLOW_THREADS;
7812 } Py_INCREF(Py_None);
7813 _resultobj = Py_None;
7814 return _resultobj;
7815 }
7816
7817 #define wxMenuItem_DeleteSubMenu(_swigobj) (_swigobj->DeleteSubMenu())
7818 static PyObject *_wrap_wxMenuItem_DeleteSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7819 PyObject * _resultobj;
7820 wxMenuItem * _arg0;
7821 PyObject * _argo0 = 0;
7822 char *_kwnames[] = { "self", NULL };
7823
7824 self = self;
7825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_DeleteSubMenu",_kwnames,&_argo0))
7826 return NULL;
7827 if (_argo0) {
7828 if (_argo0 == Py_None) { _arg0 = NULL; }
7829 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7830 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_DeleteSubMenu. Expected _wxMenuItem_p.");
7831 return NULL;
7832 }
7833 }
7834 {
7835 wxPy_BEGIN_ALLOW_THREADS;
7836 wxMenuItem_DeleteSubMenu(_arg0);
7837
7838 wxPy_END_ALLOW_THREADS;
7839 } Py_INCREF(Py_None);
7840 _resultobj = Py_None;
7841 return _resultobj;
7842 }
7843
7844 #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0))
7845 static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
7846 PyObject * _resultobj;
7847 wxMenuItem * _arg0;
7848 bool _arg1;
7849 PyObject * _argo0 = 0;
7850 int tempbool1;
7851 char *_kwnames[] = { "self","checkable", NULL };
7852
7853 self = self;
7854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1))
7855 return NULL;
7856 if (_argo0) {
7857 if (_argo0 == Py_None) { _arg0 = NULL; }
7858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p.");
7860 return NULL;
7861 }
7862 }
7863 _arg1 = (bool ) tempbool1;
7864 {
7865 wxPy_BEGIN_ALLOW_THREADS;
7866 wxMenuItem_SetCheckable(_arg0,_arg1);
7867
7868 wxPy_END_ALLOW_THREADS;
7869 } Py_INCREF(Py_None);
7870 _resultobj = Py_None;
7871 return _resultobj;
7872 }
7873
7874 #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0))
7875 static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
7876 PyObject * _resultobj;
7877 wxMenuItem * _arg0;
7878 wxMenu * _arg1;
7879 PyObject * _argo0 = 0;
7880 PyObject * _argo1 = 0;
7881 char *_kwnames[] = { "self","menu", NULL };
7882
7883 self = self;
7884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1))
7885 return NULL;
7886 if (_argo0) {
7887 if (_argo0 == Py_None) { _arg0 = NULL; }
7888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
7889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p.");
7890 return NULL;
7891 }
7892 }
7893 if (_argo1) {
7894 if (_argo1 == Py_None) { _arg1 = NULL; }
7895 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
7896 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p.");
7897 return NULL;
7898 }
7899 }
7900 {
7901 wxPy_BEGIN_ALLOW_THREADS;
7902 wxMenuItem_SetSubMenu(_arg0,_arg1);
7903
7904 wxPy_END_ALLOW_THREADS;
7905 } Py_INCREF(Py_None);
7906 _resultobj = Py_None;
7907 return _resultobj;
7908 }
7909
7910 static PyMethodDef windowscMethods[] = {
7911 { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
7912 { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
7913 { "wxMenuItem_DeleteSubMenu", (PyCFunction) _wrap_wxMenuItem_DeleteSubMenu, METH_VARARGS | METH_KEYWORDS },
7914 { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
7915 { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
7916 { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
7917 { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
7918 { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
7919 { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
7920 { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
7921 { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
7922 { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
7923 { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
7924 { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
7925 { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
7926 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
7927 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
7928 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
7929 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
7930 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
7931 { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
7932 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
7933 { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
7934 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
7935 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
7936 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
7937 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
7938 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
7939 { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
7940 { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
7941 { "wxMenuBar_Refresh", (PyCFunction) _wrap_wxMenuBar_Refresh, METH_VARARGS | METH_KEYWORDS },
7942 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
7943 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
7944 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
7945 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
7946 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
7947 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
7948 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
7949 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
7950 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
7951 { "wxMenuBar_FindItemForId", (PyCFunction) _wrap_wxMenuBar_FindItemForId, METH_VARARGS | METH_KEYWORDS },
7952 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
7953 { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
7954 { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
7955 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
7956 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
7957 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
7958 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
7959 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
7960 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
7961 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
7962 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
7963 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
7964 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
7965 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
7966 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
7967 { "wxMenu_FindItemForId", (PyCFunction) _wrap_wxMenu_FindItemForId, METH_VARARGS | METH_KEYWORDS },
7968 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
7969 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
7970 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
7971 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
7972 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
7973 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
7974 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
7975 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
7976 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
7977 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
7978 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
7979 { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS },
7980 { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS },
7981 { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS },
7982 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
7983 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
7984 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
7985 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
7986 { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
7987 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
7988 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
7989 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
7990 { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS },
7991 { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
7992 { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
7993 { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS },
7994 { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS },
7995 { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS },
7996 { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS },
7997 { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS },
7998 { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS },
7999 { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS },
8000 { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS },
8001 { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS },
8002 { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
8003 { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
8004 { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
8005 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
8006 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
8007 { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS },
8008 { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS },
8009 { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS },
8010 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
8011 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
8012 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
8013 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
8014 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
8015 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
8016 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
8017 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
8018 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
8019 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
8020 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
8021 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
8022 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
8023 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
8024 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
8025 { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
8026 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
8027 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
8028 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
8029 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
8030 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
8031 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
8032 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
8033 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
8034 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
8035 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
8036 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
8037 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
8038 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
8039 { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
8040 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
8041 { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS },
8042 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
8043 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8044 { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
8045 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
8046 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
8047 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
8048 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
8049 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
8050 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
8051 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
8052 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
8053 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
8054 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
8055 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
8056 { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
8057 { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
8058 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
8059 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
8060 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
8061 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
8062 { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS },
8063 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
8064 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
8065 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
8066 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
8067 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
8068 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
8069 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
8070 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
8071 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
8072 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
8073 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
8074 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
8075 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
8076 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
8077 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
8078 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
8079 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
8080 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
8081 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
8082 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
8083 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
8084 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
8085 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
8086 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
8087 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
8088 { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS },
8089 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
8090 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
8091 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
8092 { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
8093 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
8094 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
8095 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
8096 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
8097 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
8098 { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS },
8099 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
8100 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
8101 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
8102 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
8103 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
8104 { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
8105 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
8106 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
8107 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
8108 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
8109 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
8110 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
8111 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
8112 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
8113 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
8114 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
8115 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
8116 { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS },
8117 { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS },
8118 { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
8119 { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
8120 { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
8121 { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
8122 { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
8123 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
8124 { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
8125 { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
8126 { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
8127 { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
8128 { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
8129 { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
8130 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
8131 { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS },
8132 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
8133 { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
8134 { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
8135 { NULL, NULL }
8136 };
8137 #ifdef __cplusplus
8138 }
8139 #endif
8140 /*
8141 * This table is used by the pointer type-checker
8142 */
8143 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
8144 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
8145 { "_signed_long","_long",0},
8146 { "_wxPrintQuality","_int",0},
8147 { "_wxPrintQuality","_signed_int",0},
8148 { "_wxPrintQuality","_unsigned_int",0},
8149 { "_wxPrintQuality","_wxWindowID",0},
8150 { "_wxPrintQuality","_uint",0},
8151 { "_wxPrintQuality","_EBool",0},
8152 { "_wxPrintQuality","_size_t",0},
8153 { "_class_wxRegionIterator","_wxRegionIterator",0},
8154 { "_class_wxMenuBar","_wxMenuBar",0},
8155 { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8156 { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8157 { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
8158 { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
8159 { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8160 { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8161 { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
8162 { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
8163 { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
8164 { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
8165 { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
8166 { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
8167 { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8168 { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8169 { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler},
8170 { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
8171 { "_class_wxEvtHandler","_wxEvtHandler",0},
8172 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
8173 { "_wxCursor","_class_wxCursor",0},
8174 { "_wxMask","_class_wxMask",0},
8175 { "_wxPen","_class_wxPen",0},
8176 { "_byte","_unsigned_char",0},
8177 { "_long","_wxDash",0},
8178 { "_long","_unsigned_long",0},
8179 { "_long","_signed_long",0},
8180 { "_wxImageList","_class_wxImageList",0},
8181 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
8182 { "_wxDC","_class_wxDC",0},
8183 { "_size_t","_wxPrintQuality",0},
8184 { "_size_t","_unsigned_int",0},
8185 { "_size_t","_int",0},
8186 { "_size_t","_wxWindowID",0},
8187 { "_size_t","_uint",0},
8188 { "_class_wxRealPoint","_wxRealPoint",0},
8189 { "_wxPrinterDC","_class_wxPrinterDC",0},
8190 { "_class_wxMenuItem","_wxMenuItem",0},
8191 { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
8192 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
8193 { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
8194 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
8195 { "_wxPanel","_class_wxPanel",0},
8196 { "_class_wxMask","_wxMask",0},
8197 { "_wxColour","_class_wxColour",0},
8198 { "_class_wxDialog","_wxDialog",0},
8199 { "_wxBrush","_class_wxBrush",0},
8200 { "_uint","_wxPrintQuality",0},
8201 { "_uint","_size_t",0},
8202 { "_uint","_unsigned_int",0},
8203 { "_uint","_int",0},
8204 { "_uint","_wxWindowID",0},
8205 { "_wxPyValidator","_class_wxPyValidator",0},
8206 { "_wxRect","_class_wxRect",0},
8207 { "_wxPoint","_class_wxPoint",0},
8208 { "_wxBitmap","_class_wxBitmap",0},
8209 { "_wxPyTimer","_class_wxPyTimer",0},
8210 { "_wxWindowDC","_class_wxWindowDC",0},
8211 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
8212 { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator},
8213 { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
8214 { "_class_wxValidator","_wxValidator",0},
8215 { "_EBool","_wxPrintQuality",0},
8216 { "_EBool","_signed_int",0},
8217 { "_EBool","_int",0},
8218 { "_EBool","_wxWindowID",0},
8219 { "_class_wxRegion","_wxRegion",0},
8220 { "_wxFont","_class_wxFont",0},
8221 { "_unsigned_long","_wxDash",0},
8222 { "_unsigned_long","_long",0},
8223 { "_class_wxRect","_wxRect",0},
8224 { "_class_wxDC","_wxDC",0},
8225 { "_class_wxPyTimer","_wxPyTimer",0},
8226 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
8227 { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
8228 { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
8229 { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
8230 { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
8231 { "_class_wxPanel","_wxPanel",0},
8232 { "_signed_int","_wxPrintQuality",0},
8233 { "_signed_int","_EBool",0},
8234 { "_signed_int","_wxWindowID",0},
8235 { "_signed_int","_int",0},
8236 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
8237 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
8238 { "_wxMenu","_class_wxMenu",0},
8239 { "_wxScreenDC","_class_wxScreenDC",0},
8240 { "_WXTYPE","_short",0},
8241 { "_WXTYPE","_signed_short",0},
8242 { "_WXTYPE","_unsigned_short",0},
8243 { "_class_wxBrush","_wxBrush",0},
8244 { "_unsigned_short","_WXTYPE",0},
8245 { "_unsigned_short","_short",0},
8246 { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8247 { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8248 { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
8249 { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
8250 { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
8251 { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
8252 { "_class_wxWindow","_wxWindow",0},
8253 { "_class_wxFont","_wxFont",0},
8254 { "_class_wxPyValidator","_wxPyValidator",0},
8255 { "_wxBusyInfo","_class_wxBusyInfo",0},
8256 { "_wxClientDC","_class_wxClientDC",0},
8257 { "_class_wxPoint","_wxPoint",0},
8258 { "_wxRealPoint","_class_wxRealPoint",0},
8259 { "_signed_short","_WXTYPE",0},
8260 { "_signed_short","_short",0},
8261 { "_wxMemoryDC","_class_wxMemoryDC",0},
8262 { "_wxPaintDC","_class_wxPaintDC",0},
8263 { "_class_wxWindowDC","_wxWindowDC",0},
8264 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
8265 { "_class_wxCursor","_wxCursor",0},
8266 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
8267 { "_unsigned_char","_byte",0},
8268 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
8269 { "_class_wxMenu","_wxMenu",0},
8270 { "_unsigned_int","_wxPrintQuality",0},
8271 { "_unsigned_int","_size_t",0},
8272 { "_unsigned_int","_uint",0},
8273 { "_unsigned_int","_wxWindowID",0},
8274 { "_unsigned_int","_int",0},
8275 { "_wxIcon","_class_wxIcon",0},
8276 { "_wxDialog","_class_wxDialog",0},
8277 { "_class_wxPen","_wxPen",0},
8278 { "_short","_WXTYPE",0},
8279 { "_short","_unsigned_short",0},
8280 { "_short","_signed_short",0},
8281 { "_class_wxImageList","_wxImageList",0},
8282 { "_wxWindowID","_wxPrintQuality",0},
8283 { "_wxWindowID","_size_t",0},
8284 { "_wxWindowID","_EBool",0},
8285 { "_wxWindowID","_uint",0},
8286 { "_wxWindowID","_int",0},
8287 { "_wxWindowID","_signed_int",0},
8288 { "_wxWindowID","_unsigned_int",0},
8289 { "_int","_wxPrintQuality",0},
8290 { "_int","_size_t",0},
8291 { "_int","_EBool",0},
8292 { "_int","_uint",0},
8293 { "_int","_wxWindowID",0},
8294 { "_int","_unsigned_int",0},
8295 { "_int","_signed_int",0},
8296 { "_wxSize","_class_wxSize",0},
8297 { "_wxRegionIterator","_class_wxRegionIterator",0},
8298 { "_class_wxPrinterDC","_wxPrinterDC",0},
8299 { "_class_wxPaintDC","_wxPaintDC",0},
8300 { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator},
8301 { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator},
8302 { "_wxValidator","_class_wxValidator",0},
8303 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
8304 { "_class_wxIcon","_wxIcon",0},
8305 { "_class_wxColour","_wxColour",0},
8306 { "_class_wxScreenDC","_wxScreenDC",0},
8307 { "_wxPalette","_class_wxPalette",0},
8308 { "_wxRegion","_class_wxRegion",0},
8309 { "_class_wxBusyInfo","_wxBusyInfo",0},
8310 { "_class_wxClientDC","_wxClientDC",0},
8311 { "_class_wxSize","_wxSize",0},
8312 { "_class_wxBitmap","_wxBitmap",0},
8313 { "_class_wxMemoryDC","_wxMemoryDC",0},
8314 { "_wxMenuBar","_class_wxMenuBar",0},
8315 { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8316 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
8317 { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
8318 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
8319 { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8320 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
8321 { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
8322 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
8323 { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
8324 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
8325 { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
8326 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
8327 { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8328 { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler},
8329 { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler},
8330 { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler},
8331 { "_wxEvtHandler","_class_wxEvtHandler",0},
8332 { "_wxMenuItem","_class_wxMenuItem",0},
8333 { "_wxDash","_unsigned_long",0},
8334 { "_wxDash","_long",0},
8335 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
8336 { "_class_wxPalette","_wxPalette",0},
8337 { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8338 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
8339 { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
8340 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
8341 { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
8342 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
8343 { "_wxWindow","_class_wxWindow",0},
8344 {0,0,0}};
8345
8346 static PyObject *SWIG_globals;
8347 #ifdef __cplusplus
8348 extern "C"
8349 #endif
8350 SWIGEXPORT(void) initwindowsc() {
8351 PyObject *m, *d;
8352 SWIG_globals = SWIG_newvarlink();
8353 m = Py_InitModule("windowsc", windowscMethods);
8354 d = PyModule_GetDict(m);
8355 {
8356 int i;
8357 for (i = 0; _swig_mapping[i].n1; i++)
8358 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
8359 }
8360 }