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