]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/windows.cpp
Prep for wxPython 2.1b3 release
[wxWidgets.git] / utils / wxPython / src / msw / windows.cpp
1 /*
2 * FILE : msw/windows.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 802)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initwindowsc
53
54 #define SWIG_name "windowsc"
55
56 #include "helpers.h"
57 #include <wx/menuitem.h>
58
59 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
60 PyObject* o2;
61 PyObject* o3;
62 if (!target) {
63 target = o;
64 } else if (target == Py_None) {
65 Py_DECREF(Py_None);
66 target = o;
67 } else {
68 if (!PyList_Check(target)) {
69 o2 = target;
70 target = PyList_New(0);
71 PyList_Append(target, o2);
72 Py_XDECREF(o2);
73 }
74 PyList_Append(target,o);
75 Py_XDECREF(o);
76 }
77 return target;
78 }
79
80 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
81 PyObject* o2;
82 PyObject* o3;
83
84 if (!target) {
85 target = o;
86 } else if (target == Py_None) {
87 Py_DECREF(Py_None);
88 target = o;
89 } else {
90 if (!PyTuple_Check(target)) {
91 o2 = target;
92 target = PyTuple_New(1);
93 PyTuple_SetItem(target, 0, o2);
94 }
95 o3 = PyTuple_New(1);
96 PyTuple_SetItem(o3, 0, o);
97
98 o2 = target;
99 target = PySequence_Concat(o2, o3);
100 Py_DECREF(o2);
101 Py_DECREF(o3);
102 }
103 return target;
104 }
105
106
107 extern byte* byte_LIST_helper(PyObject* source);
108 extern int* int_LIST_helper(PyObject* source);
109 extern long* long_LIST_helper(PyObject* source);
110 extern char** string_LIST_helper(PyObject* source);
111 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
112 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
113 extern wxString* wxString_LIST_helper(PyObject* source);
114 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
115
116
117 static char* wxStringErrorMsg = "string type is required for parameter";
118
119 wxWindow* wxWindow_FindFocus() {
120 return wxWindow::FindFocus();
121 }
122
123 wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
124 wxWindow* win = new wxWindow;
125 win->SetHWND(hWnd);
126 win->SubclassWin(hWnd);
127 return win;
128 }
129 #ifdef __cplusplus
130 extern "C" {
131 #endif
132 static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
133 PyObject * _resultobj;
134 wxWindow * _result;
135 char *_kwnames[] = { NULL };
136 char _ptemp[128];
137
138 self = self;
139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames))
140 return NULL;
141 {
142 wxPy_BEGIN_ALLOW_THREADS;
143 _result = (wxWindow *)wxWindow_FindFocus();
144
145 wxPy_END_ALLOW_THREADS;
146 } if (_result) {
147 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
148 _resultobj = Py_BuildValue("s",_ptemp);
149 } else {
150 Py_INCREF(Py_None);
151 _resultobj = Py_None;
152 }
153 return _resultobj;
154 }
155
156 static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
157 PyObject * _resultobj;
158 wxWindow * _result;
159 unsigned long _arg0;
160 char *_kwnames[] = { "hWnd", NULL };
161 char _ptemp[128];
162
163 self = self;
164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0))
165 return NULL;
166 {
167 wxPy_BEGIN_ALLOW_THREADS;
168 _result = (wxWindow *)wxWindow_FromHWND(_arg0);
169
170 wxPy_END_ALLOW_THREADS;
171 } if (_result) {
172 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
173 _resultobj = Py_BuildValue("s",_ptemp);
174 } else {
175 Py_INCREF(Py_None);
176 _resultobj = Py_None;
177 }
178 return _resultobj;
179 }
180
181 #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0))
182 static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
183 PyObject * _resultobj;
184 bool _result;
185 wxEvtHandler * _arg0;
186 wxEvent * _arg1;
187 PyObject * _argo0 = 0;
188 PyObject * _argo1 = 0;
189 char *_kwnames[] = { "self","event", NULL };
190
191 self = self;
192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1))
193 return NULL;
194 if (_argo0) {
195 if (_argo0 == Py_None) { _arg0 = NULL; }
196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p.");
198 return NULL;
199 }
200 }
201 if (_argo1) {
202 if (_argo1 == Py_None) { _arg1 = NULL; }
203 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
204 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p.");
205 return NULL;
206 }
207 }
208 {
209 wxPy_BEGIN_ALLOW_THREADS;
210 _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1);
211
212 wxPy_END_ALLOW_THREADS;
213 } _resultobj = Py_BuildValue("i",_result);
214 return _resultobj;
215 }
216
217 static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) {
218 if (PyCallable_Check(func)) {
219 self->Connect(id, lastId, eventType,
220 (wxObjectEventFunction) &wxPyCallback::EventThunker,
221 new wxPyCallback(func));
222 }
223 }
224 static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
225 PyObject * _resultobj;
226 wxEvtHandler * _arg0;
227 int _arg1;
228 int _arg2;
229 int _arg3;
230 PyObject * _arg4;
231 PyObject * _argo0 = 0;
232 PyObject * _obj4 = 0;
233 char *_kwnames[] = { "self","id","lastId","eventType","func", NULL };
234
235 self = self;
236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
237 return NULL;
238 if (_argo0) {
239 if (_argo0 == Py_None) { _arg0 = NULL; }
240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p.");
242 return NULL;
243 }
244 }
245 {
246 _arg4 = _obj4;
247 }
248 {
249 wxPy_BEGIN_ALLOW_THREADS;
250 wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4);
251
252 wxPy_END_ALLOW_THREADS;
253 } Py_INCREF(Py_None);
254 _resultobj = Py_None;
255 return _resultobj;
256 }
257
258 static void *SwigwxWindowTowxEvtHandler(void *ptr) {
259 wxWindow *src;
260 wxEvtHandler *dest;
261 src = (wxWindow *) ptr;
262 dest = (wxEvtHandler *) src;
263 return (void *) dest;
264 }
265
266 #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
267 static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
268 PyObject * _resultobj;
269 wxWindow * _result;
270 wxWindow * _arg0;
271 wxWindowID _arg1;
272 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
273 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
274 long _arg4 = (long ) 0;
275 char * _arg5 = (char *) "panel";
276 PyObject * _argo0 = 0;
277 PyObject * _argo2 = 0;
278 PyObject * _argo3 = 0;
279 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
280 char _ptemp[128];
281
282 self = self;
283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5))
284 return NULL;
285 if (_argo0) {
286 if (_argo0 == Py_None) { _arg0 = NULL; }
287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p.");
289 return NULL;
290 }
291 }
292 if (_argo2) {
293 if (_argo2 == Py_None) { _arg2 = NULL; }
294 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
295 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxWindow. Expected _wxPoint_p.");
296 return NULL;
297 }
298 }
299 if (_argo3) {
300 if (_argo3 == Py_None) { _arg3 = NULL; }
301 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) {
302 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxWindow. Expected _wxSize_p.");
303 return NULL;
304 }
305 }
306 {
307 wxPy_BEGIN_ALLOW_THREADS;
308 _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
309
310 wxPy_END_ALLOW_THREADS;
311 } if (_result) {
312 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
313 _resultobj = Py_BuildValue("s",_ptemp);
314 } else {
315 Py_INCREF(Py_None);
316 _resultobj = Py_None;
317 }
318 return _resultobj;
319 }
320
321 #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse())
322 static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
323 PyObject * _resultobj;
324 wxWindow * _arg0;
325 PyObject * _argo0 = 0;
326 char *_kwnames[] = { "self", NULL };
327
328 self = self;
329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0))
330 return NULL;
331 if (_argo0) {
332 if (_argo0 == Py_None) { _arg0 = NULL; }
333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p.");
335 return NULL;
336 }
337 }
338 {
339 wxPy_BEGIN_ALLOW_THREADS;
340 wxWindow_CaptureMouse(_arg0);
341
342 wxPy_END_ALLOW_THREADS;
343 } Py_INCREF(Py_None);
344 _resultobj = Py_None;
345 return _resultobj;
346 }
347
348 #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0))
349 static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
350 PyObject * _resultobj;
351 wxWindow * _arg0;
352 int _arg1 = (int ) wxBOTH;
353 PyObject * _argo0 = 0;
354 char *_kwnames[] = { "self","direction", NULL };
355
356 self = self;
357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1))
358 return NULL;
359 if (_argo0) {
360 if (_argo0 == Py_None) { _arg0 = NULL; }
361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p.");
363 return NULL;
364 }
365 }
366 {
367 wxPy_BEGIN_ALLOW_THREADS;
368 wxWindow_Center(_arg0,_arg1);
369
370 wxPy_END_ALLOW_THREADS;
371 } Py_INCREF(Py_None);
372 _resultobj = Py_None;
373 return _resultobj;
374 }
375
376 #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
377 static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
378 PyObject * _resultobj;
379 wxWindow * _arg0;
380 int _arg1 = (int ) wxBOTH;
381 PyObject * _argo0 = 0;
382 char *_kwnames[] = { "self","direction", NULL };
383
384 self = self;
385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1))
386 return NULL;
387 if (_argo0) {
388 if (_argo0 == Py_None) { _arg0 = NULL; }
389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p.");
391 return NULL;
392 }
393 }
394 {
395 wxPy_BEGIN_ALLOW_THREADS;
396 wxWindow_Centre(_arg0,_arg1);
397
398 wxPy_END_ALLOW_THREADS;
399 } Py_INCREF(Py_None);
400 _resultobj = Py_None;
401 return _resultobj;
402 }
403
404 #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0))
405 static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
406 PyObject * _resultobj;
407 wxWindow * _arg0;
408 int _arg1 = (int ) wxBOTH;
409 PyObject * _argo0 = 0;
410 char *_kwnames[] = { "self","direction", NULL };
411
412 self = self;
413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1))
414 return NULL;
415 if (_argo0) {
416 if (_argo0 == Py_None) { _arg0 = NULL; }
417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p.");
419 return NULL;
420 }
421 }
422 {
423 wxPy_BEGIN_ALLOW_THREADS;
424 wxWindow_CentreOnParent(_arg0,_arg1);
425
426 wxPy_END_ALLOW_THREADS;
427 } Py_INCREF(Py_None);
428 _resultobj = Py_None;
429 return _resultobj;
430 }
431
432 #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0))
433 static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
434 PyObject * _resultobj;
435 wxWindow * _arg0;
436 int _arg1 = (int ) wxBOTH;
437 PyObject * _argo0 = 0;
438 char *_kwnames[] = { "self","direction", NULL };
439
440 self = self;
441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1))
442 return NULL;
443 if (_argo0) {
444 if (_argo0 == Py_None) { _arg0 = NULL; }
445 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
446 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p.");
447 return NULL;
448 }
449 }
450 {
451 wxPy_BEGIN_ALLOW_THREADS;
452 wxWindow_CenterOnParent(_arg0,_arg1);
453
454 wxPy_END_ALLOW_THREADS;
455 } Py_INCREF(Py_None);
456 _resultobj = Py_None;
457 return _resultobj;
458 }
459
460 #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1))
461 static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
462 PyObject * _resultobj;
463 wxWindow * _arg0;
464 int * _arg1;
465 int * _arg2;
466 PyObject * _argo0 = 0;
467 int temp;
468 PyObject * _obj1 = 0;
469 int temp0;
470 PyObject * _obj2 = 0;
471 char *_kwnames[] = { "self","x","y", NULL };
472
473 self = self;
474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2))
475 return NULL;
476 if (_argo0) {
477 if (_argo0 == Py_None) { _arg0 = NULL; }
478 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p.");
480 return NULL;
481 }
482 }
483 {
484 temp = (int) PyInt_AsLong(_obj1);
485 _arg1 = &temp;
486 }
487 {
488 temp0 = (int) PyInt_AsLong(_obj2);
489 _arg2 = &temp0;
490 }
491 {
492 wxPy_BEGIN_ALLOW_THREADS;
493 wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2);
494
495 wxPy_END_ALLOW_THREADS;
496 } Py_INCREF(Py_None);
497 _resultobj = Py_None;
498 {
499 PyObject *o;
500 o = PyInt_FromLong((long) (*_arg1));
501 _resultobj = t_output_helper(_resultobj, o);
502 }
503 {
504 PyObject *o;
505 o = PyInt_FromLong((long) (*_arg2));
506 _resultobj = t_output_helper(_resultobj, o);
507 }
508 return _resultobj;
509 }
510
511 #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0))
512 static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
513 PyObject * _resultobj;
514 wxPoint * _result;
515 wxWindow * _arg0;
516 wxPoint * _arg1;
517 PyObject * _argo0 = 0;
518 PyObject * _argo1 = 0;
519 char *_kwnames[] = { "self","pt", NULL };
520 char _ptemp[128];
521
522 self = self;
523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_argo1))
524 return NULL;
525 if (_argo0) {
526 if (_argo0 == Py_None) { _arg0 = NULL; }
527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p.");
529 return NULL;
530 }
531 }
532 if (_argo1) {
533 if (_argo1 == Py_None) { _arg1 = NULL; }
534 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
535 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_ClientToScreen. Expected _wxPoint_p.");
536 return NULL;
537 }
538 }
539 {
540 wxPy_BEGIN_ALLOW_THREADS;
541 _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1));
542
543 wxPy_END_ALLOW_THREADS;
544 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
545 _resultobj = Py_BuildValue("s",_ptemp);
546 return _resultobj;
547 }
548
549 #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0))
550 static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
551 PyObject * _resultobj;
552 bool _result;
553 wxWindow * _arg0;
554 int _arg1 = (int ) FALSE;
555 PyObject * _argo0 = 0;
556 char *_kwnames[] = { "self","force", NULL };
557
558 self = self;
559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1))
560 return NULL;
561 if (_argo0) {
562 if (_argo0 == Py_None) { _arg0 = NULL; }
563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p.");
565 return NULL;
566 }
567 }
568 {
569 wxPy_BEGIN_ALLOW_THREADS;
570 _result = (bool )wxWindow_Close(_arg0,_arg1);
571
572 wxPy_END_ALLOW_THREADS;
573 } _resultobj = Py_BuildValue("i",_result);
574 return _resultobj;
575 }
576
577 #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy())
578 static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
579 PyObject * _resultobj;
580 bool _result;
581 wxWindow * _arg0;
582 PyObject * _argo0 = 0;
583 char *_kwnames[] = { "self", NULL };
584
585 self = self;
586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0))
587 return NULL;
588 if (_argo0) {
589 if (_argo0 == Py_None) { _arg0 = NULL; }
590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p.");
592 return NULL;
593 }
594 }
595 {
596 wxPy_BEGIN_ALLOW_THREADS;
597 _result = (bool )wxWindow_Destroy(_arg0);
598
599 wxPy_END_ALLOW_THREADS;
600 } _resultobj = Py_BuildValue("i",_result);
601 return _resultobj;
602 }
603
604 #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren())
605 static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
606 PyObject * _resultobj;
607 wxWindow * _arg0;
608 PyObject * _argo0 = 0;
609 char *_kwnames[] = { "self", NULL };
610
611 self = self;
612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0))
613 return NULL;
614 if (_argo0) {
615 if (_argo0 == Py_None) { _arg0 = NULL; }
616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p.");
618 return NULL;
619 }
620 }
621 {
622 wxPy_BEGIN_ALLOW_THREADS;
623 wxWindow_DestroyChildren(_arg0);
624
625 wxPy_END_ALLOW_THREADS;
626 } Py_INCREF(Py_None);
627 _resultobj = Py_None;
628 return _resultobj;
629 }
630
631 #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0))
632 static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
633 PyObject * _resultobj;
634 wxWindow * _arg0;
635 bool _arg1;
636 PyObject * _argo0 = 0;
637 int tempbool1;
638 char *_kwnames[] = { "self","accept", NULL };
639
640 self = self;
641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1))
642 return NULL;
643 if (_argo0) {
644 if (_argo0 == Py_None) { _arg0 = NULL; }
645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p.");
647 return NULL;
648 }
649 }
650 _arg1 = (bool ) tempbool1;
651 {
652 wxPy_BEGIN_ALLOW_THREADS;
653 wxWindow_DragAcceptFiles(_arg0,_arg1);
654
655 wxPy_END_ALLOW_THREADS;
656 } Py_INCREF(Py_None);
657 _resultobj = Py_None;
658 return _resultobj;
659 }
660
661 #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
662 static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
663 PyObject * _resultobj;
664 wxWindow * _arg0;
665 bool _arg1;
666 PyObject * _argo0 = 0;
667 int tempbool1;
668 char *_kwnames[] = { "self","enable", NULL };
669
670 self = self;
671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1))
672 return NULL;
673 if (_argo0) {
674 if (_argo0 == Py_None) { _arg0 = NULL; }
675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p.");
677 return NULL;
678 }
679 }
680 _arg1 = (bool ) tempbool1;
681 {
682 wxPy_BEGIN_ALLOW_THREADS;
683 wxWindow_Enable(_arg0,_arg1);
684
685 wxPy_END_ALLOW_THREADS;
686 } Py_INCREF(Py_None);
687 _resultobj = Py_None;
688 return _resultobj;
689 }
690
691 #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
692 static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
693 PyObject * _resultobj;
694 wxWindow * _result;
695 wxWindow * _arg0;
696 long _arg1;
697 PyObject * _argo0 = 0;
698 char *_kwnames[] = { "self","id", NULL };
699 char _ptemp[128];
700
701 self = self;
702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1))
703 return NULL;
704 if (_argo0) {
705 if (_argo0 == Py_None) { _arg0 = NULL; }
706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p.");
708 return NULL;
709 }
710 }
711 {
712 wxPy_BEGIN_ALLOW_THREADS;
713 _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1);
714
715 wxPy_END_ALLOW_THREADS;
716 } if (_result) {
717 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
718 _resultobj = Py_BuildValue("s",_ptemp);
719 } else {
720 Py_INCREF(Py_None);
721 _resultobj = Py_None;
722 }
723 return _resultobj;
724 }
725
726 #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0))
727 static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
728 PyObject * _resultobj;
729 wxWindow * _result;
730 wxWindow * _arg0;
731 wxString * _arg1;
732 PyObject * _argo0 = 0;
733 PyObject * _obj1 = 0;
734 char *_kwnames[] = { "self","name", NULL };
735 char _ptemp[128];
736
737 self = self;
738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1))
739 return NULL;
740 if (_argo0) {
741 if (_argo0 == Py_None) { _arg0 = NULL; }
742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p.");
744 return NULL;
745 }
746 }
747 {
748 if (!PyString_Check(_obj1)) {
749 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
750 return NULL;
751 }
752 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
753 }
754 {
755 wxPy_BEGIN_ALLOW_THREADS;
756 _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1);
757
758 wxPy_END_ALLOW_THREADS;
759 } if (_result) {
760 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
761 _resultobj = Py_BuildValue("s",_ptemp);
762 } else {
763 Py_INCREF(Py_None);
764 _resultobj = Py_None;
765 }
766 {
767 if (_obj1)
768 delete _arg1;
769 }
770 return _resultobj;
771 }
772
773 #define wxWindow_Fit(_swigobj) (_swigobj->Fit())
774 static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
775 PyObject * _resultobj;
776 wxWindow * _arg0;
777 PyObject * _argo0 = 0;
778 char *_kwnames[] = { "self", NULL };
779
780 self = self;
781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0))
782 return NULL;
783 if (_argo0) {
784 if (_argo0 == Py_None) { _arg0 = NULL; }
785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p.");
787 return NULL;
788 }
789 }
790 {
791 wxPy_BEGIN_ALLOW_THREADS;
792 wxWindow_Fit(_arg0);
793
794 wxPy_END_ALLOW_THREADS;
795 } Py_INCREF(Py_None);
796 _resultobj = Py_None;
797 return _resultobj;
798 }
799
800 #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
801 static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
802 PyObject * _resultobj;
803 wxColour * _result;
804 wxWindow * _arg0;
805 PyObject * _argo0 = 0;
806 char *_kwnames[] = { "self", NULL };
807 char _ptemp[128];
808
809 self = self;
810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0))
811 return NULL;
812 if (_argo0) {
813 if (_argo0 == Py_None) { _arg0 = NULL; }
814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p.");
816 return NULL;
817 }
818 }
819 {
820 wxPy_BEGIN_ALLOW_THREADS;
821 _result = new wxColour (wxWindow_GetBackgroundColour(_arg0));
822
823 wxPy_END_ALLOW_THREADS;
824 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
825 _resultobj = Py_BuildValue("s",_ptemp);
826 return _resultobj;
827 }
828
829 #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
830 static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
831 PyObject * _resultobj;
832 int _result;
833 wxWindow * _arg0;
834 PyObject * _argo0 = 0;
835 char *_kwnames[] = { "self", NULL };
836
837 self = self;
838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0))
839 return NULL;
840 if (_argo0) {
841 if (_argo0 == Py_None) { _arg0 = NULL; }
842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p.");
844 return NULL;
845 }
846 }
847 {
848 wxPy_BEGIN_ALLOW_THREADS;
849 _result = (int )wxWindow_GetCharHeight(_arg0);
850
851 wxPy_END_ALLOW_THREADS;
852 } _resultobj = Py_BuildValue("i",_result);
853 return _resultobj;
854 }
855
856 #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
857 static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
858 PyObject * _resultobj;
859 int _result;
860 wxWindow * _arg0;
861 PyObject * _argo0 = 0;
862 char *_kwnames[] = { "self", NULL };
863
864 self = self;
865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0))
866 return NULL;
867 if (_argo0) {
868 if (_argo0 == Py_None) { _arg0 = NULL; }
869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p.");
871 return NULL;
872 }
873 }
874 {
875 wxPy_BEGIN_ALLOW_THREADS;
876 _result = (int )wxWindow_GetCharWidth(_arg0);
877
878 wxPy_END_ALLOW_THREADS;
879 } _resultobj = Py_BuildValue("i",_result);
880 return _resultobj;
881 }
882
883 #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1))
884 static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
885 PyObject * _resultobj;
886 wxWindow * _arg0;
887 int * _arg1;
888 int temp;
889 int * _arg2;
890 int temp0;
891 PyObject * _argo0 = 0;
892 char *_kwnames[] = { "self", NULL };
893
894 self = self;
895 {
896 _arg1 = &temp;
897 }
898 {
899 _arg2 = &temp0;
900 }
901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0))
902 return NULL;
903 if (_argo0) {
904 if (_argo0 == Py_None) { _arg0 = NULL; }
905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p.");
907 return NULL;
908 }
909 }
910 {
911 wxPy_BEGIN_ALLOW_THREADS;
912 wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2);
913
914 wxPy_END_ALLOW_THREADS;
915 } Py_INCREF(Py_None);
916 _resultobj = Py_None;
917 {
918 PyObject *o;
919 o = PyInt_FromLong((long) (*_arg1));
920 _resultobj = t_output_helper(_resultobj, o);
921 }
922 {
923 PyObject *o;
924 o = PyInt_FromLong((long) (*_arg2));
925 _resultobj = t_output_helper(_resultobj, o);
926 }
927 return _resultobj;
928 }
929
930 #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize())
931 static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
932 PyObject * _resultobj;
933 wxSize * _result;
934 wxWindow * _arg0;
935 PyObject * _argo0 = 0;
936 char *_kwnames[] = { "self", NULL };
937 char _ptemp[128];
938
939 self = self;
940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0))
941 return NULL;
942 if (_argo0) {
943 if (_argo0 == Py_None) { _arg0 = NULL; }
944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p.");
946 return NULL;
947 }
948 }
949 {
950 wxPy_BEGIN_ALLOW_THREADS;
951 _result = new wxSize (wxWindow_GetClientSize(_arg0));
952
953 wxPy_END_ALLOW_THREADS;
954 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
955 _resultobj = Py_BuildValue("s",_ptemp);
956 return _resultobj;
957 }
958
959 #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints())
960 static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
961 PyObject * _resultobj;
962 wxLayoutConstraints * _result;
963 wxWindow * _arg0;
964 PyObject * _argo0 = 0;
965 char *_kwnames[] = { "self", NULL };
966 char _ptemp[128];
967
968 self = self;
969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0))
970 return NULL;
971 if (_argo0) {
972 if (_argo0 == Py_None) { _arg0 = NULL; }
973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p.");
975 return NULL;
976 }
977 }
978 {
979 wxPy_BEGIN_ALLOW_THREADS;
980 _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0);
981
982 wxPy_END_ALLOW_THREADS;
983 } if (_result) {
984 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p");
985 _resultobj = Py_BuildValue("s",_ptemp);
986 } else {
987 Py_INCREF(Py_None);
988 _resultobj = Py_None;
989 }
990 return _resultobj;
991 }
992
993 #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont())
994 static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
995 PyObject * _resultobj;
996 wxFont * _result;
997 wxWindow * _arg0;
998 PyObject * _argo0 = 0;
999 char *_kwnames[] = { "self", NULL };
1000 char _ptemp[128];
1001
1002 self = self;
1003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0))
1004 return NULL;
1005 if (_argo0) {
1006 if (_argo0 == Py_None) { _arg0 = NULL; }
1007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p.");
1009 return NULL;
1010 }
1011 }
1012 {
1013 wxPy_BEGIN_ALLOW_THREADS;
1014 wxFont & _result_ref = wxWindow_GetFont(_arg0);
1015 _result = (wxFont *) &_result_ref;
1016
1017 wxPy_END_ALLOW_THREADS;
1018 } if (_result) {
1019 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
1020 _resultobj = Py_BuildValue("s",_ptemp);
1021 } else {
1022 Py_INCREF(Py_None);
1023 _resultobj = Py_None;
1024 }
1025 return _resultobj;
1026 }
1027
1028 #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour())
1029 static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1030 PyObject * _resultobj;
1031 wxColour * _result;
1032 wxWindow * _arg0;
1033 PyObject * _argo0 = 0;
1034 char *_kwnames[] = { "self", NULL };
1035 char _ptemp[128];
1036
1037 self = self;
1038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0))
1039 return NULL;
1040 if (_argo0) {
1041 if (_argo0 == Py_None) { _arg0 = NULL; }
1042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p.");
1044 return NULL;
1045 }
1046 }
1047 {
1048 wxPy_BEGIN_ALLOW_THREADS;
1049 _result = new wxColour (wxWindow_GetForegroundColour(_arg0));
1050
1051 wxPy_END_ALLOW_THREADS;
1052 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1053 _resultobj = Py_BuildValue("s",_ptemp);
1054 return _resultobj;
1055 }
1056
1057 #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent())
1058 static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1059 PyObject * _resultobj;
1060 wxWindow * _result;
1061 wxWindow * _arg0;
1062 PyObject * _argo0 = 0;
1063 char *_kwnames[] = { "self", NULL };
1064 char _ptemp[128];
1065
1066 self = self;
1067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0))
1068 return NULL;
1069 if (_argo0) {
1070 if (_argo0 == Py_None) { _arg0 = NULL; }
1071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p.");
1073 return NULL;
1074 }
1075 }
1076 {
1077 wxPy_BEGIN_ALLOW_THREADS;
1078 _result = (wxWindow *)wxWindow_GetGrandParent(_arg0);
1079
1080 wxPy_END_ALLOW_THREADS;
1081 } if (_result) {
1082 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1083 _resultobj = Py_BuildValue("s",_ptemp);
1084 } else {
1085 Py_INCREF(Py_None);
1086 _resultobj = Py_None;
1087 }
1088 return _resultobj;
1089 }
1090
1091 #define wxWindow_GetId(_swigobj) (_swigobj->GetId())
1092 static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
1093 PyObject * _resultobj;
1094 int _result;
1095 wxWindow * _arg0;
1096 PyObject * _argo0 = 0;
1097 char *_kwnames[] = { "self", NULL };
1098
1099 self = self;
1100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0))
1101 return NULL;
1102 if (_argo0) {
1103 if (_argo0 == Py_None) { _arg0 = NULL; }
1104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p.");
1106 return NULL;
1107 }
1108 }
1109 {
1110 wxPy_BEGIN_ALLOW_THREADS;
1111 _result = (int )wxWindow_GetId(_arg0);
1112
1113 wxPy_END_ALLOW_THREADS;
1114 } _resultobj = Py_BuildValue("i",_result);
1115 return _resultobj;
1116 }
1117
1118 #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel())
1119 static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1120 PyObject * _resultobj;
1121 wxString * _result;
1122 wxWindow * _arg0;
1123 PyObject * _argo0 = 0;
1124 char *_kwnames[] = { "self", NULL };
1125
1126 self = self;
1127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0))
1128 return NULL;
1129 if (_argo0) {
1130 if (_argo0 == Py_None) { _arg0 = NULL; }
1131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p.");
1133 return NULL;
1134 }
1135 }
1136 {
1137 wxPy_BEGIN_ALLOW_THREADS;
1138 _result = new wxString (wxWindow_GetLabel(_arg0));
1139
1140 wxPy_END_ALLOW_THREADS;
1141 }{
1142 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1143 }
1144 {
1145 delete _result;
1146 }
1147 return _resultobj;
1148 }
1149
1150 #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0))
1151 static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1152 PyObject * _resultobj;
1153 wxWindow * _arg0;
1154 wxString * _arg1;
1155 PyObject * _argo0 = 0;
1156 PyObject * _obj1 = 0;
1157 char *_kwnames[] = { "self","label", NULL };
1158
1159 self = self;
1160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1))
1161 return NULL;
1162 if (_argo0) {
1163 if (_argo0 == Py_None) { _arg0 = NULL; }
1164 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1165 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p.");
1166 return NULL;
1167 }
1168 }
1169 {
1170 if (!PyString_Check(_obj1)) {
1171 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1172 return NULL;
1173 }
1174 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1175 }
1176 {
1177 wxPy_BEGIN_ALLOW_THREADS;
1178 wxWindow_SetLabel(_arg0,*_arg1);
1179
1180 wxPy_END_ALLOW_THREADS;
1181 } Py_INCREF(Py_None);
1182 _resultobj = Py_None;
1183 {
1184 if (_obj1)
1185 delete _arg1;
1186 }
1187 return _resultobj;
1188 }
1189
1190 #define wxWindow_GetName(_swigobj) (_swigobj->GetName())
1191 static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
1192 PyObject * _resultobj;
1193 wxString * _result;
1194 wxWindow * _arg0;
1195 PyObject * _argo0 = 0;
1196 char *_kwnames[] = { "self", NULL };
1197
1198 self = self;
1199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0))
1200 return NULL;
1201 if (_argo0) {
1202 if (_argo0 == Py_None) { _arg0 = NULL; }
1203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p.");
1205 return NULL;
1206 }
1207 }
1208 {
1209 wxPy_BEGIN_ALLOW_THREADS;
1210 _result = new wxString (wxWindow_GetName(_arg0));
1211
1212 wxPy_END_ALLOW_THREADS;
1213 }{
1214 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1215 }
1216 {
1217 delete _result;
1218 }
1219 return _resultobj;
1220 }
1221
1222 #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent())
1223 static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
1224 PyObject * _resultobj;
1225 wxWindow * _result;
1226 wxWindow * _arg0;
1227 PyObject * _argo0 = 0;
1228 char *_kwnames[] = { "self", NULL };
1229 char _ptemp[128];
1230
1231 self = self;
1232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0))
1233 return NULL;
1234 if (_argo0) {
1235 if (_argo0 == Py_None) { _arg0 = NULL; }
1236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p.");
1238 return NULL;
1239 }
1240 }
1241 {
1242 wxPy_BEGIN_ALLOW_THREADS;
1243 _result = (wxWindow *)wxWindow_GetParent(_arg0);
1244
1245 wxPy_END_ALLOW_THREADS;
1246 } if (_result) {
1247 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
1248 _resultobj = Py_BuildValue("s",_ptemp);
1249 } else {
1250 Py_INCREF(Py_None);
1251 _resultobj = Py_None;
1252 }
1253 return _resultobj;
1254 }
1255
1256 #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
1257 static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1258 PyObject * _resultobj;
1259 wxWindow * _arg0;
1260 int * _arg1;
1261 int temp;
1262 int * _arg2;
1263 int temp0;
1264 PyObject * _argo0 = 0;
1265 char *_kwnames[] = { "self", NULL };
1266
1267 self = self;
1268 {
1269 _arg1 = &temp;
1270 }
1271 {
1272 _arg2 = &temp0;
1273 }
1274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0))
1275 return NULL;
1276 if (_argo0) {
1277 if (_argo0 == Py_None) { _arg0 = NULL; }
1278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p.");
1280 return NULL;
1281 }
1282 }
1283 {
1284 wxPy_BEGIN_ALLOW_THREADS;
1285 wxWindow_GetPositionTuple(_arg0,_arg1,_arg2);
1286
1287 wxPy_END_ALLOW_THREADS;
1288 } Py_INCREF(Py_None);
1289 _resultobj = Py_None;
1290 {
1291 PyObject *o;
1292 o = PyInt_FromLong((long) (*_arg1));
1293 _resultobj = t_output_helper(_resultobj, o);
1294 }
1295 {
1296 PyObject *o;
1297 o = PyInt_FromLong((long) (*_arg2));
1298 _resultobj = t_output_helper(_resultobj, o);
1299 }
1300 return _resultobj;
1301 }
1302
1303 #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition())
1304 static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
1305 PyObject * _resultobj;
1306 wxPoint * _result;
1307 wxWindow * _arg0;
1308 PyObject * _argo0 = 0;
1309 char *_kwnames[] = { "self", NULL };
1310 char _ptemp[128];
1311
1312 self = self;
1313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0))
1314 return NULL;
1315 if (_argo0) {
1316 if (_argo0 == Py_None) { _arg0 = NULL; }
1317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p.");
1319 return NULL;
1320 }
1321 }
1322 {
1323 wxPy_BEGIN_ALLOW_THREADS;
1324 _result = new wxPoint (wxWindow_GetPosition(_arg0));
1325
1326 wxPy_END_ALLOW_THREADS;
1327 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
1328 _resultobj = Py_BuildValue("s",_ptemp);
1329 return _resultobj;
1330 }
1331
1332 #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect())
1333 static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
1334 PyObject * _resultobj;
1335 wxRect * _result;
1336 wxWindow * _arg0;
1337 PyObject * _argo0 = 0;
1338 char *_kwnames[] = { "self", NULL };
1339 char _ptemp[128];
1340
1341 self = self;
1342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0))
1343 return NULL;
1344 if (_argo0) {
1345 if (_argo0 == Py_None) { _arg0 = NULL; }
1346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p.");
1348 return NULL;
1349 }
1350 }
1351 {
1352 wxPy_BEGIN_ALLOW_THREADS;
1353 _result = new wxRect (wxWindow_GetRect(_arg0));
1354
1355 wxPy_END_ALLOW_THREADS;
1356 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
1357 _resultobj = Py_BuildValue("s",_ptemp);
1358 return _resultobj;
1359 }
1360
1361 #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0))
1362 static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
1363 PyObject * _resultobj;
1364 int _result;
1365 wxWindow * _arg0;
1366 int _arg1;
1367 PyObject * _argo0 = 0;
1368 char *_kwnames[] = { "self","orientation", NULL };
1369
1370 self = self;
1371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1))
1372 return NULL;
1373 if (_argo0) {
1374 if (_argo0 == Py_None) { _arg0 = NULL; }
1375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p.");
1377 return NULL;
1378 }
1379 }
1380 {
1381 wxPy_BEGIN_ALLOW_THREADS;
1382 _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1);
1383
1384 wxPy_END_ALLOW_THREADS;
1385 } _resultobj = Py_BuildValue("i",_result);
1386 return _resultobj;
1387 }
1388
1389 #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0))
1390 static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
1391 PyObject * _resultobj;
1392 int _result;
1393 wxWindow * _arg0;
1394 int _arg1;
1395 PyObject * _argo0 = 0;
1396 char *_kwnames[] = { "self","orientation", NULL };
1397
1398 self = self;
1399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1))
1400 return NULL;
1401 if (_argo0) {
1402 if (_argo0 == Py_None) { _arg0 = NULL; }
1403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p.");
1405 return NULL;
1406 }
1407 }
1408 {
1409 wxPy_BEGIN_ALLOW_THREADS;
1410 _result = (int )wxWindow_GetScrollPos(_arg0,_arg1);
1411
1412 wxPy_END_ALLOW_THREADS;
1413 } _resultobj = Py_BuildValue("i",_result);
1414 return _resultobj;
1415 }
1416
1417 #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0))
1418 static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
1419 PyObject * _resultobj;
1420 int _result;
1421 wxWindow * _arg0;
1422 int _arg1;
1423 PyObject * _argo0 = 0;
1424 char *_kwnames[] = { "self","orientation", NULL };
1425
1426 self = self;
1427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1))
1428 return NULL;
1429 if (_argo0) {
1430 if (_argo0 == Py_None) { _arg0 = NULL; }
1431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p.");
1433 return NULL;
1434 }
1435 }
1436 {
1437 wxPy_BEGIN_ALLOW_THREADS;
1438 _result = (int )wxWindow_GetScrollRange(_arg0,_arg1);
1439
1440 wxPy_END_ALLOW_THREADS;
1441 } _resultobj = Py_BuildValue("i",_result);
1442 return _resultobj;
1443 }
1444
1445 #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
1446 static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1447 PyObject * _resultobj;
1448 wxWindow * _arg0;
1449 int * _arg1;
1450 int temp;
1451 int * _arg2;
1452 int temp0;
1453 PyObject * _argo0 = 0;
1454 char *_kwnames[] = { "self", NULL };
1455
1456 self = self;
1457 {
1458 _arg1 = &temp;
1459 }
1460 {
1461 _arg2 = &temp0;
1462 }
1463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0))
1464 return NULL;
1465 if (_argo0) {
1466 if (_argo0 == Py_None) { _arg0 = NULL; }
1467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p.");
1469 return NULL;
1470 }
1471 }
1472 {
1473 wxPy_BEGIN_ALLOW_THREADS;
1474 wxWindow_GetSizeTuple(_arg0,_arg1,_arg2);
1475
1476 wxPy_END_ALLOW_THREADS;
1477 } Py_INCREF(Py_None);
1478 _resultobj = Py_None;
1479 {
1480 PyObject *o;
1481 o = PyInt_FromLong((long) (*_arg1));
1482 _resultobj = t_output_helper(_resultobj, o);
1483 }
1484 {
1485 PyObject *o;
1486 o = PyInt_FromLong((long) (*_arg2));
1487 _resultobj = t_output_helper(_resultobj, o);
1488 }
1489 return _resultobj;
1490 }
1491
1492 #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize())
1493 static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1494 PyObject * _resultobj;
1495 wxSize * _result;
1496 wxWindow * _arg0;
1497 PyObject * _argo0 = 0;
1498 char *_kwnames[] = { "self", NULL };
1499 char _ptemp[128];
1500
1501 self = self;
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0))
1503 return NULL;
1504 if (_argo0) {
1505 if (_argo0 == Py_None) { _arg0 = NULL; }
1506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p.");
1508 return NULL;
1509 }
1510 }
1511 {
1512 wxPy_BEGIN_ALLOW_THREADS;
1513 _result = new wxSize (wxWindow_GetSize(_arg0));
1514
1515 wxPy_END_ALLOW_THREADS;
1516 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1517 _resultobj = Py_BuildValue("s",_ptemp);
1518 return _resultobj;
1519 }
1520
1521 #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
1522 static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
1523 PyObject * _resultobj;
1524 wxWindow * _arg0;
1525 wxString * _arg1;
1526 int * _arg2;
1527 int temp;
1528 int * _arg3;
1529 int temp0;
1530 PyObject * _argo0 = 0;
1531 PyObject * _obj1 = 0;
1532 char *_kwnames[] = { "self","string", NULL };
1533
1534 self = self;
1535 {
1536 _arg2 = &temp;
1537 }
1538 {
1539 _arg3 = &temp0;
1540 }
1541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1))
1542 return NULL;
1543 if (_argo0) {
1544 if (_argo0 == Py_None) { _arg0 = NULL; }
1545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p.");
1547 return NULL;
1548 }
1549 }
1550 {
1551 if (!PyString_Check(_obj1)) {
1552 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1553 return NULL;
1554 }
1555 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1556 }
1557 {
1558 wxPy_BEGIN_ALLOW_THREADS;
1559 wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
1560
1561 wxPy_END_ALLOW_THREADS;
1562 } Py_INCREF(Py_None);
1563 _resultobj = Py_None;
1564 {
1565 PyObject *o;
1566 o = PyInt_FromLong((long) (*_arg2));
1567 _resultobj = t_output_helper(_resultobj, o);
1568 }
1569 {
1570 PyObject *o;
1571 o = PyInt_FromLong((long) (*_arg3));
1572 _resultobj = t_output_helper(_resultobj, o);
1573 }
1574 {
1575 if (_obj1)
1576 delete _arg1;
1577 }
1578 return _resultobj;
1579 }
1580
1581 #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1582 static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
1583 PyObject * _resultobj;
1584 wxWindow * _arg0;
1585 wxString * _arg1;
1586 int * _arg2;
1587 int temp;
1588 int * _arg3;
1589 int temp0;
1590 int * _arg4;
1591 int temp1;
1592 int * _arg5;
1593 int temp2;
1594 wxFont * _arg6 = (wxFont *) NULL;
1595 PyObject * _argo0 = 0;
1596 PyObject * _obj1 = 0;
1597 PyObject * _argo6 = 0;
1598 char *_kwnames[] = { "self","string","font", NULL };
1599
1600 self = self;
1601 {
1602 _arg2 = &temp;
1603 }
1604 {
1605 _arg3 = &temp0;
1606 }
1607 {
1608 _arg4 = &temp1;
1609 }
1610 {
1611 _arg5 = &temp2;
1612 }
1613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
1614 return NULL;
1615 if (_argo0) {
1616 if (_argo0 == Py_None) { _arg0 = NULL; }
1617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p.");
1619 return NULL;
1620 }
1621 }
1622 {
1623 if (!PyString_Check(_obj1)) {
1624 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1625 return NULL;
1626 }
1627 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
1628 }
1629 if (_argo6) {
1630 if (_argo6 == Py_None) { _arg6 = NULL; }
1631 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
1632 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p.");
1633 return NULL;
1634 }
1635 }
1636 {
1637 wxPy_BEGIN_ALLOW_THREADS;
1638 wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1639
1640 wxPy_END_ALLOW_THREADS;
1641 } Py_INCREF(Py_None);
1642 _resultobj = Py_None;
1643 {
1644 PyObject *o;
1645 o = PyInt_FromLong((long) (*_arg2));
1646 _resultobj = t_output_helper(_resultobj, o);
1647 }
1648 {
1649 PyObject *o;
1650 o = PyInt_FromLong((long) (*_arg3));
1651 _resultobj = t_output_helper(_resultobj, o);
1652 }
1653 {
1654 PyObject *o;
1655 o = PyInt_FromLong((long) (*_arg4));
1656 _resultobj = t_output_helper(_resultobj, o);
1657 }
1658 {
1659 PyObject *o;
1660 o = PyInt_FromLong((long) (*_arg5));
1661 _resultobj = t_output_helper(_resultobj, o);
1662 }
1663 {
1664 if (_obj1)
1665 delete _arg1;
1666 }
1667 return _resultobj;
1668 }
1669
1670 #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
1671 static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
1672 PyObject * _resultobj;
1673 wxString * _result;
1674 wxWindow * _arg0;
1675 PyObject * _argo0 = 0;
1676 char *_kwnames[] = { "self", NULL };
1677
1678 self = self;
1679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0))
1680 return NULL;
1681 if (_argo0) {
1682 if (_argo0 == Py_None) { _arg0 = NULL; }
1683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p.");
1685 return NULL;
1686 }
1687 }
1688 {
1689 wxPy_BEGIN_ALLOW_THREADS;
1690 _result = new wxString (wxWindow_GetTitle(_arg0));
1691
1692 wxPy_END_ALLOW_THREADS;
1693 }{
1694 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
1695 }
1696 {
1697 delete _result;
1698 }
1699 return _resultobj;
1700 }
1701
1702 #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion())
1703 static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
1704 PyObject * _resultobj;
1705 wxRegion * _result;
1706 wxWindow * _arg0;
1707 PyObject * _argo0 = 0;
1708 char *_kwnames[] = { "self", NULL };
1709 char _ptemp[128];
1710
1711 self = self;
1712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0))
1713 return NULL;
1714 if (_argo0) {
1715 if (_argo0 == Py_None) { _arg0 = NULL; }
1716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p.");
1718 return NULL;
1719 }
1720 }
1721 {
1722 wxPy_BEGIN_ALLOW_THREADS;
1723 _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0));
1724
1725 wxPy_END_ALLOW_THREADS;
1726 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p");
1727 _resultobj = Py_BuildValue("s",_ptemp);
1728 return _resultobj;
1729 }
1730
1731 #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag())
1732 static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
1733 PyObject * _resultobj;
1734 long _result;
1735 wxWindow * _arg0;
1736 PyObject * _argo0 = 0;
1737 char *_kwnames[] = { "self", NULL };
1738
1739 self = self;
1740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0))
1741 return NULL;
1742 if (_argo0) {
1743 if (_argo0 == Py_None) { _arg0 = NULL; }
1744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p.");
1746 return NULL;
1747 }
1748 }
1749 {
1750 wxPy_BEGIN_ALLOW_THREADS;
1751 _result = (long )wxWindow_GetWindowStyleFlag(_arg0);
1752
1753 wxPy_END_ALLOW_THREADS;
1754 } _resultobj = Py_BuildValue("l",_result);
1755 return _resultobj;
1756 }
1757
1758 #define wxWindow_Hide(_swigobj) (_swigobj->Hide())
1759 static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
1760 PyObject * _resultobj;
1761 bool _result;
1762 wxWindow * _arg0;
1763 PyObject * _argo0 = 0;
1764 char *_kwnames[] = { "self", NULL };
1765
1766 self = self;
1767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0))
1768 return NULL;
1769 if (_argo0) {
1770 if (_argo0 == Py_None) { _arg0 = NULL; }
1771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p.");
1773 return NULL;
1774 }
1775 }
1776 {
1777 wxPy_BEGIN_ALLOW_THREADS;
1778 _result = (bool )wxWindow_Hide(_arg0);
1779
1780 wxPy_END_ALLOW_THREADS;
1781 } _resultobj = Py_BuildValue("i",_result);
1782 return _resultobj;
1783 }
1784
1785 #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog())
1786 static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1787 PyObject * _resultobj;
1788 wxWindow * _arg0;
1789 PyObject * _argo0 = 0;
1790 char *_kwnames[] = { "self", NULL };
1791
1792 self = self;
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0))
1794 return NULL;
1795 if (_argo0) {
1796 if (_argo0 == Py_None) { _arg0 = NULL; }
1797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p.");
1799 return NULL;
1800 }
1801 }
1802 {
1803 wxPy_BEGIN_ALLOW_THREADS;
1804 wxWindow_InitDialog(_arg0);
1805
1806 wxPy_END_ALLOW_THREADS;
1807 } Py_INCREF(Py_None);
1808 _resultobj = Py_None;
1809 return _resultobj;
1810 }
1811
1812 #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled())
1813 static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject * _resultobj;
1815 bool _result;
1816 wxWindow * _arg0;
1817 PyObject * _argo0 = 0;
1818 char *_kwnames[] = { "self", NULL };
1819
1820 self = self;
1821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0))
1822 return NULL;
1823 if (_argo0) {
1824 if (_argo0 == Py_None) { _arg0 = NULL; }
1825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p.");
1827 return NULL;
1828 }
1829 }
1830 {
1831 wxPy_BEGIN_ALLOW_THREADS;
1832 _result = (bool )wxWindow_IsEnabled(_arg0);
1833
1834 wxPy_END_ALLOW_THREADS;
1835 } _resultobj = Py_BuildValue("i",_result);
1836 return _resultobj;
1837 }
1838
1839 #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
1840 static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
1841 PyObject * _resultobj;
1842 bool _result;
1843 wxWindow * _arg0;
1844 PyObject * _argo0 = 0;
1845 char *_kwnames[] = { "self", NULL };
1846
1847 self = self;
1848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0))
1849 return NULL;
1850 if (_argo0) {
1851 if (_argo0 == Py_None) { _arg0 = NULL; }
1852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p.");
1854 return NULL;
1855 }
1856 }
1857 {
1858 wxPy_BEGIN_ALLOW_THREADS;
1859 _result = (bool )wxWindow_IsRetained(_arg0);
1860
1861 wxPy_END_ALLOW_THREADS;
1862 } _resultobj = Py_BuildValue("i",_result);
1863 return _resultobj;
1864 }
1865
1866 #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown())
1867 static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
1868 PyObject * _resultobj;
1869 bool _result;
1870 wxWindow * _arg0;
1871 PyObject * _argo0 = 0;
1872 char *_kwnames[] = { "self", NULL };
1873
1874 self = self;
1875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0))
1876 return NULL;
1877 if (_argo0) {
1878 if (_argo0 == Py_None) { _arg0 = NULL; }
1879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p.");
1881 return NULL;
1882 }
1883 }
1884 {
1885 wxPy_BEGIN_ALLOW_THREADS;
1886 _result = (bool )wxWindow_IsShown(_arg0);
1887
1888 wxPy_END_ALLOW_THREADS;
1889 } _resultobj = Py_BuildValue("i",_result);
1890 return _resultobj;
1891 }
1892
1893 #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel())
1894 static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
1895 PyObject * _resultobj;
1896 bool _result;
1897 wxWindow * _arg0;
1898 PyObject * _argo0 = 0;
1899 char *_kwnames[] = { "self", NULL };
1900
1901 self = self;
1902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0))
1903 return NULL;
1904 if (_argo0) {
1905 if (_argo0 == Py_None) { _arg0 = NULL; }
1906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p.");
1908 return NULL;
1909 }
1910 }
1911 {
1912 wxPy_BEGIN_ALLOW_THREADS;
1913 _result = (bool )wxWindow_IsTopLevel(_arg0);
1914
1915 wxPy_END_ALLOW_THREADS;
1916 } _resultobj = Py_BuildValue("i",_result);
1917 return _resultobj;
1918 }
1919
1920 #define wxWindow_Layout(_swigobj) (_swigobj->Layout())
1921 static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
1922 PyObject * _resultobj;
1923 wxWindow * _arg0;
1924 PyObject * _argo0 = 0;
1925 char *_kwnames[] = { "self", NULL };
1926
1927 self = self;
1928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0))
1929 return NULL;
1930 if (_argo0) {
1931 if (_argo0 == Py_None) { _arg0 = NULL; }
1932 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1933 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p.");
1934 return NULL;
1935 }
1936 }
1937 {
1938 wxPy_BEGIN_ALLOW_THREADS;
1939 wxWindow_Layout(_arg0);
1940
1941 wxPy_END_ALLOW_THREADS;
1942 } Py_INCREF(Py_None);
1943 _resultobj = Py_None;
1944 return _resultobj;
1945 }
1946
1947 #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2))
1948 static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) {
1949 PyObject * _resultobj;
1950 bool _result;
1951 wxWindow * _arg0;
1952 wxWindow * _arg1;
1953 wxString * _arg2;
1954 wxResourceTable * _arg3 = (wxResourceTable *) NULL;
1955 PyObject * _argo0 = 0;
1956 PyObject * _argo1 = 0;
1957 PyObject * _obj2 = 0;
1958 PyObject * _argo3 = 0;
1959 char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL };
1960
1961 self = self;
1962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3))
1963 return NULL;
1964 if (_argo0) {
1965 if (_argo0 == Py_None) { _arg0 = NULL; }
1966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
1968 return NULL;
1969 }
1970 }
1971 if (_argo1) {
1972 if (_argo1 == Py_None) { _arg1 = NULL; }
1973 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1974 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p.");
1975 return NULL;
1976 }
1977 }
1978 {
1979 if (!PyString_Check(_obj2)) {
1980 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1981 return NULL;
1982 }
1983 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1984 }
1985 if (_argo3) {
1986 if (_argo3 == Py_None) { _arg3 = NULL; }
1987 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) {
1988 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p.");
1989 return NULL;
1990 }
1991 }
1992 {
1993 wxPy_BEGIN_ALLOW_THREADS;
1994 _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3);
1995
1996 wxPy_END_ALLOW_THREADS;
1997 } _resultobj = Py_BuildValue("i",_result);
1998 {
1999 if (_obj2)
2000 delete _arg2;
2001 }
2002 return _resultobj;
2003 }
2004
2005 #define wxWindow_Lower(_swigobj) (_swigobj->Lower())
2006 static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
2007 PyObject * _resultobj;
2008 wxWindow * _arg0;
2009 PyObject * _argo0 = 0;
2010 char *_kwnames[] = { "self", NULL };
2011
2012 self = self;
2013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0))
2014 return NULL;
2015 if (_argo0) {
2016 if (_argo0 == Py_None) { _arg0 = NULL; }
2017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p.");
2019 return NULL;
2020 }
2021 }
2022 {
2023 wxPy_BEGIN_ALLOW_THREADS;
2024 wxWindow_Lower(_arg0);
2025
2026 wxPy_END_ALLOW_THREADS;
2027 } Py_INCREF(Py_None);
2028 _resultobj = Py_None;
2029 return _resultobj;
2030 }
2031
2032 #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
2033 static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2034 PyObject * _resultobj;
2035 wxWindow * _arg0;
2036 bool _arg1;
2037 PyObject * _argo0 = 0;
2038 int tempbool1;
2039 char *_kwnames[] = { "self","flag", NULL };
2040
2041 self = self;
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1))
2043 return NULL;
2044 if (_argo0) {
2045 if (_argo0 == Py_None) { _arg0 = NULL; }
2046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p.");
2048 return NULL;
2049 }
2050 }
2051 _arg1 = (bool ) tempbool1;
2052 {
2053 wxPy_BEGIN_ALLOW_THREADS;
2054 wxWindow_MakeModal(_arg0,_arg1);
2055
2056 wxPy_END_ALLOW_THREADS;
2057 } Py_INCREF(Py_None);
2058 _resultobj = Py_None;
2059 return _resultobj;
2060 }
2061
2062 #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
2063 static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject * _resultobj;
2065 wxWindow * _arg0;
2066 int _arg1;
2067 int _arg2;
2068 PyObject * _argo0 = 0;
2069 char *_kwnames[] = { "self","x","y", NULL };
2070
2071 self = self;
2072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2))
2073 return NULL;
2074 if (_argo0) {
2075 if (_argo0 == Py_None) { _arg0 = NULL; }
2076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p.");
2078 return NULL;
2079 }
2080 }
2081 {
2082 wxPy_BEGIN_ALLOW_THREADS;
2083 wxWindow_MoveXY(_arg0,_arg1,_arg2);
2084
2085 wxPy_END_ALLOW_THREADS;
2086 } Py_INCREF(Py_None);
2087 _resultobj = Py_None;
2088 return _resultobj;
2089 }
2090
2091 #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
2092 static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
2093 PyObject * _resultobj;
2094 wxWindow * _arg0;
2095 wxPoint * _arg1;
2096 PyObject * _argo0 = 0;
2097 PyObject * _argo1 = 0;
2098 char *_kwnames[] = { "self","point", NULL };
2099
2100 self = self;
2101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_argo1))
2102 return NULL;
2103 if (_argo0) {
2104 if (_argo0 == Py_None) { _arg0 = NULL; }
2105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p.");
2107 return NULL;
2108 }
2109 }
2110 if (_argo1) {
2111 if (_argo1 == Py_None) { _arg1 = NULL; }
2112 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
2113 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Move. Expected _wxPoint_p.");
2114 return NULL;
2115 }
2116 }
2117 {
2118 wxPy_BEGIN_ALLOW_THREADS;
2119 wxWindow_Move(_arg0,*_arg1);
2120
2121 wxPy_END_ALLOW_THREADS;
2122 } Py_INCREF(Py_None);
2123 _resultobj = Py_None;
2124 return _resultobj;
2125 }
2126
2127 #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2))
2128 static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2129 PyObject * _resultobj;
2130 bool _result;
2131 wxWindow * _arg0;
2132 wxMenu * _arg1;
2133 int _arg2;
2134 int _arg3;
2135 PyObject * _argo0 = 0;
2136 PyObject * _argo1 = 0;
2137 char *_kwnames[] = { "self","menu","x","y", NULL };
2138
2139 self = self;
2140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
2141 return NULL;
2142 if (_argo0) {
2143 if (_argo0 == Py_None) { _arg0 = NULL; }
2144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p.");
2146 return NULL;
2147 }
2148 }
2149 if (_argo1) {
2150 if (_argo1 == Py_None) { _arg1 = NULL; }
2151 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
2152 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p.");
2153 return NULL;
2154 }
2155 }
2156 {
2157 wxPy_BEGIN_ALLOW_THREADS;
2158 _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3);
2159
2160 wxPy_END_ALLOW_THREADS;
2161 } _resultobj = Py_BuildValue("i",_result);
2162 return _resultobj;
2163 }
2164
2165 #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1))
2166 static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
2167 PyObject * _resultobj;
2168 bool _result;
2169 wxWindow * _arg0;
2170 wxMenu * _arg1;
2171 wxPoint * _arg2;
2172 PyObject * _argo0 = 0;
2173 PyObject * _argo1 = 0;
2174 PyObject * _argo2 = 0;
2175 char *_kwnames[] = { "self","menu","pos", NULL };
2176
2177 self = self;
2178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_argo2))
2179 return NULL;
2180 if (_argo0) {
2181 if (_argo0 == Py_None) { _arg0 = NULL; }
2182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p.");
2184 return NULL;
2185 }
2186 }
2187 if (_argo1) {
2188 if (_argo1 == Py_None) { _arg1 = NULL; }
2189 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
2190 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p.");
2191 return NULL;
2192 }
2193 }
2194 if (_argo2) {
2195 if (_argo2 == Py_None) { _arg2 = NULL; }
2196 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
2197 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxWindow_PopupMenu. Expected _wxPoint_p.");
2198 return NULL;
2199 }
2200 }
2201 {
2202 wxPy_BEGIN_ALLOW_THREADS;
2203 _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2);
2204
2205 wxPy_END_ALLOW_THREADS;
2206 } _resultobj = Py_BuildValue("i",_result);
2207 return _resultobj;
2208 }
2209
2210 #define wxWindow_Raise(_swigobj) (_swigobj->Raise())
2211 static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
2212 PyObject * _resultobj;
2213 wxWindow * _arg0;
2214 PyObject * _argo0 = 0;
2215 char *_kwnames[] = { "self", NULL };
2216
2217 self = self;
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0))
2219 return NULL;
2220 if (_argo0) {
2221 if (_argo0 == Py_None) { _arg0 = NULL; }
2222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p.");
2224 return NULL;
2225 }
2226 }
2227 {
2228 wxPy_BEGIN_ALLOW_THREADS;
2229 wxWindow_Raise(_arg0);
2230
2231 wxPy_END_ALLOW_THREADS;
2232 } Py_INCREF(Py_None);
2233 _resultobj = Py_None;
2234 return _resultobj;
2235 }
2236
2237 #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1))
2238 static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
2239 PyObject * _resultobj;
2240 wxWindow * _arg0;
2241 bool _arg1 = (bool ) TRUE;
2242 wxRect * _arg2 = (wxRect *) NULL;
2243 PyObject * _argo0 = 0;
2244 int tempbool1 = (int) TRUE;
2245 PyObject * _argo2 = 0;
2246 char *_kwnames[] = { "self","eraseBackground","rect", NULL };
2247
2248 self = self;
2249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_argo2))
2250 return NULL;
2251 if (_argo0) {
2252 if (_argo0 == Py_None) { _arg0 = NULL; }
2253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p.");
2255 return NULL;
2256 }
2257 }
2258 _arg1 = (bool ) tempbool1;
2259 if (_argo2) {
2260 if (_argo2 == Py_None) { _arg2 = NULL; }
2261 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxRect_p")) {
2262 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxWindow_Refresh. Expected _wxRect_p.");
2263 return NULL;
2264 }
2265 }
2266 {
2267 wxPy_BEGIN_ALLOW_THREADS;
2268 wxWindow_Refresh(_arg0,_arg1,_arg2);
2269
2270 wxPy_END_ALLOW_THREADS;
2271 } Py_INCREF(Py_None);
2272 _resultobj = Py_None;
2273 return _resultobj;
2274 }
2275
2276 #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse())
2277 static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
2278 PyObject * _resultobj;
2279 wxWindow * _arg0;
2280 PyObject * _argo0 = 0;
2281 char *_kwnames[] = { "self", NULL };
2282
2283 self = self;
2284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0))
2285 return NULL;
2286 if (_argo0) {
2287 if (_argo0 == Py_None) { _arg0 = NULL; }
2288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p.");
2290 return NULL;
2291 }
2292 }
2293 {
2294 wxPy_BEGIN_ALLOW_THREADS;
2295 wxWindow_ReleaseMouse(_arg0);
2296
2297 wxPy_END_ALLOW_THREADS;
2298 } Py_INCREF(Py_None);
2299 _resultobj = Py_None;
2300 return _resultobj;
2301 }
2302
2303 #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0))
2304 static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
2305 PyObject * _resultobj;
2306 bool _result;
2307 wxWindow * _arg0;
2308 wxWindow * _arg1;
2309 PyObject * _argo0 = 0;
2310 PyObject * _argo1 = 0;
2311 char *_kwnames[] = { "self","newParent", NULL };
2312
2313 self = self;
2314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1))
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_Reparent. Expected _wxWindow_p.");
2320 return NULL;
2321 }
2322 }
2323 if (_argo1) {
2324 if (_argo1 == Py_None) { _arg1 = NULL; }
2325 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2326 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p.");
2327 return NULL;
2328 }
2329 }
2330 {
2331 wxPy_BEGIN_ALLOW_THREADS;
2332 _result = (bool )wxWindow_Reparent(_arg0,_arg1);
2333
2334 wxPy_END_ALLOW_THREADS;
2335 } _resultobj = Py_BuildValue("i",_result);
2336 return _resultobj;
2337 }
2338
2339 #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1))
2340 static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2341 PyObject * _resultobj;
2342 wxWindow * _arg0;
2343 int * _arg1;
2344 int * _arg2;
2345 PyObject * _argo0 = 0;
2346 int temp;
2347 PyObject * _obj1 = 0;
2348 int temp0;
2349 PyObject * _obj2 = 0;
2350 char *_kwnames[] = { "self","x","y", NULL };
2351
2352 self = self;
2353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2))
2354 return NULL;
2355 if (_argo0) {
2356 if (_argo0 == Py_None) { _arg0 = NULL; }
2357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p.");
2359 return NULL;
2360 }
2361 }
2362 {
2363 temp = (int) PyInt_AsLong(_obj1);
2364 _arg1 = &temp;
2365 }
2366 {
2367 temp0 = (int) PyInt_AsLong(_obj2);
2368 _arg2 = &temp0;
2369 }
2370 {
2371 wxPy_BEGIN_ALLOW_THREADS;
2372 wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2);
2373
2374 wxPy_END_ALLOW_THREADS;
2375 } Py_INCREF(Py_None);
2376 _resultobj = Py_None;
2377 {
2378 PyObject *o;
2379 o = PyInt_FromLong((long) (*_arg1));
2380 _resultobj = t_output_helper(_resultobj, o);
2381 }
2382 {
2383 PyObject *o;
2384 o = PyInt_FromLong((long) (*_arg2));
2385 _resultobj = t_output_helper(_resultobj, o);
2386 }
2387 return _resultobj;
2388 }
2389
2390 #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0))
2391 static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
2392 PyObject * _resultobj;
2393 wxPoint * _result;
2394 wxWindow * _arg0;
2395 wxPoint * _arg1;
2396 PyObject * _argo0 = 0;
2397 PyObject * _argo1 = 0;
2398 char *_kwnames[] = { "self","pt", NULL };
2399 char _ptemp[128];
2400
2401 self = self;
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_argo1))
2403 return NULL;
2404 if (_argo0) {
2405 if (_argo0 == Py_None) { _arg0 = NULL; }
2406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p.");
2408 return NULL;
2409 }
2410 }
2411 if (_argo1) {
2412 if (_argo1 == Py_None) { _arg1 = NULL; }
2413 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
2414 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_ScreenToClient. Expected _wxPoint_p.");
2415 return NULL;
2416 }
2417 }
2418 {
2419 wxPy_BEGIN_ALLOW_THREADS;
2420 _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1));
2421
2422 wxPy_END_ALLOW_THREADS;
2423 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2424 _resultobj = Py_BuildValue("s",_ptemp);
2425 return _resultobj;
2426 }
2427
2428 #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2))
2429 static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2430 PyObject * _resultobj;
2431 wxWindow * _arg0;
2432 int _arg1;
2433 int _arg2;
2434 wxRect * _arg3 = (wxRect *) NULL;
2435 PyObject * _argo0 = 0;
2436 PyObject * _argo3 = 0;
2437 char *_kwnames[] = { "self","dx","dy","rect", NULL };
2438
2439 self = self;
2440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3))
2441 return NULL;
2442 if (_argo0) {
2443 if (_argo0 == Py_None) { _arg0 = NULL; }
2444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p.");
2446 return NULL;
2447 }
2448 }
2449 if (_argo3) {
2450 if (_argo3 == Py_None) { _arg3 = NULL; }
2451 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxRect_p")) {
2452 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_ScrollWindow. Expected _wxRect_p.");
2453 return NULL;
2454 }
2455 }
2456 {
2457 wxPy_BEGIN_ALLOW_THREADS;
2458 wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3);
2459
2460 wxPy_END_ALLOW_THREADS;
2461 } Py_INCREF(Py_None);
2462 _resultobj = Py_None;
2463 return _resultobj;
2464 }
2465
2466 #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
2467 static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
2468 PyObject * _resultobj;
2469 wxWindow * _arg0;
2470 wxAcceleratorTable * _arg1;
2471 PyObject * _argo0 = 0;
2472 PyObject * _argo1 = 0;
2473 char *_kwnames[] = { "self","accel", NULL };
2474
2475 self = self;
2476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
2477 return NULL;
2478 if (_argo0) {
2479 if (_argo0 == Py_None) { _arg0 = NULL; }
2480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p.");
2482 return NULL;
2483 }
2484 }
2485 if (_argo1) {
2486 if (_argo1 == Py_None) { _arg1 = NULL; }
2487 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
2488 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
2489 return NULL;
2490 }
2491 }
2492 {
2493 wxPy_BEGIN_ALLOW_THREADS;
2494 wxWindow_SetAcceleratorTable(_arg0,*_arg1);
2495
2496 wxPy_END_ALLOW_THREADS;
2497 } Py_INCREF(Py_None);
2498 _resultobj = Py_None;
2499 return _resultobj;
2500 }
2501
2502 #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0))
2503 static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
2504 PyObject * _resultobj;
2505 wxWindow * _arg0;
2506 bool _arg1;
2507 PyObject * _argo0 = 0;
2508 int tempbool1;
2509 char *_kwnames[] = { "self","autoLayout", NULL };
2510
2511 self = self;
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1))
2513 return NULL;
2514 if (_argo0) {
2515 if (_argo0 == Py_None) { _arg0 = NULL; }
2516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p.");
2518 return NULL;
2519 }
2520 }
2521 _arg1 = (bool ) tempbool1;
2522 {
2523 wxPy_BEGIN_ALLOW_THREADS;
2524 wxWindow_SetAutoLayout(_arg0,_arg1);
2525
2526 wxPy_END_ALLOW_THREADS;
2527 } Py_INCREF(Py_None);
2528 _resultobj = Py_None;
2529 return _resultobj;
2530 }
2531
2532 #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
2533 static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2534 PyObject * _resultobj;
2535 wxWindow * _arg0;
2536 wxColour * _arg1;
2537 PyObject * _argo0 = 0;
2538 PyObject * _argo1 = 0;
2539 char *_kwnames[] = { "self","colour", NULL };
2540
2541 self = self;
2542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_argo1))
2543 return NULL;
2544 if (_argo0) {
2545 if (_argo0 == Py_None) { _arg0 = NULL; }
2546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p.");
2548 return NULL;
2549 }
2550 }
2551 if (_argo1) {
2552 if (_argo1 == Py_None) { _arg1 = NULL; }
2553 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
2554 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetBackgroundColour. Expected _wxColour_p.");
2555 return NULL;
2556 }
2557 }
2558 {
2559 wxPy_BEGIN_ALLOW_THREADS;
2560 wxWindow_SetBackgroundColour(_arg0,*_arg1);
2561
2562 wxPy_END_ALLOW_THREADS;
2563 } Py_INCREF(Py_None);
2564 _resultobj = Py_None;
2565 return _resultobj;
2566 }
2567
2568 #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0))
2569 static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
2570 PyObject * _resultobj;
2571 wxWindow * _arg0;
2572 wxLayoutConstraints * _arg1;
2573 PyObject * _argo0 = 0;
2574 PyObject * _argo1 = 0;
2575 char *_kwnames[] = { "self","constraints", NULL };
2576
2577 self = self;
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1))
2579 return NULL;
2580 if (_argo0) {
2581 if (_argo0 == Py_None) { _arg0 = NULL; }
2582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p.");
2584 return NULL;
2585 }
2586 }
2587 if (_argo1) {
2588 if (_argo1 == Py_None) { _arg1 = NULL; }
2589 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) {
2590 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p.");
2591 return NULL;
2592 }
2593 }
2594 {
2595 wxPy_BEGIN_ALLOW_THREADS;
2596 wxWindow_SetConstraints(_arg0,_arg1);
2597
2598 wxPy_END_ALLOW_THREADS;
2599 } Py_INCREF(Py_None);
2600 _resultobj = Py_None;
2601 return _resultobj;
2602 }
2603
2604 #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus())
2605 static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
2606 PyObject * _resultobj;
2607 wxWindow * _arg0;
2608 PyObject * _argo0 = 0;
2609 char *_kwnames[] = { "self", NULL };
2610
2611 self = self;
2612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0))
2613 return NULL;
2614 if (_argo0) {
2615 if (_argo0 == Py_None) { _arg0 = NULL; }
2616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p.");
2618 return NULL;
2619 }
2620 }
2621 {
2622 wxPy_BEGIN_ALLOW_THREADS;
2623 wxWindow_SetFocus(_arg0);
2624
2625 wxPy_END_ALLOW_THREADS;
2626 } Py_INCREF(Py_None);
2627 _resultobj = Py_None;
2628 return _resultobj;
2629 }
2630
2631 #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
2632 static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2633 PyObject * _resultobj;
2634 wxWindow * _arg0;
2635 wxFont * _arg1;
2636 PyObject * _argo0 = 0;
2637 PyObject * _argo1 = 0;
2638 char *_kwnames[] = { "self","font", NULL };
2639
2640 self = self;
2641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1))
2642 return NULL;
2643 if (_argo0) {
2644 if (_argo0 == Py_None) { _arg0 = NULL; }
2645 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2646 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p.");
2647 return NULL;
2648 }
2649 }
2650 if (_argo1) {
2651 if (_argo1 == Py_None) { _arg1 = NULL; }
2652 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2653 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p.");
2654 return NULL;
2655 }
2656 }
2657 {
2658 wxPy_BEGIN_ALLOW_THREADS;
2659 wxWindow_SetFont(_arg0,*_arg1);
2660
2661 wxPy_END_ALLOW_THREADS;
2662 } Py_INCREF(Py_None);
2663 _resultobj = Py_None;
2664 return _resultobj;
2665 }
2666
2667 #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
2668 static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2669 PyObject * _resultobj;
2670 wxWindow * _arg0;
2671 wxColour * _arg1;
2672 PyObject * _argo0 = 0;
2673 PyObject * _argo1 = 0;
2674 char *_kwnames[] = { "self","colour", NULL };
2675
2676 self = self;
2677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_argo1))
2678 return NULL;
2679 if (_argo0) {
2680 if (_argo0 == Py_None) { _arg0 = NULL; }
2681 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2682 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p.");
2683 return NULL;
2684 }
2685 }
2686 if (_argo1) {
2687 if (_argo1 == Py_None) { _arg1 = NULL; }
2688 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
2689 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetForegroundColour. Expected _wxColour_p.");
2690 return NULL;
2691 }
2692 }
2693 {
2694 wxPy_BEGIN_ALLOW_THREADS;
2695 wxWindow_SetForegroundColour(_arg0,*_arg1);
2696
2697 wxPy_END_ALLOW_THREADS;
2698 } Py_INCREF(Py_None);
2699 _resultobj = Py_None;
2700 return _resultobj;
2701 }
2702
2703 #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
2704 static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
2705 PyObject * _resultobj;
2706 wxWindow * _arg0;
2707 int _arg1;
2708 PyObject * _argo0 = 0;
2709 char *_kwnames[] = { "self","id", NULL };
2710
2711 self = self;
2712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1))
2713 return NULL;
2714 if (_argo0) {
2715 if (_argo0 == Py_None) { _arg0 = NULL; }
2716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p.");
2718 return NULL;
2719 }
2720 }
2721 {
2722 wxPy_BEGIN_ALLOW_THREADS;
2723 wxWindow_SetId(_arg0,_arg1);
2724
2725 wxPy_END_ALLOW_THREADS;
2726 } Py_INCREF(Py_None);
2727 _resultobj = Py_None;
2728 return _resultobj;
2729 }
2730
2731 #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
2732 static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject * _resultobj;
2734 wxWindow * _arg0;
2735 wxString * _arg1;
2736 PyObject * _argo0 = 0;
2737 PyObject * _obj1 = 0;
2738 char *_kwnames[] = { "self","name", NULL };
2739
2740 self = self;
2741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1))
2742 return NULL;
2743 if (_argo0) {
2744 if (_argo0 == Py_None) { _arg0 = NULL; }
2745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p.");
2747 return NULL;
2748 }
2749 }
2750 {
2751 if (!PyString_Check(_obj1)) {
2752 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2753 return NULL;
2754 }
2755 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
2756 }
2757 {
2758 wxPy_BEGIN_ALLOW_THREADS;
2759 wxWindow_SetName(_arg0,*_arg1);
2760
2761 wxPy_END_ALLOW_THREADS;
2762 } Py_INCREF(Py_None);
2763 _resultobj = Py_None;
2764 {
2765 if (_obj1)
2766 delete _arg1;
2767 }
2768 return _resultobj;
2769 }
2770
2771 #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2772 static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
2773 PyObject * _resultobj;
2774 wxWindow * _arg0;
2775 int _arg1;
2776 int _arg2;
2777 int _arg3;
2778 int _arg4;
2779 bool _arg5 = (bool ) TRUE;
2780 PyObject * _argo0 = 0;
2781 int tempbool5 = (int) TRUE;
2782 char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL };
2783
2784 self = self;
2785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5))
2786 return NULL;
2787 if (_argo0) {
2788 if (_argo0 == Py_None) { _arg0 = NULL; }
2789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p.");
2791 return NULL;
2792 }
2793 }
2794 _arg5 = (bool ) tempbool5;
2795 {
2796 wxPy_BEGIN_ALLOW_THREADS;
2797 wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
2798
2799 wxPy_END_ALLOW_THREADS;
2800 } Py_INCREF(Py_None);
2801 _resultobj = Py_None;
2802 return _resultobj;
2803 }
2804
2805 #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2))
2806 static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
2807 PyObject * _resultobj;
2808 wxWindow * _arg0;
2809 int _arg1;
2810 int _arg2;
2811 bool _arg3 = (bool ) TRUE;
2812 PyObject * _argo0 = 0;
2813 int tempbool3 = (int) TRUE;
2814 char *_kwnames[] = { "self","orientation","pos","refresh", NULL };
2815
2816 self = self;
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3))
2818 return NULL;
2819 if (_argo0) {
2820 if (_argo0 == Py_None) { _arg0 = NULL; }
2821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p.");
2823 return NULL;
2824 }
2825 }
2826 _arg3 = (bool ) tempbool3;
2827 {
2828 wxPy_BEGIN_ALLOW_THREADS;
2829 wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3);
2830
2831 wxPy_END_ALLOW_THREADS;
2832 } Py_INCREF(Py_None);
2833 _resultobj = Py_None;
2834 return _resultobj;
2835 }
2836
2837 #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2838 static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
2839 PyObject * _resultobj;
2840 wxWindow * _arg0;
2841 int _arg1;
2842 int _arg2;
2843 int _arg3;
2844 int _arg4;
2845 int _arg5 = (int ) wxSIZE_AUTO;
2846 PyObject * _argo0 = 0;
2847 char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL };
2848
2849 self = self;
2850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
2851 return NULL;
2852 if (_argo0) {
2853 if (_argo0 == Py_None) { _arg0 = NULL; }
2854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p.");
2856 return NULL;
2857 }
2858 }
2859 {
2860 wxPy_BEGIN_ALLOW_THREADS;
2861 wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
2862
2863 wxPy_END_ALLOW_THREADS;
2864 } Py_INCREF(Py_None);
2865 _resultobj = Py_None;
2866 return _resultobj;
2867 }
2868
2869 static void wxWindow_SetSize(wxWindow *self,const wxSize & size) {
2870 self->SetSize(size.x, size.y);
2871 }
2872 static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2873 PyObject * _resultobj;
2874 wxWindow * _arg0;
2875 wxSize * _arg1;
2876 PyObject * _argo0 = 0;
2877 PyObject * _argo1 = 0;
2878 char *_kwnames[] = { "self","size", NULL };
2879
2880 self = self;
2881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_argo1))
2882 return NULL;
2883 if (_argo0) {
2884 if (_argo0 == Py_None) { _arg0 = NULL; }
2885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p.");
2887 return NULL;
2888 }
2889 }
2890 if (_argo1) {
2891 if (_argo1 == Py_None) { _arg1 = NULL; }
2892 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSize_p")) {
2893 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSize. Expected _wxSize_p.");
2894 return NULL;
2895 }
2896 }
2897 {
2898 wxPy_BEGIN_ALLOW_THREADS;
2899 wxWindow_SetSize(_arg0,*_arg1);
2900
2901 wxPy_END_ALLOW_THREADS;
2902 } Py_INCREF(Py_None);
2903 _resultobj = Py_None;
2904 return _resultobj;
2905 }
2906
2907 static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) {
2908 self->SetSize(pos.x, pos.y, -1, -1);
2909 }
2910 static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2911 PyObject * _resultobj;
2912 wxWindow * _arg0;
2913 wxPoint * _arg1;
2914 PyObject * _argo0 = 0;
2915 PyObject * _argo1 = 0;
2916 char *_kwnames[] = { "self","pos", NULL };
2917
2918 self = self;
2919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_argo1))
2920 return NULL;
2921 if (_argo0) {
2922 if (_argo0 == Py_None) { _arg0 = NULL; }
2923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p.");
2925 return NULL;
2926 }
2927 }
2928 if (_argo1) {
2929 if (_argo1 == Py_None) { _arg1 = NULL; }
2930 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
2931 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetPosition. Expected _wxPoint_p.");
2932 return NULL;
2933 }
2934 }
2935 {
2936 wxPy_BEGIN_ALLOW_THREADS;
2937 wxWindow_SetPosition(_arg0,*_arg1);
2938
2939 wxPy_END_ALLOW_THREADS;
2940 } Py_INCREF(Py_None);
2941 _resultobj = Py_None;
2942 return _resultobj;
2943 }
2944
2945 #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
2946 static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
2947 PyObject * _resultobj;
2948 wxWindow * _arg0;
2949 int _arg1 = (int ) -1;
2950 int _arg2 = (int ) -1;
2951 int _arg3 = (int ) -1;
2952 int _arg4 = (int ) -1;
2953 int _arg5 = (int ) -1;
2954 int _arg6 = (int ) -1;
2955 PyObject * _argo0 = 0;
2956 char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL };
2957
2958 self = self;
2959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
2960 return NULL;
2961 if (_argo0) {
2962 if (_argo0 == Py_None) { _arg0 = NULL; }
2963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p.");
2965 return NULL;
2966 }
2967 }
2968 {
2969 wxPy_BEGIN_ALLOW_THREADS;
2970 wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
2971
2972 wxPy_END_ALLOW_THREADS;
2973 } Py_INCREF(Py_None);
2974 _resultobj = Py_None;
2975 return _resultobj;
2976 }
2977
2978 #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1))
2979 static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
2980 PyObject * _resultobj;
2981 wxWindow * _arg0;
2982 int _arg1;
2983 int _arg2;
2984 PyObject * _argo0 = 0;
2985 char *_kwnames[] = { "self","width","height", NULL };
2986
2987 self = self;
2988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
2989 return NULL;
2990 if (_argo0) {
2991 if (_argo0 == Py_None) { _arg0 = NULL; }
2992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p.");
2994 return NULL;
2995 }
2996 }
2997 {
2998 wxPy_BEGIN_ALLOW_THREADS;
2999 wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2);
3000
3001 wxPy_END_ALLOW_THREADS;
3002 } Py_INCREF(Py_None);
3003 _resultobj = Py_None;
3004 return _resultobj;
3005 }
3006
3007 #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0))
3008 static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3009 PyObject * _resultobj;
3010 wxWindow * _arg0;
3011 wxSize * _arg1;
3012 PyObject * _argo0 = 0;
3013 PyObject * _argo1 = 0;
3014 char *_kwnames[] = { "self","size", NULL };
3015
3016 self = self;
3017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_argo1))
3018 return NULL;
3019 if (_argo0) {
3020 if (_argo0 == Py_None) { _arg0 = NULL; }
3021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p.");
3023 return NULL;
3024 }
3025 }
3026 if (_argo1) {
3027 if (_argo1 == Py_None) { _arg1 = NULL; }
3028 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSize_p")) {
3029 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetClientSize. Expected _wxSize_p.");
3030 return NULL;
3031 }
3032 }
3033 {
3034 wxPy_BEGIN_ALLOW_THREADS;
3035 wxWindow_SetClientSize(_arg0,*_arg1);
3036
3037 wxPy_END_ALLOW_THREADS;
3038 } Py_INCREF(Py_None);
3039 _resultobj = Py_None;
3040 return _resultobj;
3041 }
3042
3043 #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0))
3044 static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3045 PyObject * _resultobj;
3046 wxWindow * _arg0;
3047 wxCursor * _arg1;
3048 PyObject * _argo0 = 0;
3049 PyObject * _argo1 = 0;
3050 char *_kwnames[] = { "self","cursor", NULL };
3051
3052 self = self;
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1))
3054 return NULL;
3055 if (_argo0) {
3056 if (_argo0 == Py_None) { _arg0 = NULL; }
3057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p.");
3059 return NULL;
3060 }
3061 }
3062 if (_argo1) {
3063 if (_argo1 == Py_None) { _arg1 = NULL; }
3064 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3065 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p.");
3066 return NULL;
3067 }
3068 }
3069 {
3070 wxPy_BEGIN_ALLOW_THREADS;
3071 wxWindow_SetCursor(_arg0,*_arg1);
3072
3073 wxPy_END_ALLOW_THREADS;
3074 } Py_INCREF(Py_None);
3075 _resultobj = Py_None;
3076 return _resultobj;
3077 }
3078
3079 #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
3080 static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3081 PyObject * _resultobj;
3082 wxWindow * _arg0;
3083 wxString * _arg1;
3084 PyObject * _argo0 = 0;
3085 PyObject * _obj1 = 0;
3086 char *_kwnames[] = { "self","title", NULL };
3087
3088 self = self;
3089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1))
3090 return NULL;
3091 if (_argo0) {
3092 if (_argo0 == Py_None) { _arg0 = NULL; }
3093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p.");
3095 return NULL;
3096 }
3097 }
3098 {
3099 if (!PyString_Check(_obj1)) {
3100 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3101 return NULL;
3102 }
3103 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
3104 }
3105 {
3106 wxPy_BEGIN_ALLOW_THREADS;
3107 wxWindow_SetTitle(_arg0,*_arg1);
3108
3109 wxPy_END_ALLOW_THREADS;
3110 } Py_INCREF(Py_None);
3111 _resultobj = Py_None;
3112 {
3113 if (_obj1)
3114 delete _arg1;
3115 }
3116 return _resultobj;
3117 }
3118
3119 #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
3120 static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
3121 PyObject * _resultobj;
3122 bool _result;
3123 wxWindow * _arg0;
3124 bool _arg1;
3125 PyObject * _argo0 = 0;
3126 int tempbool1;
3127 char *_kwnames[] = { "self","show", NULL };
3128
3129 self = self;
3130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1))
3131 return NULL;
3132 if (_argo0) {
3133 if (_argo0 == Py_None) { _arg0 = NULL; }
3134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p.");
3136 return NULL;
3137 }
3138 }
3139 _arg1 = (bool ) tempbool1;
3140 {
3141 wxPy_BEGIN_ALLOW_THREADS;
3142 _result = (bool )wxWindow_Show(_arg0,_arg1);
3143
3144 wxPy_END_ALLOW_THREADS;
3145 } _resultobj = Py_BuildValue("i",_result);
3146 return _resultobj;
3147 }
3148
3149 #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow())
3150 static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3151 PyObject * _resultobj;
3152 bool _result;
3153 wxWindow * _arg0;
3154 PyObject * _argo0 = 0;
3155 char *_kwnames[] = { "self", NULL };
3156
3157 self = self;
3158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0))
3159 return NULL;
3160 if (_argo0) {
3161 if (_argo0 == Py_None) { _arg0 = NULL; }
3162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p.");
3164 return NULL;
3165 }
3166 }
3167 {
3168 wxPy_BEGIN_ALLOW_THREADS;
3169 _result = (bool )wxWindow_TransferDataFromWindow(_arg0);
3170
3171 wxPy_END_ALLOW_THREADS;
3172 } _resultobj = Py_BuildValue("i",_result);
3173 return _resultobj;
3174 }
3175
3176 #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow())
3177 static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3178 PyObject * _resultobj;
3179 bool _result;
3180 wxWindow * _arg0;
3181 PyObject * _argo0 = 0;
3182 char *_kwnames[] = { "self", NULL };
3183
3184 self = self;
3185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0))
3186 return NULL;
3187 if (_argo0) {
3188 if (_argo0 == Py_None) { _arg0 = NULL; }
3189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p.");
3191 return NULL;
3192 }
3193 }
3194 {
3195 wxPy_BEGIN_ALLOW_THREADS;
3196 _result = (bool )wxWindow_TransferDataToWindow(_arg0);
3197
3198 wxPy_END_ALLOW_THREADS;
3199 } _resultobj = Py_BuildValue("i",_result);
3200 return _resultobj;
3201 }
3202
3203 #define wxWindow_Validate(_swigobj) (_swigobj->Validate())
3204 static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
3205 PyObject * _resultobj;
3206 bool _result;
3207 wxWindow * _arg0;
3208 PyObject * _argo0 = 0;
3209 char *_kwnames[] = { "self", NULL };
3210
3211 self = self;
3212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0))
3213 return NULL;
3214 if (_argo0) {
3215 if (_argo0 == Py_None) { _arg0 = NULL; }
3216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p.");
3218 return NULL;
3219 }
3220 }
3221 {
3222 wxPy_BEGIN_ALLOW_THREADS;
3223 _result = (bool )wxWindow_Validate(_arg0);
3224
3225 wxPy_END_ALLOW_THREADS;
3226 } _resultobj = Py_BuildValue("i",_result);
3227 return _resultobj;
3228 }
3229
3230 #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1))
3231 static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
3232 PyObject * _resultobj;
3233 wxWindow * _arg0;
3234 int _arg1;
3235 int _arg2;
3236 PyObject * _argo0 = 0;
3237 char *_kwnames[] = { "self","x","y", NULL };
3238
3239 self = self;
3240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2))
3241 return NULL;
3242 if (_argo0) {
3243 if (_argo0 == Py_None) { _arg0 = NULL; }
3244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p.");
3246 return NULL;
3247 }
3248 }
3249 {
3250 wxPy_BEGIN_ALLOW_THREADS;
3251 wxWindow_WarpPointer(_arg0,_arg1,_arg2);
3252
3253 wxPy_END_ALLOW_THREADS;
3254 } Py_INCREF(Py_None);
3255 _resultobj = Py_None;
3256 return _resultobj;
3257 }
3258
3259 #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
3260 static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
3261 PyObject * _resultobj;
3262 wxPoint * _result;
3263 wxWindow * _arg0;
3264 wxPoint * _arg1;
3265 PyObject * _argo0 = 0;
3266 PyObject * _argo1 = 0;
3267 char *_kwnames[] = { "self","pt", NULL };
3268 char _ptemp[128];
3269
3270 self = self;
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_argo1))
3272 return NULL;
3273 if (_argo0) {
3274 if (_argo0 == Py_None) { _arg0 = NULL; }
3275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p.");
3277 return NULL;
3278 }
3279 }
3280 if (_argo1) {
3281 if (_argo1 == Py_None) { _arg1 = NULL; }
3282 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
3283 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_ConvertDialogPointToPixels. Expected _wxPoint_p.");
3284 return NULL;
3285 }
3286 }
3287 {
3288 wxPy_BEGIN_ALLOW_THREADS;
3289 _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1));
3290
3291 wxPy_END_ALLOW_THREADS;
3292 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3293 _resultobj = Py_BuildValue("s",_ptemp);
3294 return _resultobj;
3295 }
3296
3297 #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0))
3298 static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
3299 PyObject * _resultobj;
3300 wxSize * _result;
3301 wxWindow * _arg0;
3302 wxSize * _arg1;
3303 PyObject * _argo0 = 0;
3304 PyObject * _argo1 = 0;
3305 char *_kwnames[] = { "self","sz", NULL };
3306 char _ptemp[128];
3307
3308 self = self;
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_argo1))
3310 return NULL;
3311 if (_argo0) {
3312 if (_argo0 == Py_None) { _arg0 = NULL; }
3313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p.");
3315 return NULL;
3316 }
3317 }
3318 if (_argo1) {
3319 if (_argo1 == Py_None) { _arg1 = NULL; }
3320 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSize_p")) {
3321 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_ConvertDialogSizeToPixels. Expected _wxSize_p.");
3322 return NULL;
3323 }
3324 }
3325 {
3326 wxPy_BEGIN_ALLOW_THREADS;
3327 _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1));
3328
3329 wxPy_END_ALLOW_THREADS;
3330 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3331 _resultobj = Py_BuildValue("s",_ptemp);
3332 return _resultobj;
3333 }
3334
3335 #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
3336 static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3337 PyObject * _resultobj;
3338 wxPoint * _result;
3339 wxWindow * _arg0;
3340 wxPoint * _arg1;
3341 PyObject * _argo0 = 0;
3342 PyObject * _argo1 = 0;
3343 char *_kwnames[] = { "self","pt", NULL };
3344 char _ptemp[128];
3345
3346 self = self;
3347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_argo1))
3348 return NULL;
3349 if (_argo0) {
3350 if (_argo0 == Py_None) { _arg0 = NULL; }
3351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p.");
3353 return NULL;
3354 }
3355 }
3356 if (_argo1) {
3357 if (_argo1 == Py_None) { _arg1 = NULL; }
3358 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
3359 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_ConvertPixelPointToDialog. Expected _wxPoint_p.");
3360 return NULL;
3361 }
3362 }
3363 {
3364 wxPy_BEGIN_ALLOW_THREADS;
3365 _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1));
3366
3367 wxPy_END_ALLOW_THREADS;
3368 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3369 _resultobj = Py_BuildValue("s",_ptemp);
3370 return _resultobj;
3371 }
3372
3373 #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0))
3374 static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3375 PyObject * _resultobj;
3376 wxSize * _result;
3377 wxWindow * _arg0;
3378 wxSize * _arg1;
3379 PyObject * _argo0 = 0;
3380 PyObject * _argo1 = 0;
3381 char *_kwnames[] = { "self","sz", NULL };
3382 char _ptemp[128];
3383
3384 self = self;
3385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_argo1))
3386 return NULL;
3387 if (_argo0) {
3388 if (_argo0 == Py_None) { _arg0 = NULL; }
3389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p.");
3391 return NULL;
3392 }
3393 }
3394 if (_argo1) {
3395 if (_argo1 == Py_None) { _arg1 = NULL; }
3396 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSize_p")) {
3397 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_ConvertPixelSizeToDialog. Expected _wxSize_p.");
3398 return NULL;
3399 }
3400 }
3401 {
3402 wxPy_BEGIN_ALLOW_THREADS;
3403 _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1));
3404
3405 wxPy_END_ALLOW_THREADS;
3406 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
3407 _resultobj = Py_BuildValue("s",_ptemp);
3408 return _resultobj;
3409 }
3410
3411 #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
3412 static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
3413 PyObject * _resultobj;
3414 wxWindow * _arg0;
3415 wxString * _arg1;
3416 PyObject * _argo0 = 0;
3417 PyObject * _obj1 = 0;
3418 char *_kwnames[] = { "self","tip", NULL };
3419
3420 self = self;
3421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1))
3422 return NULL;
3423 if (_argo0) {
3424 if (_argo0 == Py_None) { _arg0 = NULL; }
3425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p.");
3427 return NULL;
3428 }
3429 }
3430 {
3431 if (!PyString_Check(_obj1)) {
3432 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3433 return NULL;
3434 }
3435 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
3436 }
3437 {
3438 wxPy_BEGIN_ALLOW_THREADS;
3439 wxWindow_SetToolTipString(_arg0,*_arg1);
3440
3441 wxPy_END_ALLOW_THREADS;
3442 } Py_INCREF(Py_None);
3443 _resultobj = Py_None;
3444 {
3445 if (_obj1)
3446 delete _arg1;
3447 }
3448 return _resultobj;
3449 }
3450
3451 #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0))
3452 static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3453 PyObject * _resultobj;
3454 wxWindow * _arg0;
3455 wxToolTip * _arg1;
3456 PyObject * _argo0 = 0;
3457 PyObject * _argo1 = 0;
3458 char *_kwnames[] = { "self","tooltip", NULL };
3459
3460 self = self;
3461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1))
3462 return NULL;
3463 if (_argo0) {
3464 if (_argo0 == Py_None) { _arg0 = NULL; }
3465 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3466 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p.");
3467 return NULL;
3468 }
3469 }
3470 if (_argo1) {
3471 if (_argo1 == Py_None) { _arg1 = NULL; }
3472 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) {
3473 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p.");
3474 return NULL;
3475 }
3476 }
3477 {
3478 wxPy_BEGIN_ALLOW_THREADS;
3479 wxWindow_SetToolTip(_arg0,_arg1);
3480
3481 wxPy_END_ALLOW_THREADS;
3482 } Py_INCREF(Py_None);
3483 _resultobj = Py_None;
3484 return _resultobj;
3485 }
3486
3487 #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip())
3488 static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3489 PyObject * _resultobj;
3490 wxToolTip * _result;
3491 wxWindow * _arg0;
3492 PyObject * _argo0 = 0;
3493 char *_kwnames[] = { "self", NULL };
3494 char _ptemp[128];
3495
3496 self = self;
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
3498 return NULL;
3499 if (_argo0) {
3500 if (_argo0 == Py_None) { _arg0 = NULL; }
3501 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3502 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p.");
3503 return NULL;
3504 }
3505 }
3506 {
3507 wxPy_BEGIN_ALLOW_THREADS;
3508 _result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
3509
3510 wxPy_END_ALLOW_THREADS;
3511 } if (_result) {
3512 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p");
3513 _resultobj = Py_BuildValue("s",_ptemp);
3514 } else {
3515 Py_INCREF(Py_None);
3516 _resultobj = Py_None;
3517 }
3518 return _resultobj;
3519 }
3520
3521 static void *SwigwxPanelTowxWindow(void *ptr) {
3522 wxPanel *src;
3523 wxWindow *dest;
3524 src = (wxPanel *) ptr;
3525 dest = (wxWindow *) src;
3526 return (void *) dest;
3527 }
3528
3529 static void *SwigwxPanelTowxEvtHandler(void *ptr) {
3530 wxPanel *src;
3531 wxEvtHandler *dest;
3532 src = (wxPanel *) ptr;
3533 dest = (wxEvtHandler *) src;
3534 return (void *) dest;
3535 }
3536
3537 #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
3538 static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject * _resultobj;
3540 wxPanel * _result;
3541 wxWindow * _arg0;
3542 wxWindowID _arg1;
3543 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
3544 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
3545 long _arg4 = (long ) wxTAB_TRAVERSAL;
3546 char * _arg5 = (char *) "panel";
3547 PyObject * _argo0 = 0;
3548 PyObject * _argo2 = 0;
3549 PyObject * _argo3 = 0;
3550 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
3551 char _ptemp[128];
3552
3553 self = self;
3554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5))
3555 return NULL;
3556 if (_argo0) {
3557 if (_argo0 == Py_None) { _arg0 = NULL; }
3558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p.");
3560 return NULL;
3561 }
3562 }
3563 if (_argo2) {
3564 if (_argo2 == Py_None) { _arg2 = NULL; }
3565 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
3566 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPanel. Expected _wxPoint_p.");
3567 return NULL;
3568 }
3569 }
3570 if (_argo3) {
3571 if (_argo3 == Py_None) { _arg3 = NULL; }
3572 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) {
3573 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxPanel. Expected _wxSize_p.");
3574 return NULL;
3575 }
3576 }
3577 {
3578 wxPy_BEGIN_ALLOW_THREADS;
3579 _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
3580
3581 wxPy_END_ALLOW_THREADS;
3582 } if (_result) {
3583 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
3584 _resultobj = Py_BuildValue("s",_ptemp);
3585 } else {
3586 Py_INCREF(Py_None);
3587 _resultobj = Py_None;
3588 }
3589 return _resultobj;
3590 }
3591
3592 #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog())
3593 static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3594 PyObject * _resultobj;
3595 wxPanel * _arg0;
3596 PyObject * _argo0 = 0;
3597 char *_kwnames[] = { "self", NULL };
3598
3599 self = self;
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0))
3601 return NULL;
3602 if (_argo0) {
3603 if (_argo0 == Py_None) { _arg0 = NULL; }
3604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
3605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p.");
3606 return NULL;
3607 }
3608 }
3609 {
3610 wxPy_BEGIN_ALLOW_THREADS;
3611 wxPanel_InitDialog(_arg0);
3612
3613 wxPy_END_ALLOW_THREADS;
3614 } Py_INCREF(Py_None);
3615 _resultobj = Py_None;
3616 return _resultobj;
3617 }
3618
3619 #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem())
3620 static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3621 PyObject * _resultobj;
3622 wxButton * _result;
3623 wxPanel * _arg0;
3624 PyObject * _argo0 = 0;
3625 char *_kwnames[] = { "self", NULL };
3626 char _ptemp[128];
3627
3628 self = self;
3629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0))
3630 return NULL;
3631 if (_argo0) {
3632 if (_argo0 == Py_None) { _arg0 = NULL; }
3633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
3634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p.");
3635 return NULL;
3636 }
3637 }
3638 {
3639 wxPy_BEGIN_ALLOW_THREADS;
3640 _result = (wxButton *)wxPanel_GetDefaultItem(_arg0);
3641
3642 wxPy_END_ALLOW_THREADS;
3643 } if (_result) {
3644 SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
3645 _resultobj = Py_BuildValue("s",_ptemp);
3646 } else {
3647 Py_INCREF(Py_None);
3648 _resultobj = Py_None;
3649 }
3650 return _resultobj;
3651 }
3652
3653 #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0))
3654 static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3655 PyObject * _resultobj;
3656 wxPanel * _arg0;
3657 wxButton * _arg1;
3658 PyObject * _argo0 = 0;
3659 PyObject * _argo1 = 0;
3660 char *_kwnames[] = { "self","btn", NULL };
3661
3662 self = self;
3663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1))
3664 return NULL;
3665 if (_argo0) {
3666 if (_argo0 == Py_None) { _arg0 = NULL; }
3667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) {
3668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p.");
3669 return NULL;
3670 }
3671 }
3672 if (_argo1) {
3673 if (_argo1 == Py_None) { _arg1 = NULL; }
3674 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) {
3675 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p.");
3676 return NULL;
3677 }
3678 }
3679 {
3680 wxPy_BEGIN_ALLOW_THREADS;
3681 wxPanel_SetDefaultItem(_arg0,_arg1);
3682
3683 wxPy_END_ALLOW_THREADS;
3684 } Py_INCREF(Py_None);
3685 _resultobj = Py_None;
3686 return _resultobj;
3687 }
3688
3689 static void *SwigwxDialogTowxPanel(void *ptr) {
3690 wxDialog *src;
3691 wxPanel *dest;
3692 src = (wxDialog *) ptr;
3693 dest = (wxPanel *) src;
3694 return (void *) dest;
3695 }
3696
3697 static void *SwigwxDialogTowxWindow(void *ptr) {
3698 wxDialog *src;
3699 wxWindow *dest;
3700 src = (wxDialog *) ptr;
3701 dest = (wxWindow *) src;
3702 return (void *) dest;
3703 }
3704
3705 static void *SwigwxDialogTowxEvtHandler(void *ptr) {
3706 wxDialog *src;
3707 wxEvtHandler *dest;
3708 src = (wxDialog *) ptr;
3709 dest = (wxEvtHandler *) src;
3710 return (void *) dest;
3711 }
3712
3713 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3714 static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3715 PyObject * _resultobj;
3716 wxDialog * _result;
3717 wxWindow * _arg0;
3718 wxWindowID _arg1;
3719 wxString * _arg2;
3720 wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition;
3721 wxSize * _arg4 = (wxSize *) &wxPyDefaultSize;
3722 long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE;
3723 char * _arg6 = (char *) "dialogBox";
3724 PyObject * _argo0 = 0;
3725 PyObject * _obj2 = 0;
3726 PyObject * _argo3 = 0;
3727 PyObject * _argo4 = 0;
3728 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
3729 char _ptemp[128];
3730
3731 self = self;
3732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_argo4,&_arg5,&_arg6))
3733 return NULL;
3734 if (_argo0) {
3735 if (_argo0 == Py_None) { _arg0 = NULL; }
3736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
3738 return NULL;
3739 }
3740 }
3741 {
3742 if (!PyString_Check(_obj2)) {
3743 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3744 return NULL;
3745 }
3746 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
3747 }
3748 if (_argo3) {
3749 if (_argo3 == Py_None) { _arg3 = NULL; }
3750 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPoint_p")) {
3751 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxDialog. Expected _wxPoint_p.");
3752 return NULL;
3753 }
3754 }
3755 if (_argo4) {
3756 if (_argo4 == Py_None) { _arg4 = NULL; }
3757 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxSize_p")) {
3758 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of new_wxDialog. Expected _wxSize_p.");
3759 return NULL;
3760 }
3761 }
3762 {
3763 wxPy_BEGIN_ALLOW_THREADS;
3764 _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
3765
3766 wxPy_END_ALLOW_THREADS;
3767 } if (_result) {
3768 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
3769 _resultobj = Py_BuildValue("s",_ptemp);
3770 } else {
3771 Py_INCREF(Py_None);
3772 _resultobj = Py_None;
3773 }
3774 {
3775 if (_obj2)
3776 delete _arg2;
3777 }
3778 return _resultobj;
3779 }
3780
3781 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
3782 static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
3783 PyObject * _resultobj;
3784 wxDialog * _arg0;
3785 int _arg1 = (int ) wxBOTH;
3786 PyObject * _argo0 = 0;
3787 char *_kwnames[] = { "self","direction", NULL };
3788
3789 self = self;
3790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1))
3791 return NULL;
3792 if (_argo0) {
3793 if (_argo0 == Py_None) { _arg0 = NULL; }
3794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
3795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
3796 return NULL;
3797 }
3798 }
3799 {
3800 wxPy_BEGIN_ALLOW_THREADS;
3801 wxDialog_Centre(_arg0,_arg1);
3802
3803 wxPy_END_ALLOW_THREADS;
3804 } Py_INCREF(Py_None);
3805 _resultobj = Py_None;
3806 return _resultobj;
3807 }
3808
3809 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
3810 static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) {
3811 PyObject * _resultobj;
3812 wxDialog * _arg0;
3813 int _arg1;
3814 PyObject * _argo0 = 0;
3815 char *_kwnames[] = { "self","retCode", NULL };
3816
3817 self = self;
3818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1))
3819 return NULL;
3820 if (_argo0) {
3821 if (_argo0 == Py_None) { _arg0 = NULL; }
3822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
3823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
3824 return NULL;
3825 }
3826 }
3827 {
3828 wxPy_BEGIN_ALLOW_THREADS;
3829 wxDialog_EndModal(_arg0,_arg1);
3830
3831 wxPy_END_ALLOW_THREADS;
3832 } Py_INCREF(Py_None);
3833 _resultobj = Py_None;
3834 return _resultobj;
3835 }
3836
3837 #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle())
3838 static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3839 PyObject * _resultobj;
3840 wxString * _result;
3841 wxDialog * _arg0;
3842 PyObject * _argo0 = 0;
3843 char *_kwnames[] = { "self", NULL };
3844
3845 self = self;
3846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0))
3847 return NULL;
3848 if (_argo0) {
3849 if (_argo0 == Py_None) { _arg0 = NULL; }
3850 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
3851 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p.");
3852 return NULL;
3853 }
3854 }
3855 {
3856 wxPy_BEGIN_ALLOW_THREADS;
3857 _result = new wxString (wxDialog_GetTitle(_arg0));
3858
3859 wxPy_END_ALLOW_THREADS;
3860 }{
3861 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
3862 }
3863 {
3864 delete _result;
3865 }
3866 return _resultobj;
3867 }
3868
3869 #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
3870 static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) {
3871 PyObject * _resultobj;
3872 wxDialog * _arg0;
3873 bool _arg1;
3874 PyObject * _argo0 = 0;
3875 int tempbool1;
3876 char *_kwnames[] = { "self","iconize", NULL };
3877
3878 self = self;
3879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1))
3880 return NULL;
3881 if (_argo0) {
3882 if (_argo0 == Py_None) { _arg0 = NULL; }
3883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
3884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p.");
3885 return NULL;
3886 }
3887 }
3888 _arg1 = (bool ) tempbool1;
3889 {
3890 wxPy_BEGIN_ALLOW_THREADS;
3891 wxDialog_Iconize(_arg0,_arg1);
3892
3893 wxPy_END_ALLOW_THREADS;
3894 } Py_INCREF(Py_None);
3895 _resultobj = Py_None;
3896 return _resultobj;
3897 }
3898
3899 #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized())
3900 static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) {
3901 PyObject * _resultobj;
3902 bool _result;
3903 wxDialog * _arg0;
3904 PyObject * _argo0 = 0;
3905 char *_kwnames[] = { "self", NULL };
3906
3907 self = self;
3908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0))
3909 return NULL;
3910 if (_argo0) {
3911 if (_argo0 == Py_None) { _arg0 = NULL; }
3912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
3913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p.");
3914 return NULL;
3915 }
3916 }
3917 {
3918 wxPy_BEGIN_ALLOW_THREADS;
3919 _result = (bool )wxDialog_IsIconized(_arg0);
3920
3921 wxPy_END_ALLOW_THREADS;
3922 } _resultobj = Py_BuildValue("i",_result);
3923 return _resultobj;
3924 }
3925
3926 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
3927 static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
3928 PyObject * _resultobj;
3929 wxDialog * _arg0;
3930 bool _arg1;
3931 PyObject * _argo0 = 0;
3932 int tempbool1;
3933 char *_kwnames[] = { "self","flag", NULL };
3934
3935 self = self;
3936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1))
3937 return NULL;
3938 if (_argo0) {
3939 if (_argo0 == Py_None) { _arg0 = NULL; }
3940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
3941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
3942 return NULL;
3943 }
3944 }
3945 _arg1 = (bool ) tempbool1;
3946 {
3947 wxPy_BEGIN_ALLOW_THREADS;
3948 wxDialog_SetModal(_arg0,_arg1);
3949
3950 wxPy_END_ALLOW_THREADS;
3951 } Py_INCREF(Py_None);
3952 _resultobj = Py_None;
3953 return _resultobj;
3954 }
3955
3956 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
3957 static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
3958 PyObject * _resultobj;
3959 bool _result;
3960 wxDialog * _arg0;
3961 PyObject * _argo0 = 0;
3962 char *_kwnames[] = { "self", NULL };
3963
3964 self = self;
3965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0))
3966 return NULL;
3967 if (_argo0) {
3968 if (_argo0 == Py_None) { _arg0 = NULL; }
3969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
3970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
3971 return NULL;
3972 }
3973 }
3974 {
3975 wxPy_BEGIN_ALLOW_THREADS;
3976 _result = (bool )wxDialog_IsModal(_arg0);
3977
3978 wxPy_END_ALLOW_THREADS;
3979 } _resultobj = Py_BuildValue("i",_result);
3980 return _resultobj;
3981 }
3982
3983 #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
3984 static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3985 PyObject * _resultobj;
3986 wxDialog * _arg0;
3987 wxString * _arg1;
3988 PyObject * _argo0 = 0;
3989 PyObject * _obj1 = 0;
3990 char *_kwnames[] = { "self","title", NULL };
3991
3992 self = self;
3993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1))
3994 return NULL;
3995 if (_argo0) {
3996 if (_argo0 == Py_None) { _arg0 = NULL; }
3997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
3998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p.");
3999 return NULL;
4000 }
4001 }
4002 {
4003 if (!PyString_Check(_obj1)) {
4004 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4005 return NULL;
4006 }
4007 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4008 }
4009 {
4010 wxPy_BEGIN_ALLOW_THREADS;
4011 wxDialog_SetTitle(_arg0,*_arg1);
4012
4013 wxPy_END_ALLOW_THREADS;
4014 } Py_INCREF(Py_None);
4015 _resultobj = Py_None;
4016 {
4017 if (_obj1)
4018 delete _arg1;
4019 }
4020 return _resultobj;
4021 }
4022
4023 #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
4024 static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4025 PyObject * _resultobj;
4026 bool _result;
4027 wxDialog * _arg0;
4028 bool _arg1;
4029 PyObject * _argo0 = 0;
4030 int tempbool1;
4031 char *_kwnames[] = { "self","show", NULL };
4032
4033 self = self;
4034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1))
4035 return NULL;
4036 if (_argo0) {
4037 if (_argo0 == Py_None) { _arg0 = NULL; }
4038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p.");
4040 return NULL;
4041 }
4042 }
4043 _arg1 = (bool ) tempbool1;
4044 {
4045 wxPy_BEGIN_ALLOW_THREADS;
4046 _result = (bool )wxDialog_Show(_arg0,_arg1);
4047
4048 wxPy_END_ALLOW_THREADS;
4049 } _resultobj = Py_BuildValue("i",_result);
4050 return _resultobj;
4051 }
4052
4053 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
4054 static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4055 PyObject * _resultobj;
4056 int _result;
4057 wxDialog * _arg0;
4058 PyObject * _argo0 = 0;
4059 char *_kwnames[] = { "self", NULL };
4060
4061 self = self;
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0))
4063 return NULL;
4064 if (_argo0) {
4065 if (_argo0 == Py_None) { _arg0 = NULL; }
4066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
4068 return NULL;
4069 }
4070 }
4071 {
4072 wxPy_BEGIN_ALLOW_THREADS;
4073 _result = (int )wxDialog_ShowModal(_arg0);
4074
4075 wxPy_END_ALLOW_THREADS;
4076 } _resultobj = Py_BuildValue("i",_result);
4077 return _resultobj;
4078 }
4079
4080 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
4081 static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
4082 PyObject * _resultobj;
4083 int _result;
4084 wxDialog * _arg0;
4085 PyObject * _argo0 = 0;
4086 char *_kwnames[] = { "self", NULL };
4087
4088 self = self;
4089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0))
4090 return NULL;
4091 if (_argo0) {
4092 if (_argo0 == Py_None) { _arg0 = NULL; }
4093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
4095 return NULL;
4096 }
4097 }
4098 {
4099 wxPy_BEGIN_ALLOW_THREADS;
4100 _result = (int )wxDialog_GetReturnCode(_arg0);
4101
4102 wxPy_END_ALLOW_THREADS;
4103 } _resultobj = Py_BuildValue("i",_result);
4104 return _resultobj;
4105 }
4106
4107 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
4108 static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
4109 PyObject * _resultobj;
4110 wxDialog * _arg0;
4111 int _arg1;
4112 PyObject * _argo0 = 0;
4113 char *_kwnames[] = { "self","retCode", NULL };
4114
4115 self = self;
4116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1))
4117 return NULL;
4118 if (_argo0) {
4119 if (_argo0 == Py_None) { _arg0 = NULL; }
4120 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
4121 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
4122 return NULL;
4123 }
4124 }
4125 {
4126 wxPy_BEGIN_ALLOW_THREADS;
4127 wxDialog_SetReturnCode(_arg0,_arg1);
4128
4129 wxPy_END_ALLOW_THREADS;
4130 } Py_INCREF(Py_None);
4131 _resultobj = Py_None;
4132 return _resultobj;
4133 }
4134
4135 static void *SwigwxScrolledWindowTowxPanel(void *ptr) {
4136 wxScrolledWindow *src;
4137 wxPanel *dest;
4138 src = (wxScrolledWindow *) ptr;
4139 dest = (wxPanel *) src;
4140 return (void *) dest;
4141 }
4142
4143 static void *SwigwxScrolledWindowTowxWindow(void *ptr) {
4144 wxScrolledWindow *src;
4145 wxWindow *dest;
4146 src = (wxScrolledWindow *) ptr;
4147 dest = (wxWindow *) src;
4148 return (void *) dest;
4149 }
4150
4151 static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) {
4152 wxScrolledWindow *src;
4153 wxEvtHandler *dest;
4154 src = (wxScrolledWindow *) ptr;
4155 dest = (wxEvtHandler *) src;
4156 return (void *) dest;
4157 }
4158
4159 #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4160 static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4161 PyObject * _resultobj;
4162 wxScrolledWindow * _result;
4163 wxWindow * _arg0;
4164 wxWindowID _arg1 = (wxWindowID ) -1;
4165 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
4166 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
4167 long _arg4 = (long ) wxHSCROLL|wxVSCROLL;
4168 char * _arg5 = (char *) "scrolledWindow";
4169 PyObject * _argo0 = 0;
4170 PyObject * _argo2 = 0;
4171 PyObject * _argo3 = 0;
4172 char *_kwnames[] = { "parent","id","pos","size","style","name", NULL };
4173 char _ptemp[128];
4174
4175 self = self;
4176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_arg5))
4177 return NULL;
4178 if (_argo0) {
4179 if (_argo0 == Py_None) { _arg0 = NULL; }
4180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
4181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p.");
4182 return NULL;
4183 }
4184 }
4185 if (_argo2) {
4186 if (_argo2 == Py_None) { _arg2 = NULL; }
4187 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
4188 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxScrolledWindow. Expected _wxPoint_p.");
4189 return NULL;
4190 }
4191 }
4192 if (_argo3) {
4193 if (_argo3 == Py_None) { _arg3 = NULL; }
4194 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) {
4195 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxScrolledWindow. Expected _wxSize_p.");
4196 return NULL;
4197 }
4198 }
4199 {
4200 wxPy_BEGIN_ALLOW_THREADS;
4201 _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
4202
4203 wxPy_END_ALLOW_THREADS;
4204 } if (_result) {
4205 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p");
4206 _resultobj = Py_BuildValue("s",_ptemp);
4207 } else {
4208 Py_INCREF(Py_None);
4209 _resultobj = Py_None;
4210 }
4211 return _resultobj;
4212 }
4213
4214 #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1))
4215 static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) {
4216 PyObject * _resultobj;
4217 wxScrolledWindow * _arg0;
4218 bool _arg1;
4219 bool _arg2;
4220 PyObject * _argo0 = 0;
4221 int tempbool1;
4222 int tempbool2;
4223 char *_kwnames[] = { "self","xScrolling","yScrolling", NULL };
4224
4225 self = self;
4226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2))
4227 return NULL;
4228 if (_argo0) {
4229 if (_argo0 == Py_None) { _arg0 = NULL; }
4230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
4231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p.");
4232 return NULL;
4233 }
4234 }
4235 _arg1 = (bool ) tempbool1;
4236 _arg2 = (bool ) tempbool2;
4237 {
4238 wxPy_BEGIN_ALLOW_THREADS;
4239 wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2);
4240
4241 wxPy_END_ALLOW_THREADS;
4242 } Py_INCREF(Py_None);
4243 _resultobj = Py_None;
4244 return _resultobj;
4245 }
4246
4247 #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1))
4248 static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) {
4249 PyObject * _resultobj;
4250 wxScrolledWindow * _arg0;
4251 int * _arg1;
4252 int temp;
4253 int * _arg2;
4254 int temp0;
4255 PyObject * _argo0 = 0;
4256 char *_kwnames[] = { "self", NULL };
4257
4258 self = self;
4259 {
4260 _arg1 = &temp;
4261 }
4262 {
4263 _arg2 = &temp0;
4264 }
4265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0))
4266 return NULL;
4267 if (_argo0) {
4268 if (_argo0 == Py_None) { _arg0 = NULL; }
4269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
4270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p.");
4271 return NULL;
4272 }
4273 }
4274 {
4275 wxPy_BEGIN_ALLOW_THREADS;
4276 wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2);
4277
4278 wxPy_END_ALLOW_THREADS;
4279 } Py_INCREF(Py_None);
4280 _resultobj = Py_None;
4281 {
4282 PyObject *o;
4283 o = PyInt_FromLong((long) (*_arg1));
4284 _resultobj = t_output_helper(_resultobj, o);
4285 }
4286 {
4287 PyObject *o;
4288 o = PyInt_FromLong((long) (*_arg2));
4289 _resultobj = t_output_helper(_resultobj, o);
4290 }
4291 return _resultobj;
4292 }
4293
4294 #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1))
4295 static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4296 PyObject * _resultobj;
4297 wxScrolledWindow * _arg0;
4298 int * _arg1;
4299 int temp;
4300 int * _arg2;
4301 int temp0;
4302 PyObject * _argo0 = 0;
4303 char *_kwnames[] = { "self", NULL };
4304
4305 self = self;
4306 {
4307 _arg1 = &temp;
4308 }
4309 {
4310 _arg2 = &temp0;
4311 }
4312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0))
4313 return NULL;
4314 if (_argo0) {
4315 if (_argo0 == Py_None) { _arg0 = NULL; }
4316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
4317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p.");
4318 return NULL;
4319 }
4320 }
4321 {
4322 wxPy_BEGIN_ALLOW_THREADS;
4323 wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2);
4324
4325 wxPy_END_ALLOW_THREADS;
4326 } Py_INCREF(Py_None);
4327 _resultobj = Py_None;
4328 {
4329 PyObject *o;
4330 o = PyInt_FromLong((long) (*_arg1));
4331 _resultobj = t_output_helper(_resultobj, o);
4332 }
4333 {
4334 PyObject *o;
4335 o = PyInt_FromLong((long) (*_arg2));
4336 _resultobj = t_output_helper(_resultobj, o);
4337 }
4338 return _resultobj;
4339 }
4340
4341 #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained())
4342 static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
4343 PyObject * _resultobj;
4344 bool _result;
4345 wxScrolledWindow * _arg0;
4346 PyObject * _argo0 = 0;
4347 char *_kwnames[] = { "self", NULL };
4348
4349 self = self;
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0))
4351 return NULL;
4352 if (_argo0) {
4353 if (_argo0 == Py_None) { _arg0 = NULL; }
4354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
4355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p.");
4356 return NULL;
4357 }
4358 }
4359 {
4360 wxPy_BEGIN_ALLOW_THREADS;
4361 _result = (bool )wxScrolledWindow_IsRetained(_arg0);
4362
4363 wxPy_END_ALLOW_THREADS;
4364 } _resultobj = Py_BuildValue("i",_result);
4365 return _resultobj;
4366 }
4367
4368 #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0))
4369 static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
4370 PyObject * _resultobj;
4371 wxScrolledWindow * _arg0;
4372 wxDC * _arg1;
4373 PyObject * _argo0 = 0;
4374 PyObject * _argo1 = 0;
4375 char *_kwnames[] = { "self","dc", NULL };
4376
4377 self = self;
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1))
4379 return NULL;
4380 if (_argo0) {
4381 if (_argo0 == Py_None) { _arg0 = NULL; }
4382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
4383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p.");
4384 return NULL;
4385 }
4386 }
4387 if (_argo1) {
4388 if (_argo1 == Py_None) { _arg1 = NULL; }
4389 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
4390 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p.");
4391 return NULL;
4392 }
4393 }
4394 {
4395 wxPy_BEGIN_ALLOW_THREADS;
4396 wxScrolledWindow_PrepareDC(_arg0,*_arg1);
4397
4398 wxPy_END_ALLOW_THREADS;
4399 } Py_INCREF(Py_None);
4400 _resultobj = Py_None;
4401 return _resultobj;
4402 }
4403
4404 #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1))
4405 static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) {
4406 PyObject * _resultobj;
4407 wxScrolledWindow * _arg0;
4408 int _arg1;
4409 int _arg2;
4410 PyObject * _argo0 = 0;
4411 char *_kwnames[] = { "self","x","y", NULL };
4412
4413 self = self;
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2))
4415 return NULL;
4416 if (_argo0) {
4417 if (_argo0 == Py_None) { _arg0 = NULL; }
4418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
4419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p.");
4420 return NULL;
4421 }
4422 }
4423 {
4424 wxPy_BEGIN_ALLOW_THREADS;
4425 wxScrolledWindow_Scroll(_arg0,_arg1,_arg2);
4426
4427 wxPy_END_ALLOW_THREADS;
4428 } Py_INCREF(Py_None);
4429 _resultobj = Py_None;
4430 return _resultobj;
4431 }
4432
4433 #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4434 static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
4435 PyObject * _resultobj;
4436 wxScrolledWindow * _arg0;
4437 int _arg1;
4438 int _arg2;
4439 int _arg3;
4440 int _arg4;
4441 int _arg5 = (int ) 0;
4442 int _arg6 = (int ) 0;
4443 PyObject * _argo0 = 0;
4444 char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos", NULL };
4445
4446 self = self;
4447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|ii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
4448 return NULL;
4449 if (_argo0) {
4450 if (_argo0 == Py_None) { _arg0 = NULL; }
4451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
4452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p.");
4453 return NULL;
4454 }
4455 }
4456 {
4457 wxPy_BEGIN_ALLOW_THREADS;
4458 wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
4459
4460 wxPy_END_ALLOW_THREADS;
4461 } Py_INCREF(Py_None);
4462 _resultobj = Py_None;
4463 return _resultobj;
4464 }
4465
4466 #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1))
4467 static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) {
4468 PyObject * _resultobj;
4469 wxScrolledWindow * _arg0;
4470 int * _arg1;
4471 int temp;
4472 int * _arg2;
4473 int temp0;
4474 PyObject * _argo0 = 0;
4475 char *_kwnames[] = { "self", NULL };
4476
4477 self = self;
4478 {
4479 _arg1 = &temp;
4480 }
4481 {
4482 _arg2 = &temp0;
4483 }
4484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0))
4485 return NULL;
4486 if (_argo0) {
4487 if (_argo0 == Py_None) { _arg0 = NULL; }
4488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) {
4489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p.");
4490 return NULL;
4491 }
4492 }
4493 {
4494 wxPy_BEGIN_ALLOW_THREADS;
4495 wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2);
4496
4497 wxPy_END_ALLOW_THREADS;
4498 } Py_INCREF(Py_None);
4499 _resultobj = Py_None;
4500 {
4501 PyObject *o;
4502 o = PyInt_FromLong((long) (*_arg1));
4503 _resultobj = t_output_helper(_resultobj, o);
4504 }
4505 {
4506 PyObject *o;
4507 o = PyInt_FromLong((long) (*_arg2));
4508 _resultobj = t_output_helper(_resultobj, o);
4509 }
4510 return _resultobj;
4511 }
4512
4513 static void *SwigwxMenuTowxEvtHandler(void *ptr) {
4514 wxMenu *src;
4515 wxEvtHandler *dest;
4516 src = (wxMenu *) ptr;
4517 dest = (wxEvtHandler *) src;
4518 return (void *) dest;
4519 }
4520
4521 #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
4522 static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject * _resultobj;
4524 wxMenu * _result;
4525 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
4526 long _arg1 = (long ) 0;
4527 PyObject * _obj0 = 0;
4528 char *_kwnames[] = { "title","style", NULL };
4529 char _ptemp[128];
4530
4531 self = self;
4532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1))
4533 return NULL;
4534 if (_obj0)
4535 {
4536 if (!PyString_Check(_obj0)) {
4537 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4538 return NULL;
4539 }
4540 _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0));
4541 }
4542 {
4543 wxPy_BEGIN_ALLOW_THREADS;
4544 _result = (wxMenu *)new_wxMenu(*_arg0,_arg1);
4545
4546 wxPy_END_ALLOW_THREADS;
4547 } if (_result) {
4548 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
4549 _resultobj = Py_BuildValue("s",_ptemp);
4550 } else {
4551 Py_INCREF(Py_None);
4552 _resultobj = Py_None;
4553 }
4554 {
4555 if (_obj0)
4556 delete _arg0;
4557 }
4558 return _resultobj;
4559 }
4560
4561 #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4562 static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
4563 PyObject * _resultobj;
4564 wxMenu * _arg0;
4565 int _arg1;
4566 wxString * _arg2;
4567 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
4568 int _arg4 = (int ) FALSE;
4569 PyObject * _argo0 = 0;
4570 PyObject * _obj2 = 0;
4571 PyObject * _obj3 = 0;
4572 char *_kwnames[] = { "self","id","item","helpString","checkable", NULL };
4573
4574 self = self;
4575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
4576 return NULL;
4577 if (_argo0) {
4578 if (_argo0 == Py_None) { _arg0 = NULL; }
4579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p.");
4581 return NULL;
4582 }
4583 }
4584 {
4585 if (!PyString_Check(_obj2)) {
4586 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4587 return NULL;
4588 }
4589 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
4590 }
4591 if (_obj3)
4592 {
4593 if (!PyString_Check(_obj3)) {
4594 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4595 return NULL;
4596 }
4597 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
4598 }
4599 {
4600 wxPy_BEGIN_ALLOW_THREADS;
4601 wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4);
4602
4603 wxPy_END_ALLOW_THREADS;
4604 } Py_INCREF(Py_None);
4605 _resultobj = Py_None;
4606 {
4607 if (_obj2)
4608 delete _arg2;
4609 }
4610 {
4611 if (_obj3)
4612 delete _arg3;
4613 }
4614 return _resultobj;
4615 }
4616
4617 #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4618 static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
4619 PyObject * _resultobj;
4620 wxMenu * _arg0;
4621 int _arg1;
4622 wxString * _arg2;
4623 wxMenu * _arg3;
4624 wxString * _arg4 = (wxString *) &wxPyEmptyStr;
4625 PyObject * _argo0 = 0;
4626 PyObject * _obj2 = 0;
4627 PyObject * _argo3 = 0;
4628 PyObject * _obj4 = 0;
4629 char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL };
4630
4631 self = self;
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4))
4633 return NULL;
4634 if (_argo0) {
4635 if (_argo0 == Py_None) { _arg0 = NULL; }
4636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p.");
4638 return NULL;
4639 }
4640 }
4641 {
4642 if (!PyString_Check(_obj2)) {
4643 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4644 return NULL;
4645 }
4646 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
4647 }
4648 if (_argo3) {
4649 if (_argo3 == Py_None) { _arg3 = NULL; }
4650 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) {
4651 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p.");
4652 return NULL;
4653 }
4654 }
4655 if (_obj4)
4656 {
4657 if (!PyString_Check(_obj4)) {
4658 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4659 return NULL;
4660 }
4661 _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4));
4662 }
4663 {
4664 wxPy_BEGIN_ALLOW_THREADS;
4665 wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4);
4666
4667 wxPy_END_ALLOW_THREADS;
4668 } Py_INCREF(Py_None);
4669 _resultobj = Py_None;
4670 {
4671 if (_obj2)
4672 delete _arg2;
4673 }
4674 {
4675 if (_obj4)
4676 delete _arg4;
4677 }
4678 return _resultobj;
4679 }
4680
4681 #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0))
4682 static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4683 PyObject * _resultobj;
4684 wxMenu * _arg0;
4685 wxMenuItem * _arg1;
4686 PyObject * _argo0 = 0;
4687 PyObject * _argo1 = 0;
4688 char *_kwnames[] = { "self","item", NULL };
4689
4690 self = self;
4691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1))
4692 return NULL;
4693 if (_argo0) {
4694 if (_argo0 == Py_None) { _arg0 = NULL; }
4695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p.");
4697 return NULL;
4698 }
4699 }
4700 if (_argo1) {
4701 if (_argo1 == Py_None) { _arg1 = NULL; }
4702 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) {
4703 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p.");
4704 return NULL;
4705 }
4706 }
4707 {
4708 wxPy_BEGIN_ALLOW_THREADS;
4709 wxMenu_AppendItem(_arg0,_arg1);
4710
4711 wxPy_END_ALLOW_THREADS;
4712 } Py_INCREF(Py_None);
4713 _resultobj = Py_None;
4714 return _resultobj;
4715 }
4716
4717 #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator())
4718 static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
4719 PyObject * _resultobj;
4720 wxMenu * _arg0;
4721 PyObject * _argo0 = 0;
4722 char *_kwnames[] = { "self", NULL };
4723
4724 self = self;
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0))
4726 return NULL;
4727 if (_argo0) {
4728 if (_argo0 == Py_None) { _arg0 = NULL; }
4729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p.");
4731 return NULL;
4732 }
4733 }
4734 {
4735 wxPy_BEGIN_ALLOW_THREADS;
4736 wxMenu_AppendSeparator(_arg0);
4737
4738 wxPy_END_ALLOW_THREADS;
4739 } Py_INCREF(Py_None);
4740 _resultobj = Py_None;
4741 return _resultobj;
4742 }
4743
4744 #define wxMenu_Break(_swigobj) (_swigobj->Break())
4745 static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
4746 PyObject * _resultobj;
4747 wxMenu * _arg0;
4748 PyObject * _argo0 = 0;
4749 char *_kwnames[] = { "self", NULL };
4750
4751 self = self;
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0))
4753 return NULL;
4754 if (_argo0) {
4755 if (_argo0 == Py_None) { _arg0 = NULL; }
4756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p.");
4758 return NULL;
4759 }
4760 }
4761 {
4762 wxPy_BEGIN_ALLOW_THREADS;
4763 wxMenu_Break(_arg0);
4764
4765 wxPy_END_ALLOW_THREADS;
4766 } Py_INCREF(Py_None);
4767 _resultobj = Py_None;
4768 return _resultobj;
4769 }
4770
4771 #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
4772 static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject * _resultobj;
4774 wxMenu * _arg0;
4775 int _arg1;
4776 bool _arg2;
4777 PyObject * _argo0 = 0;
4778 int tempbool2;
4779 char *_kwnames[] = { "self","id","flag", NULL };
4780
4781 self = self;
4782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
4783 return NULL;
4784 if (_argo0) {
4785 if (_argo0 == Py_None) { _arg0 = NULL; }
4786 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4787 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p.");
4788 return NULL;
4789 }
4790 }
4791 _arg2 = (bool ) tempbool2;
4792 {
4793 wxPy_BEGIN_ALLOW_THREADS;
4794 wxMenu_Check(_arg0,_arg1,_arg2);
4795
4796 wxPy_END_ALLOW_THREADS;
4797 } Py_INCREF(Py_None);
4798 _resultobj = Py_None;
4799 return _resultobj;
4800 }
4801
4802 #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
4803 static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4804 PyObject * _resultobj;
4805 wxMenu * _arg0;
4806 int _arg1;
4807 bool _arg2;
4808 PyObject * _argo0 = 0;
4809 int tempbool2;
4810 char *_kwnames[] = { "self","id","enable", NULL };
4811
4812 self = self;
4813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
4814 return NULL;
4815 if (_argo0) {
4816 if (_argo0 == Py_None) { _arg0 = NULL; }
4817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p.");
4819 return NULL;
4820 }
4821 }
4822 _arg2 = (bool ) tempbool2;
4823 {
4824 wxPy_BEGIN_ALLOW_THREADS;
4825 wxMenu_Enable(_arg0,_arg1,_arg2);
4826
4827 wxPy_END_ALLOW_THREADS;
4828 } Py_INCREF(Py_None);
4829 _resultobj = Py_None;
4830 return _resultobj;
4831 }
4832
4833 #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0))
4834 static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4835 PyObject * _resultobj;
4836 int _result;
4837 wxMenu * _arg0;
4838 wxString * _arg1;
4839 PyObject * _argo0 = 0;
4840 PyObject * _obj1 = 0;
4841 char *_kwnames[] = { "self","itemString", NULL };
4842
4843 self = self;
4844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1))
4845 return NULL;
4846 if (_argo0) {
4847 if (_argo0 == Py_None) { _arg0 = NULL; }
4848 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4849 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p.");
4850 return NULL;
4851 }
4852 }
4853 {
4854 if (!PyString_Check(_obj1)) {
4855 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4856 return NULL;
4857 }
4858 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4859 }
4860 {
4861 wxPy_BEGIN_ALLOW_THREADS;
4862 _result = (int )wxMenu_FindItem(_arg0,*_arg1);
4863
4864 wxPy_END_ALLOW_THREADS;
4865 } _resultobj = Py_BuildValue("i",_result);
4866 {
4867 if (_obj1)
4868 delete _arg1;
4869 }
4870 return _resultobj;
4871 }
4872
4873 #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle())
4874 static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4875 PyObject * _resultobj;
4876 wxString * _result;
4877 wxMenu * _arg0;
4878 PyObject * _argo0 = 0;
4879 char *_kwnames[] = { "self", NULL };
4880
4881 self = self;
4882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0))
4883 return NULL;
4884 if (_argo0) {
4885 if (_argo0 == Py_None) { _arg0 = NULL; }
4886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p.");
4888 return NULL;
4889 }
4890 }
4891 {
4892 wxPy_BEGIN_ALLOW_THREADS;
4893 _result = new wxString (wxMenu_GetTitle(_arg0));
4894
4895 wxPy_END_ALLOW_THREADS;
4896 }{
4897 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
4898 }
4899 {
4900 delete _result;
4901 }
4902 return _resultobj;
4903 }
4904
4905 #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
4906 static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
4907 PyObject * _resultobj;
4908 wxMenu * _arg0;
4909 wxString * _arg1;
4910 PyObject * _argo0 = 0;
4911 PyObject * _obj1 = 0;
4912 char *_kwnames[] = { "self","title", NULL };
4913
4914 self = self;
4915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1))
4916 return NULL;
4917 if (_argo0) {
4918 if (_argo0 == Py_None) { _arg0 = NULL; }
4919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p.");
4921 return NULL;
4922 }
4923 }
4924 {
4925 if (!PyString_Check(_obj1)) {
4926 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4927 return NULL;
4928 }
4929 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4930 }
4931 {
4932 wxPy_BEGIN_ALLOW_THREADS;
4933 wxMenu_SetTitle(_arg0,*_arg1);
4934
4935 wxPy_END_ALLOW_THREADS;
4936 } Py_INCREF(Py_None);
4937 _resultobj = Py_None;
4938 {
4939 if (_obj1)
4940 delete _arg1;
4941 }
4942 return _resultobj;
4943 }
4944
4945 #define wxMenu_FindItemForId(_swigobj,_swigarg0) (_swigobj->FindItemForId(_swigarg0))
4946 static PyObject *_wrap_wxMenu_FindItemForId(PyObject *self, PyObject *args, PyObject *kwargs) {
4947 PyObject * _resultobj;
4948 wxMenuItem * _result;
4949 wxMenu * _arg0;
4950 int _arg1;
4951 PyObject * _argo0 = 0;
4952 char *_kwnames[] = { "self","id", NULL };
4953 char _ptemp[128];
4954
4955 self = self;
4956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemForId",_kwnames,&_argo0,&_arg1))
4957 return NULL;
4958 if (_argo0) {
4959 if (_argo0 == Py_None) { _arg0 = NULL; }
4960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemForId. Expected _wxMenu_p.");
4962 return NULL;
4963 }
4964 }
4965 {
4966 wxPy_BEGIN_ALLOW_THREADS;
4967 _result = (wxMenuItem *)wxMenu_FindItemForId(_arg0,_arg1);
4968
4969 wxPy_END_ALLOW_THREADS;
4970 } if (_result) {
4971 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
4972 _resultobj = Py_BuildValue("s",_ptemp);
4973 } else {
4974 Py_INCREF(Py_None);
4975 _resultobj = Py_None;
4976 }
4977 return _resultobj;
4978 }
4979
4980 #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
4981 static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
4982 PyObject * _resultobj;
4983 wxString * _result;
4984 wxMenu * _arg0;
4985 int _arg1;
4986 PyObject * _argo0 = 0;
4987 char *_kwnames[] = { "self","id", NULL };
4988
4989 self = self;
4990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1))
4991 return NULL;
4992 if (_argo0) {
4993 if (_argo0 == Py_None) { _arg0 = NULL; }
4994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
4995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p.");
4996 return NULL;
4997 }
4998 }
4999 {
5000 wxPy_BEGIN_ALLOW_THREADS;
5001 _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1));
5002
5003 wxPy_END_ALLOW_THREADS;
5004 }{
5005 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
5006 }
5007 {
5008 delete _result;
5009 }
5010 return _resultobj;
5011 }
5012
5013 #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
5014 static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5015 PyObject * _resultobj;
5016 wxString * _result;
5017 wxMenu * _arg0;
5018 int _arg1;
5019 PyObject * _argo0 = 0;
5020 char *_kwnames[] = { "self","id", NULL };
5021
5022 self = self;
5023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1))
5024 return NULL;
5025 if (_argo0) {
5026 if (_argo0 == Py_None) { _arg0 = NULL; }
5027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p.");
5029 return NULL;
5030 }
5031 }
5032 {
5033 wxPy_BEGIN_ALLOW_THREADS;
5034 _result = new wxString (wxMenu_GetLabel(_arg0,_arg1));
5035
5036 wxPy_END_ALLOW_THREADS;
5037 }{
5038 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
5039 }
5040 {
5041 delete _result;
5042 }
5043 return _resultobj;
5044 }
5045
5046 #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
5047 static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
5048 PyObject * _resultobj;
5049 wxMenu * _arg0;
5050 int _arg1;
5051 wxString * _arg2;
5052 PyObject * _argo0 = 0;
5053 PyObject * _obj2 = 0;
5054 char *_kwnames[] = { "self","id","helpString", NULL };
5055
5056 self = self;
5057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
5058 return NULL;
5059 if (_argo0) {
5060 if (_argo0 == Py_None) { _arg0 = NULL; }
5061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p.");
5063 return NULL;
5064 }
5065 }
5066 {
5067 if (!PyString_Check(_obj2)) {
5068 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5069 return NULL;
5070 }
5071 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5072 }
5073 {
5074 wxPy_BEGIN_ALLOW_THREADS;
5075 wxMenu_SetHelpString(_arg0,_arg1,*_arg2);
5076
5077 wxPy_END_ALLOW_THREADS;
5078 } Py_INCREF(Py_None);
5079 _resultobj = Py_None;
5080 {
5081 if (_obj2)
5082 delete _arg2;
5083 }
5084 return _resultobj;
5085 }
5086
5087 #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0))
5088 static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
5089 PyObject * _resultobj;
5090 bool _result;
5091 wxMenu * _arg0;
5092 int _arg1;
5093 PyObject * _argo0 = 0;
5094 char *_kwnames[] = { "self","id", NULL };
5095
5096 self = self;
5097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1))
5098 return NULL;
5099 if (_argo0) {
5100 if (_argo0 == Py_None) { _arg0 = NULL; }
5101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p.");
5103 return NULL;
5104 }
5105 }
5106 {
5107 wxPy_BEGIN_ALLOW_THREADS;
5108 _result = (bool )wxMenu_IsChecked(_arg0,_arg1);
5109
5110 wxPy_END_ALLOW_THREADS;
5111 } _resultobj = Py_BuildValue("i",_result);
5112 return _resultobj;
5113 }
5114
5115 #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0))
5116 static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
5117 PyObject * _resultobj;
5118 bool _result;
5119 wxMenu * _arg0;
5120 int _arg1;
5121 PyObject * _argo0 = 0;
5122 char *_kwnames[] = { "self","id", NULL };
5123
5124 self = self;
5125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1))
5126 return NULL;
5127 if (_argo0) {
5128 if (_argo0 == Py_None) { _arg0 = NULL; }
5129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p.");
5131 return NULL;
5132 }
5133 }
5134 {
5135 wxPy_BEGIN_ALLOW_THREADS;
5136 _result = (bool )wxMenu_IsEnabled(_arg0,_arg1);
5137
5138 wxPy_END_ALLOW_THREADS;
5139 } _resultobj = Py_BuildValue("i",_result);
5140 return _resultobj;
5141 }
5142
5143 #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
5144 static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5145 PyObject * _resultobj;
5146 wxMenu * _arg0;
5147 int _arg1;
5148 wxString * _arg2;
5149 PyObject * _argo0 = 0;
5150 PyObject * _obj2 = 0;
5151 char *_kwnames[] = { "self","id","label", NULL };
5152
5153 self = self;
5154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
5155 return NULL;
5156 if (_argo0) {
5157 if (_argo0 == Py_None) { _arg0 = NULL; }
5158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p.");
5160 return NULL;
5161 }
5162 }
5163 {
5164 if (!PyString_Check(_obj2)) {
5165 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5166 return NULL;
5167 }
5168 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5169 }
5170 {
5171 wxPy_BEGIN_ALLOW_THREADS;
5172 wxMenu_SetLabel(_arg0,_arg1,*_arg2);
5173
5174 wxPy_END_ALLOW_THREADS;
5175 } Py_INCREF(Py_None);
5176 _resultobj = Py_None;
5177 {
5178 if (_obj2)
5179 delete _arg2;
5180 }
5181 return _resultobj;
5182 }
5183
5184 #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0))
5185 static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
5186 PyObject * _resultobj;
5187 wxMenu * _arg0;
5188 wxEvtHandler * _arg1 = (wxEvtHandler *) NULL;
5189 PyObject * _argo0 = 0;
5190 PyObject * _argo1 = 0;
5191 char *_kwnames[] = { "self","source", NULL };
5192
5193 self = self;
5194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1))
5195 return NULL;
5196 if (_argo0) {
5197 if (_argo0 == Py_None) { _arg0 = NULL; }
5198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p.");
5200 return NULL;
5201 }
5202 }
5203 if (_argo1) {
5204 if (_argo1 == Py_None) { _arg1 = NULL; }
5205 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
5206 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p.");
5207 return NULL;
5208 }
5209 }
5210 {
5211 wxPy_BEGIN_ALLOW_THREADS;
5212 wxMenu_UpdateUI(_arg0,_arg1);
5213
5214 wxPy_END_ALLOW_THREADS;
5215 } Py_INCREF(Py_None);
5216 _resultobj = Py_None;
5217 return _resultobj;
5218 }
5219
5220 static void wxMenu_Destroy(wxMenu *self) {
5221 delete self;
5222 }
5223 static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
5224 PyObject * _resultobj;
5225 wxMenu * _arg0;
5226 PyObject * _argo0 = 0;
5227 char *_kwnames[] = { "self", NULL };
5228
5229 self = self;
5230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0))
5231 return NULL;
5232 if (_argo0) {
5233 if (_argo0 == Py_None) { _arg0 = NULL; }
5234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p.");
5236 return NULL;
5237 }
5238 }
5239 {
5240 wxPy_BEGIN_ALLOW_THREADS;
5241 wxMenu_Destroy(_arg0);
5242
5243 wxPy_END_ALLOW_THREADS;
5244 } Py_INCREF(Py_None);
5245 _resultobj = Py_None;
5246 return _resultobj;
5247 }
5248
5249 static void *SwigwxMenuBarTowxEvtHandler(void *ptr) {
5250 wxMenuBar *src;
5251 wxEvtHandler *dest;
5252 src = (wxMenuBar *) ptr;
5253 dest = (wxEvtHandler *) src;
5254 return (void *) dest;
5255 }
5256
5257 #define new_wxMenuBar() (new wxMenuBar())
5258 static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
5259 PyObject * _resultobj;
5260 wxMenuBar * _result;
5261 char *_kwnames[] = { NULL };
5262 char _ptemp[128];
5263
5264 self = self;
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames))
5266 return NULL;
5267 {
5268 wxPy_BEGIN_ALLOW_THREADS;
5269 _result = (wxMenuBar *)new_wxMenuBar();
5270
5271 wxPy_END_ALLOW_THREADS;
5272 } if (_result) {
5273 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
5274 _resultobj = Py_BuildValue("s",_ptemp);
5275 } else {
5276 Py_INCREF(Py_None);
5277 _resultobj = Py_None;
5278 }
5279 return _resultobj;
5280 }
5281
5282 #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1))
5283 static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5284 PyObject * _resultobj;
5285 wxMenuBar * _arg0;
5286 wxMenu * _arg1;
5287 wxString * _arg2;
5288 PyObject * _argo0 = 0;
5289 PyObject * _argo1 = 0;
5290 PyObject * _obj2 = 0;
5291 char *_kwnames[] = { "self","menu","title", NULL };
5292
5293 self = self;
5294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2))
5295 return NULL;
5296 if (_argo0) {
5297 if (_argo0 == Py_None) { _arg0 = NULL; }
5298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p.");
5300 return NULL;
5301 }
5302 }
5303 if (_argo1) {
5304 if (_argo1 == Py_None) { _arg1 = NULL; }
5305 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
5306 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p.");
5307 return NULL;
5308 }
5309 }
5310 {
5311 if (!PyString_Check(_obj2)) {
5312 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5313 return NULL;
5314 }
5315 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5316 }
5317 {
5318 wxPy_BEGIN_ALLOW_THREADS;
5319 wxMenuBar_Append(_arg0,_arg1,*_arg2);
5320
5321 wxPy_END_ALLOW_THREADS;
5322 } Py_INCREF(Py_None);
5323 _resultobj = Py_None;
5324 {
5325 if (_obj2)
5326 delete _arg2;
5327 }
5328 return _resultobj;
5329 }
5330
5331 #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1))
5332 static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
5333 PyObject * _resultobj;
5334 wxMenuBar * _arg0;
5335 int _arg1;
5336 bool _arg2;
5337 PyObject * _argo0 = 0;
5338 int tempbool2;
5339 char *_kwnames[] = { "self","id","flag", NULL };
5340
5341 self = self;
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2))
5343 return NULL;
5344 if (_argo0) {
5345 if (_argo0 == Py_None) { _arg0 = NULL; }
5346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p.");
5348 return NULL;
5349 }
5350 }
5351 _arg2 = (bool ) tempbool2;
5352 {
5353 wxPy_BEGIN_ALLOW_THREADS;
5354 wxMenuBar_Check(_arg0,_arg1,_arg2);
5355
5356 wxPy_END_ALLOW_THREADS;
5357 } Py_INCREF(Py_None);
5358 _resultobj = Py_None;
5359 return _resultobj;
5360 }
5361
5362 #define wxMenuBar_Checked(_swigobj,_swigarg0) (_swigobj->Checked(_swigarg0))
5363 static PyObject *_wrap_wxMenuBar_Checked(PyObject *self, PyObject *args, PyObject *kwargs) {
5364 PyObject * _resultobj;
5365 bool _result;
5366 wxMenuBar * _arg0;
5367 int _arg1;
5368 PyObject * _argo0 = 0;
5369 char *_kwnames[] = { "self","id", NULL };
5370
5371 self = self;
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Checked",_kwnames,&_argo0,&_arg1))
5373 return NULL;
5374 if (_argo0) {
5375 if (_argo0 == Py_None) { _arg0 = NULL; }
5376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Checked. Expected _wxMenuBar_p.");
5378 return NULL;
5379 }
5380 }
5381 {
5382 wxPy_BEGIN_ALLOW_THREADS;
5383 _result = (bool )wxMenuBar_Checked(_arg0,_arg1);
5384
5385 wxPy_END_ALLOW_THREADS;
5386 } _resultobj = Py_BuildValue("i",_result);
5387 return _resultobj;
5388 }
5389
5390 #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1))
5391 static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
5392 PyObject * _resultobj;
5393 wxMenuBar * _arg0;
5394 int _arg1;
5395 bool _arg2;
5396 PyObject * _argo0 = 0;
5397 int tempbool2;
5398 char *_kwnames[] = { "self","id","enable", NULL };
5399
5400 self = self;
5401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2))
5402 return NULL;
5403 if (_argo0) {
5404 if (_argo0 == Py_None) { _arg0 = NULL; }
5405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p.");
5407 return NULL;
5408 }
5409 }
5410 _arg2 = (bool ) tempbool2;
5411 {
5412 wxPy_BEGIN_ALLOW_THREADS;
5413 wxMenuBar_Enable(_arg0,_arg1,_arg2);
5414
5415 wxPy_END_ALLOW_THREADS;
5416 } Py_INCREF(Py_None);
5417 _resultobj = Py_None;
5418 return _resultobj;
5419 }
5420
5421 #define wxMenuBar_Enabled(_swigobj,_swigarg0) (_swigobj->Enabled(_swigarg0))
5422 static PyObject *_wrap_wxMenuBar_Enabled(PyObject *self, PyObject *args, PyObject *kwargs) {
5423 PyObject * _resultobj;
5424 bool _result;
5425 wxMenuBar * _arg0;
5426 int _arg1;
5427 PyObject * _argo0 = 0;
5428 char *_kwnames[] = { "self","id", NULL };
5429
5430 self = self;
5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Enabled",_kwnames,&_argo0,&_arg1))
5432 return NULL;
5433 if (_argo0) {
5434 if (_argo0 == Py_None) { _arg0 = NULL; }
5435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enabled. Expected _wxMenuBar_p.");
5437 return NULL;
5438 }
5439 }
5440 {
5441 wxPy_BEGIN_ALLOW_THREADS;
5442 _result = (bool )wxMenuBar_Enabled(_arg0,_arg1);
5443
5444 wxPy_END_ALLOW_THREADS;
5445 } _resultobj = Py_BuildValue("i",_result);
5446 return _resultobj;
5447 }
5448
5449 #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1))
5450 static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject * _resultobj;
5452 int _result;
5453 wxMenuBar * _arg0;
5454 wxString * _arg1;
5455 wxString * _arg2;
5456 PyObject * _argo0 = 0;
5457 PyObject * _obj1 = 0;
5458 PyObject * _obj2 = 0;
5459 char *_kwnames[] = { "self","menuString","itemString", NULL };
5460
5461 self = self;
5462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2))
5463 return NULL;
5464 if (_argo0) {
5465 if (_argo0 == Py_None) { _arg0 = NULL; }
5466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p.");
5468 return NULL;
5469 }
5470 }
5471 {
5472 if (!PyString_Check(_obj1)) {
5473 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5474 return NULL;
5475 }
5476 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
5477 }
5478 {
5479 if (!PyString_Check(_obj2)) {
5480 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5481 return NULL;
5482 }
5483 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5484 }
5485 {
5486 wxPy_BEGIN_ALLOW_THREADS;
5487 _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2);
5488
5489 wxPy_END_ALLOW_THREADS;
5490 } _resultobj = Py_BuildValue("i",_result);
5491 {
5492 if (_obj1)
5493 delete _arg1;
5494 }
5495 {
5496 if (_obj2)
5497 delete _arg2;
5498 }
5499 return _resultobj;
5500 }
5501
5502 #define wxMenuBar_FindItemForId(_swigobj,_swigarg0) (_swigobj->FindItemForId(_swigarg0))
5503 static PyObject *_wrap_wxMenuBar_FindItemForId(PyObject *self, PyObject *args, PyObject *kwargs) {
5504 PyObject * _resultobj;
5505 wxMenuItem * _result;
5506 wxMenuBar * _arg0;
5507 int _arg1;
5508 PyObject * _argo0 = 0;
5509 char *_kwnames[] = { "self","id", NULL };
5510 char _ptemp[128];
5511
5512 self = self;
5513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemForId",_kwnames,&_argo0,&_arg1))
5514 return NULL;
5515 if (_argo0) {
5516 if (_argo0 == Py_None) { _arg0 = NULL; }
5517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemForId. Expected _wxMenuBar_p.");
5519 return NULL;
5520 }
5521 }
5522 {
5523 wxPy_BEGIN_ALLOW_THREADS;
5524 _result = (wxMenuItem *)wxMenuBar_FindItemForId(_arg0,_arg1);
5525
5526 wxPy_END_ALLOW_THREADS;
5527 } if (_result) {
5528 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
5529 _resultobj = Py_BuildValue("s",_ptemp);
5530 } else {
5531 Py_INCREF(Py_None);
5532 _resultobj = Py_None;
5533 }
5534 return _resultobj;
5535 }
5536
5537 #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1))
5538 static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
5539 PyObject * _resultobj;
5540 wxMenuBar * _arg0;
5541 int _arg1;
5542 bool _arg2;
5543 PyObject * _argo0 = 0;
5544 int tempbool2;
5545 char *_kwnames[] = { "self","pos","enable", NULL };
5546
5547 self = self;
5548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2))
5549 return NULL;
5550 if (_argo0) {
5551 if (_argo0 == Py_None) { _arg0 = NULL; }
5552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p.");
5554 return NULL;
5555 }
5556 }
5557 _arg2 = (bool ) tempbool2;
5558 {
5559 wxPy_BEGIN_ALLOW_THREADS;
5560 wxMenuBar_EnableTop(_arg0,_arg1,_arg2);
5561
5562 wxPy_END_ALLOW_THREADS;
5563 } Py_INCREF(Py_None);
5564 _resultobj = Py_None;
5565 return _resultobj;
5566 }
5567
5568 #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0))
5569 static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
5570 PyObject * _resultobj;
5571 wxString * _result;
5572 wxMenuBar * _arg0;
5573 int _arg1;
5574 PyObject * _argo0 = 0;
5575 char *_kwnames[] = { "self","id", NULL };
5576
5577 self = self;
5578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1))
5579 return NULL;
5580 if (_argo0) {
5581 if (_argo0 == Py_None) { _arg0 = NULL; }
5582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p.");
5584 return NULL;
5585 }
5586 }
5587 {
5588 wxPy_BEGIN_ALLOW_THREADS;
5589 _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1));
5590
5591 wxPy_END_ALLOW_THREADS;
5592 }{
5593 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
5594 }
5595 {
5596 delete _result;
5597 }
5598 return _resultobj;
5599 }
5600
5601 #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0))
5602 static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5603 PyObject * _resultobj;
5604 wxString * _result;
5605 wxMenuBar * _arg0;
5606 int _arg1;
5607 PyObject * _argo0 = 0;
5608 char *_kwnames[] = { "self","id", NULL };
5609
5610 self = self;
5611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1))
5612 return NULL;
5613 if (_argo0) {
5614 if (_argo0 == Py_None) { _arg0 = NULL; }
5615 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5616 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p.");
5617 return NULL;
5618 }
5619 }
5620 {
5621 wxPy_BEGIN_ALLOW_THREADS;
5622 _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1));
5623
5624 wxPy_END_ALLOW_THREADS;
5625 }{
5626 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
5627 }
5628 {
5629 delete _result;
5630 }
5631 return _resultobj;
5632 }
5633
5634 #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1))
5635 static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
5636 PyObject * _resultobj;
5637 wxMenuBar * _arg0;
5638 int _arg1;
5639 wxString * _arg2;
5640 PyObject * _argo0 = 0;
5641 PyObject * _obj2 = 0;
5642 char *_kwnames[] = { "self","id","helpString", NULL };
5643
5644 self = self;
5645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2))
5646 return NULL;
5647 if (_argo0) {
5648 if (_argo0 == Py_None) { _arg0 = NULL; }
5649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p.");
5651 return NULL;
5652 }
5653 }
5654 {
5655 if (!PyString_Check(_obj2)) {
5656 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5657 return NULL;
5658 }
5659 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5660 }
5661 {
5662 wxPy_BEGIN_ALLOW_THREADS;
5663 wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2);
5664
5665 wxPy_END_ALLOW_THREADS;
5666 } Py_INCREF(Py_None);
5667 _resultobj = Py_None;
5668 {
5669 if (_obj2)
5670 delete _arg2;
5671 }
5672 return _resultobj;
5673 }
5674
5675 #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1))
5676 static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
5677 PyObject * _resultobj;
5678 wxMenuBar * _arg0;
5679 int _arg1;
5680 wxString * _arg2;
5681 PyObject * _argo0 = 0;
5682 PyObject * _obj2 = 0;
5683 char *_kwnames[] = { "self","id","label", NULL };
5684
5685 self = self;
5686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2))
5687 return NULL;
5688 if (_argo0) {
5689 if (_argo0 == Py_None) { _arg0 = NULL; }
5690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p.");
5692 return NULL;
5693 }
5694 }
5695 {
5696 if (!PyString_Check(_obj2)) {
5697 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5698 return NULL;
5699 }
5700 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5701 }
5702 {
5703 wxPy_BEGIN_ALLOW_THREADS;
5704 wxMenuBar_SetLabel(_arg0,_arg1,*_arg2);
5705
5706 wxPy_END_ALLOW_THREADS;
5707 } Py_INCREF(Py_None);
5708 _resultobj = Py_None;
5709 {
5710 if (_obj2)
5711 delete _arg2;
5712 }
5713 return _resultobj;
5714 }
5715
5716 #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0))
5717 static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
5718 PyObject * _resultobj;
5719 wxString * _result;
5720 wxMenuBar * _arg0;
5721 int _arg1;
5722 PyObject * _argo0 = 0;
5723 char *_kwnames[] = { "self","pos", NULL };
5724
5725 self = self;
5726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1))
5727 return NULL;
5728 if (_argo0) {
5729 if (_argo0 == Py_None) { _arg0 = NULL; }
5730 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5731 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p.");
5732 return NULL;
5733 }
5734 }
5735 {
5736 wxPy_BEGIN_ALLOW_THREADS;
5737 _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1));
5738
5739 wxPy_END_ALLOW_THREADS;
5740 }{
5741 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
5742 }
5743 {
5744 delete _result;
5745 }
5746 return _resultobj;
5747 }
5748
5749 #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1))
5750 static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
5751 PyObject * _resultobj;
5752 wxMenuBar * _arg0;
5753 int _arg1;
5754 wxString * _arg2;
5755 PyObject * _argo0 = 0;
5756 PyObject * _obj2 = 0;
5757 char *_kwnames[] = { "self","pos","label", NULL };
5758
5759 self = self;
5760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2))
5761 return NULL;
5762 if (_argo0) {
5763 if (_argo0 == Py_None) { _arg0 = NULL; }
5764 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5765 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p.");
5766 return NULL;
5767 }
5768 }
5769 {
5770 if (!PyString_Check(_obj2)) {
5771 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5772 return NULL;
5773 }
5774 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5775 }
5776 {
5777 wxPy_BEGIN_ALLOW_THREADS;
5778 wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2);
5779
5780 wxPy_END_ALLOW_THREADS;
5781 } Py_INCREF(Py_None);
5782 _resultobj = Py_None;
5783 {
5784 if (_obj2)
5785 delete _arg2;
5786 }
5787 return _resultobj;
5788 }
5789
5790 #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount())
5791 static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5792 PyObject * _resultobj;
5793 int _result;
5794 wxMenuBar * _arg0;
5795 PyObject * _argo0 = 0;
5796 char *_kwnames[] = { "self", NULL };
5797
5798 self = self;
5799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0))
5800 return NULL;
5801 if (_argo0) {
5802 if (_argo0 == Py_None) { _arg0 = NULL; }
5803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p.");
5805 return NULL;
5806 }
5807 }
5808 {
5809 wxPy_BEGIN_ALLOW_THREADS;
5810 _result = (int )wxMenuBar_GetMenuCount(_arg0);
5811
5812 wxPy_END_ALLOW_THREADS;
5813 } _resultobj = Py_BuildValue("i",_result);
5814 return _resultobj;
5815 }
5816
5817 #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0))
5818 static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5819 PyObject * _resultobj;
5820 wxMenu * _result;
5821 wxMenuBar * _arg0;
5822 int _arg1;
5823 PyObject * _argo0 = 0;
5824 char *_kwnames[] = { "self","i", NULL };
5825 char _ptemp[128];
5826
5827 self = self;
5828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
5829 return NULL;
5830 if (_argo0) {
5831 if (_argo0 == Py_None) { _arg0 = NULL; }
5832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) {
5833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p.");
5834 return NULL;
5835 }
5836 }
5837 {
5838 wxPy_BEGIN_ALLOW_THREADS;
5839 _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
5840
5841 wxPy_END_ALLOW_THREADS;
5842 } if (_result) {
5843 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
5844 _resultobj = Py_BuildValue("s",_ptemp);
5845 } else {
5846 Py_INCREF(Py_None);
5847 _resultobj = Py_None;
5848 }
5849 return _resultobj;
5850 }
5851
5852 #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5853 static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5854 PyObject * _resultobj;
5855 wxMenuItem * _result;
5856 wxMenu * _arg0 = (wxMenu *) NULL;
5857 int _arg1 = (int ) ID_SEPARATOR;
5858 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
5859 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
5860 bool _arg4 = (bool ) FALSE;
5861 wxMenu * _arg5 = (wxMenu *) NULL;
5862 PyObject * _argo0 = 0;
5863 PyObject * _obj2 = 0;
5864 PyObject * _obj3 = 0;
5865 int tempbool4 = (int) FALSE;
5866 PyObject * _argo5 = 0;
5867 char *_kwnames[] = { "parentMenu","id","text","helpString","checkable","subMenu", NULL };
5868 char _ptemp[128];
5869
5870 self = self;
5871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&tempbool4,&_argo5))
5872 return NULL;
5873 if (_argo0) {
5874 if (_argo0 == Py_None) { _arg0 = NULL; }
5875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) {
5876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p.");
5877 return NULL;
5878 }
5879 }
5880 if (_obj2)
5881 {
5882 if (!PyString_Check(_obj2)) {
5883 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5884 return NULL;
5885 }
5886 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
5887 }
5888 if (_obj3)
5889 {
5890 if (!PyString_Check(_obj3)) {
5891 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5892 return NULL;
5893 }
5894 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
5895 }
5896 _arg4 = (bool ) tempbool4;
5897 if (_argo5) {
5898 if (_argo5 == Py_None) { _arg5 = NULL; }
5899 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) {
5900 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p.");
5901 return NULL;
5902 }
5903 }
5904 {
5905 wxPy_BEGIN_ALLOW_THREADS;
5906 _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5);
5907
5908 wxPy_END_ALLOW_THREADS;
5909 } if (_result) {
5910 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
5911 _resultobj = Py_BuildValue("s",_ptemp);
5912 } else {
5913 Py_INCREF(Py_None);
5914 _resultobj = Py_None;
5915 }
5916 {
5917 if (_obj2)
5918 delete _arg2;
5919 }
5920 {
5921 if (_obj3)
5922 delete _arg3;
5923 }
5924 return _resultobj;
5925 }
5926
5927 #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator())
5928 static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
5929 PyObject * _resultobj;
5930 bool _result;
5931 wxMenuItem * _arg0;
5932 PyObject * _argo0 = 0;
5933 char *_kwnames[] = { "self", NULL };
5934
5935 self = self;
5936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0))
5937 return NULL;
5938 if (_argo0) {
5939 if (_argo0 == Py_None) { _arg0 = NULL; }
5940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
5941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p.");
5942 return NULL;
5943 }
5944 }
5945 {
5946 wxPy_BEGIN_ALLOW_THREADS;
5947 _result = (bool )wxMenuItem_IsSeparator(_arg0);
5948
5949 wxPy_END_ALLOW_THREADS;
5950 } _resultobj = Py_BuildValue("i",_result);
5951 return _resultobj;
5952 }
5953
5954 #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled())
5955 static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
5956 PyObject * _resultobj;
5957 bool _result;
5958 wxMenuItem * _arg0;
5959 PyObject * _argo0 = 0;
5960 char *_kwnames[] = { "self", NULL };
5961
5962 self = self;
5963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0))
5964 return NULL;
5965 if (_argo0) {
5966 if (_argo0 == Py_None) { _arg0 = NULL; }
5967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
5968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p.");
5969 return NULL;
5970 }
5971 }
5972 {
5973 wxPy_BEGIN_ALLOW_THREADS;
5974 _result = (bool )wxMenuItem_IsEnabled(_arg0);
5975
5976 wxPy_END_ALLOW_THREADS;
5977 } _resultobj = Py_BuildValue("i",_result);
5978 return _resultobj;
5979 }
5980
5981 #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked())
5982 static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
5983 PyObject * _resultobj;
5984 bool _result;
5985 wxMenuItem * _arg0;
5986 PyObject * _argo0 = 0;
5987 char *_kwnames[] = { "self", NULL };
5988
5989 self = self;
5990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0))
5991 return NULL;
5992 if (_argo0) {
5993 if (_argo0 == Py_None) { _arg0 = NULL; }
5994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
5995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p.");
5996 return NULL;
5997 }
5998 }
5999 {
6000 wxPy_BEGIN_ALLOW_THREADS;
6001 _result = (bool )wxMenuItem_IsChecked(_arg0);
6002
6003 wxPy_END_ALLOW_THREADS;
6004 } _resultobj = Py_BuildValue("i",_result);
6005 return _resultobj;
6006 }
6007
6008 #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable())
6009 static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
6010 PyObject * _resultobj;
6011 bool _result;
6012 wxMenuItem * _arg0;
6013 PyObject * _argo0 = 0;
6014 char *_kwnames[] = { "self", NULL };
6015
6016 self = self;
6017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0))
6018 return NULL;
6019 if (_argo0) {
6020 if (_argo0 == Py_None) { _arg0 = NULL; }
6021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p.");
6023 return NULL;
6024 }
6025 }
6026 {
6027 wxPy_BEGIN_ALLOW_THREADS;
6028 _result = (bool )wxMenuItem_IsCheckable(_arg0);
6029
6030 wxPy_END_ALLOW_THREADS;
6031 } _resultobj = Py_BuildValue("i",_result);
6032 return _resultobj;
6033 }
6034
6035 #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId())
6036 static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6037 PyObject * _resultobj;
6038 int _result;
6039 wxMenuItem * _arg0;
6040 PyObject * _argo0 = 0;
6041 char *_kwnames[] = { "self", NULL };
6042
6043 self = self;
6044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0))
6045 return NULL;
6046 if (_argo0) {
6047 if (_argo0 == Py_None) { _arg0 = NULL; }
6048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p.");
6050 return NULL;
6051 }
6052 }
6053 {
6054 wxPy_BEGIN_ALLOW_THREADS;
6055 _result = (int )wxMenuItem_GetId(_arg0);
6056
6057 wxPy_END_ALLOW_THREADS;
6058 } _resultobj = Py_BuildValue("i",_result);
6059 return _resultobj;
6060 }
6061
6062 #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu())
6063 static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6064 PyObject * _resultobj;
6065 wxMenu * _result;
6066 wxMenuItem * _arg0;
6067 PyObject * _argo0 = 0;
6068 char *_kwnames[] = { "self", NULL };
6069 char _ptemp[128];
6070
6071 self = self;
6072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
6073 return NULL;
6074 if (_argo0) {
6075 if (_argo0 == Py_None) { _arg0 = NULL; }
6076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p.");
6078 return NULL;
6079 }
6080 }
6081 {
6082 wxPy_BEGIN_ALLOW_THREADS;
6083 _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
6084
6085 wxPy_END_ALLOW_THREADS;
6086 } if (_result) {
6087 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
6088 _resultobj = Py_BuildValue("s",_ptemp);
6089 } else {
6090 Py_INCREF(Py_None);
6091 _resultobj = Py_None;
6092 }
6093 return _resultobj;
6094 }
6095
6096 #define wxMenuItem_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0))
6097 static PyObject *_wrap_wxMenuItem_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
6098 PyObject * _resultobj;
6099 wxMenuItem * _arg0;
6100 wxString * _arg1;
6101 PyObject * _argo0 = 0;
6102 PyObject * _obj1 = 0;
6103 char *_kwnames[] = { "self","strName", NULL };
6104
6105 self = self;
6106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetName",_kwnames,&_argo0,&_obj1))
6107 return NULL;
6108 if (_argo0) {
6109 if (_argo0 == Py_None) { _arg0 = NULL; }
6110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetName. Expected _wxMenuItem_p.");
6112 return NULL;
6113 }
6114 }
6115 {
6116 if (!PyString_Check(_obj1)) {
6117 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6118 return NULL;
6119 }
6120 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
6121 }
6122 {
6123 wxPy_BEGIN_ALLOW_THREADS;
6124 wxMenuItem_SetName(_arg0,*_arg1);
6125
6126 wxPy_END_ALLOW_THREADS;
6127 } Py_INCREF(Py_None);
6128 _resultobj = Py_None;
6129 {
6130 if (_obj1)
6131 delete _arg1;
6132 }
6133 return _resultobj;
6134 }
6135
6136 #define wxMenuItem_GetName(_swigobj) (_swigobj->GetName())
6137 static PyObject *_wrap_wxMenuItem_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
6138 PyObject * _resultobj;
6139 wxString * _result;
6140 wxMenuItem * _arg0;
6141 PyObject * _argo0 = 0;
6142 char *_kwnames[] = { "self", NULL };
6143
6144 self = self;
6145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetName",_kwnames,&_argo0))
6146 return NULL;
6147 if (_argo0) {
6148 if (_argo0 == Py_None) { _arg0 = NULL; }
6149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetName. Expected _wxMenuItem_p.");
6151 return NULL;
6152 }
6153 }
6154 {
6155 wxPy_BEGIN_ALLOW_THREADS;
6156 _result = new wxString (wxMenuItem_GetName(_arg0));
6157
6158 wxPy_END_ALLOW_THREADS;
6159 }{
6160 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6161 }
6162 {
6163 delete _result;
6164 }
6165 return _resultobj;
6166 }
6167
6168 #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp())
6169 static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject * _resultobj;
6171 wxString * _result;
6172 wxMenuItem * _arg0;
6173 PyObject * _argo0 = 0;
6174 char *_kwnames[] = { "self", NULL };
6175
6176 self = self;
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0))
6178 return NULL;
6179 if (_argo0) {
6180 if (_argo0 == Py_None) { _arg0 = NULL; }
6181 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6182 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p.");
6183 return NULL;
6184 }
6185 }
6186 {
6187 wxPy_BEGIN_ALLOW_THREADS;
6188 _result = new wxString (wxMenuItem_GetHelp(_arg0));
6189
6190 wxPy_END_ALLOW_THREADS;
6191 }{
6192 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
6193 }
6194 {
6195 delete _result;
6196 }
6197 return _resultobj;
6198 }
6199
6200 #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0))
6201 static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject * _resultobj;
6203 wxMenuItem * _arg0;
6204 wxString * _arg1;
6205 PyObject * _argo0 = 0;
6206 PyObject * _obj1 = 0;
6207 char *_kwnames[] = { "self","strHelp", NULL };
6208
6209 self = self;
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1))
6211 return NULL;
6212 if (_argo0) {
6213 if (_argo0 == Py_None) { _arg0 = NULL; }
6214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p.");
6216 return NULL;
6217 }
6218 }
6219 {
6220 if (!PyString_Check(_obj1)) {
6221 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6222 return NULL;
6223 }
6224 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
6225 }
6226 {
6227 wxPy_BEGIN_ALLOW_THREADS;
6228 wxMenuItem_SetHelp(_arg0,*_arg1);
6229
6230 wxPy_END_ALLOW_THREADS;
6231 } Py_INCREF(Py_None);
6232 _resultobj = Py_None;
6233 {
6234 if (_obj1)
6235 delete _arg1;
6236 }
6237 return _resultobj;
6238 }
6239
6240 #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0))
6241 static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
6242 PyObject * _resultobj;
6243 wxMenuItem * _arg0;
6244 bool _arg1 = (bool ) TRUE;
6245 PyObject * _argo0 = 0;
6246 int tempbool1 = (int) TRUE;
6247 char *_kwnames[] = { "self","bDoEnable", NULL };
6248
6249 self = self;
6250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1))
6251 return NULL;
6252 if (_argo0) {
6253 if (_argo0 == Py_None) { _arg0 = NULL; }
6254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p.");
6256 return NULL;
6257 }
6258 }
6259 _arg1 = (bool ) tempbool1;
6260 {
6261 wxPy_BEGIN_ALLOW_THREADS;
6262 wxMenuItem_Enable(_arg0,_arg1);
6263
6264 wxPy_END_ALLOW_THREADS;
6265 } Py_INCREF(Py_None);
6266 _resultobj = Py_None;
6267 return _resultobj;
6268 }
6269
6270 #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0))
6271 static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
6272 PyObject * _resultobj;
6273 wxMenuItem * _arg0;
6274 bool _arg1 = (bool ) TRUE;
6275 PyObject * _argo0 = 0;
6276 int tempbool1 = (int) TRUE;
6277 char *_kwnames[] = { "self","bDoCheck", NULL };
6278
6279 self = self;
6280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1))
6281 return NULL;
6282 if (_argo0) {
6283 if (_argo0 == Py_None) { _arg0 = NULL; }
6284 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6285 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p.");
6286 return NULL;
6287 }
6288 }
6289 _arg1 = (bool ) tempbool1;
6290 {
6291 wxPy_BEGIN_ALLOW_THREADS;
6292 wxMenuItem_Check(_arg0,_arg1);
6293
6294 wxPy_END_ALLOW_THREADS;
6295 } Py_INCREF(Py_None);
6296 _resultobj = Py_None;
6297 return _resultobj;
6298 }
6299
6300 #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
6301 static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6302 PyObject * _resultobj;
6303 wxColour * _result;
6304 wxMenuItem * _arg0;
6305 PyObject * _argo0 = 0;
6306 char *_kwnames[] = { "self", NULL };
6307 char _ptemp[128];
6308
6309 self = self;
6310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0))
6311 return NULL;
6312 if (_argo0) {
6313 if (_argo0 == Py_None) { _arg0 = NULL; }
6314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p.");
6316 return NULL;
6317 }
6318 }
6319 {
6320 wxPy_BEGIN_ALLOW_THREADS;
6321 wxColour & _result_ref = wxMenuItem_GetBackgroundColour(_arg0);
6322 _result = (wxColour *) &_result_ref;
6323
6324 wxPy_END_ALLOW_THREADS;
6325 } if (_result) {
6326 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6327 _resultobj = Py_BuildValue("s",_ptemp);
6328 } else {
6329 Py_INCREF(Py_None);
6330 _resultobj = Py_None;
6331 }
6332 return _resultobj;
6333 }
6334
6335 #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0))
6336 static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6337 PyObject * _resultobj;
6338 wxBitmap * _result;
6339 wxMenuItem * _arg0;
6340 bool _arg1 = (bool ) TRUE;
6341 PyObject * _argo0 = 0;
6342 int tempbool1 = (int) TRUE;
6343 char *_kwnames[] = { "self","checked", NULL };
6344 char _ptemp[128];
6345
6346 self = self;
6347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1))
6348 return NULL;
6349 if (_argo0) {
6350 if (_argo0 == Py_None) { _arg0 = NULL; }
6351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p.");
6353 return NULL;
6354 }
6355 }
6356 _arg1 = (bool ) tempbool1;
6357 {
6358 wxPy_BEGIN_ALLOW_THREADS;
6359 _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1));
6360
6361 wxPy_END_ALLOW_THREADS;
6362 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
6363 _resultobj = Py_BuildValue("s",_ptemp);
6364 return _resultobj;
6365 }
6366
6367 #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont())
6368 static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6369 PyObject * _resultobj;
6370 wxFont * _result;
6371 wxMenuItem * _arg0;
6372 PyObject * _argo0 = 0;
6373 char *_kwnames[] = { "self", NULL };
6374 char _ptemp[128];
6375
6376 self = self;
6377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0))
6378 return NULL;
6379 if (_argo0) {
6380 if (_argo0 == Py_None) { _arg0 = NULL; }
6381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p.");
6383 return NULL;
6384 }
6385 }
6386 {
6387 wxPy_BEGIN_ALLOW_THREADS;
6388 wxFont & _result_ref = wxMenuItem_GetFont(_arg0);
6389 _result = (wxFont *) &_result_ref;
6390
6391 wxPy_END_ALLOW_THREADS;
6392 } if (_result) {
6393 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
6394 _resultobj = Py_BuildValue("s",_ptemp);
6395 } else {
6396 Py_INCREF(Py_None);
6397 _resultobj = Py_None;
6398 }
6399 return _resultobj;
6400 }
6401
6402 #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth())
6403 static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6404 PyObject * _resultobj;
6405 int _result;
6406 wxMenuItem * _arg0;
6407 PyObject * _argo0 = 0;
6408 char *_kwnames[] = { "self", NULL };
6409
6410 self = self;
6411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0))
6412 return NULL;
6413 if (_argo0) {
6414 if (_argo0 == Py_None) { _arg0 = NULL; }
6415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p.");
6417 return NULL;
6418 }
6419 }
6420 {
6421 wxPy_BEGIN_ALLOW_THREADS;
6422 _result = (int )wxMenuItem_GetMarginWidth(_arg0);
6423
6424 wxPy_END_ALLOW_THREADS;
6425 } _resultobj = Py_BuildValue("i",_result);
6426 return _resultobj;
6427 }
6428
6429 #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
6430 static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6431 PyObject * _resultobj;
6432 wxColour * _result;
6433 wxMenuItem * _arg0;
6434 PyObject * _argo0 = 0;
6435 char *_kwnames[] = { "self", NULL };
6436 char _ptemp[128];
6437
6438 self = self;
6439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0))
6440 return NULL;
6441 if (_argo0) {
6442 if (_argo0 == Py_None) { _arg0 = NULL; }
6443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p.");
6445 return NULL;
6446 }
6447 }
6448 {
6449 wxPy_BEGIN_ALLOW_THREADS;
6450 wxColour & _result_ref = wxMenuItem_GetTextColour(_arg0);
6451 _result = (wxColour *) &_result_ref;
6452
6453 wxPy_END_ALLOW_THREADS;
6454 } if (_result) {
6455 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6456 _resultobj = Py_BuildValue("s",_ptemp);
6457 } else {
6458 Py_INCREF(Py_None);
6459 _resultobj = Py_None;
6460 }
6461 return _resultobj;
6462 }
6463
6464 #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
6465 static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6466 PyObject * _resultobj;
6467 wxMenuItem * _arg0;
6468 wxColour * _arg1;
6469 PyObject * _argo0 = 0;
6470 PyObject * _argo1 = 0;
6471 char *_kwnames[] = { "self","colour", NULL };
6472
6473 self = self;
6474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_argo1))
6475 return NULL;
6476 if (_argo0) {
6477 if (_argo0 == Py_None) { _arg0 = NULL; }
6478 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p.");
6480 return NULL;
6481 }
6482 }
6483 if (_argo1) {
6484 if (_argo1 == Py_None) { _arg1 = NULL; }
6485 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
6486 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBackgroundColour. Expected _wxColour_p.");
6487 return NULL;
6488 }
6489 }
6490 {
6491 wxPy_BEGIN_ALLOW_THREADS;
6492 wxMenuItem_SetBackgroundColour(_arg0,*_arg1);
6493
6494 wxPy_END_ALLOW_THREADS;
6495 } Py_INCREF(Py_None);
6496 _resultobj = Py_None;
6497 return _resultobj;
6498 }
6499
6500 #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1))
6501 static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
6502 PyObject * _resultobj;
6503 wxMenuItem * _arg0;
6504 wxBitmap * _arg1;
6505 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
6506 PyObject * _argo0 = 0;
6507 PyObject * _argo1 = 0;
6508 PyObject * _argo2 = 0;
6509 char *_kwnames[] = { "self","checked","unchecked", NULL };
6510
6511 self = self;
6512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2))
6513 return NULL;
6514 if (_argo0) {
6515 if (_argo0 == Py_None) { _arg0 = NULL; }
6516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p.");
6518 return NULL;
6519 }
6520 }
6521 if (_argo1) {
6522 if (_argo1 == Py_None) { _arg1 = NULL; }
6523 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6524 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
6525 return NULL;
6526 }
6527 }
6528 if (_argo2) {
6529 if (_argo2 == Py_None) { _arg2 = NULL; }
6530 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
6531 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p.");
6532 return NULL;
6533 }
6534 }
6535 {
6536 wxPy_BEGIN_ALLOW_THREADS;
6537 wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2);
6538
6539 wxPy_END_ALLOW_THREADS;
6540 } Py_INCREF(Py_None);
6541 _resultobj = Py_None;
6542 return _resultobj;
6543 }
6544
6545 #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6546 static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6547 PyObject * _resultobj;
6548 wxMenuItem * _arg0;
6549 wxFont * _arg1;
6550 PyObject * _argo0 = 0;
6551 PyObject * _argo1 = 0;
6552 char *_kwnames[] = { "self","font", NULL };
6553
6554 self = self;
6555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1))
6556 return NULL;
6557 if (_argo0) {
6558 if (_argo0 == Py_None) { _arg0 = NULL; }
6559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p.");
6561 return NULL;
6562 }
6563 }
6564 if (_argo1) {
6565 if (_argo1 == Py_None) { _arg1 = NULL; }
6566 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
6567 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p.");
6568 return NULL;
6569 }
6570 }
6571 {
6572 wxPy_BEGIN_ALLOW_THREADS;
6573 wxMenuItem_SetFont(_arg0,*_arg1);
6574
6575 wxPy_END_ALLOW_THREADS;
6576 } Py_INCREF(Py_None);
6577 _resultobj = Py_None;
6578 return _resultobj;
6579 }
6580
6581 #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0))
6582 static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6583 PyObject * _resultobj;
6584 wxMenuItem * _arg0;
6585 int _arg1;
6586 PyObject * _argo0 = 0;
6587 char *_kwnames[] = { "self","width", NULL };
6588
6589 self = self;
6590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1))
6591 return NULL;
6592 if (_argo0) {
6593 if (_argo0 == Py_None) { _arg0 = NULL; }
6594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p.");
6596 return NULL;
6597 }
6598 }
6599 {
6600 wxPy_BEGIN_ALLOW_THREADS;
6601 wxMenuItem_SetMarginWidth(_arg0,_arg1);
6602
6603 wxPy_END_ALLOW_THREADS;
6604 } Py_INCREF(Py_None);
6605 _resultobj = Py_None;
6606 return _resultobj;
6607 }
6608
6609 #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
6610 static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6611 PyObject * _resultobj;
6612 wxMenuItem * _arg0;
6613 wxColour * _arg1;
6614 PyObject * _argo0 = 0;
6615 PyObject * _argo1 = 0;
6616 char *_kwnames[] = { "self","colour", NULL };
6617
6618 self = self;
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_argo1))
6620 return NULL;
6621 if (_argo0) {
6622 if (_argo0 == Py_None) { _arg0 = NULL; }
6623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p.");
6625 return NULL;
6626 }
6627 }
6628 if (_argo1) {
6629 if (_argo1 == Py_None) { _arg1 = NULL; }
6630 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
6631 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetTextColour. Expected _wxColour_p.");
6632 return NULL;
6633 }
6634 }
6635 {
6636 wxPy_BEGIN_ALLOW_THREADS;
6637 wxMenuItem_SetTextColour(_arg0,*_arg1);
6638
6639 wxPy_END_ALLOW_THREADS;
6640 } Py_INCREF(Py_None);
6641 _resultobj = Py_None;
6642 return _resultobj;
6643 }
6644
6645 #define wxMenuItem_DeleteSubMenu(_swigobj) (_swigobj->DeleteSubMenu())
6646 static PyObject *_wrap_wxMenuItem_DeleteSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6647 PyObject * _resultobj;
6648 wxMenuItem * _arg0;
6649 PyObject * _argo0 = 0;
6650 char *_kwnames[] = { "self", NULL };
6651
6652 self = self;
6653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_DeleteSubMenu",_kwnames,&_argo0))
6654 return NULL;
6655 if (_argo0) {
6656 if (_argo0 == Py_None) { _arg0 = NULL; }
6657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) {
6658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_DeleteSubMenu. Expected _wxMenuItem_p.");
6659 return NULL;
6660 }
6661 }
6662 {
6663 wxPy_BEGIN_ALLOW_THREADS;
6664 wxMenuItem_DeleteSubMenu(_arg0);
6665
6666 wxPy_END_ALLOW_THREADS;
6667 } Py_INCREF(Py_None);
6668 _resultobj = Py_None;
6669 return _resultobj;
6670 }
6671
6672 static PyMethodDef windowscMethods[] = {
6673 { "wxMenuItem_DeleteSubMenu", (PyCFunction) _wrap_wxMenuItem_DeleteSubMenu, METH_VARARGS | METH_KEYWORDS },
6674 { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
6675 { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
6676 { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
6677 { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
6678 { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
6679 { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
6680 { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
6681 { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
6682 { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
6683 { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
6684 { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS },
6685 { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
6686 { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
6687 { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
6688 { "wxMenuItem_GetName", (PyCFunction) _wrap_wxMenuItem_GetName, METH_VARARGS | METH_KEYWORDS },
6689 { "wxMenuItem_SetName", (PyCFunction) _wrap_wxMenuItem_SetName, METH_VARARGS | METH_KEYWORDS },
6690 { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
6691 { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
6692 { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
6693 { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
6694 { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
6695 { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
6696 { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS },
6697 { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
6698 { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
6699 { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
6700 { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
6701 { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
6702 { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
6703 { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
6704 { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
6705 { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
6706 { "wxMenuBar_FindItemForId", (PyCFunction) _wrap_wxMenuBar_FindItemForId, METH_VARARGS | METH_KEYWORDS },
6707 { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
6708 { "wxMenuBar_Enabled", (PyCFunction) _wrap_wxMenuBar_Enabled, METH_VARARGS | METH_KEYWORDS },
6709 { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
6710 { "wxMenuBar_Checked", (PyCFunction) _wrap_wxMenuBar_Checked, METH_VARARGS | METH_KEYWORDS },
6711 { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS },
6712 { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS },
6713 { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS },
6714 { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS },
6715 { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
6716 { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS },
6717 { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
6718 { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS },
6719 { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
6720 { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS },
6721 { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
6722 { "wxMenu_FindItemForId", (PyCFunction) _wrap_wxMenu_FindItemForId, METH_VARARGS | METH_KEYWORDS },
6723 { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS },
6724 { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS },
6725 { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS },
6726 { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS },
6727 { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS },
6728 { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS },
6729 { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
6730 { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS },
6731 { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
6732 { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS },
6733 { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS },
6734 { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS },
6735 { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS },
6736 { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS },
6737 { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS },
6738 { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
6739 { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
6740 { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS },
6741 { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS },
6742 { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS },
6743 { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS },
6744 { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
6745 { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
6746 { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS },
6747 { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS },
6748 { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS },
6749 { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS },
6750 { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS },
6751 { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS },
6752 { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS },
6753 { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS },
6754 { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS },
6755 { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
6756 { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
6757 { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
6758 { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS },
6759 { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS },
6760 { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS },
6761 { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS },
6762 { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
6763 { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
6764 { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
6765 { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
6766 { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
6767 { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
6768 { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
6769 { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS },
6770 { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS },
6771 { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
6772 { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
6773 { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS },
6774 { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
6775 { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS },
6776 { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS },
6777 { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
6778 { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
6779 { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS },
6780 { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS },
6781 { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS },
6782 { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
6783 { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
6784 { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS },
6785 { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS },
6786 { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
6787 { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS },
6788 { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS },
6789 { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS },
6790 { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
6791 { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
6792 { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
6793 { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
6794 { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
6795 { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
6796 { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS },
6797 { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
6798 { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS },
6799 { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS },
6800 { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS },
6801 { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
6802 { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS },
6803 { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS },
6804 { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS },
6805 { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS },
6806 { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS },
6807 { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS },
6808 { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
6809 { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS },
6810 { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS },
6811 { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS },
6812 { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS },
6813 { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS },
6814 { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
6815 { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
6816 { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
6817 { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
6818 { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
6819 { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS },
6820 { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
6821 { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
6822 { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
6823 { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
6824 { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS },
6825 { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS },
6826 { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
6827 { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS },
6828 { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS },
6829 { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS },
6830 { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS },
6831 { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS },
6832 { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
6833 { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
6834 { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS },
6835 { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS },
6836 { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS },
6837 { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
6838 { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
6839 { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
6840 { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
6841 { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS },
6842 { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
6843 { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS },
6844 { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS },
6845 { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
6846 { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
6847 { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS },
6848 { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS },
6849 { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
6850 { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
6851 { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
6852 { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS },
6853 { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS },
6854 { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS },
6855 { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
6856 { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
6857 { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
6858 { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
6859 { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS },
6860 { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
6861 { NULL, NULL }
6862 };
6863 #ifdef __cplusplus
6864 }
6865 #endif
6866 /*
6867 * This table is used by the pointer type-checker
6868 */
6869 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
6870 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
6871 { "_signed_long","_long",0},
6872 { "_wxPrintQuality","_int",0},
6873 { "_wxPrintQuality","_signed_int",0},
6874 { "_wxPrintQuality","_unsigned_int",0},
6875 { "_wxPrintQuality","_wxWindowID",0},
6876 { "_wxPrintQuality","_uint",0},
6877 { "_wxPrintQuality","_EBool",0},
6878 { "_wxPrintQuality","_size_t",0},
6879 { "_class_wxRegionIterator","_wxRegionIterator",0},
6880 { "_class_wxMenuBar","_wxMenuBar",0},
6881 { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
6882 { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
6883 { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
6884 { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
6885 { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
6886 { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
6887 { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
6888 { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
6889 { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
6890 { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
6891 { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
6892 { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
6893 { "_class_wxEvtHandler","_wxEvtHandler",0},
6894 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
6895 { "_wxCursor","_class_wxCursor",0},
6896 { "_wxMask","_class_wxMask",0},
6897 { "_wxPen","_class_wxPen",0},
6898 { "_byte","_unsigned_char",0},
6899 { "_long","_wxDash",0},
6900 { "_long","_unsigned_long",0},
6901 { "_long","_signed_long",0},
6902 { "_wxImageList","_class_wxImageList",0},
6903 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
6904 { "_wxDC","_class_wxDC",0},
6905 { "_size_t","_wxPrintQuality",0},
6906 { "_size_t","_unsigned_int",0},
6907 { "_size_t","_int",0},
6908 { "_size_t","_wxWindowID",0},
6909 { "_size_t","_uint",0},
6910 { "_class_wxRealPoint","_wxRealPoint",0},
6911 { "_wxPrinterDC","_class_wxPrinterDC",0},
6912 { "_class_wxMenuItem","_wxMenuItem",0},
6913 { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
6914 { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
6915 { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
6916 { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
6917 { "_wxPanel","_class_wxPanel",0},
6918 { "_class_wxMask","_wxMask",0},
6919 { "_wxColour","_class_wxColour",0},
6920 { "_class_wxDialog","_wxDialog",0},
6921 { "_wxBrush","_class_wxBrush",0},
6922 { "_uint","_wxPrintQuality",0},
6923 { "_uint","_size_t",0},
6924 { "_uint","_unsigned_int",0},
6925 { "_uint","_int",0},
6926 { "_uint","_wxWindowID",0},
6927 { "_wxRect","_class_wxRect",0},
6928 { "_wxPoint","_class_wxPoint",0},
6929 { "_wxBitmap","_class_wxBitmap",0},
6930 { "_wxPyTimer","_class_wxPyTimer",0},
6931 { "_wxWindowDC","_class_wxWindowDC",0},
6932 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
6933 { "_EBool","_wxPrintQuality",0},
6934 { "_EBool","_signed_int",0},
6935 { "_EBool","_int",0},
6936 { "_EBool","_wxWindowID",0},
6937 { "_class_wxRegion","_wxRegion",0},
6938 { "_wxFont","_class_wxFont",0},
6939 { "_unsigned_long","_wxDash",0},
6940 { "_unsigned_long","_long",0},
6941 { "_class_wxRect","_wxRect",0},
6942 { "_class_wxDC","_wxDC",0},
6943 { "_class_wxPyTimer","_wxPyTimer",0},
6944 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
6945 { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
6946 { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel},
6947 { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel},
6948 { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel},
6949 { "_class_wxPanel","_wxPanel",0},
6950 { "_signed_int","_wxPrintQuality",0},
6951 { "_signed_int","_EBool",0},
6952 { "_signed_int","_wxWindowID",0},
6953 { "_signed_int","_int",0},
6954 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
6955 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
6956 { "_wxMenu","_class_wxMenu",0},
6957 { "_wxScreenDC","_class_wxScreenDC",0},
6958 { "_WXTYPE","_short",0},
6959 { "_WXTYPE","_signed_short",0},
6960 { "_WXTYPE","_unsigned_short",0},
6961 { "_class_wxBrush","_wxBrush",0},
6962 { "_unsigned_short","_WXTYPE",0},
6963 { "_unsigned_short","_short",0},
6964 { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
6965 { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
6966 { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
6967 { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
6968 { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
6969 { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
6970 { "_class_wxWindow","_wxWindow",0},
6971 { "_class_wxFont","_wxFont",0},
6972 { "_wxClientDC","_class_wxClientDC",0},
6973 { "_class_wxPoint","_wxPoint",0},
6974 { "_wxRealPoint","_class_wxRealPoint",0},
6975 { "_signed_short","_WXTYPE",0},
6976 { "_signed_short","_short",0},
6977 { "_wxMemoryDC","_class_wxMemoryDC",0},
6978 { "_wxPaintDC","_class_wxPaintDC",0},
6979 { "_class_wxWindowDC","_wxWindowDC",0},
6980 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
6981 { "_class_wxCursor","_wxCursor",0},
6982 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
6983 { "_unsigned_char","_byte",0},
6984 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
6985 { "_class_wxMenu","_wxMenu",0},
6986 { "_unsigned_int","_wxPrintQuality",0},
6987 { "_unsigned_int","_size_t",0},
6988 { "_unsigned_int","_uint",0},
6989 { "_unsigned_int","_wxWindowID",0},
6990 { "_unsigned_int","_int",0},
6991 { "_wxIcon","_class_wxIcon",0},
6992 { "_wxDialog","_class_wxDialog",0},
6993 { "_class_wxPen","_wxPen",0},
6994 { "_short","_WXTYPE",0},
6995 { "_short","_unsigned_short",0},
6996 { "_short","_signed_short",0},
6997 { "_class_wxImageList","_wxImageList",0},
6998 { "_wxWindowID","_wxPrintQuality",0},
6999 { "_wxWindowID","_size_t",0},
7000 { "_wxWindowID","_EBool",0},
7001 { "_wxWindowID","_uint",0},
7002 { "_wxWindowID","_int",0},
7003 { "_wxWindowID","_signed_int",0},
7004 { "_wxWindowID","_unsigned_int",0},
7005 { "_int","_wxPrintQuality",0},
7006 { "_int","_size_t",0},
7007 { "_int","_EBool",0},
7008 { "_int","_uint",0},
7009 { "_int","_wxWindowID",0},
7010 { "_int","_unsigned_int",0},
7011 { "_int","_signed_int",0},
7012 { "_wxSize","_class_wxSize",0},
7013 { "_wxRegionIterator","_class_wxRegionIterator",0},
7014 { "_class_wxPrinterDC","_wxPrinterDC",0},
7015 { "_class_wxPaintDC","_wxPaintDC",0},
7016 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
7017 { "_class_wxIcon","_wxIcon",0},
7018 { "_class_wxColour","_wxColour",0},
7019 { "_class_wxScreenDC","_wxScreenDC",0},
7020 { "_wxPalette","_class_wxPalette",0},
7021 { "_wxRegion","_class_wxRegion",0},
7022 { "_class_wxClientDC","_wxClientDC",0},
7023 { "_class_wxSize","_wxSize",0},
7024 { "_class_wxBitmap","_wxBitmap",0},
7025 { "_class_wxMemoryDC","_wxMemoryDC",0},
7026 { "_wxMenuBar","_class_wxMenuBar",0},
7027 { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
7028 { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler},
7029 { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler},
7030 { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler},
7031 { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
7032 { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler},
7033 { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler},
7034 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
7035 { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler},
7036 { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler},
7037 { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler},
7038 { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler},
7039 { "_wxEvtHandler","_class_wxEvtHandler",0},
7040 { "_wxMenuItem","_class_wxMenuItem",0},
7041 { "_wxDash","_unsigned_long",0},
7042 { "_wxDash","_long",0},
7043 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
7044 { "_class_wxPalette","_wxPalette",0},
7045 { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
7046 { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow},
7047 { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow},
7048 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
7049 { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow},
7050 { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow},
7051 { "_wxWindow","_class_wxWindow",0},
7052 {0,0,0}};
7053
7054 static PyObject *SWIG_globals;
7055 #ifdef __cplusplus
7056 extern "C"
7057 #endif
7058 SWIGEXPORT(void) initwindowsc() {
7059 PyObject *m, *d;
7060 SWIG_globals = SWIG_newvarlink();
7061 m = Py_InitModule("windowsc", windowscMethods);
7062 d = PyModule_GetDict(m);
7063 {
7064 int i;
7065 for (i = 0; _swig_mapping[i].n1; i++)
7066 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
7067 }
7068 }