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