]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/frames.cpp
More fixes and updates
[wxWidgets.git] / wxPython / src / gtk / frames.cpp
1 /*
2 * FILE : src/gtk/frames.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initframesc
55
56 #define SWIG_name "framesc"
57
58 #include "helpers.h"
59 #include <wx/minifram.h>
60
61
62 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86 }
87
88 #if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg = "String or Unicode type required";
90 #else
91 static char* wxStringErrorMsg = "String type required";
92 #endif
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96 static void *SwigwxTopLevelWindowTowxWindow(void *ptr) {
97 wxTopLevelWindow *src;
98 wxWindow *dest;
99 src = (wxTopLevelWindow *) ptr;
100 dest = (wxWindow *) src;
101 return (void *) dest;
102 }
103
104 static void *SwigwxTopLevelWindowTowxEvtHandler(void *ptr) {
105 wxTopLevelWindow *src;
106 wxEvtHandler *dest;
107 src = (wxTopLevelWindow *) ptr;
108 dest = (wxEvtHandler *) src;
109 return (void *) dest;
110 }
111
112 static void *SwigwxTopLevelWindowTowxObject(void *ptr) {
113 wxTopLevelWindow *src;
114 wxObject *dest;
115 src = (wxTopLevelWindow *) ptr;
116 dest = (wxObject *) src;
117 return (void *) dest;
118 }
119
120 #define new_wxTopLevelWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxTopLevelWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
121 static PyObject *_wrap_new_wxTopLevelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
122 PyObject * _resultobj;
123 wxTopLevelWindow * _result;
124 wxWindow * _arg0;
125 wxWindowID _arg1;
126 wxString * _arg2;
127 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
128 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
129 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
130 char * _arg6 = (char *) "frame";
131 PyObject * _argo0 = 0;
132 PyObject * _obj2 = 0;
133 wxPoint temp;
134 PyObject * _obj3 = 0;
135 wxSize temp0;
136 PyObject * _obj4 = 0;
137 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
138 char _ptemp[128];
139
140 self = self;
141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxTopLevelWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
142 return NULL;
143 if (_argo0) {
144 if (_argo0 == Py_None) { _arg0 = NULL; }
145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTopLevelWindow. Expected _wxWindow_p.");
147 return NULL;
148 }
149 }
150 {
151 #if PYTHON_API_VERSION >= 1009
152 char* tmpPtr; int tmpSize;
153 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
154 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
155 return NULL;
156 }
157 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
158 return NULL;
159 _arg2 = new wxString(tmpPtr, tmpSize);
160 #else
161 if (!PyString_Check(_obj2)) {
162 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
163 return NULL;
164 }
165 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
166 #endif
167 }
168 if (_obj3)
169 {
170 _arg3 = &temp;
171 if (! wxPoint_helper(_obj3, &_arg3))
172 return NULL;
173 }
174 if (_obj4)
175 {
176 _arg4 = &temp0;
177 if (! wxSize_helper(_obj4, &_arg4))
178 return NULL;
179 }
180 {
181 wxPy_BEGIN_ALLOW_THREADS;
182 _result = (wxTopLevelWindow *)new_wxTopLevelWindow(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
183
184 wxPy_END_ALLOW_THREADS;
185 if (PyErr_Occurred()) return NULL;
186 } if (_result) {
187 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTopLevelWindow_p");
188 _resultobj = Py_BuildValue("s",_ptemp);
189 } else {
190 Py_INCREF(Py_None);
191 _resultobj = Py_None;
192 }
193 {
194 if (_obj2)
195 delete _arg2;
196 }
197 return _resultobj;
198 }
199
200 #define new_wxPreTopLevelWindow() (new wxTopLevelWindow())
201 static PyObject *_wrap_new_wxPreTopLevelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
202 PyObject * _resultobj;
203 wxTopLevelWindow * _result;
204 char *_kwnames[] = { NULL };
205 char _ptemp[128];
206
207 self = self;
208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTopLevelWindow",_kwnames))
209 return NULL;
210 {
211 wxPy_BEGIN_ALLOW_THREADS;
212 _result = (wxTopLevelWindow *)new_wxPreTopLevelWindow();
213
214 wxPy_END_ALLOW_THREADS;
215 if (PyErr_Occurred()) return NULL;
216 } if (_result) {
217 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTopLevelWindow_p");
218 _resultobj = Py_BuildValue("s",_ptemp);
219 } else {
220 Py_INCREF(Py_None);
221 _resultobj = Py_None;
222 }
223 return _resultobj;
224 }
225
226 #define wxTopLevelWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
227 static PyObject *_wrap_wxTopLevelWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
228 PyObject * _resultobj;
229 bool _result;
230 wxTopLevelWindow * _arg0;
231 wxWindow * _arg1;
232 wxWindowID _arg2;
233 wxString * _arg3;
234 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
235 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
236 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE;
237 char * _arg7 = (char *) "frame";
238 PyObject * _argo0 = 0;
239 PyObject * _argo1 = 0;
240 PyObject * _obj3 = 0;
241 wxPoint temp;
242 PyObject * _obj4 = 0;
243 wxSize temp0;
244 PyObject * _obj5 = 0;
245 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
246
247 self = self;
248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxTopLevelWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
249 return NULL;
250 if (_argo0) {
251 if (_argo0 == Py_None) { _arg0 = NULL; }
252 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
253 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Create. Expected _wxTopLevelWindow_p.");
254 return NULL;
255 }
256 }
257 if (_argo1) {
258 if (_argo1 == Py_None) { _arg1 = NULL; }
259 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
260 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTopLevelWindow_Create. Expected _wxWindow_p.");
261 return NULL;
262 }
263 }
264 {
265 #if PYTHON_API_VERSION >= 1009
266 char* tmpPtr; int tmpSize;
267 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
268 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
269 return NULL;
270 }
271 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
272 return NULL;
273 _arg3 = new wxString(tmpPtr, tmpSize);
274 #else
275 if (!PyString_Check(_obj3)) {
276 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
277 return NULL;
278 }
279 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
280 #endif
281 }
282 if (_obj4)
283 {
284 _arg4 = &temp;
285 if (! wxPoint_helper(_obj4, &_arg4))
286 return NULL;
287 }
288 if (_obj5)
289 {
290 _arg5 = &temp0;
291 if (! wxSize_helper(_obj5, &_arg5))
292 return NULL;
293 }
294 {
295 wxPy_BEGIN_ALLOW_THREADS;
296 _result = (bool )wxTopLevelWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
297
298 wxPy_END_ALLOW_THREADS;
299 if (PyErr_Occurred()) return NULL;
300 } _resultobj = Py_BuildValue("i",_result);
301 {
302 if (_obj3)
303 delete _arg3;
304 }
305 return _resultobj;
306 }
307
308 #define wxTopLevelWindow_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0))
309 static PyObject *_wrap_wxTopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) {
310 PyObject * _resultobj;
311 wxTopLevelWindow * _arg0;
312 bool _arg1 = (bool ) TRUE;
313 PyObject * _argo0 = 0;
314 int tempbool1 = (int) TRUE;
315 char *_kwnames[] = { "self","maximize", NULL };
316
317 self = self;
318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxTopLevelWindow_Maximize",_kwnames,&_argo0,&tempbool1))
319 return NULL;
320 if (_argo0) {
321 if (_argo0 == Py_None) { _arg0 = NULL; }
322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Maximize. Expected _wxTopLevelWindow_p.");
324 return NULL;
325 }
326 }
327 _arg1 = (bool ) tempbool1;
328 {
329 wxPy_BEGIN_ALLOW_THREADS;
330 wxTopLevelWindow_Maximize(_arg0,_arg1);
331
332 wxPy_END_ALLOW_THREADS;
333 if (PyErr_Occurred()) return NULL;
334 } Py_INCREF(Py_None);
335 _resultobj = Py_None;
336 return _resultobj;
337 }
338
339 #define wxTopLevelWindow_Restore(_swigobj) (_swigobj->Restore())
340 static PyObject *_wrap_wxTopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) {
341 PyObject * _resultobj;
342 wxTopLevelWindow * _arg0;
343 PyObject * _argo0 = 0;
344 char *_kwnames[] = { "self", NULL };
345
346 self = self;
347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_Restore",_kwnames,&_argo0))
348 return NULL;
349 if (_argo0) {
350 if (_argo0 == Py_None) { _arg0 = NULL; }
351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Restore. Expected _wxTopLevelWindow_p.");
353 return NULL;
354 }
355 }
356 {
357 wxPy_BEGIN_ALLOW_THREADS;
358 wxTopLevelWindow_Restore(_arg0);
359
360 wxPy_END_ALLOW_THREADS;
361 if (PyErr_Occurred()) return NULL;
362 } Py_INCREF(Py_None);
363 _resultobj = Py_None;
364 return _resultobj;
365 }
366
367 #define wxTopLevelWindow_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0))
368 static PyObject *_wrap_wxTopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) {
369 PyObject * _resultobj;
370 wxTopLevelWindow * _arg0;
371 bool _arg1 = (bool ) TRUE;
372 PyObject * _argo0 = 0;
373 int tempbool1 = (int) TRUE;
374 char *_kwnames[] = { "self","iconize", NULL };
375
376 self = self;
377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxTopLevelWindow_Iconize",_kwnames,&_argo0,&tempbool1))
378 return NULL;
379 if (_argo0) {
380 if (_argo0 == Py_None) { _arg0 = NULL; }
381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_Iconize. Expected _wxTopLevelWindow_p.");
383 return NULL;
384 }
385 }
386 _arg1 = (bool ) tempbool1;
387 {
388 wxPy_BEGIN_ALLOW_THREADS;
389 wxTopLevelWindow_Iconize(_arg0,_arg1);
390
391 wxPy_END_ALLOW_THREADS;
392 if (PyErr_Occurred()) return NULL;
393 } Py_INCREF(Py_None);
394 _resultobj = Py_None;
395 return _resultobj;
396 }
397
398 #define wxTopLevelWindow_IsMaximized(_swigobj) (_swigobj->IsMaximized())
399 static PyObject *_wrap_wxTopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) {
400 PyObject * _resultobj;
401 bool _result;
402 wxTopLevelWindow * _arg0;
403 PyObject * _argo0 = 0;
404 char *_kwnames[] = { "self", NULL };
405
406 self = self;
407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsMaximized",_kwnames,&_argo0))
408 return NULL;
409 if (_argo0) {
410 if (_argo0 == Py_None) { _arg0 = NULL; }
411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsMaximized. Expected _wxTopLevelWindow_p.");
413 return NULL;
414 }
415 }
416 {
417 wxPy_BEGIN_ALLOW_THREADS;
418 _result = (bool )wxTopLevelWindow_IsMaximized(_arg0);
419
420 wxPy_END_ALLOW_THREADS;
421 if (PyErr_Occurred()) return NULL;
422 } _resultobj = Py_BuildValue("i",_result);
423 return _resultobj;
424 }
425
426 #define wxTopLevelWindow_IsIconized(_swigobj) (_swigobj->IsIconized())
427 static PyObject *_wrap_wxTopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) {
428 PyObject * _resultobj;
429 bool _result;
430 wxTopLevelWindow * _arg0;
431 PyObject * _argo0 = 0;
432 char *_kwnames[] = { "self", NULL };
433
434 self = self;
435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsIconized",_kwnames,&_argo0))
436 return NULL;
437 if (_argo0) {
438 if (_argo0 == Py_None) { _arg0 = NULL; }
439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsIconized. Expected _wxTopLevelWindow_p.");
441 return NULL;
442 }
443 }
444 {
445 wxPy_BEGIN_ALLOW_THREADS;
446 _result = (bool )wxTopLevelWindow_IsIconized(_arg0);
447
448 wxPy_END_ALLOW_THREADS;
449 if (PyErr_Occurred()) return NULL;
450 } _resultobj = Py_BuildValue("i",_result);
451 return _resultobj;
452 }
453
454 #define wxTopLevelWindow_GetIcon(_swigobj) (_swigobj->GetIcon())
455 static PyObject *_wrap_wxTopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
456 PyObject * _resultobj;
457 wxIcon * _result;
458 wxTopLevelWindow * _arg0;
459 PyObject * _argo0 = 0;
460 char *_kwnames[] = { "self", NULL };
461 char _ptemp[128];
462
463 self = self;
464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_GetIcon",_kwnames,&_argo0))
465 return NULL;
466 if (_argo0) {
467 if (_argo0 == Py_None) { _arg0 = NULL; }
468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_GetIcon. Expected _wxTopLevelWindow_p.");
470 return NULL;
471 }
472 }
473 {
474 wxPy_BEGIN_ALLOW_THREADS;
475 _result = new wxIcon (wxTopLevelWindow_GetIcon(_arg0));
476
477 wxPy_END_ALLOW_THREADS;
478 if (PyErr_Occurred()) return NULL;
479 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
480 _resultobj = Py_BuildValue("s",_ptemp);
481 return _resultobj;
482 }
483
484 #define wxTopLevelWindow_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
485 static PyObject *_wrap_wxTopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
486 PyObject * _resultobj;
487 wxTopLevelWindow * _arg0;
488 wxIcon * _arg1;
489 PyObject * _argo0 = 0;
490 PyObject * _argo1 = 0;
491 char *_kwnames[] = { "self","icon", NULL };
492
493 self = self;
494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetIcon",_kwnames,&_argo0,&_argo1))
495 return NULL;
496 if (_argo0) {
497 if (_argo0 == Py_None) { _arg0 = NULL; }
498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetIcon. Expected _wxTopLevelWindow_p.");
500 return NULL;
501 }
502 }
503 if (_argo1) {
504 if (_argo1 == Py_None) { _arg1 = NULL; }
505 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
506 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTopLevelWindow_SetIcon. Expected _wxIcon_p.");
507 return NULL;
508 }
509 }
510 {
511 wxPy_BEGIN_ALLOW_THREADS;
512 wxTopLevelWindow_SetIcon(_arg0,*_arg1);
513
514 wxPy_END_ALLOW_THREADS;
515 if (PyErr_Occurred()) return NULL;
516 } Py_INCREF(Py_None);
517 _resultobj = Py_None;
518 return _resultobj;
519 }
520
521 #define wxTopLevelWindow_ShowFullScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShowFullScreen(_swigarg0,_swigarg1))
522 static PyObject *_wrap_wxTopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
523 PyObject * _resultobj;
524 bool _result;
525 wxTopLevelWindow * _arg0;
526 bool _arg1;
527 long _arg2 = (long ) (wxFULLSCREEN_ALL);
528 PyObject * _argo0 = 0;
529 int tempbool1;
530 char *_kwnames[] = { "self","show","style", NULL };
531
532 self = self;
533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|l:wxTopLevelWindow_ShowFullScreen",_kwnames,&_argo0,&tempbool1,&_arg2))
534 return NULL;
535 if (_argo0) {
536 if (_argo0 == Py_None) { _arg0 = NULL; }
537 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
538 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_ShowFullScreen. Expected _wxTopLevelWindow_p.");
539 return NULL;
540 }
541 }
542 _arg1 = (bool ) tempbool1;
543 {
544 wxPy_BEGIN_ALLOW_THREADS;
545 _result = (bool )wxTopLevelWindow_ShowFullScreen(_arg0,_arg1,_arg2);
546
547 wxPy_END_ALLOW_THREADS;
548 if (PyErr_Occurred()) return NULL;
549 } _resultobj = Py_BuildValue("i",_result);
550 return _resultobj;
551 }
552
553 #define wxTopLevelWindow_IsFullScreen(_swigobj) (_swigobj->IsFullScreen())
554 static PyObject *_wrap_wxTopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
555 PyObject * _resultobj;
556 bool _result;
557 wxTopLevelWindow * _arg0;
558 PyObject * _argo0 = 0;
559 char *_kwnames[] = { "self", NULL };
560
561 self = self;
562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_IsFullScreen",_kwnames,&_argo0))
563 return NULL;
564 if (_argo0) {
565 if (_argo0 == Py_None) { _arg0 = NULL; }
566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_IsFullScreen. Expected _wxTopLevelWindow_p.");
568 return NULL;
569 }
570 }
571 {
572 wxPy_BEGIN_ALLOW_THREADS;
573 _result = (bool )wxTopLevelWindow_IsFullScreen(_arg0);
574
575 wxPy_END_ALLOW_THREADS;
576 if (PyErr_Occurred()) return NULL;
577 } _resultobj = Py_BuildValue("i",_result);
578 return _resultobj;
579 }
580
581 #define wxTopLevelWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
582 static PyObject *_wrap_wxTopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
583 PyObject * _resultobj;
584 wxTopLevelWindow * _arg0;
585 wxString * _arg1;
586 PyObject * _argo0 = 0;
587 PyObject * _obj1 = 0;
588 char *_kwnames[] = { "self","title", NULL };
589
590 self = self;
591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetTitle",_kwnames,&_argo0,&_obj1))
592 return NULL;
593 if (_argo0) {
594 if (_argo0 == Py_None) { _arg0 = NULL; }
595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetTitle. Expected _wxTopLevelWindow_p.");
597 return NULL;
598 }
599 }
600 {
601 #if PYTHON_API_VERSION >= 1009
602 char* tmpPtr; int tmpSize;
603 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
604 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
605 return NULL;
606 }
607 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
608 return NULL;
609 _arg1 = new wxString(tmpPtr, tmpSize);
610 #else
611 if (!PyString_Check(_obj1)) {
612 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
613 return NULL;
614 }
615 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
616 #endif
617 }
618 {
619 wxPy_BEGIN_ALLOW_THREADS;
620 wxTopLevelWindow_SetTitle(_arg0,*_arg1);
621
622 wxPy_END_ALLOW_THREADS;
623 if (PyErr_Occurred()) return NULL;
624 } Py_INCREF(Py_None);
625 _resultobj = Py_None;
626 {
627 if (_obj1)
628 delete _arg1;
629 }
630 return _resultobj;
631 }
632
633 #define wxTopLevelWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
634 static PyObject *_wrap_wxTopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
635 PyObject * _resultobj;
636 wxString * _result;
637 wxTopLevelWindow * _arg0;
638 PyObject * _argo0 = 0;
639 char *_kwnames[] = { "self", NULL };
640
641 self = self;
642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_GetTitle",_kwnames,&_argo0))
643 return NULL;
644 if (_argo0) {
645 if (_argo0 == Py_None) { _arg0 = NULL; }
646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_GetTitle. Expected _wxTopLevelWindow_p.");
648 return NULL;
649 }
650 }
651 {
652 wxPy_BEGIN_ALLOW_THREADS;
653 _result = new wxString (wxTopLevelWindow_GetTitle(_arg0));
654
655 wxPy_END_ALLOW_THREADS;
656 if (PyErr_Occurred()) return NULL;
657 }{
658 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
659 }
660 {
661 delete _result;
662 }
663 return _resultobj;
664 }
665
666 static void *SwigwxFrameTowxTopLevelWindow(void *ptr) {
667 wxFrame *src;
668 wxTopLevelWindow *dest;
669 src = (wxFrame *) ptr;
670 dest = (wxTopLevelWindow *) src;
671 return (void *) dest;
672 }
673
674 static void *SwigwxFrameTowxWindow(void *ptr) {
675 wxFrame *src;
676 wxWindow *dest;
677 src = (wxFrame *) ptr;
678 dest = (wxWindow *) src;
679 return (void *) dest;
680 }
681
682 static void *SwigwxFrameTowxEvtHandler(void *ptr) {
683 wxFrame *src;
684 wxEvtHandler *dest;
685 src = (wxFrame *) ptr;
686 dest = (wxEvtHandler *) src;
687 return (void *) dest;
688 }
689
690 static void *SwigwxFrameTowxObject(void *ptr) {
691 wxFrame *src;
692 wxObject *dest;
693 src = (wxFrame *) ptr;
694 dest = (wxObject *) src;
695 return (void *) dest;
696 }
697
698 #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
699 static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
700 PyObject * _resultobj;
701 wxFrame * _result;
702 wxWindow * _arg0;
703 wxWindowID _arg1;
704 wxString * _arg2;
705 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
706 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
707 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
708 char * _arg6 = (char *) "frame";
709 PyObject * _argo0 = 0;
710 PyObject * _obj2 = 0;
711 wxPoint temp;
712 PyObject * _obj3 = 0;
713 wxSize temp0;
714 PyObject * _obj4 = 0;
715 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
716 char _ptemp[128];
717
718 self = self;
719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
720 return NULL;
721 if (_argo0) {
722 if (_argo0 == Py_None) { _arg0 = NULL; }
723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p.");
725 return NULL;
726 }
727 }
728 {
729 #if PYTHON_API_VERSION >= 1009
730 char* tmpPtr; int tmpSize;
731 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
732 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
733 return NULL;
734 }
735 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
736 return NULL;
737 _arg2 = new wxString(tmpPtr, tmpSize);
738 #else
739 if (!PyString_Check(_obj2)) {
740 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
741 return NULL;
742 }
743 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
744 #endif
745 }
746 if (_obj3)
747 {
748 _arg3 = &temp;
749 if (! wxPoint_helper(_obj3, &_arg3))
750 return NULL;
751 }
752 if (_obj4)
753 {
754 _arg4 = &temp0;
755 if (! wxSize_helper(_obj4, &_arg4))
756 return NULL;
757 }
758 {
759 wxPy_BEGIN_ALLOW_THREADS;
760 _result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
761
762 wxPy_END_ALLOW_THREADS;
763 if (PyErr_Occurred()) return NULL;
764 } if (_result) {
765 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
766 _resultobj = Py_BuildValue("s",_ptemp);
767 } else {
768 Py_INCREF(Py_None);
769 _resultobj = Py_None;
770 }
771 {
772 if (_obj2)
773 delete _arg2;
774 }
775 return _resultobj;
776 }
777
778 #define new_wxPreFrame() (new wxFrame())
779 static PyObject *_wrap_new_wxPreFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
780 PyObject * _resultobj;
781 wxFrame * _result;
782 char *_kwnames[] = { NULL };
783 char _ptemp[128];
784
785 self = self;
786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreFrame",_kwnames))
787 return NULL;
788 {
789 wxPy_BEGIN_ALLOW_THREADS;
790 _result = (wxFrame *)new_wxPreFrame();
791
792 wxPy_END_ALLOW_THREADS;
793 if (PyErr_Occurred()) return NULL;
794 } if (_result) {
795 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
796 _resultobj = Py_BuildValue("s",_ptemp);
797 } else {
798 Py_INCREF(Py_None);
799 _resultobj = Py_None;
800 }
801 return _resultobj;
802 }
803
804 #define wxFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
805 static PyObject *_wrap_wxFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
806 PyObject * _resultobj;
807 bool _result;
808 wxFrame * _arg0;
809 wxWindow * _arg1;
810 wxWindowID _arg2;
811 wxString * _arg3;
812 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
813 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
814 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE;
815 char * _arg7 = (char *) "frame";
816 PyObject * _argo0 = 0;
817 PyObject * _argo1 = 0;
818 PyObject * _obj3 = 0;
819 wxPoint temp;
820 PyObject * _obj4 = 0;
821 wxSize temp0;
822 PyObject * _obj5 = 0;
823 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
824
825 self = self;
826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
827 return NULL;
828 if (_argo0) {
829 if (_argo0 == Py_None) { _arg0 = NULL; }
830 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
831 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Create. Expected _wxFrame_p.");
832 return NULL;
833 }
834 }
835 if (_argo1) {
836 if (_argo1 == Py_None) { _arg1 = NULL; }
837 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
838 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_Create. Expected _wxWindow_p.");
839 return NULL;
840 }
841 }
842 {
843 #if PYTHON_API_VERSION >= 1009
844 char* tmpPtr; int tmpSize;
845 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
846 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
847 return NULL;
848 }
849 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
850 return NULL;
851 _arg3 = new wxString(tmpPtr, tmpSize);
852 #else
853 if (!PyString_Check(_obj3)) {
854 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
855 return NULL;
856 }
857 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
858 #endif
859 }
860 if (_obj4)
861 {
862 _arg4 = &temp;
863 if (! wxPoint_helper(_obj4, &_arg4))
864 return NULL;
865 }
866 if (_obj5)
867 {
868 _arg5 = &temp0;
869 if (! wxSize_helper(_obj5, &_arg5))
870 return NULL;
871 }
872 {
873 wxPy_BEGIN_ALLOW_THREADS;
874 _result = (bool )wxFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
875
876 wxPy_END_ALLOW_THREADS;
877 if (PyErr_Occurred()) return NULL;
878 } _resultobj = Py_BuildValue("i",_result);
879 {
880 if (_obj3)
881 delete _arg3;
882 }
883 return _resultobj;
884 }
885
886 #define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
887 static PyObject *_wrap_wxFrame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
888 PyObject * _resultobj;
889 wxPoint * _result;
890 wxFrame * _arg0;
891 PyObject * _argo0 = 0;
892 char *_kwnames[] = { "self", NULL };
893 char _ptemp[128];
894
895 self = self;
896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetClientAreaOrigin",_kwnames,&_argo0))
897 return NULL;
898 if (_argo0) {
899 if (_argo0 == Py_None) { _arg0 = NULL; }
900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetClientAreaOrigin. Expected _wxFrame_p.");
902 return NULL;
903 }
904 }
905 {
906 wxPy_BEGIN_ALLOW_THREADS;
907 _result = new wxPoint (wxFrame_GetClientAreaOrigin(_arg0));
908
909 wxPy_END_ALLOW_THREADS;
910 if (PyErr_Occurred()) return NULL;
911 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
912 _resultobj = Py_BuildValue("s",_ptemp);
913 return _resultobj;
914 }
915
916 #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
917 static PyObject *_wrap_wxFrame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
918 PyObject * _resultobj;
919 wxFrame * _arg0;
920 wxMenuBar * _arg1;
921 PyObject * _argo0 = 0;
922 PyObject * _argo1 = 0;
923 char *_kwnames[] = { "self","menubar", NULL };
924
925 self = self;
926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetMenuBar",_kwnames,&_argo0,&_argo1))
927 return NULL;
928 if (_argo0) {
929 if (_argo0 == Py_None) { _arg0 = NULL; }
930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p.");
932 return NULL;
933 }
934 }
935 if (_argo1) {
936 if (_argo1 == Py_None) { _arg1 = NULL; }
937 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuBar_p")) {
938 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p.");
939 return NULL;
940 }
941 }
942 {
943 wxPy_BEGIN_ALLOW_THREADS;
944 wxFrame_SetMenuBar(_arg0,_arg1);
945
946 wxPy_END_ALLOW_THREADS;
947 if (PyErr_Occurred()) return NULL;
948 } Py_INCREF(Py_None);
949 _resultobj = Py_None;
950 return _resultobj;
951 }
952
953 #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar())
954 static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
955 PyObject * _resultobj;
956 wxMenuBar * _result;
957 wxFrame * _arg0;
958 PyObject * _argo0 = 0;
959 char *_kwnames[] = { "self", NULL };
960
961 self = self;
962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetMenuBar",_kwnames,&_argo0))
963 return NULL;
964 if (_argo0) {
965 if (_argo0 == Py_None) { _arg0 = NULL; }
966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p.");
968 return NULL;
969 }
970 }
971 {
972 wxPy_BEGIN_ALLOW_THREADS;
973 _result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0);
974
975 wxPy_END_ALLOW_THREADS;
976 if (PyErr_Occurred()) return NULL;
977 }{ _resultobj = wxPyMake_wxObject(_result); }
978 return _resultobj;
979 }
980
981 #define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
982 static PyObject *_wrap_wxFrame_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject * _resultobj;
984 bool _result;
985 wxFrame * _arg0;
986 int _arg1;
987 PyObject * _argo0 = 0;
988 char *_kwnames[] = { "self","id", NULL };
989
990 self = self;
991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Command",_kwnames,&_argo0,&_arg1))
992 return NULL;
993 if (_argo0) {
994 if (_argo0 == Py_None) { _arg0 = NULL; }
995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p.");
997 return NULL;
998 }
999 }
1000 {
1001 wxPy_BEGIN_ALLOW_THREADS;
1002 _result = (bool )wxFrame_Command(_arg0,_arg1);
1003
1004 wxPy_END_ALLOW_THREADS;
1005 if (PyErr_Occurred()) return NULL;
1006 } _resultobj = Py_BuildValue("i",_result);
1007 return _resultobj;
1008 }
1009
1010 #define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0))
1011 static PyObject *_wrap_wxFrame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
1012 PyObject * _resultobj;
1013 bool _result;
1014 wxFrame * _arg0;
1015 int _arg1;
1016 PyObject * _argo0 = 0;
1017 char *_kwnames[] = { "self","id", NULL };
1018
1019 self = self;
1020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_ProcessCommand",_kwnames,&_argo0,&_arg1))
1021 return NULL;
1022 if (_argo0) {
1023 if (_argo0 == Py_None) { _arg0 = NULL; }
1024 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1025 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ProcessCommand. Expected _wxFrame_p.");
1026 return NULL;
1027 }
1028 }
1029 {
1030 wxPy_BEGIN_ALLOW_THREADS;
1031 _result = (bool )wxFrame_ProcessCommand(_arg0,_arg1);
1032
1033 wxPy_END_ALLOW_THREADS;
1034 if (PyErr_Occurred()) return NULL;
1035 } _resultobj = Py_BuildValue("i",_result);
1036 return _resultobj;
1037 }
1038
1039 #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1040 static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1041 PyObject * _resultobj;
1042 wxStatusBar * _result;
1043 wxFrame * _arg0;
1044 int _arg1 = (int ) 1;
1045 long _arg2 = (long ) wxST_SIZEGRIP;
1046 wxWindowID _arg3 = (wxWindowID ) -1;
1047 char * _arg4 = (char *) "statusBar";
1048 PyObject * _argo0 = 0;
1049 char *_kwnames[] = { "self","number","style","id","name", NULL };
1050
1051 self = self;
1052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ilis:wxFrame_CreateStatusBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
1053 return NULL;
1054 if (_argo0) {
1055 if (_argo0 == Py_None) { _arg0 = NULL; }
1056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p.");
1058 return NULL;
1059 }
1060 }
1061 {
1062 wxPy_BEGIN_ALLOW_THREADS;
1063 _result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4);
1064
1065 wxPy_END_ALLOW_THREADS;
1066 if (PyErr_Occurred()) return NULL;
1067 }{ _resultobj = wxPyMake_wxObject(_result); }
1068 return _resultobj;
1069 }
1070
1071 #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar())
1072 static PyObject *_wrap_wxFrame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1073 PyObject * _resultobj;
1074 wxStatusBar * _result;
1075 wxFrame * _arg0;
1076 PyObject * _argo0 = 0;
1077 char *_kwnames[] = { "self", NULL };
1078
1079 self = self;
1080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetStatusBar",_kwnames,&_argo0))
1081 return NULL;
1082 if (_argo0) {
1083 if (_argo0 == Py_None) { _arg0 = NULL; }
1084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p.");
1086 return NULL;
1087 }
1088 }
1089 {
1090 wxPy_BEGIN_ALLOW_THREADS;
1091 _result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0);
1092
1093 wxPy_END_ALLOW_THREADS;
1094 if (PyErr_Occurred()) return NULL;
1095 }{ _resultobj = wxPyMake_wxObject(_result); }
1096 return _resultobj;
1097 }
1098
1099 #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0))
1100 static PyObject *_wrap_wxFrame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1101 PyObject * _resultobj;
1102 wxFrame * _arg0;
1103 wxStatusBar * _arg1;
1104 PyObject * _argo0 = 0;
1105 PyObject * _argo1 = 0;
1106 char *_kwnames[] = { "self","statBar", NULL };
1107
1108 self = self;
1109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusBar",_kwnames,&_argo0,&_argo1))
1110 return NULL;
1111 if (_argo0) {
1112 if (_argo0 == Py_None) { _arg0 = NULL; }
1113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p.");
1115 return NULL;
1116 }
1117 }
1118 if (_argo1) {
1119 if (_argo1 == Py_None) { _arg1 = NULL; }
1120 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxStatusBar_p")) {
1121 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p.");
1122 return NULL;
1123 }
1124 }
1125 {
1126 wxPy_BEGIN_ALLOW_THREADS;
1127 wxFrame_SetStatusBar(_arg0,_arg1);
1128
1129 wxPy_END_ALLOW_THREADS;
1130 if (PyErr_Occurred()) return NULL;
1131 } Py_INCREF(Py_None);
1132 _resultobj = Py_None;
1133 return _resultobj;
1134 }
1135
1136 #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
1137 static PyObject *_wrap_wxFrame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) {
1138 PyObject * _resultobj;
1139 wxFrame * _arg0;
1140 wxString * _arg1;
1141 int _arg2 = (int ) 0;
1142 PyObject * _argo0 = 0;
1143 PyObject * _obj1 = 0;
1144 char *_kwnames[] = { "self","text","number", NULL };
1145
1146 self = self;
1147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFrame_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2))
1148 return NULL;
1149 if (_argo0) {
1150 if (_argo0 == Py_None) { _arg0 = NULL; }
1151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p.");
1153 return NULL;
1154 }
1155 }
1156 {
1157 #if PYTHON_API_VERSION >= 1009
1158 char* tmpPtr; int tmpSize;
1159 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1160 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1161 return NULL;
1162 }
1163 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1164 return NULL;
1165 _arg1 = new wxString(tmpPtr, tmpSize);
1166 #else
1167 if (!PyString_Check(_obj1)) {
1168 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1169 return NULL;
1170 }
1171 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1172 #endif
1173 }
1174 {
1175 wxPy_BEGIN_ALLOW_THREADS;
1176 wxFrame_SetStatusText(_arg0,*_arg1,_arg2);
1177
1178 wxPy_END_ALLOW_THREADS;
1179 if (PyErr_Occurred()) return NULL;
1180 } Py_INCREF(Py_None);
1181 _resultobj = Py_None;
1182 {
1183 if (_obj1)
1184 delete _arg1;
1185 }
1186 return _resultobj;
1187 }
1188
1189 #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
1190 static PyObject *_wrap_wxFrame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
1191 PyObject * _resultobj;
1192 wxFrame * _arg0;
1193 int _arg1;
1194 int * _arg2;
1195 PyObject * _argo0 = 0;
1196 PyObject * _obj2 = 0;
1197 char *_kwnames[] = { "self","choices", NULL };
1198
1199 self = self;
1200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusWidths",_kwnames,&_argo0,&_obj2))
1201 return NULL;
1202 if (_argo0) {
1203 if (_argo0 == Py_None) { _arg0 = NULL; }
1204 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusWidths. Expected _wxFrame_p.");
1206 return NULL;
1207 }
1208 }
1209 if (_obj2)
1210 {
1211 _arg2 = int_LIST_helper(_obj2);
1212 if (_arg2 == NULL) {
1213 return NULL;
1214 }
1215 }
1216 {
1217 if (_obj2) {
1218 _arg1 = PyList_Size(_obj2);
1219 }
1220 else {
1221 _arg1 = 0;
1222 }
1223 }
1224 {
1225 wxPy_BEGIN_ALLOW_THREADS;
1226 wxFrame_SetStatusWidths(_arg0,_arg1,_arg2);
1227
1228 wxPy_END_ALLOW_THREADS;
1229 if (PyErr_Occurred()) return NULL;
1230 } Py_INCREF(Py_None);
1231 _resultobj = Py_None;
1232 {
1233 delete [] _arg2;
1234 }
1235 return _resultobj;
1236 }
1237
1238 #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2))
1239 static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1240 PyObject * _resultobj;
1241 wxToolBar * _result;
1242 wxFrame * _arg0;
1243 long _arg1 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
1244 wxWindowID _arg2 = (wxWindowID ) -1;
1245 char * _arg3 = (char *) "toolBar";
1246 PyObject * _argo0 = 0;
1247 char *_kwnames[] = { "self","style","id","name", NULL };
1248
1249 self = self;
1250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|lis:wxFrame_CreateToolBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1251 return NULL;
1252 if (_argo0) {
1253 if (_argo0 == Py_None) { _arg0 = NULL; }
1254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p.");
1256 return NULL;
1257 }
1258 }
1259 {
1260 wxPy_BEGIN_ALLOW_THREADS;
1261 _result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3);
1262
1263 wxPy_END_ALLOW_THREADS;
1264 if (PyErr_Occurred()) return NULL;
1265 }{ _resultobj = wxPyMake_wxObject(_result); }
1266 return _resultobj;
1267 }
1268
1269 #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
1270 static PyObject *_wrap_wxFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1271 PyObject * _resultobj;
1272 wxToolBar * _result;
1273 wxFrame * _arg0;
1274 PyObject * _argo0 = 0;
1275 char *_kwnames[] = { "self", NULL };
1276
1277 self = self;
1278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetToolBar",_kwnames,&_argo0))
1279 return NULL;
1280 if (_argo0) {
1281 if (_argo0 == Py_None) { _arg0 = NULL; }
1282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p.");
1284 return NULL;
1285 }
1286 }
1287 {
1288 wxPy_BEGIN_ALLOW_THREADS;
1289 _result = (wxToolBar *)wxFrame_GetToolBar(_arg0);
1290
1291 wxPy_END_ALLOW_THREADS;
1292 if (PyErr_Occurred()) return NULL;
1293 }{ _resultobj = wxPyMake_wxObject(_result); }
1294 return _resultobj;
1295 }
1296
1297 #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
1298 static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1299 PyObject * _resultobj;
1300 wxFrame * _arg0;
1301 wxToolBar * _arg1;
1302 PyObject * _argo0 = 0;
1303 PyObject * _argo1 = 0;
1304 char *_kwnames[] = { "self","toolbar", NULL };
1305
1306 self = self;
1307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetToolBar",_kwnames,&_argo0,&_argo1))
1308 return NULL;
1309 if (_argo0) {
1310 if (_argo0 == Py_None) { _arg0 = NULL; }
1311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p.");
1313 return NULL;
1314 }
1315 }
1316 if (_argo1) {
1317 if (_argo1 == Py_None) { _arg1 = NULL; }
1318 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBar_p")) {
1319 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p.");
1320 return NULL;
1321 }
1322 }
1323 {
1324 wxPy_BEGIN_ALLOW_THREADS;
1325 wxFrame_SetToolBar(_arg0,_arg1);
1326
1327 wxPy_END_ALLOW_THREADS;
1328 if (PyErr_Occurred()) return NULL;
1329 } Py_INCREF(Py_None);
1330 _resultobj = Py_None;
1331 return _resultobj;
1332 }
1333
1334 static void *SwigwxDialogTowxTopLevelWindow(void *ptr) {
1335 wxDialog *src;
1336 wxTopLevelWindow *dest;
1337 src = (wxDialog *) ptr;
1338 dest = (wxTopLevelWindow *) src;
1339 return (void *) dest;
1340 }
1341
1342 static void *SwigwxDialogTowxWindow(void *ptr) {
1343 wxDialog *src;
1344 wxWindow *dest;
1345 src = (wxDialog *) ptr;
1346 dest = (wxWindow *) src;
1347 return (void *) dest;
1348 }
1349
1350 static void *SwigwxDialogTowxEvtHandler(void *ptr) {
1351 wxDialog *src;
1352 wxEvtHandler *dest;
1353 src = (wxDialog *) ptr;
1354 dest = (wxEvtHandler *) src;
1355 return (void *) dest;
1356 }
1357
1358 static void *SwigwxDialogTowxObject(void *ptr) {
1359 wxDialog *src;
1360 wxObject *dest;
1361 src = (wxDialog *) ptr;
1362 dest = (wxObject *) src;
1363 return (void *) dest;
1364 }
1365
1366 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1367 static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1368 PyObject * _resultobj;
1369 wxDialog * _result;
1370 wxWindow * _arg0;
1371 wxWindowID _arg1;
1372 wxString * _arg2;
1373 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1374 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1375 long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE;
1376 char * _arg6 = (char *) "dialogBox";
1377 PyObject * _argo0 = 0;
1378 PyObject * _obj2 = 0;
1379 wxPoint temp;
1380 PyObject * _obj3 = 0;
1381 wxSize temp0;
1382 PyObject * _obj4 = 0;
1383 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
1384 char _ptemp[128];
1385
1386 self = self;
1387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
1388 return NULL;
1389 if (_argo0) {
1390 if (_argo0 == Py_None) { _arg0 = NULL; }
1391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
1393 return NULL;
1394 }
1395 }
1396 {
1397 #if PYTHON_API_VERSION >= 1009
1398 char* tmpPtr; int tmpSize;
1399 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1400 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1401 return NULL;
1402 }
1403 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1404 return NULL;
1405 _arg2 = new wxString(tmpPtr, tmpSize);
1406 #else
1407 if (!PyString_Check(_obj2)) {
1408 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1409 return NULL;
1410 }
1411 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1412 #endif
1413 }
1414 if (_obj3)
1415 {
1416 _arg3 = &temp;
1417 if (! wxPoint_helper(_obj3, &_arg3))
1418 return NULL;
1419 }
1420 if (_obj4)
1421 {
1422 _arg4 = &temp0;
1423 if (! wxSize_helper(_obj4, &_arg4))
1424 return NULL;
1425 }
1426 {
1427 wxPy_BEGIN_ALLOW_THREADS;
1428 _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
1429
1430 wxPy_END_ALLOW_THREADS;
1431 if (PyErr_Occurred()) return NULL;
1432 } if (_result) {
1433 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
1434 _resultobj = Py_BuildValue("s",_ptemp);
1435 } else {
1436 Py_INCREF(Py_None);
1437 _resultobj = Py_None;
1438 }
1439 {
1440 if (_obj2)
1441 delete _arg2;
1442 }
1443 return _resultobj;
1444 }
1445
1446 #define new_wxPreDialog() (new wxDialog())
1447 static PyObject *_wrap_new_wxPreDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1448 PyObject * _resultobj;
1449 wxDialog * _result;
1450 char *_kwnames[] = { NULL };
1451 char _ptemp[128];
1452
1453 self = self;
1454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDialog",_kwnames))
1455 return NULL;
1456 {
1457 wxPy_BEGIN_ALLOW_THREADS;
1458 _result = (wxDialog *)new_wxPreDialog();
1459
1460 wxPy_END_ALLOW_THREADS;
1461 if (PyErr_Occurred()) return NULL;
1462 } if (_result) {
1463 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
1464 _resultobj = Py_BuildValue("s",_ptemp);
1465 } else {
1466 Py_INCREF(Py_None);
1467 _resultobj = Py_None;
1468 }
1469 return _resultobj;
1470 }
1471
1472 #define wxDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1473 static PyObject *_wrap_wxDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1474 PyObject * _resultobj;
1475 bool _result;
1476 wxDialog * _arg0;
1477 wxWindow * _arg1;
1478 wxWindowID _arg2;
1479 wxString * _arg3;
1480 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1481 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1482 long _arg6 = (long ) wxDEFAULT_DIALOG_STYLE;
1483 char * _arg7 = (char *) "dialogBox";
1484 PyObject * _argo0 = 0;
1485 PyObject * _argo1 = 0;
1486 PyObject * _obj3 = 0;
1487 wxPoint temp;
1488 PyObject * _obj4 = 0;
1489 wxSize temp0;
1490 PyObject * _obj5 = 0;
1491 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
1492
1493 self = self;
1494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxDialog_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
1495 return NULL;
1496 if (_argo0) {
1497 if (_argo0 == Py_None) { _arg0 = NULL; }
1498 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1499 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Create. Expected _wxDialog_p.");
1500 return NULL;
1501 }
1502 }
1503 if (_argo1) {
1504 if (_argo1 == Py_None) { _arg1 = NULL; }
1505 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1506 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDialog_Create. Expected _wxWindow_p.");
1507 return NULL;
1508 }
1509 }
1510 {
1511 #if PYTHON_API_VERSION >= 1009
1512 char* tmpPtr; int tmpSize;
1513 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
1514 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1515 return NULL;
1516 }
1517 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
1518 return NULL;
1519 _arg3 = new wxString(tmpPtr, tmpSize);
1520 #else
1521 if (!PyString_Check(_obj3)) {
1522 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1523 return NULL;
1524 }
1525 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
1526 #endif
1527 }
1528 if (_obj4)
1529 {
1530 _arg4 = &temp;
1531 if (! wxPoint_helper(_obj4, &_arg4))
1532 return NULL;
1533 }
1534 if (_obj5)
1535 {
1536 _arg5 = &temp0;
1537 if (! wxSize_helper(_obj5, &_arg5))
1538 return NULL;
1539 }
1540 {
1541 wxPy_BEGIN_ALLOW_THREADS;
1542 _result = (bool )wxDialog_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
1543
1544 wxPy_END_ALLOW_THREADS;
1545 if (PyErr_Occurred()) return NULL;
1546 } _resultobj = Py_BuildValue("i",_result);
1547 {
1548 if (_obj3)
1549 delete _arg3;
1550 }
1551 return _resultobj;
1552 }
1553
1554 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1555 static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
1556 PyObject * _resultobj;
1557 wxDialog * _arg0;
1558 int _arg1 = (int ) wxBOTH;
1559 PyObject * _argo0 = 0;
1560 char *_kwnames[] = { "self","direction", NULL };
1561
1562 self = self;
1563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1))
1564 return NULL;
1565 if (_argo0) {
1566 if (_argo0 == Py_None) { _arg0 = NULL; }
1567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
1569 return NULL;
1570 }
1571 }
1572 {
1573 wxPy_BEGIN_ALLOW_THREADS;
1574 wxDialog_Centre(_arg0,_arg1);
1575
1576 wxPy_END_ALLOW_THREADS;
1577 if (PyErr_Occurred()) return NULL;
1578 } Py_INCREF(Py_None);
1579 _resultobj = Py_None;
1580 return _resultobj;
1581 }
1582
1583 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
1584 static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1585 PyObject * _resultobj;
1586 wxDialog * _arg0;
1587 int _arg1;
1588 PyObject * _argo0 = 0;
1589 char *_kwnames[] = { "self","retCode", NULL };
1590
1591 self = self;
1592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1))
1593 return NULL;
1594 if (_argo0) {
1595 if (_argo0 == Py_None) { _arg0 = NULL; }
1596 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1597 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
1598 return NULL;
1599 }
1600 }
1601 {
1602 wxPy_BEGIN_ALLOW_THREADS;
1603 wxDialog_EndModal(_arg0,_arg1);
1604
1605 wxPy_END_ALLOW_THREADS;
1606 if (PyErr_Occurred()) return NULL;
1607 } Py_INCREF(Py_None);
1608 _resultobj = Py_None;
1609 return _resultobj;
1610 }
1611
1612 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
1613 static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1614 PyObject * _resultobj;
1615 wxDialog * _arg0;
1616 bool _arg1;
1617 PyObject * _argo0 = 0;
1618 int tempbool1;
1619 char *_kwnames[] = { "self","flag", NULL };
1620
1621 self = self;
1622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1))
1623 return NULL;
1624 if (_argo0) {
1625 if (_argo0 == Py_None) { _arg0 = NULL; }
1626 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1627 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
1628 return NULL;
1629 }
1630 }
1631 _arg1 = (bool ) tempbool1;
1632 {
1633 wxPy_BEGIN_ALLOW_THREADS;
1634 wxDialog_SetModal(_arg0,_arg1);
1635
1636 wxPy_END_ALLOW_THREADS;
1637 if (PyErr_Occurred()) return NULL;
1638 } Py_INCREF(Py_None);
1639 _resultobj = Py_None;
1640 return _resultobj;
1641 }
1642
1643 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
1644 static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1645 PyObject * _resultobj;
1646 bool _result;
1647 wxDialog * _arg0;
1648 PyObject * _argo0 = 0;
1649 char *_kwnames[] = { "self", NULL };
1650
1651 self = self;
1652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0))
1653 return NULL;
1654 if (_argo0) {
1655 if (_argo0 == Py_None) { _arg0 = NULL; }
1656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
1658 return NULL;
1659 }
1660 }
1661 {
1662 wxPy_BEGIN_ALLOW_THREADS;
1663 _result = (bool )wxDialog_IsModal(_arg0);
1664
1665 wxPy_END_ALLOW_THREADS;
1666 if (PyErr_Occurred()) return NULL;
1667 } _resultobj = Py_BuildValue("i",_result);
1668 return _resultobj;
1669 }
1670
1671 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
1672 static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject * _resultobj;
1674 int _result;
1675 wxDialog * _arg0;
1676 PyObject * _argo0 = 0;
1677 char *_kwnames[] = { "self", NULL };
1678
1679 self = self;
1680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0))
1681 return NULL;
1682 if (_argo0) {
1683 if (_argo0 == Py_None) { _arg0 = NULL; }
1684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
1686 return NULL;
1687 }
1688 }
1689 {
1690 wxPy_BEGIN_ALLOW_THREADS;
1691 _result = (int )wxDialog_ShowModal(_arg0);
1692
1693 wxPy_END_ALLOW_THREADS;
1694 if (PyErr_Occurred()) return NULL;
1695 } _resultobj = Py_BuildValue("i",_result);
1696 return _resultobj;
1697 }
1698
1699 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
1700 static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
1701 PyObject * _resultobj;
1702 int _result;
1703 wxDialog * _arg0;
1704 PyObject * _argo0 = 0;
1705 char *_kwnames[] = { "self", NULL };
1706
1707 self = self;
1708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0))
1709 return NULL;
1710 if (_argo0) {
1711 if (_argo0 == Py_None) { _arg0 = NULL; }
1712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
1714 return NULL;
1715 }
1716 }
1717 {
1718 wxPy_BEGIN_ALLOW_THREADS;
1719 _result = (int )wxDialog_GetReturnCode(_arg0);
1720
1721 wxPy_END_ALLOW_THREADS;
1722 if (PyErr_Occurred()) return NULL;
1723 } _resultobj = Py_BuildValue("i",_result);
1724 return _resultobj;
1725 }
1726
1727 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
1728 static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
1729 PyObject * _resultobj;
1730 wxDialog * _arg0;
1731 int _arg1;
1732 PyObject * _argo0 = 0;
1733 char *_kwnames[] = { "self","retCode", NULL };
1734
1735 self = self;
1736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1))
1737 return NULL;
1738 if (_argo0) {
1739 if (_argo0 == Py_None) { _arg0 = NULL; }
1740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
1742 return NULL;
1743 }
1744 }
1745 {
1746 wxPy_BEGIN_ALLOW_THREADS;
1747 wxDialog_SetReturnCode(_arg0,_arg1);
1748
1749 wxPy_END_ALLOW_THREADS;
1750 if (PyErr_Occurred()) return NULL;
1751 } Py_INCREF(Py_None);
1752 _resultobj = Py_None;
1753 return _resultobj;
1754 }
1755
1756 #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
1757 static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1758 PyObject * _resultobj;
1759 wxSizer * _result;
1760 wxDialog * _arg0;
1761 wxString * _arg1;
1762 PyObject * _argo0 = 0;
1763 PyObject * _obj1 = 0;
1764 char *_kwnames[] = { "self","message", NULL };
1765
1766 self = self;
1767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1))
1768 return NULL;
1769 if (_argo0) {
1770 if (_argo0 == Py_None) { _arg0 = NULL; }
1771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p.");
1773 return NULL;
1774 }
1775 }
1776 {
1777 #if PYTHON_API_VERSION >= 1009
1778 char* tmpPtr; int tmpSize;
1779 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1780 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1781 return NULL;
1782 }
1783 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1784 return NULL;
1785 _arg1 = new wxString(tmpPtr, tmpSize);
1786 #else
1787 if (!PyString_Check(_obj1)) {
1788 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1789 return NULL;
1790 }
1791 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1792 #endif
1793 }
1794 {
1795 wxPy_BEGIN_ALLOW_THREADS;
1796 _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1);
1797
1798 wxPy_END_ALLOW_THREADS;
1799 if (PyErr_Occurred()) return NULL;
1800 }{ _resultobj = wxPyMake_wxSizer(_result); }
1801 {
1802 if (_obj1)
1803 delete _arg1;
1804 }
1805 return _resultobj;
1806 }
1807
1808 #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
1809 static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1810 PyObject * _resultobj;
1811 wxSizer * _result;
1812 wxDialog * _arg0;
1813 long _arg1;
1814 PyObject * _argo0 = 0;
1815 char *_kwnames[] = { "self","flags", NULL };
1816
1817 self = self;
1818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1))
1819 return NULL;
1820 if (_argo0) {
1821 if (_argo0 == Py_None) { _arg0 = NULL; }
1822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
1824 return NULL;
1825 }
1826 }
1827 {
1828 wxPy_BEGIN_ALLOW_THREADS;
1829 _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1);
1830
1831 wxPy_END_ALLOW_THREADS;
1832 if (PyErr_Occurred()) return NULL;
1833 }{ _resultobj = wxPyMake_wxSizer(_result); }
1834 return _resultobj;
1835 }
1836
1837 static void *SwigwxMiniFrameTowxFrame(void *ptr) {
1838 wxMiniFrame *src;
1839 wxFrame *dest;
1840 src = (wxMiniFrame *) ptr;
1841 dest = (wxFrame *) src;
1842 return (void *) dest;
1843 }
1844
1845 static void *SwigwxMiniFrameTowxTopLevelWindow(void *ptr) {
1846 wxMiniFrame *src;
1847 wxTopLevelWindow *dest;
1848 src = (wxMiniFrame *) ptr;
1849 dest = (wxTopLevelWindow *) src;
1850 return (void *) dest;
1851 }
1852
1853 static void *SwigwxMiniFrameTowxWindow(void *ptr) {
1854 wxMiniFrame *src;
1855 wxWindow *dest;
1856 src = (wxMiniFrame *) ptr;
1857 dest = (wxWindow *) src;
1858 return (void *) dest;
1859 }
1860
1861 static void *SwigwxMiniFrameTowxEvtHandler(void *ptr) {
1862 wxMiniFrame *src;
1863 wxEvtHandler *dest;
1864 src = (wxMiniFrame *) ptr;
1865 dest = (wxEvtHandler *) src;
1866 return (void *) dest;
1867 }
1868
1869 static void *SwigwxMiniFrameTowxObject(void *ptr) {
1870 wxMiniFrame *src;
1871 wxObject *dest;
1872 src = (wxMiniFrame *) ptr;
1873 dest = (wxObject *) src;
1874 return (void *) dest;
1875 }
1876
1877 #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1878 static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject * _resultobj;
1880 wxMiniFrame * _result;
1881 wxWindow * _arg0;
1882 wxWindowID _arg1;
1883 wxString * _arg2;
1884 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1885 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1886 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
1887 char * _arg6 = (char *) "frame";
1888 PyObject * _argo0 = 0;
1889 PyObject * _obj2 = 0;
1890 wxPoint temp;
1891 PyObject * _obj3 = 0;
1892 wxSize temp0;
1893 PyObject * _obj4 = 0;
1894 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
1895 char _ptemp[128];
1896
1897 self = self;
1898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMiniFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
1899 return NULL;
1900 if (_argo0) {
1901 if (_argo0 == Py_None) { _arg0 = NULL; }
1902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p.");
1904 return NULL;
1905 }
1906 }
1907 {
1908 #if PYTHON_API_VERSION >= 1009
1909 char* tmpPtr; int tmpSize;
1910 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1911 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1912 return NULL;
1913 }
1914 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1915 return NULL;
1916 _arg2 = new wxString(tmpPtr, tmpSize);
1917 #else
1918 if (!PyString_Check(_obj2)) {
1919 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1920 return NULL;
1921 }
1922 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1923 #endif
1924 }
1925 if (_obj3)
1926 {
1927 _arg3 = &temp;
1928 if (! wxPoint_helper(_obj3, &_arg3))
1929 return NULL;
1930 }
1931 if (_obj4)
1932 {
1933 _arg4 = &temp0;
1934 if (! wxSize_helper(_obj4, &_arg4))
1935 return NULL;
1936 }
1937 {
1938 wxPy_BEGIN_ALLOW_THREADS;
1939 _result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
1940
1941 wxPy_END_ALLOW_THREADS;
1942 if (PyErr_Occurred()) return NULL;
1943 } if (_result) {
1944 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p");
1945 _resultobj = Py_BuildValue("s",_ptemp);
1946 } else {
1947 Py_INCREF(Py_None);
1948 _resultobj = Py_None;
1949 }
1950 {
1951 if (_obj2)
1952 delete _arg2;
1953 }
1954 return _resultobj;
1955 }
1956
1957 #define new_wxPreMiniFrame() (new wxMiniFrame())
1958 static PyObject *_wrap_new_wxPreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
1959 PyObject * _resultobj;
1960 wxMiniFrame * _result;
1961 char *_kwnames[] = { NULL };
1962 char _ptemp[128];
1963
1964 self = self;
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMiniFrame",_kwnames))
1966 return NULL;
1967 {
1968 wxPy_BEGIN_ALLOW_THREADS;
1969 _result = (wxMiniFrame *)new_wxPreMiniFrame();
1970
1971 wxPy_END_ALLOW_THREADS;
1972 if (PyErr_Occurred()) return NULL;
1973 } if (_result) {
1974 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p");
1975 _resultobj = Py_BuildValue("s",_ptemp);
1976 } else {
1977 Py_INCREF(Py_None);
1978 _resultobj = Py_None;
1979 }
1980 return _resultobj;
1981 }
1982
1983 #define wxMiniFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1984 static PyObject *_wrap_wxMiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1985 PyObject * _resultobj;
1986 bool _result;
1987 wxMiniFrame * _arg0;
1988 wxWindow * _arg1;
1989 wxWindowID _arg2;
1990 wxString * _arg3;
1991 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1992 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1993 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE;
1994 char * _arg7 = (char *) "frame";
1995 PyObject * _argo0 = 0;
1996 PyObject * _argo1 = 0;
1997 PyObject * _obj3 = 0;
1998 wxPoint temp;
1999 PyObject * _obj4 = 0;
2000 wxSize temp0;
2001 PyObject * _obj5 = 0;
2002 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
2003
2004 self = self;
2005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxMiniFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
2006 return NULL;
2007 if (_argo0) {
2008 if (_argo0 == Py_None) { _arg0 = NULL; }
2009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMiniFrame_p")) {
2010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMiniFrame_Create. Expected _wxMiniFrame_p.");
2011 return NULL;
2012 }
2013 }
2014 if (_argo1) {
2015 if (_argo1 == Py_None) { _arg1 = NULL; }
2016 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2017 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMiniFrame_Create. Expected _wxWindow_p.");
2018 return NULL;
2019 }
2020 }
2021 {
2022 #if PYTHON_API_VERSION >= 1009
2023 char* tmpPtr; int tmpSize;
2024 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
2025 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2026 return NULL;
2027 }
2028 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
2029 return NULL;
2030 _arg3 = new wxString(tmpPtr, tmpSize);
2031 #else
2032 if (!PyString_Check(_obj3)) {
2033 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2034 return NULL;
2035 }
2036 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
2037 #endif
2038 }
2039 if (_obj4)
2040 {
2041 _arg4 = &temp;
2042 if (! wxPoint_helper(_obj4, &_arg4))
2043 return NULL;
2044 }
2045 if (_obj5)
2046 {
2047 _arg5 = &temp0;
2048 if (! wxSize_helper(_obj5, &_arg5))
2049 return NULL;
2050 }
2051 {
2052 wxPy_BEGIN_ALLOW_THREADS;
2053 _result = (bool )wxMiniFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
2054
2055 wxPy_END_ALLOW_THREADS;
2056 if (PyErr_Occurred()) return NULL;
2057 } _resultobj = Py_BuildValue("i",_result);
2058 {
2059 if (_obj3)
2060 delete _arg3;
2061 }
2062 return _resultobj;
2063 }
2064
2065 static PyMethodDef framescMethods[] = {
2066 { "wxMiniFrame_Create", (PyCFunction) _wrap_wxMiniFrame_Create, METH_VARARGS | METH_KEYWORDS },
2067 { "new_wxPreMiniFrame", (PyCFunction) _wrap_new_wxPreMiniFrame, METH_VARARGS | METH_KEYWORDS },
2068 { "new_wxMiniFrame", (PyCFunction) _wrap_new_wxMiniFrame, METH_VARARGS | METH_KEYWORDS },
2069 { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS },
2070 { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS },
2071 { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS },
2072 { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
2073 { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2074 { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS },
2075 { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS },
2076 { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS },
2077 { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS },
2078 { "wxDialog_Create", (PyCFunction) _wrap_wxDialog_Create, METH_VARARGS | METH_KEYWORDS },
2079 { "new_wxPreDialog", (PyCFunction) _wrap_new_wxPreDialog, METH_VARARGS | METH_KEYWORDS },
2080 { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
2081 { "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS },
2082 { "wxFrame_GetToolBar", (PyCFunction) _wrap_wxFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS },
2083 { "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS },
2084 { "wxFrame_SetStatusWidths", (PyCFunction) _wrap_wxFrame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
2085 { "wxFrame_SetStatusText", (PyCFunction) _wrap_wxFrame_SetStatusText, METH_VARARGS | METH_KEYWORDS },
2086 { "wxFrame_SetStatusBar", (PyCFunction) _wrap_wxFrame_SetStatusBar, METH_VARARGS | METH_KEYWORDS },
2087 { "wxFrame_GetStatusBar", (PyCFunction) _wrap_wxFrame_GetStatusBar, METH_VARARGS | METH_KEYWORDS },
2088 { "wxFrame_CreateStatusBar", (PyCFunction) _wrap_wxFrame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS },
2089 { "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS },
2090 { "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS },
2091 { "wxFrame_GetMenuBar", (PyCFunction) _wrap_wxFrame_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
2092 { "wxFrame_SetMenuBar", (PyCFunction) _wrap_wxFrame_SetMenuBar, METH_VARARGS | METH_KEYWORDS },
2093 { "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
2094 { "wxFrame_Create", (PyCFunction) _wrap_wxFrame_Create, METH_VARARGS | METH_KEYWORDS },
2095 { "new_wxPreFrame", (PyCFunction) _wrap_new_wxPreFrame, METH_VARARGS | METH_KEYWORDS },
2096 { "new_wxFrame", (PyCFunction) _wrap_new_wxFrame, METH_VARARGS | METH_KEYWORDS },
2097 { "wxTopLevelWindow_GetTitle", (PyCFunction) _wrap_wxTopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
2098 { "wxTopLevelWindow_SetTitle", (PyCFunction) _wrap_wxTopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
2099 { "wxTopLevelWindow_IsFullScreen", (PyCFunction) _wrap_wxTopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS },
2100 { "wxTopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_wxTopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS },
2101 { "wxTopLevelWindow_SetIcon", (PyCFunction) _wrap_wxTopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS },
2102 { "wxTopLevelWindow_GetIcon", (PyCFunction) _wrap_wxTopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS },
2103 { "wxTopLevelWindow_IsIconized", (PyCFunction) _wrap_wxTopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS },
2104 { "wxTopLevelWindow_IsMaximized", (PyCFunction) _wrap_wxTopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS },
2105 { "wxTopLevelWindow_Iconize", (PyCFunction) _wrap_wxTopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS },
2106 { "wxTopLevelWindow_Restore", (PyCFunction) _wrap_wxTopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS },
2107 { "wxTopLevelWindow_Maximize", (PyCFunction) _wrap_wxTopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS },
2108 { "wxTopLevelWindow_Create", (PyCFunction) _wrap_wxTopLevelWindow_Create, METH_VARARGS | METH_KEYWORDS },
2109 { "new_wxPreTopLevelWindow", (PyCFunction) _wrap_new_wxPreTopLevelWindow, METH_VARARGS | METH_KEYWORDS },
2110 { "new_wxTopLevelWindow", (PyCFunction) _wrap_new_wxTopLevelWindow, METH_VARARGS | METH_KEYWORDS },
2111 { NULL, NULL }
2112 };
2113 #ifdef __cplusplus
2114 }
2115 #endif
2116 /*
2117 * This table is used by the pointer type-checker
2118 */
2119 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2120 { "_signed_long","_long",0},
2121 { "_wxPrintQuality","_wxCoord",0},
2122 { "_wxPrintQuality","_int",0},
2123 { "_wxPrintQuality","_signed_int",0},
2124 { "_wxPrintQuality","_unsigned_int",0},
2125 { "_wxPrintQuality","_wxWindowID",0},
2126 { "_wxPrintQuality","_uint",0},
2127 { "_wxPrintQuality","_EBool",0},
2128 { "_wxPrintQuality","_size_t",0},
2129 { "_wxPrintQuality","_time_t",0},
2130 { "_byte","_unsigned_char",0},
2131 { "_long","_unsigned_long",0},
2132 { "_long","_signed_long",0},
2133 { "_size_t","_wxCoord",0},
2134 { "_size_t","_wxPrintQuality",0},
2135 { "_size_t","_time_t",0},
2136 { "_size_t","_unsigned_int",0},
2137 { "_size_t","_int",0},
2138 { "_size_t","_wxWindowID",0},
2139 { "_size_t","_uint",0},
2140 { "_wxTopLevelWindow","_wxMiniFrame",SwigwxMiniFrameTowxTopLevelWindow},
2141 { "_wxTopLevelWindow","_wxDialog",SwigwxDialogTowxTopLevelWindow},
2142 { "_wxTopLevelWindow","_wxFrame",SwigwxFrameTowxTopLevelWindow},
2143 { "_uint","_wxCoord",0},
2144 { "_uint","_wxPrintQuality",0},
2145 { "_uint","_time_t",0},
2146 { "_uint","_size_t",0},
2147 { "_uint","_unsigned_int",0},
2148 { "_uint","_int",0},
2149 { "_uint","_wxWindowID",0},
2150 { "_wxChar","_char",0},
2151 { "_char","_wxChar",0},
2152 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
2153 { "_EBool","_wxCoord",0},
2154 { "_EBool","_wxPrintQuality",0},
2155 { "_EBool","_signed_int",0},
2156 { "_EBool","_int",0},
2157 { "_EBool","_wxWindowID",0},
2158 { "_unsigned_long","_long",0},
2159 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2160 { "_signed_int","_wxCoord",0},
2161 { "_signed_int","_wxPrintQuality",0},
2162 { "_signed_int","_EBool",0},
2163 { "_signed_int","_wxWindowID",0},
2164 { "_signed_int","_int",0},
2165 { "_WXTYPE","_short",0},
2166 { "_WXTYPE","_signed_short",0},
2167 { "_WXTYPE","_unsigned_short",0},
2168 { "_unsigned_short","_WXTYPE",0},
2169 { "_unsigned_short","_short",0},
2170 { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject},
2171 { "_wxObject","_wxDialog",SwigwxDialogTowxObject},
2172 { "_wxObject","_wxFrame",SwigwxFrameTowxObject},
2173 { "_wxObject","_wxTopLevelWindow",SwigwxTopLevelWindowTowxObject},
2174 { "_signed_short","_WXTYPE",0},
2175 { "_signed_short","_short",0},
2176 { "_unsigned_char","_byte",0},
2177 { "_unsigned_int","_wxCoord",0},
2178 { "_unsigned_int","_wxPrintQuality",0},
2179 { "_unsigned_int","_time_t",0},
2180 { "_unsigned_int","_size_t",0},
2181 { "_unsigned_int","_uint",0},
2182 { "_unsigned_int","_wxWindowID",0},
2183 { "_unsigned_int","_int",0},
2184 { "_short","_WXTYPE",0},
2185 { "_short","_unsigned_short",0},
2186 { "_short","_signed_short",0},
2187 { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame},
2188 { "_wxWindowID","_wxCoord",0},
2189 { "_wxWindowID","_wxPrintQuality",0},
2190 { "_wxWindowID","_time_t",0},
2191 { "_wxWindowID","_size_t",0},
2192 { "_wxWindowID","_EBool",0},
2193 { "_wxWindowID","_uint",0},
2194 { "_wxWindowID","_int",0},
2195 { "_wxWindowID","_signed_int",0},
2196 { "_wxWindowID","_unsigned_int",0},
2197 { "_int","_wxCoord",0},
2198 { "_int","_wxPrintQuality",0},
2199 { "_int","_time_t",0},
2200 { "_int","_size_t",0},
2201 { "_int","_EBool",0},
2202 { "_int","_uint",0},
2203 { "_int","_wxWindowID",0},
2204 { "_int","_unsigned_int",0},
2205 { "_int","_signed_int",0},
2206 { "_time_t","_wxCoord",0},
2207 { "_time_t","_wxPrintQuality",0},
2208 { "_time_t","_unsigned_int",0},
2209 { "_time_t","_int",0},
2210 { "_time_t","_wxWindowID",0},
2211 { "_time_t","_uint",0},
2212 { "_time_t","_size_t",0},
2213 { "_wxCoord","_int",0},
2214 { "_wxCoord","_signed_int",0},
2215 { "_wxCoord","_unsigned_int",0},
2216 { "_wxCoord","_wxWindowID",0},
2217 { "_wxCoord","_uint",0},
2218 { "_wxCoord","_EBool",0},
2219 { "_wxCoord","_size_t",0},
2220 { "_wxCoord","_time_t",0},
2221 { "_wxCoord","_wxPrintQuality",0},
2222 { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler},
2223 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
2224 { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler},
2225 { "_wxEvtHandler","_wxTopLevelWindow",SwigwxTopLevelWindowTowxEvtHandler},
2226 { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow},
2227 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
2228 { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow},
2229 { "_wxWindow","_wxTopLevelWindow",SwigwxTopLevelWindowTowxWindow},
2230 {0,0,0}};
2231
2232 static PyObject *SWIG_globals;
2233 #ifdef __cplusplus
2234 extern "C"
2235 #endif
2236 SWIGEXPORT(void) initframesc() {
2237 PyObject *m, *d;
2238 SWIG_globals = SWIG_newvarlink();
2239 m = Py_InitModule("framesc", framescMethods);
2240 d = PyModule_GetDict(m);
2241 PyDict_SetItemString(d,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR));
2242 PyDict_SetItemString(d,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR));
2243 PyDict_SetItemString(d,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR));
2244 PyDict_SetItemString(d,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER));
2245 PyDict_SetItemString(d,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION));
2246 PyDict_SetItemString(d,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL));
2247 PyDict_SetItemString(d,"wxTOPLEVEL_EX_DIALOG", PyInt_FromLong((long) wxTOPLEVEL_EX_DIALOG));
2248 {
2249 int i;
2250 for (i = 0; _swig_mapping[i].n1; i++)
2251 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2252 }
2253 }