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