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