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