]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/cmndlgs.cpp
added container class files
[wxWidgets.git] / wxPython / src / msw / cmndlgs.cpp
1 /*
2 * FILE : src/msw/cmndlgs.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 initcmndlgsc
55
56 #define SWIG_name "cmndlgsc"
57
58 #include "helpers.h"
59 #include <wx/colordlg.h>
60 #include <wx/dirdlg.h>
61 #include <wx/fontdlg.h>
62 #include <wx/progdlg.h>
63
64
65 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
66 PyObject* o2;
67 PyObject* o3;
68
69 if (!target) {
70 target = o;
71 } else if (target == Py_None) {
72 Py_DECREF(Py_None);
73 target = o;
74 } else {
75 if (!PyTuple_Check(target)) {
76 o2 = target;
77 target = PyTuple_New(1);
78 PyTuple_SetItem(target, 0, o2);
79 }
80 o3 = PyTuple_New(1);
81 PyTuple_SetItem(o3, 0, o);
82
83 o2 = target;
84 target = PySequence_Concat(o2, o3);
85 Py_DECREF(o2);
86 Py_DECREF(o3);
87 }
88 return target;
89 }
90
91 #if PYTHON_API_VERSION >= 1009
92 static char* wxStringErrorMsg = "String or Unicode type required";
93 #else
94 static char* wxStringErrorMsg = "string type is required for parameter";
95 #endif
96 #ifdef __cplusplus
97 extern "C" {
98 #endif
99 static void *SwigwxColourDataTowxObject(void *ptr) {
100 wxColourData *src;
101 wxObject *dest;
102 src = (wxColourData *) ptr;
103 dest = (wxObject *) src;
104 return (void *) dest;
105 }
106
107 #define new_wxColourData() (new wxColourData())
108 static PyObject *_wrap_new_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) {
109 PyObject * _resultobj;
110 wxColourData * _result;
111 char *_kwnames[] = { NULL };
112 char _ptemp[128];
113
114 self = self;
115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxColourData",_kwnames))
116 return NULL;
117 {
118 wxPy_BEGIN_ALLOW_THREADS;
119 _result = (wxColourData *)new_wxColourData();
120
121 wxPy_END_ALLOW_THREADS;
122 if (PyErr_Occurred()) return NULL;
123 } if (_result) {
124 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourData_p");
125 _resultobj = Py_BuildValue("s",_ptemp);
126 } else {
127 Py_INCREF(Py_None);
128 _resultobj = Py_None;
129 }
130 return _resultobj;
131 }
132
133 #define delete_wxColourData(_swigobj) (delete _swigobj)
134 static PyObject *_wrap_delete_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) {
135 PyObject * _resultobj;
136 wxColourData * _arg0;
137 PyObject * _argo0 = 0;
138 char *_kwnames[] = { "self", NULL };
139
140 self = self;
141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColourData",_kwnames,&_argo0))
142 return NULL;
143 if (_argo0) {
144 if (_argo0 == Py_None) { _arg0 = NULL; }
145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) {
146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxColourData. Expected _wxColourData_p.");
147 return NULL;
148 }
149 }
150 {
151 wxPy_BEGIN_ALLOW_THREADS;
152 delete_wxColourData(_arg0);
153
154 wxPy_END_ALLOW_THREADS;
155 if (PyErr_Occurred()) return NULL;
156 } Py_INCREF(Py_None);
157 _resultobj = Py_None;
158 return _resultobj;
159 }
160
161 #define wxColourData_GetChooseFull(_swigobj) (_swigobj->GetChooseFull())
162 static PyObject *_wrap_wxColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) {
163 PyObject * _resultobj;
164 bool _result;
165 wxColourData * _arg0;
166 PyObject * _argo0 = 0;
167 char *_kwnames[] = { "self", NULL };
168
169 self = self;
170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetChooseFull",_kwnames,&_argo0))
171 return NULL;
172 if (_argo0) {
173 if (_argo0 == Py_None) { _arg0 = NULL; }
174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) {
175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetChooseFull. Expected _wxColourData_p.");
176 return NULL;
177 }
178 }
179 {
180 wxPy_BEGIN_ALLOW_THREADS;
181 _result = (bool )wxColourData_GetChooseFull(_arg0);
182
183 wxPy_END_ALLOW_THREADS;
184 if (PyErr_Occurred()) return NULL;
185 } _resultobj = Py_BuildValue("i",_result);
186 return _resultobj;
187 }
188
189 #define wxColourData_GetColour(_swigobj) (_swigobj->GetColour())
190 static PyObject *_wrap_wxColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
191 PyObject * _resultobj;
192 wxColour * _result;
193 wxColourData * _arg0;
194 PyObject * _argo0 = 0;
195 char *_kwnames[] = { "self", NULL };
196 char _ptemp[128];
197
198 self = self;
199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourData_GetColour",_kwnames,&_argo0))
200 return NULL;
201 if (_argo0) {
202 if (_argo0 == Py_None) { _arg0 = NULL; }
203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) {
204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetColour. Expected _wxColourData_p.");
205 return NULL;
206 }
207 }
208 {
209 wxPy_BEGIN_ALLOW_THREADS;
210 _result = new wxColour (wxColourData_GetColour(_arg0));
211
212 wxPy_END_ALLOW_THREADS;
213 if (PyErr_Occurred()) return NULL;
214 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
215 _resultobj = Py_BuildValue("s",_ptemp);
216 return _resultobj;
217 }
218
219 #define wxColourData_GetCustomColour(_swigobj,_swigarg0) (_swigobj->GetCustomColour(_swigarg0))
220 static PyObject *_wrap_wxColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) {
221 PyObject * _resultobj;
222 wxColour * _result;
223 wxColourData * _arg0;
224 int _arg1;
225 PyObject * _argo0 = 0;
226 char *_kwnames[] = { "self","i", NULL };
227 char _ptemp[128];
228
229 self = self;
230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_GetCustomColour",_kwnames,&_argo0,&_arg1))
231 return NULL;
232 if (_argo0) {
233 if (_argo0 == Py_None) { _arg0 = NULL; }
234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) {
235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_GetCustomColour. Expected _wxColourData_p.");
236 return NULL;
237 }
238 }
239 {
240 wxPy_BEGIN_ALLOW_THREADS;
241 _result = new wxColour (wxColourData_GetCustomColour(_arg0,_arg1));
242
243 wxPy_END_ALLOW_THREADS;
244 if (PyErr_Occurred()) return NULL;
245 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
246 _resultobj = Py_BuildValue("s",_ptemp);
247 return _resultobj;
248 }
249
250 #define wxColourData_SetChooseFull(_swigobj,_swigarg0) (_swigobj->SetChooseFull(_swigarg0))
251 static PyObject *_wrap_wxColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) {
252 PyObject * _resultobj;
253 wxColourData * _arg0;
254 int _arg1;
255 PyObject * _argo0 = 0;
256 char *_kwnames[] = { "self","flag", NULL };
257
258 self = self;
259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxColourData_SetChooseFull",_kwnames,&_argo0,&_arg1))
260 return NULL;
261 if (_argo0) {
262 if (_argo0 == Py_None) { _arg0 = NULL; }
263 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) {
264 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetChooseFull. Expected _wxColourData_p.");
265 return NULL;
266 }
267 }
268 {
269 wxPy_BEGIN_ALLOW_THREADS;
270 wxColourData_SetChooseFull(_arg0,_arg1);
271
272 wxPy_END_ALLOW_THREADS;
273 if (PyErr_Occurred()) return NULL;
274 } Py_INCREF(Py_None);
275 _resultobj = Py_None;
276 return _resultobj;
277 }
278
279 #define wxColourData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
280 static PyObject *_wrap_wxColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
281 PyObject * _resultobj;
282 wxColourData * _arg0;
283 wxColour * _arg1;
284 PyObject * _argo0 = 0;
285 wxColour temp;
286 PyObject * _obj1 = 0;
287 char *_kwnames[] = { "self","colour", NULL };
288
289 self = self;
290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourData_SetColour",_kwnames,&_argo0,&_obj1))
291 return NULL;
292 if (_argo0) {
293 if (_argo0 == Py_None) { _arg0 = NULL; }
294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) {
295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetColour. Expected _wxColourData_p.");
296 return NULL;
297 }
298 }
299 {
300 _arg1 = &temp;
301 if (! wxColour_helper(_obj1, &_arg1))
302 return NULL;
303 }
304 {
305 wxPy_BEGIN_ALLOW_THREADS;
306 wxColourData_SetColour(_arg0,*_arg1);
307
308 wxPy_END_ALLOW_THREADS;
309 if (PyErr_Occurred()) return NULL;
310 } Py_INCREF(Py_None);
311 _resultobj = Py_None;
312 return _resultobj;
313 }
314
315 #define wxColourData_SetCustomColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCustomColour(_swigarg0,_swigarg1))
316 static PyObject *_wrap_wxColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) {
317 PyObject * _resultobj;
318 wxColourData * _arg0;
319 int _arg1;
320 wxColour * _arg2;
321 PyObject * _argo0 = 0;
322 wxColour temp;
323 PyObject * _obj2 = 0;
324 char *_kwnames[] = { "self","i","colour", NULL };
325
326 self = self;
327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxColourData_SetCustomColour",_kwnames,&_argo0,&_arg1,&_obj2))
328 return NULL;
329 if (_argo0) {
330 if (_argo0 == Py_None) { _arg0 = NULL; }
331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourData_p")) {
332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourData_SetCustomColour. Expected _wxColourData_p.");
333 return NULL;
334 }
335 }
336 {
337 _arg2 = &temp;
338 if (! wxColour_helper(_obj2, &_arg2))
339 return NULL;
340 }
341 {
342 wxPy_BEGIN_ALLOW_THREADS;
343 wxColourData_SetCustomColour(_arg0,_arg1,*_arg2);
344
345 wxPy_END_ALLOW_THREADS;
346 if (PyErr_Occurred()) return NULL;
347 } Py_INCREF(Py_None);
348 _resultobj = Py_None;
349 return _resultobj;
350 }
351
352 static void *SwigwxColourDialogTowxDialog(void *ptr) {
353 wxColourDialog *src;
354 wxDialog *dest;
355 src = (wxColourDialog *) ptr;
356 dest = (wxDialog *) src;
357 return (void *) dest;
358 }
359
360 static void *SwigwxColourDialogTowxPanel(void *ptr) {
361 wxColourDialog *src;
362 wxPanel *dest;
363 src = (wxColourDialog *) ptr;
364 dest = (wxPanel *) src;
365 return (void *) dest;
366 }
367
368 static void *SwigwxColourDialogTowxWindow(void *ptr) {
369 wxColourDialog *src;
370 wxWindow *dest;
371 src = (wxColourDialog *) ptr;
372 dest = (wxWindow *) src;
373 return (void *) dest;
374 }
375
376 static void *SwigwxColourDialogTowxEvtHandler(void *ptr) {
377 wxColourDialog *src;
378 wxEvtHandler *dest;
379 src = (wxColourDialog *) ptr;
380 dest = (wxEvtHandler *) src;
381 return (void *) dest;
382 }
383
384 static void *SwigwxColourDialogTowxObject(void *ptr) {
385 wxColourDialog *src;
386 wxObject *dest;
387 src = (wxColourDialog *) ptr;
388 dest = (wxObject *) src;
389 return (void *) dest;
390 }
391
392 #define new_wxColourDialog(_swigarg0,_swigarg1) (new wxColourDialog(_swigarg0,_swigarg1))
393 static PyObject *_wrap_new_wxColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
394 PyObject * _resultobj;
395 wxColourDialog * _result;
396 wxWindow * _arg0;
397 wxColourData * _arg1 = (wxColourData *) NULL;
398 PyObject * _argo0 = 0;
399 PyObject * _argo1 = 0;
400 char *_kwnames[] = { "parent","data", NULL };
401 char _ptemp[128];
402
403 self = self;
404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxColourDialog",_kwnames,&_argo0,&_argo1))
405 return NULL;
406 if (_argo0) {
407 if (_argo0 == Py_None) { _arg0 = NULL; }
408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxColourDialog. Expected _wxWindow_p.");
410 return NULL;
411 }
412 }
413 if (_argo1) {
414 if (_argo1 == Py_None) { _arg1 = NULL; }
415 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColourData_p")) {
416 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxColourDialog. Expected _wxColourData_p.");
417 return NULL;
418 }
419 }
420 {
421 wxPy_BEGIN_ALLOW_THREADS;
422 _result = (wxColourDialog *)new_wxColourDialog(_arg0,_arg1);
423
424 wxPy_END_ALLOW_THREADS;
425 if (PyErr_Occurred()) return NULL;
426 } if (_result) {
427 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourDialog_p");
428 _resultobj = Py_BuildValue("s",_ptemp);
429 } else {
430 Py_INCREF(Py_None);
431 _resultobj = Py_None;
432 }
433 return _resultobj;
434 }
435
436 #define wxColourDialog_GetColourData(_swigobj) (_swigobj->GetColourData())
437 static PyObject *_wrap_wxColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) {
438 PyObject * _resultobj;
439 wxColourData * _result;
440 wxColourDialog * _arg0;
441 PyObject * _argo0 = 0;
442 char *_kwnames[] = { "self", NULL };
443 char _ptemp[128];
444
445 self = self;
446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_GetColourData",_kwnames,&_argo0))
447 return NULL;
448 if (_argo0) {
449 if (_argo0 == Py_None) { _arg0 = NULL; }
450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) {
451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_GetColourData. Expected _wxColourDialog_p.");
452 return NULL;
453 }
454 }
455 {
456 wxPy_BEGIN_ALLOW_THREADS;
457 wxColourData & _result_ref = wxColourDialog_GetColourData(_arg0);
458 _result = (wxColourData *) &_result_ref;
459
460 wxPy_END_ALLOW_THREADS;
461 if (PyErr_Occurred()) return NULL;
462 } if (_result) {
463 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColourData_p");
464 _resultobj = Py_BuildValue("s",_ptemp);
465 } else {
466 Py_INCREF(Py_None);
467 _resultobj = Py_None;
468 }
469 return _resultobj;
470 }
471
472 #define wxColourDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
473 static PyObject *_wrap_wxColourDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
474 PyObject * _resultobj;
475 int _result;
476 wxColourDialog * _arg0;
477 PyObject * _argo0 = 0;
478 char *_kwnames[] = { "self", NULL };
479
480 self = self;
481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColourDialog_ShowModal",_kwnames,&_argo0))
482 return NULL;
483 if (_argo0) {
484 if (_argo0 == Py_None) { _arg0 = NULL; }
485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDialog_p")) {
486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDialog_ShowModal. Expected _wxColourDialog_p.");
487 return NULL;
488 }
489 }
490 {
491 wxPy_BEGIN_ALLOW_THREADS;
492 _result = (int )wxColourDialog_ShowModal(_arg0);
493
494 wxPy_END_ALLOW_THREADS;
495 if (PyErr_Occurred()) return NULL;
496 } _resultobj = Py_BuildValue("i",_result);
497 return _resultobj;
498 }
499
500 static void *SwigwxDirDialogTowxDialog(void *ptr) {
501 wxDirDialog *src;
502 wxDialog *dest;
503 src = (wxDirDialog *) ptr;
504 dest = (wxDialog *) src;
505 return (void *) dest;
506 }
507
508 static void *SwigwxDirDialogTowxPanel(void *ptr) {
509 wxDirDialog *src;
510 wxPanel *dest;
511 src = (wxDirDialog *) ptr;
512 dest = (wxPanel *) src;
513 return (void *) dest;
514 }
515
516 static void *SwigwxDirDialogTowxWindow(void *ptr) {
517 wxDirDialog *src;
518 wxWindow *dest;
519 src = (wxDirDialog *) ptr;
520 dest = (wxWindow *) src;
521 return (void *) dest;
522 }
523
524 static void *SwigwxDirDialogTowxEvtHandler(void *ptr) {
525 wxDirDialog *src;
526 wxEvtHandler *dest;
527 src = (wxDirDialog *) ptr;
528 dest = (wxEvtHandler *) src;
529 return (void *) dest;
530 }
531
532 static void *SwigwxDirDialogTowxObject(void *ptr) {
533 wxDirDialog *src;
534 wxObject *dest;
535 src = (wxDirDialog *) ptr;
536 dest = (wxObject *) src;
537 return (void *) dest;
538 }
539
540 #define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
541 static PyObject *_wrap_new_wxDirDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
542 PyObject * _resultobj;
543 wxDirDialog * _result;
544 wxWindow * _arg0;
545 char * _arg1 = (char *) "Choose a directory";
546 char * _arg2 = (char *) "";
547 long _arg3 = (long ) 0;
548 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
549 PyObject * _argo0 = 0;
550 wxPoint temp;
551 PyObject * _obj4 = 0;
552 char *_kwnames[] = { "parent","message","defaultPath","style","pos", NULL };
553 char _ptemp[128];
554
555 self = self;
556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sslO:new_wxDirDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
557 return NULL;
558 if (_argo0) {
559 if (_argo0 == Py_None) { _arg0 = NULL; }
560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirDialog. Expected _wxWindow_p.");
562 return NULL;
563 }
564 }
565 if (_obj4)
566 {
567 _arg4 = &temp;
568 if (! wxPoint_helper(_obj4, &_arg4))
569 return NULL;
570 }
571 {
572 wxPy_BEGIN_ALLOW_THREADS;
573 _result = (wxDirDialog *)new_wxDirDialog(_arg0,_arg1,_arg2,_arg3,*_arg4);
574
575 wxPy_END_ALLOW_THREADS;
576 if (PyErr_Occurred()) return NULL;
577 } if (_result) {
578 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirDialog_p");
579 _resultobj = Py_BuildValue("s",_ptemp);
580 } else {
581 Py_INCREF(Py_None);
582 _resultobj = Py_None;
583 }
584 return _resultobj;
585 }
586
587 #define wxDirDialog_GetPath(_swigobj) (_swigobj->GetPath())
588 static PyObject *_wrap_wxDirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
589 PyObject * _resultobj;
590 wxString * _result;
591 wxDirDialog * _arg0;
592 PyObject * _argo0 = 0;
593 char *_kwnames[] = { "self", NULL };
594
595 self = self;
596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetPath",_kwnames,&_argo0))
597 return NULL;
598 if (_argo0) {
599 if (_argo0 == Py_None) { _arg0 = NULL; }
600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) {
601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetPath. Expected _wxDirDialog_p.");
602 return NULL;
603 }
604 }
605 {
606 wxPy_BEGIN_ALLOW_THREADS;
607 _result = new wxString (wxDirDialog_GetPath(_arg0));
608
609 wxPy_END_ALLOW_THREADS;
610 if (PyErr_Occurred()) return NULL;
611 }{
612 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
613 }
614 {
615 delete _result;
616 }
617 return _resultobj;
618 }
619
620 #define wxDirDialog_GetMessage(_swigobj) (_swigobj->GetMessage())
621 static PyObject *_wrap_wxDirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
622 PyObject * _resultobj;
623 wxString * _result;
624 wxDirDialog * _arg0;
625 PyObject * _argo0 = 0;
626 char *_kwnames[] = { "self", NULL };
627
628 self = self;
629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetMessage",_kwnames,&_argo0))
630 return NULL;
631 if (_argo0) {
632 if (_argo0 == Py_None) { _arg0 = NULL; }
633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) {
634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetMessage. Expected _wxDirDialog_p.");
635 return NULL;
636 }
637 }
638 {
639 wxPy_BEGIN_ALLOW_THREADS;
640 _result = new wxString (wxDirDialog_GetMessage(_arg0));
641
642 wxPy_END_ALLOW_THREADS;
643 if (PyErr_Occurred()) return NULL;
644 }{
645 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
646 }
647 {
648 delete _result;
649 }
650 return _resultobj;
651 }
652
653 #define wxDirDialog_GetStyle(_swigobj) (_swigobj->GetStyle())
654 static PyObject *_wrap_wxDirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
655 PyObject * _resultobj;
656 long _result;
657 wxDirDialog * _arg0;
658 PyObject * _argo0 = 0;
659 char *_kwnames[] = { "self", NULL };
660
661 self = self;
662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_GetStyle",_kwnames,&_argo0))
663 return NULL;
664 if (_argo0) {
665 if (_argo0 == Py_None) { _arg0 = NULL; }
666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) {
667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_GetStyle. Expected _wxDirDialog_p.");
668 return NULL;
669 }
670 }
671 {
672 wxPy_BEGIN_ALLOW_THREADS;
673 _result = (long )wxDirDialog_GetStyle(_arg0);
674
675 wxPy_END_ALLOW_THREADS;
676 if (PyErr_Occurred()) return NULL;
677 } _resultobj = Py_BuildValue("l",_result);
678 return _resultobj;
679 }
680
681 #define wxDirDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0))
682 static PyObject *_wrap_wxDirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
683 PyObject * _resultobj;
684 wxDirDialog * _arg0;
685 wxString * _arg1;
686 PyObject * _argo0 = 0;
687 PyObject * _obj1 = 0;
688 char *_kwnames[] = { "self","message", NULL };
689
690 self = self;
691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetMessage",_kwnames,&_argo0,&_obj1))
692 return NULL;
693 if (_argo0) {
694 if (_argo0 == Py_None) { _arg0 = NULL; }
695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) {
696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetMessage. Expected _wxDirDialog_p.");
697 return NULL;
698 }
699 }
700 {
701 #if PYTHON_API_VERSION >= 1009
702 char* tmpPtr; int tmpSize;
703 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
704 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
705 return NULL;
706 }
707 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
708 return NULL;
709 _arg1 = new wxString(tmpPtr, tmpSize);
710 #else
711 if (!PyString_Check(_obj1)) {
712 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
713 return NULL;
714 }
715 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
716 #endif
717 }
718 {
719 wxPy_BEGIN_ALLOW_THREADS;
720 wxDirDialog_SetMessage(_arg0,*_arg1);
721
722 wxPy_END_ALLOW_THREADS;
723 if (PyErr_Occurred()) return NULL;
724 } Py_INCREF(Py_None);
725 _resultobj = Py_None;
726 {
727 if (_obj1)
728 delete _arg1;
729 }
730 return _resultobj;
731 }
732
733 #define wxDirDialog_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
734 static PyObject *_wrap_wxDirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
735 PyObject * _resultobj;
736 wxDirDialog * _arg0;
737 wxString * _arg1;
738 PyObject * _argo0 = 0;
739 PyObject * _obj1 = 0;
740 char *_kwnames[] = { "self","path", NULL };
741
742 self = self;
743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirDialog_SetPath",_kwnames,&_argo0,&_obj1))
744 return NULL;
745 if (_argo0) {
746 if (_argo0 == Py_None) { _arg0 = NULL; }
747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) {
748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_SetPath. Expected _wxDirDialog_p.");
749 return NULL;
750 }
751 }
752 {
753 #if PYTHON_API_VERSION >= 1009
754 char* tmpPtr; int tmpSize;
755 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
756 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
757 return NULL;
758 }
759 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
760 return NULL;
761 _arg1 = new wxString(tmpPtr, tmpSize);
762 #else
763 if (!PyString_Check(_obj1)) {
764 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
765 return NULL;
766 }
767 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
768 #endif
769 }
770 {
771 wxPy_BEGIN_ALLOW_THREADS;
772 wxDirDialog_SetPath(_arg0,*_arg1);
773
774 wxPy_END_ALLOW_THREADS;
775 if (PyErr_Occurred()) return NULL;
776 } Py_INCREF(Py_None);
777 _resultobj = Py_None;
778 {
779 if (_obj1)
780 delete _arg1;
781 }
782 return _resultobj;
783 }
784
785 #define wxDirDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
786 static PyObject *_wrap_wxDirDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
787 PyObject * _resultobj;
788 int _result;
789 wxDirDialog * _arg0;
790 PyObject * _argo0 = 0;
791 char *_kwnames[] = { "self", NULL };
792
793 self = self;
794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirDialog_ShowModal",_kwnames,&_argo0))
795 return NULL;
796 if (_argo0) {
797 if (_argo0 == Py_None) { _arg0 = NULL; }
798 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirDialog_p")) {
799 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirDialog_ShowModal. Expected _wxDirDialog_p.");
800 return NULL;
801 }
802 }
803 {
804 wxPy_BEGIN_ALLOW_THREADS;
805 _result = (int )wxDirDialog_ShowModal(_arg0);
806
807 wxPy_END_ALLOW_THREADS;
808 if (PyErr_Occurred()) return NULL;
809 } _resultobj = Py_BuildValue("i",_result);
810 return _resultobj;
811 }
812
813 static void *SwigwxFileDialogTowxDialog(void *ptr) {
814 wxFileDialog *src;
815 wxDialog *dest;
816 src = (wxFileDialog *) ptr;
817 dest = (wxDialog *) src;
818 return (void *) dest;
819 }
820
821 static void *SwigwxFileDialogTowxPanel(void *ptr) {
822 wxFileDialog *src;
823 wxPanel *dest;
824 src = (wxFileDialog *) ptr;
825 dest = (wxPanel *) src;
826 return (void *) dest;
827 }
828
829 static void *SwigwxFileDialogTowxWindow(void *ptr) {
830 wxFileDialog *src;
831 wxWindow *dest;
832 src = (wxFileDialog *) ptr;
833 dest = (wxWindow *) src;
834 return (void *) dest;
835 }
836
837 static void *SwigwxFileDialogTowxEvtHandler(void *ptr) {
838 wxFileDialog *src;
839 wxEvtHandler *dest;
840 src = (wxFileDialog *) ptr;
841 dest = (wxEvtHandler *) src;
842 return (void *) dest;
843 }
844
845 static void *SwigwxFileDialogTowxObject(void *ptr) {
846 wxFileDialog *src;
847 wxObject *dest;
848 src = (wxFileDialog *) ptr;
849 dest = (wxObject *) src;
850 return (void *) dest;
851 }
852
853 #define new_wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
854 static PyObject *_wrap_new_wxFileDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
855 PyObject * _resultobj;
856 wxFileDialog * _result;
857 wxWindow * _arg0;
858 char * _arg1 = (char *) "Choose a file";
859 char * _arg2 = (char *) "";
860 char * _arg3 = (char *) "";
861 char * _arg4 = (char *) "*.*";
862 long _arg5 = (long ) 0;
863 wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition;
864 PyObject * _argo0 = 0;
865 wxPoint temp;
866 PyObject * _obj6 = 0;
867 char *_kwnames[] = { "parent","message","defaultDir","defaultFile","wildcard","style","pos", NULL };
868 char _ptemp[128];
869
870 self = self;
871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|sssslO:new_wxFileDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_obj6))
872 return NULL;
873 if (_argo0) {
874 if (_argo0 == Py_None) { _arg0 = NULL; }
875 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
876 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileDialog. Expected _wxWindow_p.");
877 return NULL;
878 }
879 }
880 if (_obj6)
881 {
882 _arg6 = &temp;
883 if (! wxPoint_helper(_obj6, &_arg6))
884 return NULL;
885 }
886 {
887 wxPy_BEGIN_ALLOW_THREADS;
888 _result = (wxFileDialog *)new_wxFileDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6);
889
890 wxPy_END_ALLOW_THREADS;
891 if (PyErr_Occurred()) return NULL;
892 } if (_result) {
893 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileDialog_p");
894 _resultobj = Py_BuildValue("s",_ptemp);
895 } else {
896 Py_INCREF(Py_None);
897 _resultobj = Py_None;
898 }
899 return _resultobj;
900 }
901
902 #define wxFileDialog_GetDirectory(_swigobj) (_swigobj->GetDirectory())
903 static PyObject *_wrap_wxFileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) {
904 PyObject * _resultobj;
905 wxString * _result;
906 wxFileDialog * _arg0;
907 PyObject * _argo0 = 0;
908 char *_kwnames[] = { "self", NULL };
909
910 self = self;
911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetDirectory",_kwnames,&_argo0))
912 return NULL;
913 if (_argo0) {
914 if (_argo0 == Py_None) { _arg0 = NULL; }
915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetDirectory. Expected _wxFileDialog_p.");
917 return NULL;
918 }
919 }
920 {
921 wxPy_BEGIN_ALLOW_THREADS;
922 _result = new wxString (wxFileDialog_GetDirectory(_arg0));
923
924 wxPy_END_ALLOW_THREADS;
925 if (PyErr_Occurred()) return NULL;
926 }{
927 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
928 }
929 {
930 delete _result;
931 }
932 return _resultobj;
933 }
934
935 #define wxFileDialog_GetFilename(_swigobj) (_swigobj->GetFilename())
936 static PyObject *_wrap_wxFileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) {
937 PyObject * _resultobj;
938 wxString * _result;
939 wxFileDialog * _arg0;
940 PyObject * _argo0 = 0;
941 char *_kwnames[] = { "self", NULL };
942
943 self = self;
944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilename",_kwnames,&_argo0))
945 return NULL;
946 if (_argo0) {
947 if (_argo0 == Py_None) { _arg0 = NULL; }
948 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
949 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilename. Expected _wxFileDialog_p.");
950 return NULL;
951 }
952 }
953 {
954 wxPy_BEGIN_ALLOW_THREADS;
955 _result = new wxString (wxFileDialog_GetFilename(_arg0));
956
957 wxPy_END_ALLOW_THREADS;
958 if (PyErr_Occurred()) return NULL;
959 }{
960 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
961 }
962 {
963 delete _result;
964 }
965 return _resultobj;
966 }
967
968 #define wxFileDialog_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex())
969 static PyObject *_wrap_wxFileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
970 PyObject * _resultobj;
971 int _result;
972 wxFileDialog * _arg0;
973 PyObject * _argo0 = 0;
974 char *_kwnames[] = { "self", NULL };
975
976 self = self;
977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilterIndex",_kwnames,&_argo0))
978 return NULL;
979 if (_argo0) {
980 if (_argo0 == Py_None) { _arg0 = NULL; }
981 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
982 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilterIndex. Expected _wxFileDialog_p.");
983 return NULL;
984 }
985 }
986 {
987 wxPy_BEGIN_ALLOW_THREADS;
988 _result = (int )wxFileDialog_GetFilterIndex(_arg0);
989
990 wxPy_END_ALLOW_THREADS;
991 if (PyErr_Occurred()) return NULL;
992 } _resultobj = Py_BuildValue("i",_result);
993 return _resultobj;
994 }
995
996 #define wxFileDialog_GetMessage(_swigobj) (_swigobj->GetMessage())
997 static PyObject *_wrap_wxFileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
998 PyObject * _resultobj;
999 wxString * _result;
1000 wxFileDialog * _arg0;
1001 PyObject * _argo0 = 0;
1002 char *_kwnames[] = { "self", NULL };
1003
1004 self = self;
1005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetMessage",_kwnames,&_argo0))
1006 return NULL;
1007 if (_argo0) {
1008 if (_argo0 == Py_None) { _arg0 = NULL; }
1009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetMessage. Expected _wxFileDialog_p.");
1011 return NULL;
1012 }
1013 }
1014 {
1015 wxPy_BEGIN_ALLOW_THREADS;
1016 _result = new wxString (wxFileDialog_GetMessage(_arg0));
1017
1018 wxPy_END_ALLOW_THREADS;
1019 if (PyErr_Occurred()) return NULL;
1020 }{
1021 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1022 }
1023 {
1024 delete _result;
1025 }
1026 return _resultobj;
1027 }
1028
1029 #define wxFileDialog_GetPath(_swigobj) (_swigobj->GetPath())
1030 static PyObject *_wrap_wxFileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
1031 PyObject * _resultobj;
1032 wxString * _result;
1033 wxFileDialog * _arg0;
1034 PyObject * _argo0 = 0;
1035 char *_kwnames[] = { "self", NULL };
1036
1037 self = self;
1038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPath",_kwnames,&_argo0))
1039 return NULL;
1040 if (_argo0) {
1041 if (_argo0 == Py_None) { _arg0 = NULL; }
1042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPath. Expected _wxFileDialog_p.");
1044 return NULL;
1045 }
1046 }
1047 {
1048 wxPy_BEGIN_ALLOW_THREADS;
1049 _result = new wxString (wxFileDialog_GetPath(_arg0));
1050
1051 wxPy_END_ALLOW_THREADS;
1052 if (PyErr_Occurred()) return NULL;
1053 }{
1054 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1055 }
1056 {
1057 delete _result;
1058 }
1059 return _resultobj;
1060 }
1061
1062 #define wxFileDialog_GetStyle(_swigobj) (_swigobj->GetStyle())
1063 static PyObject *_wrap_wxFileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1064 PyObject * _resultobj;
1065 long _result;
1066 wxFileDialog * _arg0;
1067 PyObject * _argo0 = 0;
1068 char *_kwnames[] = { "self", NULL };
1069
1070 self = self;
1071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetStyle",_kwnames,&_argo0))
1072 return NULL;
1073 if (_argo0) {
1074 if (_argo0 == Py_None) { _arg0 = NULL; }
1075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetStyle. Expected _wxFileDialog_p.");
1077 return NULL;
1078 }
1079 }
1080 {
1081 wxPy_BEGIN_ALLOW_THREADS;
1082 _result = (long )wxFileDialog_GetStyle(_arg0);
1083
1084 wxPy_END_ALLOW_THREADS;
1085 if (PyErr_Occurred()) return NULL;
1086 } _resultobj = Py_BuildValue("l",_result);
1087 return _resultobj;
1088 }
1089
1090 #define wxFileDialog_GetWildcard(_swigobj) (_swigobj->GetWildcard())
1091 static PyObject *_wrap_wxFileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) {
1092 PyObject * _resultobj;
1093 wxString * _result;
1094 wxFileDialog * _arg0;
1095 PyObject * _argo0 = 0;
1096 char *_kwnames[] = { "self", NULL };
1097
1098 self = self;
1099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetWildcard",_kwnames,&_argo0))
1100 return NULL;
1101 if (_argo0) {
1102 if (_argo0 == Py_None) { _arg0 = NULL; }
1103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetWildcard. Expected _wxFileDialog_p.");
1105 return NULL;
1106 }
1107 }
1108 {
1109 wxPy_BEGIN_ALLOW_THREADS;
1110 _result = new wxString (wxFileDialog_GetWildcard(_arg0));
1111
1112 wxPy_END_ALLOW_THREADS;
1113 if (PyErr_Occurred()) return NULL;
1114 }{
1115 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1116 }
1117 {
1118 delete _result;
1119 }
1120 return _resultobj;
1121 }
1122
1123 #define wxFileDialog_SetDirectory(_swigobj,_swigarg0) (_swigobj->SetDirectory(_swigarg0))
1124 static PyObject *_wrap_wxFileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) {
1125 PyObject * _resultobj;
1126 wxFileDialog * _arg0;
1127 wxString * _arg1;
1128 PyObject * _argo0 = 0;
1129 PyObject * _obj1 = 0;
1130 char *_kwnames[] = { "self","directory", NULL };
1131
1132 self = self;
1133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetDirectory",_kwnames,&_argo0,&_obj1))
1134 return NULL;
1135 if (_argo0) {
1136 if (_argo0 == Py_None) { _arg0 = NULL; }
1137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetDirectory. Expected _wxFileDialog_p.");
1139 return NULL;
1140 }
1141 }
1142 {
1143 #if PYTHON_API_VERSION >= 1009
1144 char* tmpPtr; int tmpSize;
1145 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1146 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1147 return NULL;
1148 }
1149 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1150 return NULL;
1151 _arg1 = new wxString(tmpPtr, tmpSize);
1152 #else
1153 if (!PyString_Check(_obj1)) {
1154 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1155 return NULL;
1156 }
1157 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1158 #endif
1159 }
1160 {
1161 wxPy_BEGIN_ALLOW_THREADS;
1162 wxFileDialog_SetDirectory(_arg0,*_arg1);
1163
1164 wxPy_END_ALLOW_THREADS;
1165 if (PyErr_Occurred()) return NULL;
1166 } Py_INCREF(Py_None);
1167 _resultobj = Py_None;
1168 {
1169 if (_obj1)
1170 delete _arg1;
1171 }
1172 return _resultobj;
1173 }
1174
1175 #define wxFileDialog_SetFilename(_swigobj,_swigarg0) (_swigobj->SetFilename(_swigarg0))
1176 static PyObject *_wrap_wxFileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) {
1177 PyObject * _resultobj;
1178 wxFileDialog * _arg0;
1179 wxString * _arg1;
1180 PyObject * _argo0 = 0;
1181 PyObject * _obj1 = 0;
1182 char *_kwnames[] = { "self","setfilename", NULL };
1183
1184 self = self;
1185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetFilename",_kwnames,&_argo0,&_obj1))
1186 return NULL;
1187 if (_argo0) {
1188 if (_argo0 == Py_None) { _arg0 = NULL; }
1189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilename. Expected _wxFileDialog_p.");
1191 return NULL;
1192 }
1193 }
1194 {
1195 #if PYTHON_API_VERSION >= 1009
1196 char* tmpPtr; int tmpSize;
1197 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1198 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1199 return NULL;
1200 }
1201 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1202 return NULL;
1203 _arg1 = new wxString(tmpPtr, tmpSize);
1204 #else
1205 if (!PyString_Check(_obj1)) {
1206 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1207 return NULL;
1208 }
1209 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1210 #endif
1211 }
1212 {
1213 wxPy_BEGIN_ALLOW_THREADS;
1214 wxFileDialog_SetFilename(_arg0,*_arg1);
1215
1216 wxPy_END_ALLOW_THREADS;
1217 if (PyErr_Occurred()) return NULL;
1218 } Py_INCREF(Py_None);
1219 _resultobj = Py_None;
1220 {
1221 if (_obj1)
1222 delete _arg1;
1223 }
1224 return _resultobj;
1225 }
1226
1227 #define wxFileDialog_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0))
1228 static PyObject *_wrap_wxFileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
1229 PyObject * _resultobj;
1230 wxFileDialog * _arg0;
1231 int _arg1;
1232 PyObject * _argo0 = 0;
1233 char *_kwnames[] = { "self","filterIndex", NULL };
1234
1235 self = self;
1236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileDialog_SetFilterIndex",_kwnames,&_argo0,&_arg1))
1237 return NULL;
1238 if (_argo0) {
1239 if (_argo0 == Py_None) { _arg0 = NULL; }
1240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetFilterIndex. Expected _wxFileDialog_p.");
1242 return NULL;
1243 }
1244 }
1245 {
1246 wxPy_BEGIN_ALLOW_THREADS;
1247 wxFileDialog_SetFilterIndex(_arg0,_arg1);
1248
1249 wxPy_END_ALLOW_THREADS;
1250 if (PyErr_Occurred()) return NULL;
1251 } Py_INCREF(Py_None);
1252 _resultobj = Py_None;
1253 return _resultobj;
1254 }
1255
1256 #define wxFileDialog_SetMessage(_swigobj,_swigarg0) (_swigobj->SetMessage(_swigarg0))
1257 static PyObject *_wrap_wxFileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
1258 PyObject * _resultobj;
1259 wxFileDialog * _arg0;
1260 wxString * _arg1;
1261 PyObject * _argo0 = 0;
1262 PyObject * _obj1 = 0;
1263 char *_kwnames[] = { "self","message", NULL };
1264
1265 self = self;
1266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetMessage",_kwnames,&_argo0,&_obj1))
1267 return NULL;
1268 if (_argo0) {
1269 if (_argo0 == Py_None) { _arg0 = NULL; }
1270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetMessage. Expected _wxFileDialog_p.");
1272 return NULL;
1273 }
1274 }
1275 {
1276 #if PYTHON_API_VERSION >= 1009
1277 char* tmpPtr; int tmpSize;
1278 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1279 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1280 return NULL;
1281 }
1282 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1283 return NULL;
1284 _arg1 = new wxString(tmpPtr, tmpSize);
1285 #else
1286 if (!PyString_Check(_obj1)) {
1287 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1288 return NULL;
1289 }
1290 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1291 #endif
1292 }
1293 {
1294 wxPy_BEGIN_ALLOW_THREADS;
1295 wxFileDialog_SetMessage(_arg0,*_arg1);
1296
1297 wxPy_END_ALLOW_THREADS;
1298 if (PyErr_Occurred()) return NULL;
1299 } Py_INCREF(Py_None);
1300 _resultobj = Py_None;
1301 {
1302 if (_obj1)
1303 delete _arg1;
1304 }
1305 return _resultobj;
1306 }
1307
1308 #define wxFileDialog_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
1309 static PyObject *_wrap_wxFileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
1310 PyObject * _resultobj;
1311 wxFileDialog * _arg0;
1312 wxString * _arg1;
1313 PyObject * _argo0 = 0;
1314 PyObject * _obj1 = 0;
1315 char *_kwnames[] = { "self","path", NULL };
1316
1317 self = self;
1318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetPath",_kwnames,&_argo0,&_obj1))
1319 return NULL;
1320 if (_argo0) {
1321 if (_argo0 == Py_None) { _arg0 = NULL; }
1322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetPath. Expected _wxFileDialog_p.");
1324 return NULL;
1325 }
1326 }
1327 {
1328 #if PYTHON_API_VERSION >= 1009
1329 char* tmpPtr; int tmpSize;
1330 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1331 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1332 return NULL;
1333 }
1334 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1335 return NULL;
1336 _arg1 = new wxString(tmpPtr, tmpSize);
1337 #else
1338 if (!PyString_Check(_obj1)) {
1339 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1340 return NULL;
1341 }
1342 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1343 #endif
1344 }
1345 {
1346 wxPy_BEGIN_ALLOW_THREADS;
1347 wxFileDialog_SetPath(_arg0,*_arg1);
1348
1349 wxPy_END_ALLOW_THREADS;
1350 if (PyErr_Occurred()) return NULL;
1351 } Py_INCREF(Py_None);
1352 _resultobj = Py_None;
1353 {
1354 if (_obj1)
1355 delete _arg1;
1356 }
1357 return _resultobj;
1358 }
1359
1360 #define wxFileDialog_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
1361 static PyObject *_wrap_wxFileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1362 PyObject * _resultobj;
1363 wxFileDialog * _arg0;
1364 long _arg1;
1365 PyObject * _argo0 = 0;
1366 char *_kwnames[] = { "self","style", NULL };
1367
1368 self = self;
1369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxFileDialog_SetStyle",_kwnames,&_argo0,&_arg1))
1370 return NULL;
1371 if (_argo0) {
1372 if (_argo0 == Py_None) { _arg0 = NULL; }
1373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetStyle. Expected _wxFileDialog_p.");
1375 return NULL;
1376 }
1377 }
1378 {
1379 wxPy_BEGIN_ALLOW_THREADS;
1380 wxFileDialog_SetStyle(_arg0,_arg1);
1381
1382 wxPy_END_ALLOW_THREADS;
1383 if (PyErr_Occurred()) return NULL;
1384 } Py_INCREF(Py_None);
1385 _resultobj = Py_None;
1386 return _resultobj;
1387 }
1388
1389 #define wxFileDialog_SetWildcard(_swigobj,_swigarg0) (_swigobj->SetWildcard(_swigarg0))
1390 static PyObject *_wrap_wxFileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) {
1391 PyObject * _resultobj;
1392 wxFileDialog * _arg0;
1393 wxString * _arg1;
1394 PyObject * _argo0 = 0;
1395 PyObject * _obj1 = 0;
1396 char *_kwnames[] = { "self","wildCard", NULL };
1397
1398 self = self;
1399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileDialog_SetWildcard",_kwnames,&_argo0,&_obj1))
1400 return NULL;
1401 if (_argo0) {
1402 if (_argo0 == Py_None) { _arg0 = NULL; }
1403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_SetWildcard. Expected _wxFileDialog_p.");
1405 return NULL;
1406 }
1407 }
1408 {
1409 #if PYTHON_API_VERSION >= 1009
1410 char* tmpPtr; int tmpSize;
1411 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1412 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1413 return NULL;
1414 }
1415 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1416 return NULL;
1417 _arg1 = new wxString(tmpPtr, tmpSize);
1418 #else
1419 if (!PyString_Check(_obj1)) {
1420 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1421 return NULL;
1422 }
1423 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1424 #endif
1425 }
1426 {
1427 wxPy_BEGIN_ALLOW_THREADS;
1428 wxFileDialog_SetWildcard(_arg0,*_arg1);
1429
1430 wxPy_END_ALLOW_THREADS;
1431 if (PyErr_Occurred()) return NULL;
1432 } Py_INCREF(Py_None);
1433 _resultobj = Py_None;
1434 {
1435 if (_obj1)
1436 delete _arg1;
1437 }
1438 return _resultobj;
1439 }
1440
1441 #define wxFileDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
1442 static PyObject *_wrap_wxFileDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject * _resultobj;
1444 int _result;
1445 wxFileDialog * _arg0;
1446 PyObject * _argo0 = 0;
1447 char *_kwnames[] = { "self", NULL };
1448
1449 self = self;
1450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_ShowModal",_kwnames,&_argo0))
1451 return NULL;
1452 if (_argo0) {
1453 if (_argo0 == Py_None) { _arg0 = NULL; }
1454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_ShowModal. Expected _wxFileDialog_p.");
1456 return NULL;
1457 }
1458 }
1459 {
1460 wxPy_BEGIN_ALLOW_THREADS;
1461 _result = (int )wxFileDialog_ShowModal(_arg0);
1462
1463 wxPy_END_ALLOW_THREADS;
1464 if (PyErr_Occurred()) return NULL;
1465 } _resultobj = Py_BuildValue("i",_result);
1466 return _resultobj;
1467 }
1468
1469 static PyObject * wxFileDialog_GetFilenames(wxFileDialog *self) {
1470 wxArrayString arr;
1471 self->GetFilenames(arr);
1472 size_t count = arr.GetCount();
1473 PyObject* listObj = PyList_New(0);
1474 for(size_t x=0; x<count; x++) {
1475 PyObject* name = PyString_FromString(arr[x]);
1476 PyList_Append(listObj, name);
1477 }
1478 return listObj;
1479 }
1480 static PyObject *_wrap_wxFileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
1481 PyObject * _resultobj;
1482 PyObject * _result;
1483 wxFileDialog * _arg0;
1484 PyObject * _argo0 = 0;
1485 char *_kwnames[] = { "self", NULL };
1486
1487 self = self;
1488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetFilenames",_kwnames,&_argo0))
1489 return NULL;
1490 if (_argo0) {
1491 if (_argo0 == Py_None) { _arg0 = NULL; }
1492 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1493 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetFilenames. Expected _wxFileDialog_p.");
1494 return NULL;
1495 }
1496 }
1497 {
1498 wxPy_BEGIN_ALLOW_THREADS;
1499 _result = (PyObject *)wxFileDialog_GetFilenames(_arg0);
1500
1501 wxPy_END_ALLOW_THREADS;
1502 if (PyErr_Occurred()) return NULL;
1503 }{
1504 _resultobj = _result;
1505 }
1506 return _resultobj;
1507 }
1508
1509 static PyObject * wxFileDialog_GetPaths(wxFileDialog *self) {
1510 wxArrayString arr;
1511 self->GetPaths(arr);
1512 size_t count = arr.GetCount();
1513 PyObject* listObj = PyList_New(0);
1514 for(size_t x=0; x<count; x++) {
1515 PyObject* name = PyString_FromString(arr[x]);
1516 PyList_Append(listObj, name);
1517 }
1518 return listObj;
1519 }
1520 static PyObject *_wrap_wxFileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) {
1521 PyObject * _resultobj;
1522 PyObject * _result;
1523 wxFileDialog * _arg0;
1524 PyObject * _argo0 = 0;
1525 char *_kwnames[] = { "self", NULL };
1526
1527 self = self;
1528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileDialog_GetPaths",_kwnames,&_argo0))
1529 return NULL;
1530 if (_argo0) {
1531 if (_argo0 == Py_None) { _arg0 = NULL; }
1532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileDialog_p")) {
1533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileDialog_GetPaths. Expected _wxFileDialog_p.");
1534 return NULL;
1535 }
1536 }
1537 {
1538 wxPy_BEGIN_ALLOW_THREADS;
1539 _result = (PyObject *)wxFileDialog_GetPaths(_arg0);
1540
1541 wxPy_END_ALLOW_THREADS;
1542 if (PyErr_Occurred()) return NULL;
1543 }{
1544 _resultobj = _result;
1545 }
1546 return _resultobj;
1547 }
1548
1549 static void *SwigwxSingleChoiceDialogTowxDialog(void *ptr) {
1550 wxSingleChoiceDialog *src;
1551 wxDialog *dest;
1552 src = (wxSingleChoiceDialog *) ptr;
1553 dest = (wxDialog *) src;
1554 return (void *) dest;
1555 }
1556
1557 static void *SwigwxSingleChoiceDialogTowxPanel(void *ptr) {
1558 wxSingleChoiceDialog *src;
1559 wxPanel *dest;
1560 src = (wxSingleChoiceDialog *) ptr;
1561 dest = (wxPanel *) src;
1562 return (void *) dest;
1563 }
1564
1565 static void *SwigwxSingleChoiceDialogTowxWindow(void *ptr) {
1566 wxSingleChoiceDialog *src;
1567 wxWindow *dest;
1568 src = (wxSingleChoiceDialog *) ptr;
1569 dest = (wxWindow *) src;
1570 return (void *) dest;
1571 }
1572
1573 static void *SwigwxSingleChoiceDialogTowxEvtHandler(void *ptr) {
1574 wxSingleChoiceDialog *src;
1575 wxEvtHandler *dest;
1576 src = (wxSingleChoiceDialog *) ptr;
1577 dest = (wxEvtHandler *) src;
1578 return (void *) dest;
1579 }
1580
1581 static void *SwigwxSingleChoiceDialogTowxObject(void *ptr) {
1582 wxSingleChoiceDialog *src;
1583 wxObject *dest;
1584 src = (wxSingleChoiceDialog *) ptr;
1585 dest = (wxObject *) src;
1586 return (void *) dest;
1587 }
1588
1589 static wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString *message,wxString *caption,int LCOUNT,wxString *choices,long style,wxPoint *pos) {
1590 return new wxSingleChoiceDialog(parent, *message, *caption,
1591 LCOUNT, choices, NULL, style, *pos);
1592 }
1593
1594 static PyObject *_wrap_new_wxSingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1595 PyObject * _resultobj;
1596 wxSingleChoiceDialog * _result;
1597 wxWindow * _arg0;
1598 wxString * _arg1;
1599 wxString * _arg2;
1600 int _arg3;
1601 wxString * _arg4;
1602 long _arg5 = (long ) wxOK|wxCANCEL|wxCENTRE;
1603 wxPoint * _arg6 = (wxPoint *) &wxDefaultPosition;
1604 PyObject * _argo0 = 0;
1605 PyObject * _obj1 = 0;
1606 PyObject * _obj2 = 0;
1607 PyObject * _obj4 = 0;
1608 wxPoint temp;
1609 PyObject * _obj6 = 0;
1610 char *_kwnames[] = { "parent","message","caption","choices","style","pos", NULL };
1611 char _ptemp[128];
1612
1613 self = self;
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|lO:new_wxSingleChoiceDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj4,&_arg5,&_obj6))
1615 return NULL;
1616 if (_argo0) {
1617 if (_argo0 == Py_None) { _arg0 = NULL; }
1618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxSingleChoiceDialog. Expected _wxWindow_p.");
1620 return NULL;
1621 }
1622 }
1623 {
1624 #if PYTHON_API_VERSION >= 1009
1625 char* tmpPtr; int tmpSize;
1626 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1627 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1628 return NULL;
1629 }
1630 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1631 return NULL;
1632 _arg1 = new wxString(tmpPtr, tmpSize);
1633 #else
1634 if (!PyString_Check(_obj1)) {
1635 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1636 return NULL;
1637 }
1638 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1639 #endif
1640 }
1641 {
1642 #if PYTHON_API_VERSION >= 1009
1643 char* tmpPtr; int tmpSize;
1644 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
1645 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1646 return NULL;
1647 }
1648 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
1649 return NULL;
1650 _arg2 = new wxString(tmpPtr, tmpSize);
1651 #else
1652 if (!PyString_Check(_obj2)) {
1653 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1654 return NULL;
1655 }
1656 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
1657 #endif
1658 }
1659 if (_obj4)
1660 {
1661 _arg4 = wxString_LIST_helper(_obj4);
1662 if (_arg4 == NULL) {
1663 return NULL;
1664 }
1665 }
1666 if (_obj6)
1667 {
1668 _arg6 = &temp;
1669 if (! wxPoint_helper(_obj6, &_arg6))
1670 return NULL;
1671 }
1672 {
1673 if (_obj4) {
1674 _arg3 = PyList_Size(_obj4);
1675 }
1676 else {
1677 _arg3 = 0;
1678 }
1679 }
1680 {
1681 wxPy_BEGIN_ALLOW_THREADS;
1682 _result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
1683
1684 wxPy_END_ALLOW_THREADS;
1685 if (PyErr_Occurred()) return NULL;
1686 } if (_result) {
1687 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleChoiceDialog_p");
1688 _resultobj = Py_BuildValue("s",_ptemp);
1689 } else {
1690 Py_INCREF(Py_None);
1691 _resultobj = Py_None;
1692 }
1693 {
1694 if (_obj1)
1695 delete _arg1;
1696 }
1697 {
1698 if (_obj2)
1699 delete _arg2;
1700 }
1701 {
1702 delete [] _arg4;
1703 }
1704 return _resultobj;
1705 }
1706
1707 #define wxSingleChoiceDialog_GetSelection(_swigobj) (_swigobj->GetSelection())
1708 static PyObject *_wrap_wxSingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1709 PyObject * _resultobj;
1710 int _result;
1711 wxSingleChoiceDialog * _arg0;
1712 PyObject * _argo0 = 0;
1713 char *_kwnames[] = { "self", NULL };
1714
1715 self = self;
1716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetSelection",_kwnames,&_argo0))
1717 return NULL;
1718 if (_argo0) {
1719 if (_argo0 == Py_None) { _arg0 = NULL; }
1720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) {
1721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetSelection. Expected _wxSingleChoiceDialog_p.");
1722 return NULL;
1723 }
1724 }
1725 {
1726 wxPy_BEGIN_ALLOW_THREADS;
1727 _result = (int )wxSingleChoiceDialog_GetSelection(_arg0);
1728
1729 wxPy_END_ALLOW_THREADS;
1730 if (PyErr_Occurred()) return NULL;
1731 } _resultobj = Py_BuildValue("i",_result);
1732 return _resultobj;
1733 }
1734
1735 #define wxSingleChoiceDialog_GetStringSelection(_swigobj) (_swigobj->GetStringSelection())
1736 static PyObject *_wrap_wxSingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1737 PyObject * _resultobj;
1738 wxString * _result;
1739 wxSingleChoiceDialog * _arg0;
1740 PyObject * _argo0 = 0;
1741 char *_kwnames[] = { "self", NULL };
1742
1743 self = self;
1744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_GetStringSelection",_kwnames,&_argo0))
1745 return NULL;
1746 if (_argo0) {
1747 if (_argo0 == Py_None) { _arg0 = NULL; }
1748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) {
1749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_GetStringSelection. Expected _wxSingleChoiceDialog_p.");
1750 return NULL;
1751 }
1752 }
1753 {
1754 wxPy_BEGIN_ALLOW_THREADS;
1755 _result = new wxString (wxSingleChoiceDialog_GetStringSelection(_arg0));
1756
1757 wxPy_END_ALLOW_THREADS;
1758 if (PyErr_Occurred()) return NULL;
1759 }{
1760 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1761 }
1762 {
1763 delete _result;
1764 }
1765 return _resultobj;
1766 }
1767
1768 #define wxSingleChoiceDialog_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
1769 static PyObject *_wrap_wxSingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
1770 PyObject * _resultobj;
1771 wxSingleChoiceDialog * _arg0;
1772 int _arg1;
1773 PyObject * _argo0 = 0;
1774 char *_kwnames[] = { "self","sel", NULL };
1775
1776 self = self;
1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSingleChoiceDialog_SetSelection",_kwnames,&_argo0,&_arg1))
1778 return NULL;
1779 if (_argo0) {
1780 if (_argo0 == Py_None) { _arg0 = NULL; }
1781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) {
1782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_SetSelection. Expected _wxSingleChoiceDialog_p.");
1783 return NULL;
1784 }
1785 }
1786 {
1787 wxPy_BEGIN_ALLOW_THREADS;
1788 wxSingleChoiceDialog_SetSelection(_arg0,_arg1);
1789
1790 wxPy_END_ALLOW_THREADS;
1791 if (PyErr_Occurred()) return NULL;
1792 } Py_INCREF(Py_None);
1793 _resultobj = Py_None;
1794 return _resultobj;
1795 }
1796
1797 #define wxSingleChoiceDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
1798 static PyObject *_wrap_wxSingleChoiceDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
1799 PyObject * _resultobj;
1800 int _result;
1801 wxSingleChoiceDialog * _arg0;
1802 PyObject * _argo0 = 0;
1803 char *_kwnames[] = { "self", NULL };
1804
1805 self = self;
1806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleChoiceDialog_ShowModal",_kwnames,&_argo0))
1807 return NULL;
1808 if (_argo0) {
1809 if (_argo0 == Py_None) { _arg0 = NULL; }
1810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleChoiceDialog_p")) {
1811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleChoiceDialog_ShowModal. Expected _wxSingleChoiceDialog_p.");
1812 return NULL;
1813 }
1814 }
1815 {
1816 wxPy_BEGIN_ALLOW_THREADS;
1817 _result = (int )wxSingleChoiceDialog_ShowModal(_arg0);
1818
1819 wxPy_END_ALLOW_THREADS;
1820 if (PyErr_Occurred()) return NULL;
1821 } _resultobj = Py_BuildValue("i",_result);
1822 return _resultobj;
1823 }
1824
1825 static void *SwigwxTextEntryDialogTowxDialog(void *ptr) {
1826 wxTextEntryDialog *src;
1827 wxDialog *dest;
1828 src = (wxTextEntryDialog *) ptr;
1829 dest = (wxDialog *) src;
1830 return (void *) dest;
1831 }
1832
1833 static void *SwigwxTextEntryDialogTowxPanel(void *ptr) {
1834 wxTextEntryDialog *src;
1835 wxPanel *dest;
1836 src = (wxTextEntryDialog *) ptr;
1837 dest = (wxPanel *) src;
1838 return (void *) dest;
1839 }
1840
1841 static void *SwigwxTextEntryDialogTowxWindow(void *ptr) {
1842 wxTextEntryDialog *src;
1843 wxWindow *dest;
1844 src = (wxTextEntryDialog *) ptr;
1845 dest = (wxWindow *) src;
1846 return (void *) dest;
1847 }
1848
1849 static void *SwigwxTextEntryDialogTowxEvtHandler(void *ptr) {
1850 wxTextEntryDialog *src;
1851 wxEvtHandler *dest;
1852 src = (wxTextEntryDialog *) ptr;
1853 dest = (wxEvtHandler *) src;
1854 return (void *) dest;
1855 }
1856
1857 static void *SwigwxTextEntryDialogTowxObject(void *ptr) {
1858 wxTextEntryDialog *src;
1859 wxObject *dest;
1860 src = (wxTextEntryDialog *) ptr;
1861 dest = (wxObject *) src;
1862 return (void *) dest;
1863 }
1864
1865 #define new_wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
1866 static PyObject *_wrap_new_wxTextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
1867 PyObject * _resultobj;
1868 wxTextEntryDialog * _result;
1869 wxWindow * _arg0;
1870 char * _arg1;
1871 char * _arg2 = (char *) "Input Text";
1872 char * _arg3 = (char *) "";
1873 long _arg4 = (long ) wxOK|wxCANCEL|wxCENTRE;
1874 wxPoint * _arg5 = (wxPoint *) &wxDefaultPosition;
1875 PyObject * _argo0 = 0;
1876 wxPoint temp;
1877 PyObject * _obj5 = 0;
1878 char *_kwnames[] = { "parent","message","caption","defaultValue","style","pos", NULL };
1879 char _ptemp[128];
1880
1881 self = self;
1882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|sslO:new_wxTextEntryDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_obj5))
1883 return NULL;
1884 if (_argo0) {
1885 if (_argo0 == Py_None) { _arg0 = NULL; }
1886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTextEntryDialog. Expected _wxWindow_p.");
1888 return NULL;
1889 }
1890 }
1891 if (_obj5)
1892 {
1893 _arg5 = &temp;
1894 if (! wxPoint_helper(_obj5, &_arg5))
1895 return NULL;
1896 }
1897 {
1898 wxPy_BEGIN_ALLOW_THREADS;
1899 _result = (wxTextEntryDialog *)new_wxTextEntryDialog(_arg0,_arg1,_arg2,_arg3,_arg4,*_arg5);
1900
1901 wxPy_END_ALLOW_THREADS;
1902 if (PyErr_Occurred()) return NULL;
1903 } if (_result) {
1904 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextEntryDialog_p");
1905 _resultobj = Py_BuildValue("s",_ptemp);
1906 } else {
1907 Py_INCREF(Py_None);
1908 _resultobj = Py_None;
1909 }
1910 return _resultobj;
1911 }
1912
1913 #define wxTextEntryDialog_GetValue(_swigobj) (_swigobj->GetValue())
1914 static PyObject *_wrap_wxTextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1915 PyObject * _resultobj;
1916 wxString * _result;
1917 wxTextEntryDialog * _arg0;
1918 PyObject * _argo0 = 0;
1919 char *_kwnames[] = { "self", NULL };
1920
1921 self = self;
1922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_GetValue",_kwnames,&_argo0))
1923 return NULL;
1924 if (_argo0) {
1925 if (_argo0 == Py_None) { _arg0 = NULL; }
1926 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) {
1927 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_GetValue. Expected _wxTextEntryDialog_p.");
1928 return NULL;
1929 }
1930 }
1931 {
1932 wxPy_BEGIN_ALLOW_THREADS;
1933 _result = new wxString (wxTextEntryDialog_GetValue(_arg0));
1934
1935 wxPy_END_ALLOW_THREADS;
1936 if (PyErr_Occurred()) return NULL;
1937 }{
1938 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1939 }
1940 {
1941 delete _result;
1942 }
1943 return _resultobj;
1944 }
1945
1946 #define wxTextEntryDialog_SetValue(_swigobj,_swigarg0) (_swigobj->SetValue(_swigarg0))
1947 static PyObject *_wrap_wxTextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
1948 PyObject * _resultobj;
1949 wxTextEntryDialog * _arg0;
1950 wxString * _arg1;
1951 PyObject * _argo0 = 0;
1952 PyObject * _obj1 = 0;
1953 char *_kwnames[] = { "self","value", NULL };
1954
1955 self = self;
1956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTextEntryDialog_SetValue",_kwnames,&_argo0,&_obj1))
1957 return NULL;
1958 if (_argo0) {
1959 if (_argo0 == Py_None) { _arg0 = NULL; }
1960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) {
1961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_SetValue. Expected _wxTextEntryDialog_p.");
1962 return NULL;
1963 }
1964 }
1965 {
1966 #if PYTHON_API_VERSION >= 1009
1967 char* tmpPtr; int tmpSize;
1968 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1969 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1970 return NULL;
1971 }
1972 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1973 return NULL;
1974 _arg1 = new wxString(tmpPtr, tmpSize);
1975 #else
1976 if (!PyString_Check(_obj1)) {
1977 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1978 return NULL;
1979 }
1980 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1981 #endif
1982 }
1983 {
1984 wxPy_BEGIN_ALLOW_THREADS;
1985 wxTextEntryDialog_SetValue(_arg0,*_arg1);
1986
1987 wxPy_END_ALLOW_THREADS;
1988 if (PyErr_Occurred()) return NULL;
1989 } Py_INCREF(Py_None);
1990 _resultobj = Py_None;
1991 {
1992 if (_obj1)
1993 delete _arg1;
1994 }
1995 return _resultobj;
1996 }
1997
1998 #define wxTextEntryDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
1999 static PyObject *_wrap_wxTextEntryDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2000 PyObject * _resultobj;
2001 int _result;
2002 wxTextEntryDialog * _arg0;
2003 PyObject * _argo0 = 0;
2004 char *_kwnames[] = { "self", NULL };
2005
2006 self = self;
2007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTextEntryDialog_ShowModal",_kwnames,&_argo0))
2008 return NULL;
2009 if (_argo0) {
2010 if (_argo0 == Py_None) { _arg0 = NULL; }
2011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextEntryDialog_p")) {
2012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTextEntryDialog_ShowModal. Expected _wxTextEntryDialog_p.");
2013 return NULL;
2014 }
2015 }
2016 {
2017 wxPy_BEGIN_ALLOW_THREADS;
2018 _result = (int )wxTextEntryDialog_ShowModal(_arg0);
2019
2020 wxPy_END_ALLOW_THREADS;
2021 if (PyErr_Occurred()) return NULL;
2022 } _resultobj = Py_BuildValue("i",_result);
2023 return _resultobj;
2024 }
2025
2026 static void *SwigwxFontDataTowxObject(void *ptr) {
2027 wxFontData *src;
2028 wxObject *dest;
2029 src = (wxFontData *) ptr;
2030 dest = (wxObject *) src;
2031 return (void *) dest;
2032 }
2033
2034 #define new_wxFontData() (new wxFontData())
2035 static PyObject *_wrap_new_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) {
2036 PyObject * _resultobj;
2037 wxFontData * _result;
2038 char *_kwnames[] = { NULL };
2039 char _ptemp[128];
2040
2041 self = self;
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontData",_kwnames))
2043 return NULL;
2044 {
2045 wxPy_BEGIN_ALLOW_THREADS;
2046 _result = (wxFontData *)new_wxFontData();
2047
2048 wxPy_END_ALLOW_THREADS;
2049 if (PyErr_Occurred()) return NULL;
2050 } if (_result) {
2051 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontData_p");
2052 _resultobj = Py_BuildValue("s",_ptemp);
2053 } else {
2054 Py_INCREF(Py_None);
2055 _resultobj = Py_None;
2056 }
2057 return _resultobj;
2058 }
2059
2060 #define delete_wxFontData(_swigobj) (delete _swigobj)
2061 static PyObject *_wrap_delete_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) {
2062 PyObject * _resultobj;
2063 wxFontData * _arg0;
2064 PyObject * _argo0 = 0;
2065 char *_kwnames[] = { "self", NULL };
2066
2067 self = self;
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontData",_kwnames,&_argo0))
2069 return NULL;
2070 if (_argo0) {
2071 if (_argo0 == Py_None) { _arg0 = NULL; }
2072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontData. Expected _wxFontData_p.");
2074 return NULL;
2075 }
2076 }
2077 {
2078 wxPy_BEGIN_ALLOW_THREADS;
2079 delete_wxFontData(_arg0);
2080
2081 wxPy_END_ALLOW_THREADS;
2082 if (PyErr_Occurred()) return NULL;
2083 } Py_INCREF(Py_None);
2084 _resultobj = Py_None;
2085 return _resultobj;
2086 }
2087
2088 #define wxFontData_EnableEffects(_swigobj,_swigarg0) (_swigobj->EnableEffects(_swigarg0))
2089 static PyObject *_wrap_wxFontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) {
2090 PyObject * _resultobj;
2091 wxFontData * _arg0;
2092 bool _arg1;
2093 PyObject * _argo0 = 0;
2094 int tempbool1;
2095 char *_kwnames[] = { "self","enable", NULL };
2096
2097 self = self;
2098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_EnableEffects",_kwnames,&_argo0,&tempbool1))
2099 return NULL;
2100 if (_argo0) {
2101 if (_argo0 == Py_None) { _arg0 = NULL; }
2102 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2103 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_EnableEffects. Expected _wxFontData_p.");
2104 return NULL;
2105 }
2106 }
2107 _arg1 = (bool ) tempbool1;
2108 {
2109 wxPy_BEGIN_ALLOW_THREADS;
2110 wxFontData_EnableEffects(_arg0,_arg1);
2111
2112 wxPy_END_ALLOW_THREADS;
2113 if (PyErr_Occurred()) return NULL;
2114 } Py_INCREF(Py_None);
2115 _resultobj = Py_None;
2116 return _resultobj;
2117 }
2118
2119 #define wxFontData_GetAllowSymbols(_swigobj) (_swigobj->GetAllowSymbols())
2120 static PyObject *_wrap_wxFontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) {
2121 PyObject * _resultobj;
2122 bool _result;
2123 wxFontData * _arg0;
2124 PyObject * _argo0 = 0;
2125 char *_kwnames[] = { "self", NULL };
2126
2127 self = self;
2128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetAllowSymbols",_kwnames,&_argo0))
2129 return NULL;
2130 if (_argo0) {
2131 if (_argo0 == Py_None) { _arg0 = NULL; }
2132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetAllowSymbols. Expected _wxFontData_p.");
2134 return NULL;
2135 }
2136 }
2137 {
2138 wxPy_BEGIN_ALLOW_THREADS;
2139 _result = (bool )wxFontData_GetAllowSymbols(_arg0);
2140
2141 wxPy_END_ALLOW_THREADS;
2142 if (PyErr_Occurred()) return NULL;
2143 } _resultobj = Py_BuildValue("i",_result);
2144 return _resultobj;
2145 }
2146
2147 #define wxFontData_GetColour(_swigobj) (_swigobj->GetColour())
2148 static PyObject *_wrap_wxFontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2149 PyObject * _resultobj;
2150 wxColour * _result;
2151 wxFontData * _arg0;
2152 PyObject * _argo0 = 0;
2153 char *_kwnames[] = { "self", NULL };
2154 char _ptemp[128];
2155
2156 self = self;
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetColour",_kwnames,&_argo0))
2158 return NULL;
2159 if (_argo0) {
2160 if (_argo0 == Py_None) { _arg0 = NULL; }
2161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetColour. Expected _wxFontData_p.");
2163 return NULL;
2164 }
2165 }
2166 {
2167 wxPy_BEGIN_ALLOW_THREADS;
2168 _result = new wxColour (wxFontData_GetColour(_arg0));
2169
2170 wxPy_END_ALLOW_THREADS;
2171 if (PyErr_Occurred()) return NULL;
2172 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
2173 _resultobj = Py_BuildValue("s",_ptemp);
2174 return _resultobj;
2175 }
2176
2177 #define wxFontData_GetChosenFont(_swigobj) (_swigobj->GetChosenFont())
2178 static PyObject *_wrap_wxFontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2179 PyObject * _resultobj;
2180 wxFont * _result;
2181 wxFontData * _arg0;
2182 PyObject * _argo0 = 0;
2183 char *_kwnames[] = { "self", NULL };
2184 char _ptemp[128];
2185
2186 self = self;
2187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetChosenFont",_kwnames,&_argo0))
2188 return NULL;
2189 if (_argo0) {
2190 if (_argo0 == Py_None) { _arg0 = NULL; }
2191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetChosenFont. Expected _wxFontData_p.");
2193 return NULL;
2194 }
2195 }
2196 {
2197 wxPy_BEGIN_ALLOW_THREADS;
2198 _result = new wxFont (wxFontData_GetChosenFont(_arg0));
2199
2200 wxPy_END_ALLOW_THREADS;
2201 if (PyErr_Occurred()) return NULL;
2202 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
2203 _resultobj = Py_BuildValue("s",_ptemp);
2204 return _resultobj;
2205 }
2206
2207 #define wxFontData_GetEnableEffects(_swigobj) (_swigobj->GetEnableEffects())
2208 static PyObject *_wrap_wxFontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) {
2209 PyObject * _resultobj;
2210 bool _result;
2211 wxFontData * _arg0;
2212 PyObject * _argo0 = 0;
2213 char *_kwnames[] = { "self", NULL };
2214
2215 self = self;
2216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetEnableEffects",_kwnames,&_argo0))
2217 return NULL;
2218 if (_argo0) {
2219 if (_argo0 == Py_None) { _arg0 = NULL; }
2220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetEnableEffects. Expected _wxFontData_p.");
2222 return NULL;
2223 }
2224 }
2225 {
2226 wxPy_BEGIN_ALLOW_THREADS;
2227 _result = (bool )wxFontData_GetEnableEffects(_arg0);
2228
2229 wxPy_END_ALLOW_THREADS;
2230 if (PyErr_Occurred()) return NULL;
2231 } _resultobj = Py_BuildValue("i",_result);
2232 return _resultobj;
2233 }
2234
2235 #define wxFontData_GetInitialFont(_swigobj) (_swigobj->GetInitialFont())
2236 static PyObject *_wrap_wxFontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2237 PyObject * _resultobj;
2238 wxFont * _result;
2239 wxFontData * _arg0;
2240 PyObject * _argo0 = 0;
2241 char *_kwnames[] = { "self", NULL };
2242 char _ptemp[128];
2243
2244 self = self;
2245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetInitialFont",_kwnames,&_argo0))
2246 return NULL;
2247 if (_argo0) {
2248 if (_argo0 == Py_None) { _arg0 = NULL; }
2249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetInitialFont. Expected _wxFontData_p.");
2251 return NULL;
2252 }
2253 }
2254 {
2255 wxPy_BEGIN_ALLOW_THREADS;
2256 _result = new wxFont (wxFontData_GetInitialFont(_arg0));
2257
2258 wxPy_END_ALLOW_THREADS;
2259 if (PyErr_Occurred()) return NULL;
2260 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
2261 _resultobj = Py_BuildValue("s",_ptemp);
2262 return _resultobj;
2263 }
2264
2265 #define wxFontData_GetShowHelp(_swigobj) (_swigobj->GetShowHelp())
2266 static PyObject *_wrap_wxFontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2267 PyObject * _resultobj;
2268 bool _result;
2269 wxFontData * _arg0;
2270 PyObject * _argo0 = 0;
2271 char *_kwnames[] = { "self", NULL };
2272
2273 self = self;
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontData_GetShowHelp",_kwnames,&_argo0))
2275 return NULL;
2276 if (_argo0) {
2277 if (_argo0 == Py_None) { _arg0 = NULL; }
2278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_GetShowHelp. Expected _wxFontData_p.");
2280 return NULL;
2281 }
2282 }
2283 {
2284 wxPy_BEGIN_ALLOW_THREADS;
2285 _result = (bool )wxFontData_GetShowHelp(_arg0);
2286
2287 wxPy_END_ALLOW_THREADS;
2288 if (PyErr_Occurred()) return NULL;
2289 } _resultobj = Py_BuildValue("i",_result);
2290 return _resultobj;
2291 }
2292
2293 #define wxFontData_SetAllowSymbols(_swigobj,_swigarg0) (_swigobj->SetAllowSymbols(_swigarg0))
2294 static PyObject *_wrap_wxFontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) {
2295 PyObject * _resultobj;
2296 wxFontData * _arg0;
2297 bool _arg1;
2298 PyObject * _argo0 = 0;
2299 int tempbool1;
2300 char *_kwnames[] = { "self","allowSymbols", NULL };
2301
2302 self = self;
2303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetAllowSymbols",_kwnames,&_argo0,&tempbool1))
2304 return NULL;
2305 if (_argo0) {
2306 if (_argo0 == Py_None) { _arg0 = NULL; }
2307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetAllowSymbols. Expected _wxFontData_p.");
2309 return NULL;
2310 }
2311 }
2312 _arg1 = (bool ) tempbool1;
2313 {
2314 wxPy_BEGIN_ALLOW_THREADS;
2315 wxFontData_SetAllowSymbols(_arg0,_arg1);
2316
2317 wxPy_END_ALLOW_THREADS;
2318 if (PyErr_Occurred()) return NULL;
2319 } Py_INCREF(Py_None);
2320 _resultobj = Py_None;
2321 return _resultobj;
2322 }
2323
2324 #define wxFontData_SetChosenFont(_swigobj,_swigarg0) (_swigobj->SetChosenFont(_swigarg0))
2325 static PyObject *_wrap_wxFontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2326 PyObject * _resultobj;
2327 wxFontData * _arg0;
2328 wxFont * _arg1;
2329 PyObject * _argo0 = 0;
2330 PyObject * _argo1 = 0;
2331 char *_kwnames[] = { "self","font", NULL };
2332
2333 self = self;
2334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetChosenFont",_kwnames,&_argo0,&_argo1))
2335 return NULL;
2336 if (_argo0) {
2337 if (_argo0 == Py_None) { _arg0 = NULL; }
2338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetChosenFont. Expected _wxFontData_p.");
2340 return NULL;
2341 }
2342 }
2343 if (_argo1) {
2344 if (_argo1 == Py_None) { _arg1 = NULL; }
2345 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2346 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetChosenFont. Expected _wxFont_p.");
2347 return NULL;
2348 }
2349 }
2350 {
2351 wxPy_BEGIN_ALLOW_THREADS;
2352 wxFontData_SetChosenFont(_arg0,*_arg1);
2353
2354 wxPy_END_ALLOW_THREADS;
2355 if (PyErr_Occurred()) return NULL;
2356 } Py_INCREF(Py_None);
2357 _resultobj = Py_None;
2358 return _resultobj;
2359 }
2360
2361 #define wxFontData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
2362 static PyObject *_wrap_wxFontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2363 PyObject * _resultobj;
2364 wxFontData * _arg0;
2365 wxColour * _arg1;
2366 PyObject * _argo0 = 0;
2367 wxColour temp;
2368 PyObject * _obj1 = 0;
2369 char *_kwnames[] = { "self","colour", NULL };
2370
2371 self = self;
2372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetColour",_kwnames,&_argo0,&_obj1))
2373 return NULL;
2374 if (_argo0) {
2375 if (_argo0 == Py_None) { _arg0 = NULL; }
2376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetColour. Expected _wxFontData_p.");
2378 return NULL;
2379 }
2380 }
2381 {
2382 _arg1 = &temp;
2383 if (! wxColour_helper(_obj1, &_arg1))
2384 return NULL;
2385 }
2386 {
2387 wxPy_BEGIN_ALLOW_THREADS;
2388 wxFontData_SetColour(_arg0,*_arg1);
2389
2390 wxPy_END_ALLOW_THREADS;
2391 if (PyErr_Occurred()) return NULL;
2392 } Py_INCREF(Py_None);
2393 _resultobj = Py_None;
2394 return _resultobj;
2395 }
2396
2397 #define wxFontData_SetInitialFont(_swigobj,_swigarg0) (_swigobj->SetInitialFont(_swigarg0))
2398 static PyObject *_wrap_wxFontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2399 PyObject * _resultobj;
2400 wxFontData * _arg0;
2401 wxFont * _arg1;
2402 PyObject * _argo0 = 0;
2403 PyObject * _argo1 = 0;
2404 char *_kwnames[] = { "self","font", NULL };
2405
2406 self = self;
2407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontData_SetInitialFont",_kwnames,&_argo0,&_argo1))
2408 return NULL;
2409 if (_argo0) {
2410 if (_argo0 == Py_None) { _arg0 = NULL; }
2411 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2412 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetInitialFont. Expected _wxFontData_p.");
2413 return NULL;
2414 }
2415 }
2416 if (_argo1) {
2417 if (_argo1 == Py_None) { _arg1 = NULL; }
2418 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
2419 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontData_SetInitialFont. Expected _wxFont_p.");
2420 return NULL;
2421 }
2422 }
2423 {
2424 wxPy_BEGIN_ALLOW_THREADS;
2425 wxFontData_SetInitialFont(_arg0,*_arg1);
2426
2427 wxPy_END_ALLOW_THREADS;
2428 if (PyErr_Occurred()) return NULL;
2429 } Py_INCREF(Py_None);
2430 _resultobj = Py_None;
2431 return _resultobj;
2432 }
2433
2434 #define wxFontData_SetRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetRange(_swigarg0,_swigarg1))
2435 static PyObject *_wrap_wxFontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) {
2436 PyObject * _resultobj;
2437 wxFontData * _arg0;
2438 int _arg1;
2439 int _arg2;
2440 PyObject * _argo0 = 0;
2441 char *_kwnames[] = { "self","min","max", NULL };
2442
2443 self = self;
2444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxFontData_SetRange",_kwnames,&_argo0,&_arg1,&_arg2))
2445 return NULL;
2446 if (_argo0) {
2447 if (_argo0 == Py_None) { _arg0 = NULL; }
2448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetRange. Expected _wxFontData_p.");
2450 return NULL;
2451 }
2452 }
2453 {
2454 wxPy_BEGIN_ALLOW_THREADS;
2455 wxFontData_SetRange(_arg0,_arg1,_arg2);
2456
2457 wxPy_END_ALLOW_THREADS;
2458 if (PyErr_Occurred()) return NULL;
2459 } Py_INCREF(Py_None);
2460 _resultobj = Py_None;
2461 return _resultobj;
2462 }
2463
2464 #define wxFontData_SetShowHelp(_swigobj,_swigarg0) (_swigobj->SetShowHelp(_swigarg0))
2465 static PyObject *_wrap_wxFontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2466 PyObject * _resultobj;
2467 wxFontData * _arg0;
2468 bool _arg1;
2469 PyObject * _argo0 = 0;
2470 int tempbool1;
2471 char *_kwnames[] = { "self","showHelp", NULL };
2472
2473 self = self;
2474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFontData_SetShowHelp",_kwnames,&_argo0,&tempbool1))
2475 return NULL;
2476 if (_argo0) {
2477 if (_argo0 == Py_None) { _arg0 = NULL; }
2478 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontData_p")) {
2479 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontData_SetShowHelp. Expected _wxFontData_p.");
2480 return NULL;
2481 }
2482 }
2483 _arg1 = (bool ) tempbool1;
2484 {
2485 wxPy_BEGIN_ALLOW_THREADS;
2486 wxFontData_SetShowHelp(_arg0,_arg1);
2487
2488 wxPy_END_ALLOW_THREADS;
2489 if (PyErr_Occurred()) return NULL;
2490 } Py_INCREF(Py_None);
2491 _resultobj = Py_None;
2492 return _resultobj;
2493 }
2494
2495 static void *SwigwxFontDialogTowxDialog(void *ptr) {
2496 wxFontDialog *src;
2497 wxDialog *dest;
2498 src = (wxFontDialog *) ptr;
2499 dest = (wxDialog *) src;
2500 return (void *) dest;
2501 }
2502
2503 static void *SwigwxFontDialogTowxPanel(void *ptr) {
2504 wxFontDialog *src;
2505 wxPanel *dest;
2506 src = (wxFontDialog *) ptr;
2507 dest = (wxPanel *) src;
2508 return (void *) dest;
2509 }
2510
2511 static void *SwigwxFontDialogTowxWindow(void *ptr) {
2512 wxFontDialog *src;
2513 wxWindow *dest;
2514 src = (wxFontDialog *) ptr;
2515 dest = (wxWindow *) src;
2516 return (void *) dest;
2517 }
2518
2519 static void *SwigwxFontDialogTowxEvtHandler(void *ptr) {
2520 wxFontDialog *src;
2521 wxEvtHandler *dest;
2522 src = (wxFontDialog *) ptr;
2523 dest = (wxEvtHandler *) src;
2524 return (void *) dest;
2525 }
2526
2527 static void *SwigwxFontDialogTowxObject(void *ptr) {
2528 wxFontDialog *src;
2529 wxObject *dest;
2530 src = (wxFontDialog *) ptr;
2531 dest = (wxObject *) src;
2532 return (void *) dest;
2533 }
2534
2535 #define new_wxFontDialog(_swigarg0,_swigarg1) (new wxFontDialog(_swigarg0,_swigarg1))
2536 static PyObject *_wrap_new_wxFontDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject * _resultobj;
2538 wxFontDialog * _result;
2539 wxWindow * _arg0;
2540 wxFontData * _arg1;
2541 PyObject * _argo0 = 0;
2542 PyObject * _argo1 = 0;
2543 char *_kwnames[] = { "parent","data", NULL };
2544 char _ptemp[128];
2545
2546 self = self;
2547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxFontDialog",_kwnames,&_argo0,&_argo1))
2548 return NULL;
2549 if (_argo0) {
2550 if (_argo0 == Py_None) { _arg0 = NULL; }
2551 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2552 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontDialog. Expected _wxWindow_p.");
2553 return NULL;
2554 }
2555 }
2556 if (_argo1) {
2557 if (_argo1 == Py_None) { _arg1 = NULL; }
2558 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFontData_p")) {
2559 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxFontDialog. Expected _wxFontData_p.");
2560 return NULL;
2561 }
2562 }
2563 {
2564 wxPy_BEGIN_ALLOW_THREADS;
2565 _result = (wxFontDialog *)new_wxFontDialog(_arg0,_arg1);
2566
2567 wxPy_END_ALLOW_THREADS;
2568 if (PyErr_Occurred()) return NULL;
2569 } if (_result) {
2570 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontDialog_p");
2571 _resultobj = Py_BuildValue("s",_ptemp);
2572 } else {
2573 Py_INCREF(Py_None);
2574 _resultobj = Py_None;
2575 }
2576 return _resultobj;
2577 }
2578
2579 #define wxFontDialog_GetFontData(_swigobj) (_swigobj->GetFontData())
2580 static PyObject *_wrap_wxFontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) {
2581 PyObject * _resultobj;
2582 wxFontData * _result;
2583 wxFontDialog * _arg0;
2584 PyObject * _argo0 = 0;
2585 char *_kwnames[] = { "self", NULL };
2586 char _ptemp[128];
2587
2588 self = self;
2589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_GetFontData",_kwnames,&_argo0))
2590 return NULL;
2591 if (_argo0) {
2592 if (_argo0 == Py_None) { _arg0 = NULL; }
2593 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) {
2594 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_GetFontData. Expected _wxFontDialog_p.");
2595 return NULL;
2596 }
2597 }
2598 {
2599 wxPy_BEGIN_ALLOW_THREADS;
2600 wxFontData & _result_ref = wxFontDialog_GetFontData(_arg0);
2601 _result = (wxFontData *) &_result_ref;
2602
2603 wxPy_END_ALLOW_THREADS;
2604 if (PyErr_Occurred()) return NULL;
2605 } if (_result) {
2606 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontData_p");
2607 _resultobj = Py_BuildValue("s",_ptemp);
2608 } else {
2609 Py_INCREF(Py_None);
2610 _resultobj = Py_None;
2611 }
2612 return _resultobj;
2613 }
2614
2615 #define wxFontDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
2616 static PyObject *_wrap_wxFontDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2617 PyObject * _resultobj;
2618 int _result;
2619 wxFontDialog * _arg0;
2620 PyObject * _argo0 = 0;
2621 char *_kwnames[] = { "self", NULL };
2622
2623 self = self;
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontDialog_ShowModal",_kwnames,&_argo0))
2625 return NULL;
2626 if (_argo0) {
2627 if (_argo0 == Py_None) { _arg0 = NULL; }
2628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontDialog_p")) {
2629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontDialog_ShowModal. Expected _wxFontDialog_p.");
2630 return NULL;
2631 }
2632 }
2633 {
2634 wxPy_BEGIN_ALLOW_THREADS;
2635 _result = (int )wxFontDialog_ShowModal(_arg0);
2636
2637 wxPy_END_ALLOW_THREADS;
2638 if (PyErr_Occurred()) return NULL;
2639 } _resultobj = Py_BuildValue("i",_result);
2640 return _resultobj;
2641 }
2642
2643 static void *SwigwxMessageDialogTowxDialog(void *ptr) {
2644 wxMessageDialog *src;
2645 wxDialog *dest;
2646 src = (wxMessageDialog *) ptr;
2647 dest = (wxDialog *) src;
2648 return (void *) dest;
2649 }
2650
2651 static void *SwigwxMessageDialogTowxPanel(void *ptr) {
2652 wxMessageDialog *src;
2653 wxPanel *dest;
2654 src = (wxMessageDialog *) ptr;
2655 dest = (wxPanel *) src;
2656 return (void *) dest;
2657 }
2658
2659 static void *SwigwxMessageDialogTowxWindow(void *ptr) {
2660 wxMessageDialog *src;
2661 wxWindow *dest;
2662 src = (wxMessageDialog *) ptr;
2663 dest = (wxWindow *) src;
2664 return (void *) dest;
2665 }
2666
2667 static void *SwigwxMessageDialogTowxEvtHandler(void *ptr) {
2668 wxMessageDialog *src;
2669 wxEvtHandler *dest;
2670 src = (wxMessageDialog *) ptr;
2671 dest = (wxEvtHandler *) src;
2672 return (void *) dest;
2673 }
2674
2675 static void *SwigwxMessageDialogTowxObject(void *ptr) {
2676 wxMessageDialog *src;
2677 wxObject *dest;
2678 src = (wxMessageDialog *) ptr;
2679 dest = (wxObject *) src;
2680 return (void *) dest;
2681 }
2682
2683 #define new_wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2684 static PyObject *_wrap_new_wxMessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2685 PyObject * _resultobj;
2686 wxMessageDialog * _result;
2687 wxWindow * _arg0;
2688 char * _arg1;
2689 char * _arg2 = (char *) "Message box";
2690 long _arg3 = (long ) wxOK|wxCANCEL|wxCENTRE;
2691 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
2692 PyObject * _argo0 = 0;
2693 wxPoint temp;
2694 PyObject * _obj4 = 0;
2695 char *_kwnames[] = { "parent","message","caption","style","pos", NULL };
2696 char _ptemp[128];
2697
2698 self = self;
2699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|slO:new_wxMessageDialog",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4))
2700 return NULL;
2701 if (_argo0) {
2702 if (_argo0 == Py_None) { _arg0 = NULL; }
2703 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMessageDialog. Expected _wxWindow_p.");
2705 return NULL;
2706 }
2707 }
2708 if (_obj4)
2709 {
2710 _arg4 = &temp;
2711 if (! wxPoint_helper(_obj4, &_arg4))
2712 return NULL;
2713 }
2714 {
2715 wxPy_BEGIN_ALLOW_THREADS;
2716 _result = (wxMessageDialog *)new_wxMessageDialog(_arg0,_arg1,_arg2,_arg3,*_arg4);
2717
2718 wxPy_END_ALLOW_THREADS;
2719 if (PyErr_Occurred()) return NULL;
2720 } if (_result) {
2721 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMessageDialog_p");
2722 _resultobj = Py_BuildValue("s",_ptemp);
2723 } else {
2724 Py_INCREF(Py_None);
2725 _resultobj = Py_None;
2726 }
2727 return _resultobj;
2728 }
2729
2730 #define wxMessageDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
2731 static PyObject *_wrap_wxMessageDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2732 PyObject * _resultobj;
2733 int _result;
2734 wxMessageDialog * _arg0;
2735 PyObject * _argo0 = 0;
2736 char *_kwnames[] = { "self", NULL };
2737
2738 self = self;
2739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMessageDialog_ShowModal",_kwnames,&_argo0))
2740 return NULL;
2741 if (_argo0) {
2742 if (_argo0 == Py_None) { _arg0 = NULL; }
2743 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMessageDialog_p")) {
2744 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMessageDialog_ShowModal. Expected _wxMessageDialog_p.");
2745 return NULL;
2746 }
2747 }
2748 {
2749 wxPy_BEGIN_ALLOW_THREADS;
2750 _result = (int )wxMessageDialog_ShowModal(_arg0);
2751
2752 wxPy_END_ALLOW_THREADS;
2753 if (PyErr_Occurred()) return NULL;
2754 } _resultobj = Py_BuildValue("i",_result);
2755 return _resultobj;
2756 }
2757
2758 static void *SwigwxProgressDialogTowxFrame(void *ptr) {
2759 wxProgressDialog *src;
2760 wxFrame *dest;
2761 src = (wxProgressDialog *) ptr;
2762 dest = (wxFrame *) src;
2763 return (void *) dest;
2764 }
2765
2766 static void *SwigwxProgressDialogTowxWindow(void *ptr) {
2767 wxProgressDialog *src;
2768 wxWindow *dest;
2769 src = (wxProgressDialog *) ptr;
2770 dest = (wxWindow *) src;
2771 return (void *) dest;
2772 }
2773
2774 static void *SwigwxProgressDialogTowxEvtHandler(void *ptr) {
2775 wxProgressDialog *src;
2776 wxEvtHandler *dest;
2777 src = (wxProgressDialog *) ptr;
2778 dest = (wxEvtHandler *) src;
2779 return (void *) dest;
2780 }
2781
2782 static void *SwigwxProgressDialogTowxObject(void *ptr) {
2783 wxProgressDialog *src;
2784 wxObject *dest;
2785 src = (wxProgressDialog *) ptr;
2786 dest = (wxObject *) src;
2787 return (void *) dest;
2788 }
2789
2790 #define new_wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
2791 static PyObject *_wrap_new_wxProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2792 PyObject * _resultobj;
2793 wxProgressDialog * _result;
2794 wxString * _arg0;
2795 wxString * _arg1;
2796 int _arg2 = (int ) 100;
2797 wxWindow * _arg3 = (wxWindow *) NULL;
2798 int _arg4 = (int ) wxPD_AUTO_HIDE|wxPD_APP_MODAL;
2799 PyObject * _obj0 = 0;
2800 PyObject * _obj1 = 0;
2801 PyObject * _argo3 = 0;
2802 char *_kwnames[] = { "title","message","maximum","parent","style", NULL };
2803 char _ptemp[128];
2804
2805 self = self;
2806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOi:new_wxProgressDialog",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4))
2807 return NULL;
2808 {
2809 #if PYTHON_API_VERSION >= 1009
2810 char* tmpPtr; int tmpSize;
2811 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2812 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2813 return NULL;
2814 }
2815 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2816 return NULL;
2817 _arg0 = new wxString(tmpPtr, tmpSize);
2818 #else
2819 if (!PyString_Check(_obj0)) {
2820 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2821 return NULL;
2822 }
2823 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2824 #endif
2825 }
2826 {
2827 #if PYTHON_API_VERSION >= 1009
2828 char* tmpPtr; int tmpSize;
2829 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2830 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2831 return NULL;
2832 }
2833 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2834 return NULL;
2835 _arg1 = new wxString(tmpPtr, tmpSize);
2836 #else
2837 if (!PyString_Check(_obj1)) {
2838 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2839 return NULL;
2840 }
2841 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2842 #endif
2843 }
2844 if (_argo3) {
2845 if (_argo3 == Py_None) { _arg3 = NULL; }
2846 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
2847 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxProgressDialog. Expected _wxWindow_p.");
2848 return NULL;
2849 }
2850 }
2851 {
2852 wxPy_BEGIN_ALLOW_THREADS;
2853 _result = (wxProgressDialog *)new_wxProgressDialog(*_arg0,*_arg1,_arg2,_arg3,_arg4);
2854
2855 wxPy_END_ALLOW_THREADS;
2856 if (PyErr_Occurred()) return NULL;
2857 } if (_result) {
2858 SWIG_MakePtr(_ptemp, (char *) _result,"_wxProgressDialog_p");
2859 _resultobj = Py_BuildValue("s",_ptemp);
2860 } else {
2861 Py_INCREF(Py_None);
2862 _resultobj = Py_None;
2863 }
2864 {
2865 if (_obj0)
2866 delete _arg0;
2867 }
2868 {
2869 if (_obj1)
2870 delete _arg1;
2871 }
2872 return _resultobj;
2873 }
2874
2875 #define wxProgressDialog_Update(_swigobj,_swigarg0,_swigarg1) (_swigobj->Update(_swigarg0,_swigarg1))
2876 static PyObject *_wrap_wxProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
2877 PyObject * _resultobj;
2878 bool _result;
2879 wxProgressDialog * _arg0;
2880 int _arg1 = (int ) -1;
2881 char * _arg2 = (char *) NULL;
2882 PyObject * _argo0 = 0;
2883 char *_kwnames[] = { "self","value","newmsg", NULL };
2884
2885 self = self;
2886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|is:wxProgressDialog_Update",_kwnames,&_argo0,&_arg1,&_arg2))
2887 return NULL;
2888 if (_argo0) {
2889 if (_argo0 == Py_None) { _arg0 = NULL; }
2890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) {
2891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Update. Expected _wxProgressDialog_p.");
2892 return NULL;
2893 }
2894 }
2895 {
2896 wxPy_BEGIN_ALLOW_THREADS;
2897 _result = (bool )wxProgressDialog_Update(_arg0,_arg1,_arg2);
2898
2899 wxPy_END_ALLOW_THREADS;
2900 if (PyErr_Occurred()) return NULL;
2901 } _resultobj = Py_BuildValue("i",_result);
2902 return _resultobj;
2903 }
2904
2905 #define wxProgressDialog_Resume(_swigobj) (_swigobj->Resume())
2906 static PyObject *_wrap_wxProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
2907 PyObject * _resultobj;
2908 wxProgressDialog * _arg0;
2909 PyObject * _argo0 = 0;
2910 char *_kwnames[] = { "self", NULL };
2911
2912 self = self;
2913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProgressDialog_Resume",_kwnames,&_argo0))
2914 return NULL;
2915 if (_argo0) {
2916 if (_argo0 == Py_None) { _arg0 = NULL; }
2917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProgressDialog_p")) {
2918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProgressDialog_Resume. Expected _wxProgressDialog_p.");
2919 return NULL;
2920 }
2921 }
2922 {
2923 wxPy_BEGIN_ALLOW_THREADS;
2924 wxProgressDialog_Resume(_arg0);
2925
2926 wxPy_END_ALLOW_THREADS;
2927 if (PyErr_Occurred()) return NULL;
2928 } Py_INCREF(Py_None);
2929 _resultobj = Py_None;
2930 return _resultobj;
2931 }
2932
2933 static PyMethodDef cmndlgscMethods[] = {
2934 { "wxProgressDialog_Resume", (PyCFunction) _wrap_wxProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS },
2935 { "wxProgressDialog_Update", (PyCFunction) _wrap_wxProgressDialog_Update, METH_VARARGS | METH_KEYWORDS },
2936 { "new_wxProgressDialog", (PyCFunction) _wrap_new_wxProgressDialog, METH_VARARGS | METH_KEYWORDS },
2937 { "wxMessageDialog_ShowModal", (PyCFunction) _wrap_wxMessageDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2938 { "new_wxMessageDialog", (PyCFunction) _wrap_new_wxMessageDialog, METH_VARARGS | METH_KEYWORDS },
2939 { "wxFontDialog_ShowModal", (PyCFunction) _wrap_wxFontDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2940 { "wxFontDialog_GetFontData", (PyCFunction) _wrap_wxFontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS },
2941 { "new_wxFontDialog", (PyCFunction) _wrap_new_wxFontDialog, METH_VARARGS | METH_KEYWORDS },
2942 { "wxFontData_SetShowHelp", (PyCFunction) _wrap_wxFontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS },
2943 { "wxFontData_SetRange", (PyCFunction) _wrap_wxFontData_SetRange, METH_VARARGS | METH_KEYWORDS },
2944 { "wxFontData_SetInitialFont", (PyCFunction) _wrap_wxFontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS },
2945 { "wxFontData_SetColour", (PyCFunction) _wrap_wxFontData_SetColour, METH_VARARGS | METH_KEYWORDS },
2946 { "wxFontData_SetChosenFont", (PyCFunction) _wrap_wxFontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS },
2947 { "wxFontData_SetAllowSymbols", (PyCFunction) _wrap_wxFontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS },
2948 { "wxFontData_GetShowHelp", (PyCFunction) _wrap_wxFontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS },
2949 { "wxFontData_GetInitialFont", (PyCFunction) _wrap_wxFontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS },
2950 { "wxFontData_GetEnableEffects", (PyCFunction) _wrap_wxFontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS },
2951 { "wxFontData_GetChosenFont", (PyCFunction) _wrap_wxFontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS },
2952 { "wxFontData_GetColour", (PyCFunction) _wrap_wxFontData_GetColour, METH_VARARGS | METH_KEYWORDS },
2953 { "wxFontData_GetAllowSymbols", (PyCFunction) _wrap_wxFontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS },
2954 { "wxFontData_EnableEffects", (PyCFunction) _wrap_wxFontData_EnableEffects, METH_VARARGS | METH_KEYWORDS },
2955 { "delete_wxFontData", (PyCFunction) _wrap_delete_wxFontData, METH_VARARGS | METH_KEYWORDS },
2956 { "new_wxFontData", (PyCFunction) _wrap_new_wxFontData, METH_VARARGS | METH_KEYWORDS },
2957 { "wxTextEntryDialog_ShowModal", (PyCFunction) _wrap_wxTextEntryDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2958 { "wxTextEntryDialog_SetValue", (PyCFunction) _wrap_wxTextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS },
2959 { "wxTextEntryDialog_GetValue", (PyCFunction) _wrap_wxTextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS },
2960 { "new_wxTextEntryDialog", (PyCFunction) _wrap_new_wxTextEntryDialog, METH_VARARGS | METH_KEYWORDS },
2961 { "wxSingleChoiceDialog_ShowModal", (PyCFunction) _wrap_wxSingleChoiceDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2962 { "wxSingleChoiceDialog_SetSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS },
2963 { "wxSingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
2964 { "wxSingleChoiceDialog_GetSelection", (PyCFunction) _wrap_wxSingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS },
2965 { "new_wxSingleChoiceDialog", (PyCFunction) _wrap_new_wxSingleChoiceDialog, METH_VARARGS | METH_KEYWORDS },
2966 { "wxFileDialog_GetPaths", (PyCFunction) _wrap_wxFileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS },
2967 { "wxFileDialog_GetFilenames", (PyCFunction) _wrap_wxFileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS },
2968 { "wxFileDialog_ShowModal", (PyCFunction) _wrap_wxFileDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2969 { "wxFileDialog_SetWildcard", (PyCFunction) _wrap_wxFileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS },
2970 { "wxFileDialog_SetStyle", (PyCFunction) _wrap_wxFileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS },
2971 { "wxFileDialog_SetPath", (PyCFunction) _wrap_wxFileDialog_SetPath, METH_VARARGS | METH_KEYWORDS },
2972 { "wxFileDialog_SetMessage", (PyCFunction) _wrap_wxFileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS },
2973 { "wxFileDialog_SetFilterIndex", (PyCFunction) _wrap_wxFileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
2974 { "wxFileDialog_SetFilename", (PyCFunction) _wrap_wxFileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS },
2975 { "wxFileDialog_SetDirectory", (PyCFunction) _wrap_wxFileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS },
2976 { "wxFileDialog_GetWildcard", (PyCFunction) _wrap_wxFileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS },
2977 { "wxFileDialog_GetStyle", (PyCFunction) _wrap_wxFileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS },
2978 { "wxFileDialog_GetPath", (PyCFunction) _wrap_wxFileDialog_GetPath, METH_VARARGS | METH_KEYWORDS },
2979 { "wxFileDialog_GetMessage", (PyCFunction) _wrap_wxFileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS },
2980 { "wxFileDialog_GetFilterIndex", (PyCFunction) _wrap_wxFileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
2981 { "wxFileDialog_GetFilename", (PyCFunction) _wrap_wxFileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS },
2982 { "wxFileDialog_GetDirectory", (PyCFunction) _wrap_wxFileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS },
2983 { "new_wxFileDialog", (PyCFunction) _wrap_new_wxFileDialog, METH_VARARGS | METH_KEYWORDS },
2984 { "wxDirDialog_ShowModal", (PyCFunction) _wrap_wxDirDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2985 { "wxDirDialog_SetPath", (PyCFunction) _wrap_wxDirDialog_SetPath, METH_VARARGS | METH_KEYWORDS },
2986 { "wxDirDialog_SetMessage", (PyCFunction) _wrap_wxDirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS },
2987 { "wxDirDialog_GetStyle", (PyCFunction) _wrap_wxDirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS },
2988 { "wxDirDialog_GetMessage", (PyCFunction) _wrap_wxDirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS },
2989 { "wxDirDialog_GetPath", (PyCFunction) _wrap_wxDirDialog_GetPath, METH_VARARGS | METH_KEYWORDS },
2990 { "new_wxDirDialog", (PyCFunction) _wrap_new_wxDirDialog, METH_VARARGS | METH_KEYWORDS },
2991 { "wxColourDialog_ShowModal", (PyCFunction) _wrap_wxColourDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
2992 { "wxColourDialog_GetColourData", (PyCFunction) _wrap_wxColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS },
2993 { "new_wxColourDialog", (PyCFunction) _wrap_new_wxColourDialog, METH_VARARGS | METH_KEYWORDS },
2994 { "wxColourData_SetCustomColour", (PyCFunction) _wrap_wxColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS },
2995 { "wxColourData_SetColour", (PyCFunction) _wrap_wxColourData_SetColour, METH_VARARGS | METH_KEYWORDS },
2996 { "wxColourData_SetChooseFull", (PyCFunction) _wrap_wxColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS },
2997 { "wxColourData_GetCustomColour", (PyCFunction) _wrap_wxColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS },
2998 { "wxColourData_GetColour", (PyCFunction) _wrap_wxColourData_GetColour, METH_VARARGS | METH_KEYWORDS },
2999 { "wxColourData_GetChooseFull", (PyCFunction) _wrap_wxColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS },
3000 { "delete_wxColourData", (PyCFunction) _wrap_delete_wxColourData, METH_VARARGS | METH_KEYWORDS },
3001 { "new_wxColourData", (PyCFunction) _wrap_new_wxColourData, METH_VARARGS | METH_KEYWORDS },
3002 { NULL, NULL }
3003 };
3004 #ifdef __cplusplus
3005 }
3006 #endif
3007 /*
3008 * This table is used by the pointer type-checker
3009 */
3010 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
3011 { "_signed_long","_long",0},
3012 { "_wxPrintQuality","_wxCoord",0},
3013 { "_wxPrintQuality","_int",0},
3014 { "_wxPrintQuality","_signed_int",0},
3015 { "_wxPrintQuality","_unsigned_int",0},
3016 { "_wxPrintQuality","_wxWindowID",0},
3017 { "_wxPrintQuality","_uint",0},
3018 { "_wxPrintQuality","_EBool",0},
3019 { "_wxPrintQuality","_size_t",0},
3020 { "_wxPrintQuality","_time_t",0},
3021 { "_byte","_unsigned_char",0},
3022 { "_long","_unsigned_long",0},
3023 { "_long","_signed_long",0},
3024 { "_size_t","_wxCoord",0},
3025 { "_size_t","_wxPrintQuality",0},
3026 { "_size_t","_time_t",0},
3027 { "_size_t","_unsigned_int",0},
3028 { "_size_t","_int",0},
3029 { "_size_t","_wxWindowID",0},
3030 { "_size_t","_uint",0},
3031 { "_wxPanel","_wxMessageDialog",SwigwxMessageDialogTowxPanel},
3032 { "_wxPanel","_wxFontDialog",SwigwxFontDialogTowxPanel},
3033 { "_wxPanel","_wxTextEntryDialog",SwigwxTextEntryDialogTowxPanel},
3034 { "_wxPanel","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxPanel},
3035 { "_wxPanel","_wxFileDialog",SwigwxFileDialogTowxPanel},
3036 { "_wxPanel","_wxDirDialog",SwigwxDirDialogTowxPanel},
3037 { "_wxPanel","_wxColourDialog",SwigwxColourDialogTowxPanel},
3038 { "_uint","_wxCoord",0},
3039 { "_uint","_wxPrintQuality",0},
3040 { "_uint","_time_t",0},
3041 { "_uint","_size_t",0},
3042 { "_uint","_unsigned_int",0},
3043 { "_uint","_int",0},
3044 { "_uint","_wxWindowID",0},
3045 { "_wxChar","_char",0},
3046 { "_char","_wxChar",0},
3047 { "_EBool","_wxCoord",0},
3048 { "_EBool","_wxPrintQuality",0},
3049 { "_EBool","_signed_int",0},
3050 { "_EBool","_int",0},
3051 { "_EBool","_wxWindowID",0},
3052 { "_unsigned_long","_long",0},
3053 { "_signed_int","_wxCoord",0},
3054 { "_signed_int","_wxPrintQuality",0},
3055 { "_signed_int","_EBool",0},
3056 { "_signed_int","_wxWindowID",0},
3057 { "_signed_int","_int",0},
3058 { "_WXTYPE","_short",0},
3059 { "_WXTYPE","_signed_short",0},
3060 { "_WXTYPE","_unsigned_short",0},
3061 { "_unsigned_short","_WXTYPE",0},
3062 { "_unsigned_short","_short",0},
3063 { "_wxObject","_wxProgressDialog",SwigwxProgressDialogTowxObject},
3064 { "_wxObject","_wxMessageDialog",SwigwxMessageDialogTowxObject},
3065 { "_wxObject","_wxFontDialog",SwigwxFontDialogTowxObject},
3066 { "_wxObject","_wxFontData",SwigwxFontDataTowxObject},
3067 { "_wxObject","_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject},
3068 { "_wxObject","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject},
3069 { "_wxObject","_wxFileDialog",SwigwxFileDialogTowxObject},
3070 { "_wxObject","_wxDirDialog",SwigwxDirDialogTowxObject},
3071 { "_wxObject","_wxColourDialog",SwigwxColourDialogTowxObject},
3072 { "_wxObject","_wxColourData",SwigwxColourDataTowxObject},
3073 { "_signed_short","_WXTYPE",0},
3074 { "_signed_short","_short",0},
3075 { "_unsigned_char","_byte",0},
3076 { "_unsigned_int","_wxCoord",0},
3077 { "_unsigned_int","_wxPrintQuality",0},
3078 { "_unsigned_int","_time_t",0},
3079 { "_unsigned_int","_size_t",0},
3080 { "_unsigned_int","_uint",0},
3081 { "_unsigned_int","_wxWindowID",0},
3082 { "_unsigned_int","_int",0},
3083 { "_wxDialog","_wxMessageDialog",SwigwxMessageDialogTowxDialog},
3084 { "_wxDialog","_wxFontDialog",SwigwxFontDialogTowxDialog},
3085 { "_wxDialog","_wxTextEntryDialog",SwigwxTextEntryDialogTowxDialog},
3086 { "_wxDialog","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxDialog},
3087 { "_wxDialog","_wxFileDialog",SwigwxFileDialogTowxDialog},
3088 { "_wxDialog","_wxDirDialog",SwigwxDirDialogTowxDialog},
3089 { "_wxDialog","_wxColourDialog",SwigwxColourDialogTowxDialog},
3090 { "_short","_WXTYPE",0},
3091 { "_short","_unsigned_short",0},
3092 { "_short","_signed_short",0},
3093 { "_wxFrame","_wxProgressDialog",SwigwxProgressDialogTowxFrame},
3094 { "_wxWindowID","_wxCoord",0},
3095 { "_wxWindowID","_wxPrintQuality",0},
3096 { "_wxWindowID","_time_t",0},
3097 { "_wxWindowID","_size_t",0},
3098 { "_wxWindowID","_EBool",0},
3099 { "_wxWindowID","_uint",0},
3100 { "_wxWindowID","_int",0},
3101 { "_wxWindowID","_signed_int",0},
3102 { "_wxWindowID","_unsigned_int",0},
3103 { "_int","_wxCoord",0},
3104 { "_int","_wxPrintQuality",0},
3105 { "_int","_time_t",0},
3106 { "_int","_size_t",0},
3107 { "_int","_EBool",0},
3108 { "_int","_uint",0},
3109 { "_int","_wxWindowID",0},
3110 { "_int","_unsigned_int",0},
3111 { "_int","_signed_int",0},
3112 { "_time_t","_wxCoord",0},
3113 { "_time_t","_wxPrintQuality",0},
3114 { "_time_t","_unsigned_int",0},
3115 { "_time_t","_int",0},
3116 { "_time_t","_wxWindowID",0},
3117 { "_time_t","_uint",0},
3118 { "_time_t","_size_t",0},
3119 { "_wxCoord","_int",0},
3120 { "_wxCoord","_signed_int",0},
3121 { "_wxCoord","_unsigned_int",0},
3122 { "_wxCoord","_wxWindowID",0},
3123 { "_wxCoord","_uint",0},
3124 { "_wxCoord","_EBool",0},
3125 { "_wxCoord","_size_t",0},
3126 { "_wxCoord","_time_t",0},
3127 { "_wxCoord","_wxPrintQuality",0},
3128 { "_wxEvtHandler","_wxProgressDialog",SwigwxProgressDialogTowxEvtHandler},
3129 { "_wxEvtHandler","_wxMessageDialog",SwigwxMessageDialogTowxEvtHandler},
3130 { "_wxEvtHandler","_wxFontDialog",SwigwxFontDialogTowxEvtHandler},
3131 { "_wxEvtHandler","_wxTextEntryDialog",SwigwxTextEntryDialogTowxEvtHandler},
3132 { "_wxEvtHandler","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxEvtHandler},
3133 { "_wxEvtHandler","_wxFileDialog",SwigwxFileDialogTowxEvtHandler},
3134 { "_wxEvtHandler","_wxDirDialog",SwigwxDirDialogTowxEvtHandler},
3135 { "_wxEvtHandler","_wxColourDialog",SwigwxColourDialogTowxEvtHandler},
3136 { "_wxWindow","_wxProgressDialog",SwigwxProgressDialogTowxWindow},
3137 { "_wxWindow","_wxMessageDialog",SwigwxMessageDialogTowxWindow},
3138 { "_wxWindow","_wxFontDialog",SwigwxFontDialogTowxWindow},
3139 { "_wxWindow","_wxTextEntryDialog",SwigwxTextEntryDialogTowxWindow},
3140 { "_wxWindow","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxWindow},
3141 { "_wxWindow","_wxFileDialog",SwigwxFileDialogTowxWindow},
3142 { "_wxWindow","_wxDirDialog",SwigwxDirDialogTowxWindow},
3143 { "_wxWindow","_wxColourDialog",SwigwxColourDialogTowxWindow},
3144 {0,0,0}};
3145
3146 static PyObject *SWIG_globals;
3147 #ifdef __cplusplus
3148 extern "C"
3149 #endif
3150 SWIGEXPORT(void) initcmndlgsc() {
3151 PyObject *m, *d;
3152 SWIG_globals = SWIG_newvarlink();
3153 m = Py_InitModule("cmndlgsc", cmndlgscMethods);
3154 d = PyModule_GetDict(m);
3155 {
3156 int i;
3157 for (i = 0; _swig_mapping[i].n1; i++)
3158 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
3159 }
3160 }