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