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