]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/frames.cpp
Various updates, changes for wxTopLevelWindow, fixes for
[wxWidgets.git] / wxPython / src / msw / frames.cpp
1 /*
2 * FILE : src/msw/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 is required for parameter";
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 const wxIcon & _result_ref = wxTopLevelWindow_GetIcon(_arg0);
477 _result = (wxIcon *) &_result_ref;
478
479 wxPy_END_ALLOW_THREADS;
480 if (PyErr_Occurred()) return NULL;
481 } if (_result) {
482 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
483 _resultobj = Py_BuildValue("s",_ptemp);
484 } else {
485 Py_INCREF(Py_None);
486 _resultobj = Py_None;
487 }
488 return _resultobj;
489 }
490
491 #define wxTopLevelWindow_SetIcon(_swigobj,_swigarg0) (_swigobj->SetIcon(_swigarg0))
492 static PyObject *_wrap_wxTopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
493 PyObject * _resultobj;
494 wxTopLevelWindow * _arg0;
495 wxIcon * _arg1;
496 PyObject * _argo0 = 0;
497 PyObject * _argo1 = 0;
498 char *_kwnames[] = { "self","icon", NULL };
499
500 self = self;
501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetIcon",_kwnames,&_argo0,&_argo1))
502 return NULL;
503 if (_argo0) {
504 if (_argo0 == Py_None) { _arg0 = NULL; }
505 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
506 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetIcon. Expected _wxTopLevelWindow_p.");
507 return NULL;
508 }
509 }
510 if (_argo1) {
511 if (_argo1 == Py_None) { _arg1 = NULL; }
512 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
513 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTopLevelWindow_SetIcon. Expected _wxIcon_p.");
514 return NULL;
515 }
516 }
517 {
518 wxPy_BEGIN_ALLOW_THREADS;
519 wxTopLevelWindow_SetIcon(_arg0,*_arg1);
520
521 wxPy_END_ALLOW_THREADS;
522 if (PyErr_Occurred()) return NULL;
523 } Py_INCREF(Py_None);
524 _resultobj = Py_None;
525 return _resultobj;
526 }
527
528 #define wxTopLevelWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0))
529 static PyObject *_wrap_wxTopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
530 PyObject * _resultobj;
531 wxTopLevelWindow * _arg0;
532 wxString * _arg1;
533 PyObject * _argo0 = 0;
534 PyObject * _obj1 = 0;
535 char *_kwnames[] = { "self","title", NULL };
536
537 self = self;
538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTopLevelWindow_SetTitle",_kwnames,&_argo0,&_obj1))
539 return NULL;
540 if (_argo0) {
541 if (_argo0 == Py_None) { _arg0 = NULL; }
542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_SetTitle. Expected _wxTopLevelWindow_p.");
544 return NULL;
545 }
546 }
547 {
548 #if PYTHON_API_VERSION >= 1009
549 char* tmpPtr; int tmpSize;
550 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
551 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
552 return NULL;
553 }
554 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
555 return NULL;
556 _arg1 = new wxString(tmpPtr, tmpSize);
557 #else
558 if (!PyString_Check(_obj1)) {
559 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
560 return NULL;
561 }
562 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
563 #endif
564 }
565 {
566 wxPy_BEGIN_ALLOW_THREADS;
567 wxTopLevelWindow_SetTitle(_arg0,*_arg1);
568
569 wxPy_END_ALLOW_THREADS;
570 if (PyErr_Occurred()) return NULL;
571 } Py_INCREF(Py_None);
572 _resultobj = Py_None;
573 {
574 if (_obj1)
575 delete _arg1;
576 }
577 return _resultobj;
578 }
579
580 #define wxTopLevelWindow_GetTitle(_swigobj) (_swigobj->GetTitle())
581 static PyObject *_wrap_wxTopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
582 PyObject * _resultobj;
583 wxString * _result;
584 wxTopLevelWindow * _arg0;
585 PyObject * _argo0 = 0;
586 char *_kwnames[] = { "self", NULL };
587
588 self = self;
589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTopLevelWindow_GetTitle",_kwnames,&_argo0))
590 return NULL;
591 if (_argo0) {
592 if (_argo0 == Py_None) { _arg0 = NULL; }
593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTopLevelWindow_p")) {
594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTopLevelWindow_GetTitle. Expected _wxTopLevelWindow_p.");
595 return NULL;
596 }
597 }
598 {
599 wxPy_BEGIN_ALLOW_THREADS;
600 _result = new wxString (wxTopLevelWindow_GetTitle(_arg0));
601
602 wxPy_END_ALLOW_THREADS;
603 if (PyErr_Occurred()) return NULL;
604 }{
605 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
606 }
607 {
608 delete _result;
609 }
610 return _resultobj;
611 }
612
613 static void *SwigwxFrameTowxTopLevelWindow(void *ptr) {
614 wxFrame *src;
615 wxTopLevelWindow *dest;
616 src = (wxFrame *) ptr;
617 dest = (wxTopLevelWindow *) src;
618 return (void *) dest;
619 }
620
621 static void *SwigwxFrameTowxWindow(void *ptr) {
622 wxFrame *src;
623 wxWindow *dest;
624 src = (wxFrame *) ptr;
625 dest = (wxWindow *) src;
626 return (void *) dest;
627 }
628
629 static void *SwigwxFrameTowxEvtHandler(void *ptr) {
630 wxFrame *src;
631 wxEvtHandler *dest;
632 src = (wxFrame *) ptr;
633 dest = (wxEvtHandler *) src;
634 return (void *) dest;
635 }
636
637 static void *SwigwxFrameTowxObject(void *ptr) {
638 wxFrame *src;
639 wxObject *dest;
640 src = (wxFrame *) ptr;
641 dest = (wxObject *) src;
642 return (void *) dest;
643 }
644
645 #define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
646 static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
647 PyObject * _resultobj;
648 wxFrame * _result;
649 wxWindow * _arg0;
650 wxWindowID _arg1;
651 wxString * _arg2;
652 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
653 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
654 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
655 char * _arg6 = (char *) "frame";
656 PyObject * _argo0 = 0;
657 PyObject * _obj2 = 0;
658 wxPoint temp;
659 PyObject * _obj3 = 0;
660 wxSize temp0;
661 PyObject * _obj4 = 0;
662 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
663 char _ptemp[128];
664
665 self = self;
666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
667 return NULL;
668 if (_argo0) {
669 if (_argo0 == Py_None) { _arg0 = NULL; }
670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFrame. Expected _wxWindow_p.");
672 return NULL;
673 }
674 }
675 {
676 #if PYTHON_API_VERSION >= 1009
677 char* tmpPtr; int tmpSize;
678 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
679 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
680 return NULL;
681 }
682 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
683 return NULL;
684 _arg2 = new wxString(tmpPtr, tmpSize);
685 #else
686 if (!PyString_Check(_obj2)) {
687 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
688 return NULL;
689 }
690 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
691 #endif
692 }
693 if (_obj3)
694 {
695 _arg3 = &temp;
696 if (! wxPoint_helper(_obj3, &_arg3))
697 return NULL;
698 }
699 if (_obj4)
700 {
701 _arg4 = &temp0;
702 if (! wxSize_helper(_obj4, &_arg4))
703 return NULL;
704 }
705 {
706 wxPy_BEGIN_ALLOW_THREADS;
707 _result = (wxFrame *)new_wxFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
708
709 wxPy_END_ALLOW_THREADS;
710 if (PyErr_Occurred()) return NULL;
711 } if (_result) {
712 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
713 _resultobj = Py_BuildValue("s",_ptemp);
714 } else {
715 Py_INCREF(Py_None);
716 _resultobj = Py_None;
717 }
718 {
719 if (_obj2)
720 delete _arg2;
721 }
722 return _resultobj;
723 }
724
725 #define new_wxPreFrame() (new wxFrame())
726 static PyObject *_wrap_new_wxPreFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
727 PyObject * _resultobj;
728 wxFrame * _result;
729 char *_kwnames[] = { NULL };
730 char _ptemp[128];
731
732 self = self;
733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreFrame",_kwnames))
734 return NULL;
735 {
736 wxPy_BEGIN_ALLOW_THREADS;
737 _result = (wxFrame *)new_wxPreFrame();
738
739 wxPy_END_ALLOW_THREADS;
740 if (PyErr_Occurred()) return NULL;
741 } if (_result) {
742 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
743 _resultobj = Py_BuildValue("s",_ptemp);
744 } else {
745 Py_INCREF(Py_None);
746 _resultobj = Py_None;
747 }
748 return _resultobj;
749 }
750
751 #define wxFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
752 static PyObject *_wrap_wxFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
753 PyObject * _resultobj;
754 bool _result;
755 wxFrame * _arg0;
756 wxWindow * _arg1;
757 wxWindowID _arg2;
758 wxString * _arg3;
759 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
760 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
761 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE;
762 char * _arg7 = (char *) "frame";
763 PyObject * _argo0 = 0;
764 PyObject * _argo1 = 0;
765 PyObject * _obj3 = 0;
766 wxPoint temp;
767 PyObject * _obj4 = 0;
768 wxSize temp0;
769 PyObject * _obj5 = 0;
770 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
771
772 self = self;
773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
774 return NULL;
775 if (_argo0) {
776 if (_argo0 == Py_None) { _arg0 = NULL; }
777 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
778 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Create. Expected _wxFrame_p.");
779 return NULL;
780 }
781 }
782 if (_argo1) {
783 if (_argo1 == Py_None) { _arg1 = NULL; }
784 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
785 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_Create. Expected _wxWindow_p.");
786 return NULL;
787 }
788 }
789 {
790 #if PYTHON_API_VERSION >= 1009
791 char* tmpPtr; int tmpSize;
792 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
793 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
794 return NULL;
795 }
796 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
797 return NULL;
798 _arg3 = new wxString(tmpPtr, tmpSize);
799 #else
800 if (!PyString_Check(_obj3)) {
801 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
802 return NULL;
803 }
804 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
805 #endif
806 }
807 if (_obj4)
808 {
809 _arg4 = &temp;
810 if (! wxPoint_helper(_obj4, &_arg4))
811 return NULL;
812 }
813 if (_obj5)
814 {
815 _arg5 = &temp0;
816 if (! wxSize_helper(_obj5, &_arg5))
817 return NULL;
818 }
819 {
820 wxPy_BEGIN_ALLOW_THREADS;
821 _result = (bool )wxFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
822
823 wxPy_END_ALLOW_THREADS;
824 if (PyErr_Occurred()) return NULL;
825 } _resultobj = Py_BuildValue("i",_result);
826 {
827 if (_obj3)
828 delete _arg3;
829 }
830 return _resultobj;
831 }
832
833 #define wxFrame_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin())
834 static PyObject *_wrap_wxFrame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
835 PyObject * _resultobj;
836 wxPoint * _result;
837 wxFrame * _arg0;
838 PyObject * _argo0 = 0;
839 char *_kwnames[] = { "self", NULL };
840 char _ptemp[128];
841
842 self = self;
843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetClientAreaOrigin",_kwnames,&_argo0))
844 return NULL;
845 if (_argo0) {
846 if (_argo0 == Py_None) { _arg0 = NULL; }
847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetClientAreaOrigin. Expected _wxFrame_p.");
849 return NULL;
850 }
851 }
852 {
853 wxPy_BEGIN_ALLOW_THREADS;
854 _result = new wxPoint (wxFrame_GetClientAreaOrigin(_arg0));
855
856 wxPy_END_ALLOW_THREADS;
857 if (PyErr_Occurred()) return NULL;
858 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
859 _resultobj = Py_BuildValue("s",_ptemp);
860 return _resultobj;
861 }
862
863 #define wxFrame_SetMenuBar(_swigobj,_swigarg0) (_swigobj->SetMenuBar(_swigarg0))
864 static PyObject *_wrap_wxFrame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
865 PyObject * _resultobj;
866 wxFrame * _arg0;
867 wxMenuBar * _arg1;
868 PyObject * _argo0 = 0;
869 PyObject * _argo1 = 0;
870 char *_kwnames[] = { "self","menubar", NULL };
871
872 self = self;
873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetMenuBar",_kwnames,&_argo0,&_argo1))
874 return NULL;
875 if (_argo0) {
876 if (_argo0 == Py_None) { _arg0 = NULL; }
877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetMenuBar. Expected _wxFrame_p.");
879 return NULL;
880 }
881 }
882 if (_argo1) {
883 if (_argo1 == Py_None) { _arg1 = NULL; }
884 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuBar_p")) {
885 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetMenuBar. Expected _wxMenuBar_p.");
886 return NULL;
887 }
888 }
889 {
890 wxPy_BEGIN_ALLOW_THREADS;
891 wxFrame_SetMenuBar(_arg0,_arg1);
892
893 wxPy_END_ALLOW_THREADS;
894 if (PyErr_Occurred()) return NULL;
895 } Py_INCREF(Py_None);
896 _resultobj = Py_None;
897 return _resultobj;
898 }
899
900 #define wxFrame_GetMenuBar(_swigobj) (_swigobj->GetMenuBar())
901 static PyObject *_wrap_wxFrame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
902 PyObject * _resultobj;
903 wxMenuBar * _result;
904 wxFrame * _arg0;
905 PyObject * _argo0 = 0;
906 char *_kwnames[] = { "self", NULL };
907
908 self = self;
909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetMenuBar",_kwnames,&_argo0))
910 return NULL;
911 if (_argo0) {
912 if (_argo0 == Py_None) { _arg0 = NULL; }
913 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
914 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetMenuBar. Expected _wxFrame_p.");
915 return NULL;
916 }
917 }
918 {
919 wxPy_BEGIN_ALLOW_THREADS;
920 _result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0);
921
922 wxPy_END_ALLOW_THREADS;
923 if (PyErr_Occurred()) return NULL;
924 }{ _resultobj = wxPyMake_wxObject(_result); }
925 return _resultobj;
926 }
927
928 #define wxFrame_Command(_swigobj,_swigarg0) (_swigobj->Command(_swigarg0))
929 static PyObject *_wrap_wxFrame_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
930 PyObject * _resultobj;
931 bool _result;
932 wxFrame * _arg0;
933 int _arg1;
934 PyObject * _argo0 = 0;
935 char *_kwnames[] = { "self","id", NULL };
936
937 self = self;
938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_Command",_kwnames,&_argo0,&_arg1))
939 return NULL;
940 if (_argo0) {
941 if (_argo0 == Py_None) { _arg0 = NULL; }
942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Command. Expected _wxFrame_p.");
944 return NULL;
945 }
946 }
947 {
948 wxPy_BEGIN_ALLOW_THREADS;
949 _result = (bool )wxFrame_Command(_arg0,_arg1);
950
951 wxPy_END_ALLOW_THREADS;
952 if (PyErr_Occurred()) return NULL;
953 } _resultobj = Py_BuildValue("i",_result);
954 return _resultobj;
955 }
956
957 #define wxFrame_ProcessCommand(_swigobj,_swigarg0) (_swigobj->ProcessCommand(_swigarg0))
958 static PyObject *_wrap_wxFrame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
959 PyObject * _resultobj;
960 bool _result;
961 wxFrame * _arg0;
962 int _arg1;
963 PyObject * _argo0 = 0;
964 char *_kwnames[] = { "self","id", NULL };
965
966 self = self;
967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFrame_ProcessCommand",_kwnames,&_argo0,&_arg1))
968 return NULL;
969 if (_argo0) {
970 if (_argo0 == Py_None) { _arg0 = NULL; }
971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ProcessCommand. Expected _wxFrame_p.");
973 return NULL;
974 }
975 }
976 {
977 wxPy_BEGIN_ALLOW_THREADS;
978 _result = (bool )wxFrame_ProcessCommand(_arg0,_arg1);
979
980 wxPy_END_ALLOW_THREADS;
981 if (PyErr_Occurred()) return NULL;
982 } _resultobj = Py_BuildValue("i",_result);
983 return _resultobj;
984 }
985
986 #define wxFrame_CreateStatusBar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CreateStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
987 static PyObject *_wrap_wxFrame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
988 PyObject * _resultobj;
989 wxStatusBar * _result;
990 wxFrame * _arg0;
991 int _arg1 = (int ) 1;
992 long _arg2 = (long ) wxST_SIZEGRIP;
993 wxWindowID _arg3 = (wxWindowID ) -1;
994 char * _arg4 = (char *) "statusBar";
995 PyObject * _argo0 = 0;
996 char *_kwnames[] = { "self","number","style","id","name", NULL };
997
998 self = self;
999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ilis:wxFrame_CreateStatusBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
1000 return NULL;
1001 if (_argo0) {
1002 if (_argo0 == Py_None) { _arg0 = NULL; }
1003 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1004 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateStatusBar. Expected _wxFrame_p.");
1005 return NULL;
1006 }
1007 }
1008 {
1009 wxPy_BEGIN_ALLOW_THREADS;
1010 _result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4);
1011
1012 wxPy_END_ALLOW_THREADS;
1013 if (PyErr_Occurred()) return NULL;
1014 }{ _resultobj = wxPyMake_wxObject(_result); }
1015 return _resultobj;
1016 }
1017
1018 #define wxFrame_GetStatusBar(_swigobj) (_swigobj->GetStatusBar())
1019 static PyObject *_wrap_wxFrame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1020 PyObject * _resultobj;
1021 wxStatusBar * _result;
1022 wxFrame * _arg0;
1023 PyObject * _argo0 = 0;
1024 char *_kwnames[] = { "self", NULL };
1025
1026 self = self;
1027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetStatusBar",_kwnames,&_argo0))
1028 return NULL;
1029 if (_argo0) {
1030 if (_argo0 == Py_None) { _arg0 = NULL; }
1031 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1032 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetStatusBar. Expected _wxFrame_p.");
1033 return NULL;
1034 }
1035 }
1036 {
1037 wxPy_BEGIN_ALLOW_THREADS;
1038 _result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0);
1039
1040 wxPy_END_ALLOW_THREADS;
1041 if (PyErr_Occurred()) return NULL;
1042 }{ _resultobj = wxPyMake_wxObject(_result); }
1043 return _resultobj;
1044 }
1045
1046 #define wxFrame_SetStatusBar(_swigobj,_swigarg0) (_swigobj->SetStatusBar(_swigarg0))
1047 static PyObject *_wrap_wxFrame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1048 PyObject * _resultobj;
1049 wxFrame * _arg0;
1050 wxStatusBar * _arg1;
1051 PyObject * _argo0 = 0;
1052 PyObject * _argo1 = 0;
1053 char *_kwnames[] = { "self","statBar", NULL };
1054
1055 self = self;
1056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusBar",_kwnames,&_argo0,&_argo1))
1057 return NULL;
1058 if (_argo0) {
1059 if (_argo0 == Py_None) { _arg0 = NULL; }
1060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusBar. Expected _wxFrame_p.");
1062 return NULL;
1063 }
1064 }
1065 if (_argo1) {
1066 if (_argo1 == Py_None) { _arg1 = NULL; }
1067 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxStatusBar_p")) {
1068 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetStatusBar. Expected _wxStatusBar_p.");
1069 return NULL;
1070 }
1071 }
1072 {
1073 wxPy_BEGIN_ALLOW_THREADS;
1074 wxFrame_SetStatusBar(_arg0,_arg1);
1075
1076 wxPy_END_ALLOW_THREADS;
1077 if (PyErr_Occurred()) return NULL;
1078 } Py_INCREF(Py_None);
1079 _resultobj = Py_None;
1080 return _resultobj;
1081 }
1082
1083 #define wxFrame_SetStatusText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusText(_swigarg0,_swigarg1))
1084 static PyObject *_wrap_wxFrame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) {
1085 PyObject * _resultobj;
1086 wxFrame * _arg0;
1087 wxString * _arg1;
1088 int _arg2 = (int ) 0;
1089 PyObject * _argo0 = 0;
1090 PyObject * _obj1 = 0;
1091 char *_kwnames[] = { "self","text","number", NULL };
1092
1093 self = self;
1094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFrame_SetStatusText",_kwnames,&_argo0,&_obj1,&_arg2))
1095 return NULL;
1096 if (_argo0) {
1097 if (_argo0 == Py_None) { _arg0 = NULL; }
1098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetStatusText. Expected _wxFrame_p.");
1100 return NULL;
1101 }
1102 }
1103 {
1104 #if PYTHON_API_VERSION >= 1009
1105 char* tmpPtr; int tmpSize;
1106 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1107 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1108 return NULL;
1109 }
1110 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1111 return NULL;
1112 _arg1 = new wxString(tmpPtr, tmpSize);
1113 #else
1114 if (!PyString_Check(_obj1)) {
1115 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1116 return NULL;
1117 }
1118 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1119 #endif
1120 }
1121 {
1122 wxPy_BEGIN_ALLOW_THREADS;
1123 wxFrame_SetStatusText(_arg0,*_arg1,_arg2);
1124
1125 wxPy_END_ALLOW_THREADS;
1126 if (PyErr_Occurred()) return NULL;
1127 } Py_INCREF(Py_None);
1128 _resultobj = Py_None;
1129 {
1130 if (_obj1)
1131 delete _arg1;
1132 }
1133 return _resultobj;
1134 }
1135
1136 #define wxFrame_SetStatusWidths(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStatusWidths(_swigarg0,_swigarg1))
1137 static PyObject *_wrap_wxFrame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
1138 PyObject * _resultobj;
1139 wxFrame * _arg0;
1140 int _arg1;
1141 int * _arg2;
1142 PyObject * _argo0 = 0;
1143 PyObject * _obj2 = 0;
1144 char *_kwnames[] = { "self","choices", NULL };
1145
1146 self = self;
1147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetStatusWidths",_kwnames,&_argo0,&_obj2))
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_SetStatusWidths. Expected _wxFrame_p.");
1153 return NULL;
1154 }
1155 }
1156 if (_obj2)
1157 {
1158 _arg2 = int_LIST_helper(_obj2);
1159 if (_arg2 == NULL) {
1160 return NULL;
1161 }
1162 }
1163 {
1164 if (_obj2) {
1165 _arg1 = PyList_Size(_obj2);
1166 }
1167 else {
1168 _arg1 = 0;
1169 }
1170 }
1171 {
1172 wxPy_BEGIN_ALLOW_THREADS;
1173 wxFrame_SetStatusWidths(_arg0,_arg1,_arg2);
1174
1175 wxPy_END_ALLOW_THREADS;
1176 if (PyErr_Occurred()) return NULL;
1177 } Py_INCREF(Py_None);
1178 _resultobj = Py_None;
1179 {
1180 delete [] _arg2;
1181 }
1182 return _resultobj;
1183 }
1184
1185 #define wxFrame_CreateToolBar(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CreateToolBar(_swigarg0,_swigarg1,_swigarg2))
1186 static PyObject *_wrap_wxFrame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1187 PyObject * _resultobj;
1188 wxToolBar * _result;
1189 wxFrame * _arg0;
1190 long _arg1 = (long ) wxNO_BORDER|wxTB_HORIZONTAL;
1191 wxWindowID _arg2 = (wxWindowID ) -1;
1192 char * _arg3 = (char *) "toolBar";
1193 PyObject * _argo0 = 0;
1194 char *_kwnames[] = { "self","style","id","name", NULL };
1195
1196 self = self;
1197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|lis:wxFrame_CreateToolBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
1198 return NULL;
1199 if (_argo0) {
1200 if (_argo0 == Py_None) { _arg0 = NULL; }
1201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_CreateToolBar. Expected _wxFrame_p.");
1203 return NULL;
1204 }
1205 }
1206 {
1207 wxPy_BEGIN_ALLOW_THREADS;
1208 _result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3);
1209
1210 wxPy_END_ALLOW_THREADS;
1211 if (PyErr_Occurred()) return NULL;
1212 }{ _resultobj = wxPyMake_wxObject(_result); }
1213 return _resultobj;
1214 }
1215
1216 #define wxFrame_GetToolBar(_swigobj) (_swigobj->GetToolBar())
1217 static PyObject *_wrap_wxFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1218 PyObject * _resultobj;
1219 wxToolBar * _result;
1220 wxFrame * _arg0;
1221 PyObject * _argo0 = 0;
1222 char *_kwnames[] = { "self", NULL };
1223
1224 self = self;
1225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetToolBar",_kwnames,&_argo0))
1226 return NULL;
1227 if (_argo0) {
1228 if (_argo0 == Py_None) { _arg0 = NULL; }
1229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_GetToolBar. Expected _wxFrame_p.");
1231 return NULL;
1232 }
1233 }
1234 {
1235 wxPy_BEGIN_ALLOW_THREADS;
1236 _result = (wxToolBar *)wxFrame_GetToolBar(_arg0);
1237
1238 wxPy_END_ALLOW_THREADS;
1239 if (PyErr_Occurred()) return NULL;
1240 }{ _resultobj = wxPyMake_wxObject(_result); }
1241 return _resultobj;
1242 }
1243
1244 #define wxFrame_SetToolBar(_swigobj,_swigarg0) (_swigobj->SetToolBar(_swigarg0))
1245 static PyObject *_wrap_wxFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1246 PyObject * _resultobj;
1247 wxFrame * _arg0;
1248 wxToolBar * _arg1;
1249 PyObject * _argo0 = 0;
1250 PyObject * _argo1 = 0;
1251 char *_kwnames[] = { "self","toolbar", NULL };
1252
1253 self = self;
1254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetToolBar",_kwnames,&_argo0,&_argo1))
1255 return NULL;
1256 if (_argo0) {
1257 if (_argo0 == Py_None) { _arg0 = NULL; }
1258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetToolBar. Expected _wxFrame_p.");
1260 return NULL;
1261 }
1262 }
1263 if (_argo1) {
1264 if (_argo1 == Py_None) { _arg1 = NULL; }
1265 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolBar_p")) {
1266 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetToolBar. Expected _wxToolBar_p.");
1267 return NULL;
1268 }
1269 }
1270 {
1271 wxPy_BEGIN_ALLOW_THREADS;
1272 wxFrame_SetToolBar(_arg0,_arg1);
1273
1274 wxPy_END_ALLOW_THREADS;
1275 if (PyErr_Occurred()) return NULL;
1276 } Py_INCREF(Py_None);
1277 _resultobj = Py_None;
1278 return _resultobj;
1279 }
1280
1281 #define wxFrame_ShowFullScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShowFullScreen(_swigarg0,_swigarg1))
1282 static PyObject *_wrap_wxFrame_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1283 PyObject * _resultobj;
1284 bool _result;
1285 wxFrame * _arg0;
1286 bool _arg1;
1287 long _arg2 = (long ) (wxFULLSCREEN_ALL);
1288 PyObject * _argo0 = 0;
1289 int tempbool1;
1290 char *_kwnames[] = { "self","show","style", NULL };
1291
1292 self = self;
1293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|l:wxFrame_ShowFullScreen",_kwnames,&_argo0,&tempbool1,&_arg2))
1294 return NULL;
1295 if (_argo0) {
1296 if (_argo0 == Py_None) { _arg0 = NULL; }
1297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ShowFullScreen. Expected _wxFrame_p.");
1299 return NULL;
1300 }
1301 }
1302 _arg1 = (bool ) tempbool1;
1303 {
1304 wxPy_BEGIN_ALLOW_THREADS;
1305 _result = (bool )wxFrame_ShowFullScreen(_arg0,_arg1,_arg2);
1306
1307 wxPy_END_ALLOW_THREADS;
1308 if (PyErr_Occurred()) return NULL;
1309 } _resultobj = Py_BuildValue("i",_result);
1310 return _resultobj;
1311 }
1312
1313 #define wxFrame_IsFullScreen(_swigobj) (_swigobj->IsFullScreen())
1314 static PyObject *_wrap_wxFrame_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
1315 PyObject * _resultobj;
1316 bool _result;
1317 wxFrame * _arg0;
1318 PyObject * _argo0 = 0;
1319 char *_kwnames[] = { "self", NULL };
1320
1321 self = self;
1322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_IsFullScreen",_kwnames,&_argo0))
1323 return NULL;
1324 if (_argo0) {
1325 if (_argo0 == Py_None) { _arg0 = NULL; }
1326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_IsFullScreen. Expected _wxFrame_p.");
1328 return NULL;
1329 }
1330 }
1331 {
1332 wxPy_BEGIN_ALLOW_THREADS;
1333 _result = (bool )wxFrame_IsFullScreen(_arg0);
1334
1335 wxPy_END_ALLOW_THREADS;
1336 if (PyErr_Occurred()) return NULL;
1337 } _resultobj = Py_BuildValue("i",_result);
1338 return _resultobj;
1339 }
1340
1341 #define wxFrame_Raise(_swigobj) (_swigobj->Raise())
1342 static PyObject *_wrap_wxFrame_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
1343 PyObject * _resultobj;
1344 wxFrame * _arg0;
1345 PyObject * _argo0 = 0;
1346 char *_kwnames[] = { "self", NULL };
1347
1348 self = self;
1349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_Raise",_kwnames,&_argo0))
1350 return NULL;
1351 if (_argo0) {
1352 if (_argo0 == Py_None) { _arg0 = NULL; }
1353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_Raise. Expected _wxFrame_p.");
1355 return NULL;
1356 }
1357 }
1358 {
1359 wxPy_BEGIN_ALLOW_THREADS;
1360 wxFrame_Raise(_arg0);
1361
1362 wxPy_END_ALLOW_THREADS;
1363 if (PyErr_Occurred()) return NULL;
1364 } Py_INCREF(Py_None);
1365 _resultobj = Py_None;
1366 return _resultobj;
1367 }
1368
1369 #define wxFrame_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0))
1370 static PyObject *_wrap_wxFrame_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
1371 PyObject * _resultobj;
1372 wxFrame * _arg0;
1373 wxAcceleratorTable * _arg1;
1374 PyObject * _argo0 = 0;
1375 PyObject * _argo1 = 0;
1376 char *_kwnames[] = { "self","accel", NULL };
1377
1378 self = self;
1379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFrame_SetAcceleratorTable",_kwnames,&_argo0,&_argo1))
1380 return NULL;
1381 if (_argo0) {
1382 if (_argo0 == Py_None) { _arg0 = NULL; }
1383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_SetAcceleratorTable. Expected _wxFrame_p.");
1385 return NULL;
1386 }
1387 }
1388 if (_argo1) {
1389 if (_argo1 == Py_None) { _arg1 = NULL; }
1390 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) {
1391 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFrame_SetAcceleratorTable. Expected _wxAcceleratorTable_p.");
1392 return NULL;
1393 }
1394 }
1395 {
1396 wxPy_BEGIN_ALLOW_THREADS;
1397 wxFrame_SetAcceleratorTable(_arg0,*_arg1);
1398
1399 wxPy_END_ALLOW_THREADS;
1400 if (PyErr_Occurred()) return NULL;
1401 } Py_INCREF(Py_None);
1402 _resultobj = Py_None;
1403 return _resultobj;
1404 }
1405
1406 #define wxFrame_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0))
1407 static PyObject *_wrap_wxFrame_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1408 PyObject * _resultobj;
1409 wxFrame * _arg0;
1410 bool _arg1 = (bool ) TRUE;
1411 PyObject * _argo0 = 0;
1412 int tempbool1 = (int) TRUE;
1413 char *_kwnames[] = { "self","modal", NULL };
1414
1415 self = self;
1416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxFrame_MakeModal",_kwnames,&_argo0,&tempbool1))
1417 return NULL;
1418 if (_argo0) {
1419 if (_argo0 == Py_None) { _arg0 = NULL; }
1420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
1421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_MakeModal. Expected _wxFrame_p.");
1422 return NULL;
1423 }
1424 }
1425 _arg1 = (bool ) tempbool1;
1426 {
1427 wxPy_BEGIN_ALLOW_THREADS;
1428 wxFrame_MakeModal(_arg0,_arg1);
1429
1430 wxPy_END_ALLOW_THREADS;
1431 if (PyErr_Occurred()) return NULL;
1432 } Py_INCREF(Py_None);
1433 _resultobj = Py_None;
1434 return _resultobj;
1435 }
1436
1437 static void *SwigwxDialogTowxTopLevelWindow(void *ptr) {
1438 wxDialog *src;
1439 wxTopLevelWindow *dest;
1440 src = (wxDialog *) ptr;
1441 dest = (wxTopLevelWindow *) src;
1442 return (void *) dest;
1443 }
1444
1445 static void *SwigwxDialogTowxWindow(void *ptr) {
1446 wxDialog *src;
1447 wxWindow *dest;
1448 src = (wxDialog *) ptr;
1449 dest = (wxWindow *) src;
1450 return (void *) dest;
1451 }
1452
1453 static void *SwigwxDialogTowxEvtHandler(void *ptr) {
1454 wxDialog *src;
1455 wxEvtHandler *dest;
1456 src = (wxDialog *) ptr;
1457 dest = (wxEvtHandler *) src;
1458 return (void *) dest;
1459 }
1460
1461 static void *SwigwxDialogTowxObject(void *ptr) {
1462 wxDialog *src;
1463 wxObject *dest;
1464 src = (wxDialog *) ptr;
1465 dest = (wxObject *) src;
1466 return (void *) dest;
1467 }
1468
1469 #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1470 static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1471 PyObject * _resultobj;
1472 wxDialog * _result;
1473 wxWindow * _arg0;
1474 wxWindowID _arg1;
1475 wxString * _arg2;
1476 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1477 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1478 long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE;
1479 char * _arg6 = (char *) "dialogBox";
1480 PyObject * _argo0 = 0;
1481 PyObject * _obj2 = 0;
1482 wxPoint temp;
1483 PyObject * _obj3 = 0;
1484 wxSize temp0;
1485 PyObject * _obj4 = 0;
1486 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
1487 char _ptemp[128];
1488
1489 self = self;
1490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
1491 return NULL;
1492 if (_argo0) {
1493 if (_argo0 == Py_None) { _arg0 = NULL; }
1494 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1495 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p.");
1496 return NULL;
1497 }
1498 }
1499 {
1500 #if PYTHON_API_VERSION >= 1009
1501 char* tmpPtr; int tmpSize;
1502 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1503 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1504 return NULL;
1505 }
1506 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1507 return NULL;
1508 _arg2 = new wxString(tmpPtr, tmpSize);
1509 #else
1510 if (!PyString_Check(_obj2)) {
1511 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1512 return NULL;
1513 }
1514 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1515 #endif
1516 }
1517 if (_obj3)
1518 {
1519 _arg3 = &temp;
1520 if (! wxPoint_helper(_obj3, &_arg3))
1521 return NULL;
1522 }
1523 if (_obj4)
1524 {
1525 _arg4 = &temp0;
1526 if (! wxSize_helper(_obj4, &_arg4))
1527 return NULL;
1528 }
1529 {
1530 wxPy_BEGIN_ALLOW_THREADS;
1531 _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
1532
1533 wxPy_END_ALLOW_THREADS;
1534 if (PyErr_Occurred()) return NULL;
1535 } if (_result) {
1536 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
1537 _resultobj = Py_BuildValue("s",_ptemp);
1538 } else {
1539 Py_INCREF(Py_None);
1540 _resultobj = Py_None;
1541 }
1542 {
1543 if (_obj2)
1544 delete _arg2;
1545 }
1546 return _resultobj;
1547 }
1548
1549 #define new_wxPreDialog() (new wxDialog())
1550 static PyObject *_wrap_new_wxPreDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1551 PyObject * _resultobj;
1552 wxDialog * _result;
1553 char *_kwnames[] = { NULL };
1554 char _ptemp[128];
1555
1556 self = self;
1557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDialog",_kwnames))
1558 return NULL;
1559 {
1560 wxPy_BEGIN_ALLOW_THREADS;
1561 _result = (wxDialog *)new_wxPreDialog();
1562
1563 wxPy_END_ALLOW_THREADS;
1564 if (PyErr_Occurred()) return NULL;
1565 } if (_result) {
1566 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
1567 _resultobj = Py_BuildValue("s",_ptemp);
1568 } else {
1569 Py_INCREF(Py_None);
1570 _resultobj = Py_None;
1571 }
1572 return _resultobj;
1573 }
1574
1575 #define wxDialog_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1576 static PyObject *_wrap_wxDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
1577 PyObject * _resultobj;
1578 bool _result;
1579 wxDialog * _arg0;
1580 wxWindow * _arg1;
1581 wxWindowID _arg2;
1582 wxString * _arg3;
1583 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
1584 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
1585 long _arg6 = (long ) wxDEFAULT_DIALOG_STYLE;
1586 char * _arg7 = (char *) "dialogBox";
1587 PyObject * _argo0 = 0;
1588 PyObject * _argo1 = 0;
1589 PyObject * _obj3 = 0;
1590 wxPoint temp;
1591 PyObject * _obj4 = 0;
1592 wxSize temp0;
1593 PyObject * _obj5 = 0;
1594 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
1595
1596 self = self;
1597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxDialog_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
1598 return NULL;
1599 if (_argo0) {
1600 if (_argo0 == Py_None) { _arg0 = NULL; }
1601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Create. Expected _wxDialog_p.");
1603 return NULL;
1604 }
1605 }
1606 if (_argo1) {
1607 if (_argo1 == Py_None) { _arg1 = NULL; }
1608 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1609 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDialog_Create. Expected _wxWindow_p.");
1610 return NULL;
1611 }
1612 }
1613 {
1614 #if PYTHON_API_VERSION >= 1009
1615 char* tmpPtr; int tmpSize;
1616 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
1617 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1618 return NULL;
1619 }
1620 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
1621 return NULL;
1622 _arg3 = new wxString(tmpPtr, tmpSize);
1623 #else
1624 if (!PyString_Check(_obj3)) {
1625 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1626 return NULL;
1627 }
1628 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
1629 #endif
1630 }
1631 if (_obj4)
1632 {
1633 _arg4 = &temp;
1634 if (! wxPoint_helper(_obj4, &_arg4))
1635 return NULL;
1636 }
1637 if (_obj5)
1638 {
1639 _arg5 = &temp0;
1640 if (! wxSize_helper(_obj5, &_arg5))
1641 return NULL;
1642 }
1643 {
1644 wxPy_BEGIN_ALLOW_THREADS;
1645 _result = (bool )wxDialog_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
1646
1647 wxPy_END_ALLOW_THREADS;
1648 if (PyErr_Occurred()) return NULL;
1649 } _resultobj = Py_BuildValue("i",_result);
1650 {
1651 if (_obj3)
1652 delete _arg3;
1653 }
1654 return _resultobj;
1655 }
1656
1657 #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0))
1658 static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) {
1659 PyObject * _resultobj;
1660 wxDialog * _arg0;
1661 int _arg1 = (int ) wxBOTH;
1662 PyObject * _argo0 = 0;
1663 char *_kwnames[] = { "self","direction", NULL };
1664
1665 self = self;
1666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1))
1667 return NULL;
1668 if (_argo0) {
1669 if (_argo0 == Py_None) { _arg0 = NULL; }
1670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p.");
1672 return NULL;
1673 }
1674 }
1675 {
1676 wxPy_BEGIN_ALLOW_THREADS;
1677 wxDialog_Centre(_arg0,_arg1);
1678
1679 wxPy_END_ALLOW_THREADS;
1680 if (PyErr_Occurred()) return NULL;
1681 } Py_INCREF(Py_None);
1682 _resultobj = Py_None;
1683 return _resultobj;
1684 }
1685
1686 #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0))
1687 static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1688 PyObject * _resultobj;
1689 wxDialog * _arg0;
1690 int _arg1;
1691 PyObject * _argo0 = 0;
1692 char *_kwnames[] = { "self","retCode", NULL };
1693
1694 self = self;
1695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1))
1696 return NULL;
1697 if (_argo0) {
1698 if (_argo0 == Py_None) { _arg0 = NULL; }
1699 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1700 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p.");
1701 return NULL;
1702 }
1703 }
1704 {
1705 wxPy_BEGIN_ALLOW_THREADS;
1706 wxDialog_EndModal(_arg0,_arg1);
1707
1708 wxPy_END_ALLOW_THREADS;
1709 if (PyErr_Occurred()) return NULL;
1710 } Py_INCREF(Py_None);
1711 _resultobj = Py_None;
1712 return _resultobj;
1713 }
1714
1715 #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0))
1716 static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1717 PyObject * _resultobj;
1718 wxDialog * _arg0;
1719 bool _arg1;
1720 PyObject * _argo0 = 0;
1721 int tempbool1;
1722 char *_kwnames[] = { "self","flag", NULL };
1723
1724 self = self;
1725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1))
1726 return NULL;
1727 if (_argo0) {
1728 if (_argo0 == Py_None) { _arg0 = NULL; }
1729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p.");
1731 return NULL;
1732 }
1733 }
1734 _arg1 = (bool ) tempbool1;
1735 {
1736 wxPy_BEGIN_ALLOW_THREADS;
1737 wxDialog_SetModal(_arg0,_arg1);
1738
1739 wxPy_END_ALLOW_THREADS;
1740 if (PyErr_Occurred()) return NULL;
1741 } Py_INCREF(Py_None);
1742 _resultobj = Py_None;
1743 return _resultobj;
1744 }
1745
1746 #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal())
1747 static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1748 PyObject * _resultobj;
1749 bool _result;
1750 wxDialog * _arg0;
1751 PyObject * _argo0 = 0;
1752 char *_kwnames[] = { "self", NULL };
1753
1754 self = self;
1755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0))
1756 return NULL;
1757 if (_argo0) {
1758 if (_argo0 == Py_None) { _arg0 = NULL; }
1759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p.");
1761 return NULL;
1762 }
1763 }
1764 {
1765 wxPy_BEGIN_ALLOW_THREADS;
1766 _result = (bool )wxDialog_IsModal(_arg0);
1767
1768 wxPy_END_ALLOW_THREADS;
1769 if (PyErr_Occurred()) return NULL;
1770 } _resultobj = Py_BuildValue("i",_result);
1771 return _resultobj;
1772 }
1773
1774 #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
1775 static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1776 PyObject * _resultobj;
1777 int _result;
1778 wxDialog * _arg0;
1779 PyObject * _argo0 = 0;
1780 char *_kwnames[] = { "self", NULL };
1781
1782 self = self;
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0))
1784 return NULL;
1785 if (_argo0) {
1786 if (_argo0 == Py_None) { _arg0 = NULL; }
1787 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1788 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p.");
1789 return NULL;
1790 }
1791 }
1792 {
1793 wxPy_BEGIN_ALLOW_THREADS;
1794 _result = (int )wxDialog_ShowModal(_arg0);
1795
1796 wxPy_END_ALLOW_THREADS;
1797 if (PyErr_Occurred()) return NULL;
1798 } _resultobj = Py_BuildValue("i",_result);
1799 return _resultobj;
1800 }
1801
1802 #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode())
1803 static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
1804 PyObject * _resultobj;
1805 int _result;
1806 wxDialog * _arg0;
1807 PyObject * _argo0 = 0;
1808 char *_kwnames[] = { "self", NULL };
1809
1810 self = self;
1811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0))
1812 return NULL;
1813 if (_argo0) {
1814 if (_argo0 == Py_None) { _arg0 = NULL; }
1815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p.");
1817 return NULL;
1818 }
1819 }
1820 {
1821 wxPy_BEGIN_ALLOW_THREADS;
1822 _result = (int )wxDialog_GetReturnCode(_arg0);
1823
1824 wxPy_END_ALLOW_THREADS;
1825 if (PyErr_Occurred()) return NULL;
1826 } _resultobj = Py_BuildValue("i",_result);
1827 return _resultobj;
1828 }
1829
1830 #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0))
1831 static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) {
1832 PyObject * _resultobj;
1833 wxDialog * _arg0;
1834 int _arg1;
1835 PyObject * _argo0 = 0;
1836 char *_kwnames[] = { "self","retCode", NULL };
1837
1838 self = self;
1839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1))
1840 return NULL;
1841 if (_argo0) {
1842 if (_argo0 == Py_None) { _arg0 = NULL; }
1843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p.");
1845 return NULL;
1846 }
1847 }
1848 {
1849 wxPy_BEGIN_ALLOW_THREADS;
1850 wxDialog_SetReturnCode(_arg0,_arg1);
1851
1852 wxPy_END_ALLOW_THREADS;
1853 if (PyErr_Occurred()) return NULL;
1854 } Py_INCREF(Py_None);
1855 _resultobj = Py_None;
1856 return _resultobj;
1857 }
1858
1859 #define wxDialog_CreateTextSizer(_swigobj,_swigarg0) (_swigobj->CreateTextSizer(_swigarg0))
1860 static PyObject *_wrap_wxDialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1861 PyObject * _resultobj;
1862 wxSizer * _result;
1863 wxDialog * _arg0;
1864 wxString * _arg1;
1865 PyObject * _argo0 = 0;
1866 PyObject * _obj1 = 0;
1867 char *_kwnames[] = { "self","message", NULL };
1868
1869 self = self;
1870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1))
1871 return NULL;
1872 if (_argo0) {
1873 if (_argo0 == Py_None) { _arg0 = NULL; }
1874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateTextSizer. Expected _wxDialog_p.");
1876 return NULL;
1877 }
1878 }
1879 {
1880 #if PYTHON_API_VERSION >= 1009
1881 char* tmpPtr; int tmpSize;
1882 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1883 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1884 return NULL;
1885 }
1886 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1887 return NULL;
1888 _arg1 = new wxString(tmpPtr, tmpSize);
1889 #else
1890 if (!PyString_Check(_obj1)) {
1891 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1892 return NULL;
1893 }
1894 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1895 #endif
1896 }
1897 {
1898 wxPy_BEGIN_ALLOW_THREADS;
1899 _result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1);
1900
1901 wxPy_END_ALLOW_THREADS;
1902 if (PyErr_Occurred()) return NULL;
1903 }{ _resultobj = wxPyMake_wxObject(_result); }
1904 {
1905 if (_obj1)
1906 delete _arg1;
1907 }
1908 return _resultobj;
1909 }
1910
1911 #define wxDialog_CreateButtonSizer(_swigobj,_swigarg0) (_swigobj->CreateButtonSizer(_swigarg0))
1912 static PyObject *_wrap_wxDialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
1913 PyObject * _resultobj;
1914 wxSizer * _result;
1915 wxDialog * _arg0;
1916 long _arg1;
1917 PyObject * _argo0 = 0;
1918 char *_kwnames[] = { "self","flags", NULL };
1919
1920 self = self;
1921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1))
1922 return NULL;
1923 if (_argo0) {
1924 if (_argo0 == Py_None) { _arg0 = NULL; }
1925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) {
1926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_CreateButtonSizer. Expected _wxDialog_p.");
1927 return NULL;
1928 }
1929 }
1930 {
1931 wxPy_BEGIN_ALLOW_THREADS;
1932 _result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1);
1933
1934 wxPy_END_ALLOW_THREADS;
1935 if (PyErr_Occurred()) return NULL;
1936 }{ _resultobj = wxPyMake_wxObject(_result); }
1937 return _resultobj;
1938 }
1939
1940 static void *SwigwxMiniFrameTowxFrame(void *ptr) {
1941 wxMiniFrame *src;
1942 wxFrame *dest;
1943 src = (wxMiniFrame *) ptr;
1944 dest = (wxFrame *) src;
1945 return (void *) dest;
1946 }
1947
1948 static void *SwigwxMiniFrameTowxTopLevelWindow(void *ptr) {
1949 wxMiniFrame *src;
1950 wxTopLevelWindow *dest;
1951 src = (wxMiniFrame *) ptr;
1952 dest = (wxTopLevelWindow *) src;
1953 return (void *) dest;
1954 }
1955
1956 static void *SwigwxMiniFrameTowxWindow(void *ptr) {
1957 wxMiniFrame *src;
1958 wxWindow *dest;
1959 src = (wxMiniFrame *) ptr;
1960 dest = (wxWindow *) src;
1961 return (void *) dest;
1962 }
1963
1964 static void *SwigwxMiniFrameTowxEvtHandler(void *ptr) {
1965 wxMiniFrame *src;
1966 wxEvtHandler *dest;
1967 src = (wxMiniFrame *) ptr;
1968 dest = (wxEvtHandler *) src;
1969 return (void *) dest;
1970 }
1971
1972 static void *SwigwxMiniFrameTowxObject(void *ptr) {
1973 wxMiniFrame *src;
1974 wxObject *dest;
1975 src = (wxMiniFrame *) ptr;
1976 dest = (wxObject *) src;
1977 return (void *) dest;
1978 }
1979
1980 #define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1981 static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
1982 PyObject * _resultobj;
1983 wxMiniFrame * _result;
1984 wxWindow * _arg0;
1985 wxWindowID _arg1;
1986 wxString * _arg2;
1987 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
1988 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
1989 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
1990 char * _arg6 = (char *) "frame";
1991 PyObject * _argo0 = 0;
1992 PyObject * _obj2 = 0;
1993 wxPoint temp;
1994 PyObject * _obj3 = 0;
1995 wxSize temp0;
1996 PyObject * _obj4 = 0;
1997 char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL };
1998 char _ptemp[128];
1999
2000 self = self;
2001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxMiniFrame",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
2002 return NULL;
2003 if (_argo0) {
2004 if (_argo0 == Py_None) { _arg0 = NULL; }
2005 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2006 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMiniFrame. Expected _wxWindow_p.");
2007 return NULL;
2008 }
2009 }
2010 {
2011 #if PYTHON_API_VERSION >= 1009
2012 char* tmpPtr; int tmpSize;
2013 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
2014 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2015 return NULL;
2016 }
2017 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
2018 return NULL;
2019 _arg2 = new wxString(tmpPtr, tmpSize);
2020 #else
2021 if (!PyString_Check(_obj2)) {
2022 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2023 return NULL;
2024 }
2025 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
2026 #endif
2027 }
2028 if (_obj3)
2029 {
2030 _arg3 = &temp;
2031 if (! wxPoint_helper(_obj3, &_arg3))
2032 return NULL;
2033 }
2034 if (_obj4)
2035 {
2036 _arg4 = &temp0;
2037 if (! wxSize_helper(_obj4, &_arg4))
2038 return NULL;
2039 }
2040 {
2041 wxPy_BEGIN_ALLOW_THREADS;
2042 _result = (wxMiniFrame *)new_wxMiniFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
2043
2044 wxPy_END_ALLOW_THREADS;
2045 if (PyErr_Occurred()) return NULL;
2046 } if (_result) {
2047 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p");
2048 _resultobj = Py_BuildValue("s",_ptemp);
2049 } else {
2050 Py_INCREF(Py_None);
2051 _resultobj = Py_None;
2052 }
2053 {
2054 if (_obj2)
2055 delete _arg2;
2056 }
2057 return _resultobj;
2058 }
2059
2060 #define new_wxPreMiniFrame() (new wxMiniFrame())
2061 static PyObject *_wrap_new_wxPreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
2062 PyObject * _resultobj;
2063 wxMiniFrame * _result;
2064 char *_kwnames[] = { NULL };
2065 char _ptemp[128];
2066
2067 self = self;
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreMiniFrame",_kwnames))
2069 return NULL;
2070 {
2071 wxPy_BEGIN_ALLOW_THREADS;
2072 _result = (wxMiniFrame *)new_wxPreMiniFrame();
2073
2074 wxPy_END_ALLOW_THREADS;
2075 if (PyErr_Occurred()) return NULL;
2076 } if (_result) {
2077 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMiniFrame_p");
2078 _resultobj = Py_BuildValue("s",_ptemp);
2079 } else {
2080 Py_INCREF(Py_None);
2081 _resultobj = Py_None;
2082 }
2083 return _resultobj;
2084 }
2085
2086 #define wxMiniFrame_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
2087 static PyObject *_wrap_wxMiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2088 PyObject * _resultobj;
2089 bool _result;
2090 wxMiniFrame * _arg0;
2091 wxWindow * _arg1;
2092 wxWindowID _arg2;
2093 wxString * _arg3;
2094 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
2095 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
2096 long _arg6 = (long ) wxDEFAULT_FRAME_STYLE;
2097 char * _arg7 = (char *) "frame";
2098 PyObject * _argo0 = 0;
2099 PyObject * _argo1 = 0;
2100 PyObject * _obj3 = 0;
2101 wxPoint temp;
2102 PyObject * _obj4 = 0;
2103 wxSize temp0;
2104 PyObject * _obj5 = 0;
2105 char *_kwnames[] = { "self","parent","id","title","pos","size","style","name", NULL };
2106
2107 self = self;
2108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|OOls:wxMiniFrame_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_obj5,&_arg6,&_arg7))
2109 return NULL;
2110 if (_argo0) {
2111 if (_argo0 == Py_None) { _arg0 = NULL; }
2112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMiniFrame_p")) {
2113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMiniFrame_Create. Expected _wxMiniFrame_p.");
2114 return NULL;
2115 }
2116 }
2117 if (_argo1) {
2118 if (_argo1 == Py_None) { _arg1 = NULL; }
2119 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
2120 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMiniFrame_Create. Expected _wxWindow_p.");
2121 return NULL;
2122 }
2123 }
2124 {
2125 #if PYTHON_API_VERSION >= 1009
2126 char* tmpPtr; int tmpSize;
2127 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
2128 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2129 return NULL;
2130 }
2131 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
2132 return NULL;
2133 _arg3 = new wxString(tmpPtr, tmpSize);
2134 #else
2135 if (!PyString_Check(_obj3)) {
2136 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2137 return NULL;
2138 }
2139 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
2140 #endif
2141 }
2142 if (_obj4)
2143 {
2144 _arg4 = &temp;
2145 if (! wxPoint_helper(_obj4, &_arg4))
2146 return NULL;
2147 }
2148 if (_obj5)
2149 {
2150 _arg5 = &temp0;
2151 if (! wxSize_helper(_obj5, &_arg5))
2152 return NULL;
2153 }
2154 {
2155 wxPy_BEGIN_ALLOW_THREADS;
2156 _result = (bool )wxMiniFrame_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6,_arg7);
2157
2158 wxPy_END_ALLOW_THREADS;
2159 if (PyErr_Occurred()) return NULL;
2160 } _resultobj = Py_BuildValue("i",_result);
2161 {
2162 if (_obj3)
2163 delete _arg3;
2164 }
2165 return _resultobj;
2166 }
2167
2168 static void *SwigwxTipWindowTowxFrame(void *ptr) {
2169 wxTipWindow *src;
2170 wxFrame *dest;
2171 src = (wxTipWindow *) ptr;
2172 dest = (wxFrame *) src;
2173 return (void *) dest;
2174 }
2175
2176 static void *SwigwxTipWindowTowxTopLevelWindow(void *ptr) {
2177 wxTipWindow *src;
2178 wxTopLevelWindow *dest;
2179 src = (wxTipWindow *) ptr;
2180 dest = (wxTopLevelWindow *) src;
2181 return (void *) dest;
2182 }
2183
2184 static void *SwigwxTipWindowTowxWindow(void *ptr) {
2185 wxTipWindow *src;
2186 wxWindow *dest;
2187 src = (wxTipWindow *) ptr;
2188 dest = (wxWindow *) src;
2189 return (void *) dest;
2190 }
2191
2192 static void *SwigwxTipWindowTowxEvtHandler(void *ptr) {
2193 wxTipWindow *src;
2194 wxEvtHandler *dest;
2195 src = (wxTipWindow *) ptr;
2196 dest = (wxEvtHandler *) src;
2197 return (void *) dest;
2198 }
2199
2200 static void *SwigwxTipWindowTowxObject(void *ptr) {
2201 wxTipWindow *src;
2202 wxObject *dest;
2203 src = (wxTipWindow *) ptr;
2204 dest = (wxObject *) src;
2205 return (void *) dest;
2206 }
2207
2208 #define new_wxTipWindow(_swigarg0,_swigarg1,_swigarg2) (new wxTipWindow(_swigarg0,_swigarg1,_swigarg2))
2209 static PyObject *_wrap_new_wxTipWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject * _resultobj;
2211 wxTipWindow * _result;
2212 wxWindow * _arg0;
2213 wxString * _arg1;
2214 wxCoord _arg2 = (wxCoord ) 100;
2215 PyObject * _argo0 = 0;
2216 PyObject * _obj1 = 0;
2217 char *_kwnames[] = { "parent","text","maxLength", NULL };
2218 char _ptemp[128];
2219
2220 self = self;
2221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:new_wxTipWindow",_kwnames,&_argo0,&_obj1,&_arg2))
2222 return NULL;
2223 if (_argo0) {
2224 if (_argo0 == Py_None) { _arg0 = NULL; }
2225 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2226 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTipWindow. Expected _wxWindow_p.");
2227 return NULL;
2228 }
2229 }
2230 {
2231 #if PYTHON_API_VERSION >= 1009
2232 char* tmpPtr; int tmpSize;
2233 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2234 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2235 return NULL;
2236 }
2237 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2238 return NULL;
2239 _arg1 = new wxString(tmpPtr, tmpSize);
2240 #else
2241 if (!PyString_Check(_obj1)) {
2242 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2243 return NULL;
2244 }
2245 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2246 #endif
2247 }
2248 {
2249 wxPy_BEGIN_ALLOW_THREADS;
2250 _result = (wxTipWindow *)new_wxTipWindow(_arg0,*_arg1,_arg2);
2251
2252 wxPy_END_ALLOW_THREADS;
2253 if (PyErr_Occurred()) return NULL;
2254 } if (_result) {
2255 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipWindow_p");
2256 _resultobj = Py_BuildValue("s",_ptemp);
2257 } else {
2258 Py_INCREF(Py_None);
2259 _resultobj = Py_None;
2260 }
2261 {
2262 if (_obj1)
2263 delete _arg1;
2264 }
2265 return _resultobj;
2266 }
2267
2268 static PyMethodDef framescMethods[] = {
2269 { "new_wxTipWindow", (PyCFunction) _wrap_new_wxTipWindow, METH_VARARGS | METH_KEYWORDS },
2270 { "wxMiniFrame_Create", (PyCFunction) _wrap_wxMiniFrame_Create, METH_VARARGS | METH_KEYWORDS },
2271 { "new_wxPreMiniFrame", (PyCFunction) _wrap_new_wxPreMiniFrame, METH_VARARGS | METH_KEYWORDS },
2272 { "new_wxMiniFrame", (PyCFunction) _wrap_new_wxMiniFrame, METH_VARARGS | METH_KEYWORDS },
2273 { "wxDialog_CreateButtonSizer", (PyCFunction) _wrap_wxDialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS },
2274 { "wxDialog_CreateTextSizer", (PyCFunction) _wrap_wxDialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS },
2275 { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS },
2276 { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS },
2277 { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2278 { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS },
2279 { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS },
2280 { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS },
2281 { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS },
2282 { "wxDialog_Create", (PyCFunction) _wrap_wxDialog_Create, METH_VARARGS | METH_KEYWORDS },
2283 { "new_wxPreDialog", (PyCFunction) _wrap_new_wxPreDialog, METH_VARARGS | METH_KEYWORDS },
2284 { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS },
2285 { "wxFrame_MakeModal", (PyCFunction) _wrap_wxFrame_MakeModal, METH_VARARGS | METH_KEYWORDS },
2286 { "wxFrame_SetAcceleratorTable", (PyCFunction) _wrap_wxFrame_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
2287 { "wxFrame_Raise", (PyCFunction) _wrap_wxFrame_Raise, METH_VARARGS | METH_KEYWORDS },
2288 { "wxFrame_IsFullScreen", (PyCFunction) _wrap_wxFrame_IsFullScreen, METH_VARARGS | METH_KEYWORDS },
2289 { "wxFrame_ShowFullScreen", (PyCFunction) _wrap_wxFrame_ShowFullScreen, METH_VARARGS | METH_KEYWORDS },
2290 { "wxFrame_SetToolBar", (PyCFunction) _wrap_wxFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS },
2291 { "wxFrame_GetToolBar", (PyCFunction) _wrap_wxFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS },
2292 { "wxFrame_CreateToolBar", (PyCFunction) _wrap_wxFrame_CreateToolBar, METH_VARARGS | METH_KEYWORDS },
2293 { "wxFrame_SetStatusWidths", (PyCFunction) _wrap_wxFrame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS },
2294 { "wxFrame_SetStatusText", (PyCFunction) _wrap_wxFrame_SetStatusText, METH_VARARGS | METH_KEYWORDS },
2295 { "wxFrame_SetStatusBar", (PyCFunction) _wrap_wxFrame_SetStatusBar, METH_VARARGS | METH_KEYWORDS },
2296 { "wxFrame_GetStatusBar", (PyCFunction) _wrap_wxFrame_GetStatusBar, METH_VARARGS | METH_KEYWORDS },
2297 { "wxFrame_CreateStatusBar", (PyCFunction) _wrap_wxFrame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS },
2298 { "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS },
2299 { "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS },
2300 { "wxFrame_GetMenuBar", (PyCFunction) _wrap_wxFrame_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
2301 { "wxFrame_SetMenuBar", (PyCFunction) _wrap_wxFrame_SetMenuBar, METH_VARARGS | METH_KEYWORDS },
2302 { "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
2303 { "wxFrame_Create", (PyCFunction) _wrap_wxFrame_Create, METH_VARARGS | METH_KEYWORDS },
2304 { "new_wxPreFrame", (PyCFunction) _wrap_new_wxPreFrame, METH_VARARGS | METH_KEYWORDS },
2305 { "new_wxFrame", (PyCFunction) _wrap_new_wxFrame, METH_VARARGS | METH_KEYWORDS },
2306 { "wxTopLevelWindow_GetTitle", (PyCFunction) _wrap_wxTopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS },
2307 { "wxTopLevelWindow_SetTitle", (PyCFunction) _wrap_wxTopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS },
2308 { "wxTopLevelWindow_SetIcon", (PyCFunction) _wrap_wxTopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS },
2309 { "wxTopLevelWindow_GetIcon", (PyCFunction) _wrap_wxTopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS },
2310 { "wxTopLevelWindow_IsIconized", (PyCFunction) _wrap_wxTopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS },
2311 { "wxTopLevelWindow_IsMaximized", (PyCFunction) _wrap_wxTopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS },
2312 { "wxTopLevelWindow_Iconize", (PyCFunction) _wrap_wxTopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS },
2313 { "wxTopLevelWindow_Restore", (PyCFunction) _wrap_wxTopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS },
2314 { "wxTopLevelWindow_Maximize", (PyCFunction) _wrap_wxTopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS },
2315 { "wxTopLevelWindow_Create", (PyCFunction) _wrap_wxTopLevelWindow_Create, METH_VARARGS | METH_KEYWORDS },
2316 { "new_wxPreTopLevelWindow", (PyCFunction) _wrap_new_wxPreTopLevelWindow, METH_VARARGS | METH_KEYWORDS },
2317 { "new_wxTopLevelWindow", (PyCFunction) _wrap_new_wxTopLevelWindow, METH_VARARGS | METH_KEYWORDS },
2318 { NULL, NULL }
2319 };
2320 #ifdef __cplusplus
2321 }
2322 #endif
2323 /*
2324 * This table is used by the pointer type-checker
2325 */
2326 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
2327 { "_signed_long","_long",0},
2328 { "_wxPrintQuality","_wxCoord",0},
2329 { "_wxPrintQuality","_int",0},
2330 { "_wxPrintQuality","_signed_int",0},
2331 { "_wxPrintQuality","_unsigned_int",0},
2332 { "_wxPrintQuality","_wxWindowID",0},
2333 { "_wxPrintQuality","_uint",0},
2334 { "_wxPrintQuality","_EBool",0},
2335 { "_wxPrintQuality","_size_t",0},
2336 { "_wxPrintQuality","_time_t",0},
2337 { "_byte","_unsigned_char",0},
2338 { "_long","_unsigned_long",0},
2339 { "_long","_signed_long",0},
2340 { "_size_t","_wxCoord",0},
2341 { "_size_t","_wxPrintQuality",0},
2342 { "_size_t","_time_t",0},
2343 { "_size_t","_unsigned_int",0},
2344 { "_size_t","_int",0},
2345 { "_size_t","_wxWindowID",0},
2346 { "_size_t","_uint",0},
2347 { "_wxTopLevelWindow","_wxTipWindow",SwigwxTipWindowTowxTopLevelWindow},
2348 { "_wxTopLevelWindow","_wxMiniFrame",SwigwxMiniFrameTowxTopLevelWindow},
2349 { "_wxTopLevelWindow","_wxDialog",SwigwxDialogTowxTopLevelWindow},
2350 { "_wxTopLevelWindow","_wxFrame",SwigwxFrameTowxTopLevelWindow},
2351 { "_uint","_wxCoord",0},
2352 { "_uint","_wxPrintQuality",0},
2353 { "_uint","_time_t",0},
2354 { "_uint","_size_t",0},
2355 { "_uint","_unsigned_int",0},
2356 { "_uint","_int",0},
2357 { "_uint","_wxWindowID",0},
2358 { "_wxChar","_char",0},
2359 { "_char","_wxChar",0},
2360 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
2361 { "_EBool","_wxCoord",0},
2362 { "_EBool","_wxPrintQuality",0},
2363 { "_EBool","_signed_int",0},
2364 { "_EBool","_int",0},
2365 { "_EBool","_wxWindowID",0},
2366 { "_unsigned_long","_long",0},
2367 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
2368 { "_signed_int","_wxCoord",0},
2369 { "_signed_int","_wxPrintQuality",0},
2370 { "_signed_int","_EBool",0},
2371 { "_signed_int","_wxWindowID",0},
2372 { "_signed_int","_int",0},
2373 { "_WXTYPE","_short",0},
2374 { "_WXTYPE","_signed_short",0},
2375 { "_WXTYPE","_unsigned_short",0},
2376 { "_unsigned_short","_WXTYPE",0},
2377 { "_unsigned_short","_short",0},
2378 { "_wxObject","_wxTipWindow",SwigwxTipWindowTowxObject},
2379 { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject},
2380 { "_wxObject","_wxDialog",SwigwxDialogTowxObject},
2381 { "_wxObject","_wxFrame",SwigwxFrameTowxObject},
2382 { "_wxObject","_wxTopLevelWindow",SwigwxTopLevelWindowTowxObject},
2383 { "_signed_short","_WXTYPE",0},
2384 { "_signed_short","_short",0},
2385 { "_unsigned_char","_byte",0},
2386 { "_unsigned_int","_wxCoord",0},
2387 { "_unsigned_int","_wxPrintQuality",0},
2388 { "_unsigned_int","_time_t",0},
2389 { "_unsigned_int","_size_t",0},
2390 { "_unsigned_int","_uint",0},
2391 { "_unsigned_int","_wxWindowID",0},
2392 { "_unsigned_int","_int",0},
2393 { "_short","_WXTYPE",0},
2394 { "_short","_unsigned_short",0},
2395 { "_short","_signed_short",0},
2396 { "_wxFrame","_wxTipWindow",SwigwxTipWindowTowxFrame},
2397 { "_wxFrame","_wxMiniFrame",SwigwxMiniFrameTowxFrame},
2398 { "_wxWindowID","_wxCoord",0},
2399 { "_wxWindowID","_wxPrintQuality",0},
2400 { "_wxWindowID","_time_t",0},
2401 { "_wxWindowID","_size_t",0},
2402 { "_wxWindowID","_EBool",0},
2403 { "_wxWindowID","_uint",0},
2404 { "_wxWindowID","_int",0},
2405 { "_wxWindowID","_signed_int",0},
2406 { "_wxWindowID","_unsigned_int",0},
2407 { "_int","_wxCoord",0},
2408 { "_int","_wxPrintQuality",0},
2409 { "_int","_time_t",0},
2410 { "_int","_size_t",0},
2411 { "_int","_EBool",0},
2412 { "_int","_uint",0},
2413 { "_int","_wxWindowID",0},
2414 { "_int","_unsigned_int",0},
2415 { "_int","_signed_int",0},
2416 { "_time_t","_wxCoord",0},
2417 { "_time_t","_wxPrintQuality",0},
2418 { "_time_t","_unsigned_int",0},
2419 { "_time_t","_int",0},
2420 { "_time_t","_wxWindowID",0},
2421 { "_time_t","_uint",0},
2422 { "_time_t","_size_t",0},
2423 { "_wxCoord","_int",0},
2424 { "_wxCoord","_signed_int",0},
2425 { "_wxCoord","_unsigned_int",0},
2426 { "_wxCoord","_wxWindowID",0},
2427 { "_wxCoord","_uint",0},
2428 { "_wxCoord","_EBool",0},
2429 { "_wxCoord","_size_t",0},
2430 { "_wxCoord","_time_t",0},
2431 { "_wxCoord","_wxPrintQuality",0},
2432 { "_wxEvtHandler","_wxTipWindow",SwigwxTipWindowTowxEvtHandler},
2433 { "_wxEvtHandler","_wxMiniFrame",SwigwxMiniFrameTowxEvtHandler},
2434 { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler},
2435 { "_wxEvtHandler","_wxFrame",SwigwxFrameTowxEvtHandler},
2436 { "_wxEvtHandler","_wxTopLevelWindow",SwigwxTopLevelWindowTowxEvtHandler},
2437 { "_wxWindow","_wxTipWindow",SwigwxTipWindowTowxWindow},
2438 { "_wxWindow","_wxMiniFrame",SwigwxMiniFrameTowxWindow},
2439 { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow},
2440 { "_wxWindow","_wxFrame",SwigwxFrameTowxWindow},
2441 { "_wxWindow","_wxTopLevelWindow",SwigwxTopLevelWindowTowxWindow},
2442 {0,0,0}};
2443
2444 static PyObject *SWIG_globals;
2445 #ifdef __cplusplus
2446 extern "C"
2447 #endif
2448 SWIGEXPORT(void) initframesc() {
2449 PyObject *m, *d;
2450 SWIG_globals = SWIG_newvarlink();
2451 m = Py_InitModule("framesc", framescMethods);
2452 d = PyModule_GetDict(m);
2453 PyDict_SetItemString(d,"wxFULLSCREEN_NOMENUBAR", PyInt_FromLong((long) wxFULLSCREEN_NOMENUBAR));
2454 PyDict_SetItemString(d,"wxFULLSCREEN_NOTOOLBAR", PyInt_FromLong((long) wxFULLSCREEN_NOTOOLBAR));
2455 PyDict_SetItemString(d,"wxFULLSCREEN_NOSTATUSBAR", PyInt_FromLong((long) wxFULLSCREEN_NOSTATUSBAR));
2456 PyDict_SetItemString(d,"wxFULLSCREEN_NOBORDER", PyInt_FromLong((long) wxFULLSCREEN_NOBORDER));
2457 PyDict_SetItemString(d,"wxFULLSCREEN_NOCAPTION", PyInt_FromLong((long) wxFULLSCREEN_NOCAPTION));
2458 PyDict_SetItemString(d,"wxFULLSCREEN_ALL", PyInt_FromLong((long) wxFULLSCREEN_ALL));
2459 PyDict_SetItemString(d,"wxTOPLEVEL_EX_DIALOG", PyInt_FromLong((long) wxTOPLEVEL_EX_DIALOG));
2460 {
2461 int i;
2462 for (i = 0; _swig_mapping[i].n1; i++)
2463 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2464 }
2465 }