]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/wx.cpp
compilation fix
[wxWidgets.git] / wxPython / src / gtk / wx.cpp
1 /*
2 * FILE : src/gtk/wx.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 initwxc
55
56 #define SWIG_name "wxc"
57
58 #include "helpers.h"
59
60
61 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
62 PyObject* o2;
63 PyObject* o3;
64
65 if (!target) {
66 target = o;
67 } else if (target == Py_None) {
68 Py_DECREF(Py_None);
69 target = o;
70 } else {
71 if (!PyTuple_Check(target)) {
72 o2 = target;
73 target = PyTuple_New(1);
74 PyTuple_SetItem(target, 0, o2);
75 }
76 o3 = PyTuple_New(1);
77 PyTuple_SetItem(o3, 0, o);
78
79 o2 = target;
80 target = PySequence_Concat(o2, o3);
81 Py_DECREF(o2);
82 Py_DECREF(o3);
83 }
84 return target;
85 }
86
87 #if PYTHON_API_VERSION >= 1009
88 static char* wxStringErrorMsg = "String or Unicode type required";
89 #else
90 static char* wxStringErrorMsg = "string type is required for parameter";
91 #endif
92
93
94 #include <ctype.h>
95
96 /*------------------------------------------------------------------
97 ptrcast(value,type)
98
99 Constructs a new pointer value. Value may either be a string
100 or an integer. Type is a string corresponding to either the
101 C datatype or mangled datatype.
102
103 ptrcast(0,"Vector *")
104 or
105 ptrcast(0,"Vector_p")
106 ------------------------------------------------------------------ */
107
108 static PyObject *ptrcast(PyObject *_PTRVALUE, char *type) {
109
110 char *r,*s;
111 void *ptr;
112 PyObject *obj;
113 char *typestr,*c;
114
115 /* Produce a "mangled" version of the type string. */
116
117 typestr = (char *) malloc(strlen(type)+2);
118
119 /* Go through and munge the typestring */
120
121 r = typestr;
122 *(r++) = '_';
123 c = type;
124 while (*c) {
125 if (!isspace(*c)) {
126 if ((*c == '*') || (*c == '&')) {
127 *(r++) = 'p';
128 }
129 else *(r++) = *c;
130 } else {
131 *(r++) = '_';
132 }
133 c++;
134 }
135 *(r++) = 0;
136
137 /* Check to see what kind of object _PTRVALUE is */
138
139 if (PyInt_Check(_PTRVALUE)) {
140 ptr = (void *) PyInt_AsLong(_PTRVALUE);
141 /* Received a numerical value. Make a pointer out of it */
142 r = (char *) malloc(strlen(typestr)+22);
143 if (ptr) {
144 SWIG_MakePtr(r, ptr, typestr);
145 } else {
146 sprintf(r,"_0%s",typestr);
147 }
148 obj = PyString_FromString(r);
149 free(r);
150 } else if (PyString_Check(_PTRVALUE)) {
151 /* Have a real pointer value now. Try to strip out the pointer
152 value */
153 s = PyString_AsString(_PTRVALUE);
154 r = (char *) malloc(strlen(type)+22);
155
156 /* Now extract the pointer value */
157 if (!SWIG_GetPtr(s,&ptr,0)) {
158 if (ptr) {
159 SWIG_MakePtr(r,ptr,typestr);
160 } else {
161 sprintf(r,"_0%s",typestr);
162 }
163 obj = PyString_FromString(r);
164 } else {
165 obj = NULL;
166 }
167 free(r);
168 } else {
169 obj = NULL;
170 }
171 free(typestr);
172 if (!obj)
173 PyErr_SetString(PyExc_TypeError,"Type error in ptrcast. Argument is not a valid pointer value.");
174 return obj;
175 }
176
177 /*------------------------------------------------------------------
178 ptrvalue(ptr,type = 0)
179
180 Attempts to dereference a pointer value. If type is given, it
181 will try to use that type. Otherwise, this function will attempt
182 to "guess" the proper datatype by checking against all of the
183 builtin C datatypes.
184 ------------------------------------------------------------------ */
185
186 static PyObject *ptrvalue(PyObject *_PTRVALUE, int index, char *type) {
187 void *ptr;
188 char *s;
189 PyObject *obj;
190
191 if (!PyString_Check(_PTRVALUE)) {
192 PyErr_SetString(PyExc_TypeError,"Type error in ptrvalue. Argument is not a valid pointer value.");
193 return NULL;
194 }
195 s = PyString_AsString(_PTRVALUE);
196 if (SWIG_GetPtr(s,&ptr,0)) {
197 PyErr_SetString(PyExc_TypeError,"Type error in ptrvalue. Argument is not a valid pointer value.");
198 return NULL;
199 }
200
201 /* If no datatype was passed, try a few common datatypes first */
202
203 if (!type) {
204
205 /* No datatype was passed. Type to figure out if it's a common one */
206
207 if (!SWIG_GetPtr(s,&ptr,"_int_p")) {
208 type = "int";
209 } else if (!SWIG_GetPtr(s,&ptr,"_double_p")) {
210 type = "double";
211 } else if (!SWIG_GetPtr(s,&ptr,"_short_p")) {
212 type = "short";
213 } else if (!SWIG_GetPtr(s,&ptr,"_long_p")) {
214 type = "long";
215 } else if (!SWIG_GetPtr(s,&ptr,"_float_p")) {
216 type = "float";
217 } else if (!SWIG_GetPtr(s,&ptr,"_char_p")) {
218 type = "char";
219 } else if (!SWIG_GetPtr(s,&ptr,"_char_pp")) {
220 type = "char *";
221 } else {
222 type = "unknown";
223 }
224 }
225
226 if (!ptr) {
227 PyErr_SetString(PyExc_TypeError,"Unable to dereference NULL pointer.");
228 return NULL;
229 }
230
231 /* Now we have a datatype. Try to figure out what to do about it */
232 if (strcmp(type,"int") == 0) {
233 obj = PyInt_FromLong((long) *(((int *) ptr) + index));
234 } else if (strcmp(type,"double") == 0) {
235 obj = PyFloat_FromDouble((double) *(((double *) ptr)+index));
236 } else if (strcmp(type,"short") == 0) {
237 obj = PyInt_FromLong((long) *(((short *) ptr)+index));
238 } else if (strcmp(type,"long") == 0) {
239 obj = PyInt_FromLong((long) *(((long *) ptr)+index));
240 } else if (strcmp(type,"float") == 0) {
241 obj = PyFloat_FromDouble((double) *(((float *) ptr)+index));
242 } else if (strcmp(type,"char") == 0) {
243 obj = PyString_FromString(((char *) ptr)+index);
244 } else if (strcmp(type,"char *") == 0) {
245 char *c = *(((char **) ptr)+index);
246 if (c) obj = PyString_FromString(c);
247 else obj = PyString_FromString("NULL");
248 } else {
249 PyErr_SetString(PyExc_TypeError,"Unable to dereference unsupported datatype.");
250 return NULL;
251 }
252 return obj;
253 }
254
255 /*------------------------------------------------------------------
256 ptrcreate(type,value = 0,numelements = 1)
257
258 Attempts to create a new object of given type. Type must be
259 a basic C datatype. Will not create complex objects.
260 ------------------------------------------------------------------ */
261
262 static PyObject *ptrcreate(char *type, PyObject *_PYVALUE, int numelements) {
263 void *ptr;
264 PyObject *obj;
265 int sz;
266 char *cast;
267 char temp[40];
268
269 /* Check the type string against a variety of possibilities */
270
271 if (strcmp(type,"int") == 0) {
272 sz = sizeof(int)*numelements;
273 cast = "_int_p";
274 } else if (strcmp(type,"short") == 0) {
275 sz = sizeof(short)*numelements;
276 cast = "_short_p";
277 } else if (strcmp(type,"long") == 0) {
278 sz = sizeof(long)*numelements;
279 cast = "_long_p";
280 } else if (strcmp(type,"double") == 0) {
281 sz = sizeof(double)*numelements;
282 cast = "_double_p";
283 } else if (strcmp(type,"float") == 0) {
284 sz = sizeof(float)*numelements;
285 cast = "_float_p";
286 } else if (strcmp(type,"char") == 0) {
287 sz = sizeof(char)*numelements;
288 cast = "_char_p";
289 } else if (strcmp(type,"char *") == 0) {
290 sz = sizeof(char *)*(numelements+1);
291 cast = "_char_pp";
292 } else {
293 PyErr_SetString(PyExc_TypeError,"Unable to create unknown datatype.");
294 return NULL;
295 }
296
297 /* Create the new object */
298
299 ptr = (void *) malloc(sz);
300 if (!ptr) {
301 PyErr_SetString(PyExc_MemoryError,"Out of memory in swig_create.");
302 return NULL;
303 }
304
305 /* Now try to set its default value */
306
307 if (_PYVALUE) {
308 if (strcmp(type,"int") == 0) {
309 int *ip,i,ivalue;
310 ivalue = (int) PyInt_AsLong(_PYVALUE);
311 ip = (int *) ptr;
312 for (i = 0; i < numelements; i++)
313 ip[i] = ivalue;
314 } else if (strcmp(type,"short") == 0) {
315 short *ip,ivalue;
316 int i;
317 ivalue = (short) PyInt_AsLong(_PYVALUE);
318 ip = (short *) ptr;
319 for (i = 0; i < numelements; i++)
320 ip[i] = ivalue;
321 } else if (strcmp(type,"long") == 0) {
322 long *ip,ivalue;
323 int i;
324 ivalue = (long) PyInt_AsLong(_PYVALUE);
325 ip = (long *) ptr;
326 for (i = 0; i < numelements; i++)
327 ip[i] = ivalue;
328 } else if (strcmp(type,"double") == 0) {
329 double *ip,ivalue;
330 int i;
331 ivalue = (double) PyFloat_AsDouble(_PYVALUE);
332 ip = (double *) ptr;
333 for (i = 0; i < numelements; i++)
334 ip[i] = ivalue;
335 } else if (strcmp(type,"float") == 0) {
336 float *ip,ivalue;
337 int i;
338 ivalue = (float) PyFloat_AsDouble(_PYVALUE);
339 ip = (float *) ptr;
340 for (i = 0; i < numelements; i++)
341 ip[i] = ivalue;
342 } else if (strcmp(type,"char") == 0) {
343 char *ip,*ivalue;
344 ivalue = (char *) PyString_AsString(_PYVALUE);
345 ip = (char *) ptr;
346 strncpy(ip,ivalue,numelements-1);
347 } else if (strcmp(type,"char *") == 0) {
348 char **ip, *ivalue;
349 int i;
350 ivalue = (char *) PyString_AsString(_PYVALUE);
351 ip = (char **) ptr;
352 for (i = 0; i < numelements; i++) {
353 if (ivalue) {
354 ip[i] = (char *) malloc(strlen(ivalue)+1);
355 strcpy(ip[i],ivalue);
356 } else {
357 ip[i] = 0;
358 }
359 }
360 ip[numelements] = 0;
361 }
362 }
363 /* Create the pointer value */
364
365 SWIG_MakePtr(temp,ptr,cast);
366 obj = PyString_FromString(temp);
367 return obj;
368 }
369
370
371 /*------------------------------------------------------------------
372 ptrset(ptr,value,index = 0,type = 0)
373
374 Attempts to set the value of a pointer variable. If type is
375 given, we will use that type. Otherwise, we'll guess the datatype.
376 ------------------------------------------------------------------ */
377
378 static PyObject *ptrset(PyObject *_PTRVALUE, PyObject *_PYVALUE, int index, char *type) {
379 void *ptr;
380 char *s;
381 PyObject *obj;
382
383 if (!PyString_Check(_PTRVALUE)) {
384 PyErr_SetString(PyExc_TypeError,"Type error in ptrset. Argument is not a valid pointer value.");
385 return NULL;
386 }
387 s = PyString_AsString(_PTRVALUE);
388 if (SWIG_GetPtr(s,&ptr,0)) {
389 PyErr_SetString(PyExc_TypeError,"Type error in ptrset. Argument is not a valid pointer value.");
390 return NULL;
391 }
392
393 /* If no datatype was passed, try a few common datatypes first */
394
395 if (!type) {
396
397 /* No datatype was passed. Type to figure out if it's a common one */
398
399 if (!SWIG_GetPtr(s,&ptr,"_int_p")) {
400 type = "int";
401 } else if (!SWIG_GetPtr(s,&ptr,"_double_p")) {
402 type = "double";
403 } else if (!SWIG_GetPtr(s,&ptr,"_short_p")) {
404 type = "short";
405 } else if (!SWIG_GetPtr(s,&ptr,"_long_p")) {
406 type = "long";
407 } else if (!SWIG_GetPtr(s,&ptr,"_float_p")) {
408 type = "float";
409 } else if (!SWIG_GetPtr(s,&ptr,"_char_p")) {
410 type = "char";
411 } else if (!SWIG_GetPtr(s,&ptr,"_char_pp")) {
412 type = "char *";
413 } else {
414 type = "unknown";
415 }
416 }
417
418 if (!ptr) {
419 PyErr_SetString(PyExc_TypeError,"Unable to set NULL pointer.");
420 return NULL;
421 }
422
423 /* Now we have a datatype. Try to figure out what to do about it */
424 if (strcmp(type,"int") == 0) {
425 *(((int *) ptr)+index) = (int) PyInt_AsLong(_PYVALUE);
426 } else if (strcmp(type,"double") == 0) {
427 *(((double *) ptr)+index) = (double) PyFloat_AsDouble(_PYVALUE);
428 } else if (strcmp(type,"short") == 0) {
429 *(((short *) ptr)+index) = (short) PyInt_AsLong(_PYVALUE);
430 } else if (strcmp(type,"long") == 0) {
431 *(((long *) ptr)+index) = (long) PyInt_AsLong(_PYVALUE);
432 } else if (strcmp(type,"float") == 0) {
433 *(((float *) ptr)+index) = (float) PyFloat_AsDouble(_PYVALUE);
434 } else if (strcmp(type,"char") == 0) {
435 char *c = PyString_AsString(_PYVALUE);
436 strcpy(((char *) ptr)+index, c);
437 } else if (strcmp(type,"char *") == 0) {
438 char *c = PyString_AsString(_PYVALUE);
439 char **ca = (char **) ptr;
440 if (ca[index]) free(ca[index]);
441 if (strcmp(c,"NULL") == 0) {
442 ca[index] = 0;
443 } else {
444 ca[index] = (char *) malloc(strlen(c)+1);
445 strcpy(ca[index],c);
446 }
447 } else {
448 PyErr_SetString(PyExc_TypeError,"Unable to set unsupported datatype.");
449 return NULL;
450 }
451 Py_INCREF(Py_None);
452 return Py_None;
453 }
454
455
456 /*------------------------------------------------------------------
457 ptradd(ptr,offset)
458
459 Adds a value to an existing pointer value. Will do a type-dependent
460 add for basic datatypes. For other datatypes, will do a byte-add.
461 ------------------------------------------------------------------ */
462
463 static PyObject *ptradd(PyObject *_PTRVALUE, int offset) {
464
465 char *r,*s;
466 void *ptr,*junk;
467 PyObject *obj;
468 char *type;
469
470 /* Check to see what kind of object _PTRVALUE is */
471
472 if (PyString_Check(_PTRVALUE)) {
473 /* Have a potential pointer value now. Try to strip out the value */
474 s = PyString_AsString(_PTRVALUE);
475
476 /* Try to handle a few common datatypes first */
477
478 if (!SWIG_GetPtr(s,&ptr,"_int_p")) {
479 ptr = (void *) (((int *) ptr) + offset);
480 } else if (!SWIG_GetPtr(s,&ptr,"_double_p")) {
481 ptr = (void *) (((double *) ptr) + offset);
482 } else if (!SWIG_GetPtr(s,&ptr,"_short_p")) {
483 ptr = (void *) (((short *) ptr) + offset);
484 } else if (!SWIG_GetPtr(s,&ptr,"_long_p")) {
485 ptr = (void *) (((long *) ptr) + offset);
486 } else if (!SWIG_GetPtr(s,&ptr,"_float_p")) {
487 ptr = (void *) (((float *) ptr) + offset);
488 } else if (!SWIG_GetPtr(s,&ptr,"_char_p")) {
489 ptr = (void *) (((char *) ptr) + offset);
490 } else if (!SWIG_GetPtr(s,&ptr,0)) {
491 ptr = (void *) (((char *) ptr) + offset);
492 } else {
493 PyErr_SetString(PyExc_TypeError,"Type error in ptradd. Argument is not a valid pointer value.");
494 return NULL;
495 }
496 type = SWIG_GetPtr(s,&junk,"INVALID POINTER");
497 r = (char *) malloc(strlen(type)+20);
498 if (ptr) {
499 SWIG_MakePtr(r,ptr,type);
500 } else {
501 sprintf(r,"_0%s",type);
502 }
503 obj = PyString_FromString(r);
504 free(r);
505 }
506 return obj;
507 }
508
509 /*------------------------------------------------------------------
510 ptrmap(type1,type2)
511
512 Allows a mapping between type1 and type2. (Like a typedef)
513 ------------------------------------------------------------------ */
514
515 static void ptrmap(char *type1, char *type2) {
516
517 char *typestr1,*typestr2,*c,*r;
518
519 /* Produce a "mangled" version of the type string. */
520
521 typestr1 = (char *) malloc(strlen(type1)+2);
522
523 /* Go through and munge the typestring */
524
525 r = typestr1;
526 *(r++) = '_';
527 c = type1;
528 while (*c) {
529 if (!isspace(*c)) {
530 if ((*c == '*') || (*c == '&')) {
531 *(r++) = 'p';
532 }
533 else *(r++) = *c;
534 } else {
535 *(r++) = '_';
536 }
537 c++;
538 }
539 *(r++) = 0;
540
541 typestr2 = (char *) malloc(strlen(type2)+2);
542
543 /* Go through and munge the typestring */
544
545 r = typestr2;
546 *(r++) = '_';
547 c = type2;
548 while (*c) {
549 if (!isspace(*c)) {
550 if ((*c == '*') || (*c == '&')) {
551 *(r++) = 'p';
552 }
553 else *(r++) = *c;
554 } else {
555 *(r++) = '_';
556 }
557 c++;
558 }
559 *(r++) = 0;
560 SWIG_RegisterMapping(typestr1,typestr2,0);
561 SWIG_RegisterMapping(typestr2,typestr1,0);
562 }
563
564 /*------------------------------------------------------------------
565 ptrfree(ptr)
566
567 Destroys a pointer value
568 ------------------------------------------------------------------ */
569
570 PyObject *ptrfree(PyObject *_PTRVALUE) {
571 void *ptr, *junk;
572 char *s;
573
574 if (!PyString_Check(_PTRVALUE)) {
575 PyErr_SetString(PyExc_TypeError,"Type error in ptrfree. Argument is not a valid pointer value.");
576 return NULL;
577 }
578 s = PyString_AsString(_PTRVALUE);
579 if (SWIG_GetPtr(s,&ptr,0)) {
580 PyErr_SetString(PyExc_TypeError,"Type error in ptrfree. Argument is not a valid pointer value.");
581 return NULL;
582 }
583
584 /* Check to see if this pointer is a char ** */
585 if (!SWIG_GetPtr(s,&junk,"_char_pp")) {
586 char **c = (char **) ptr;
587 if (c) {
588 int i = 0;
589 while (c[i]) {
590 free(c[i]);
591 i++;
592 }
593 }
594 }
595 if (ptr)
596 free((char *) ptr);
597
598 Py_INCREF(Py_None);
599 return Py_None;
600 }
601
602
603 wxPyApp* wxGetApp() {
604 return wxPythonApp;
605 }
606
607 void wxApp_CleanUp() {
608 __wxCleanup();
609 }
610
611
612
613 extern "C" SWIGEXPORT(void) initwindowsc();
614 extern "C" SWIGEXPORT(void) initwindows2c();
615 extern "C" SWIGEXPORT(void) initeventsc();
616 extern "C" SWIGEXPORT(void) initmiscc();
617 extern "C" SWIGEXPORT(void) initmisc2c();
618 extern "C" SWIGEXPORT(void) initgdic();
619 extern "C" SWIGEXPORT(void) initmdic();
620 extern "C" SWIGEXPORT(void) initcontrolsc();
621 extern "C" SWIGEXPORT(void) initcontrols2c();
622 extern "C" SWIGEXPORT(void) initcmndlgsc();
623 extern "C" SWIGEXPORT(void) initstattoolc();
624 extern "C" SWIGEXPORT(void) initframesc();
625 extern "C" SWIGEXPORT(void) initwindows3c();
626 extern "C" SWIGEXPORT(void) initimagec();
627 extern "C" SWIGEXPORT(void) initprintfwc();
628 extern "C" SWIGEXPORT(void) initsizersc();
629 extern "C" SWIGEXPORT(void) initclip_dndc();
630 extern "C" SWIGEXPORT(void) initstreamsc();
631 extern "C" SWIGEXPORT(void) initfilesysc();
632
633
634
635 // Export a C API in a struct. Other modules will be able to load this from
636 // the wxc module and will then have safe access to these functions, even if
637 // in another shared library.
638 static wxPyCoreAPI API = {
639 SWIG_MakePtr,
640 SWIG_GetPtr,
641 SWIG_GetPtrObj,
642 SWIG_RegisterMapping,
643 SWIG_addvarlink,
644 SWIG_newvarlink,
645
646 wxPySaveThread,
647 wxPyRestoreThread,
648 wxPyConstructObject,
649 wxPy_ConvertList,
650
651 byte_LIST_helper,
652 int_LIST_helper,
653 long_LIST_helper,
654 string_LIST_helper,
655 wxPoint_LIST_helper,
656 wxBitmap_LIST_helper,
657 wxString_LIST_helper,
658 wxAcceleratorEntry_LIST_helper,
659
660 wxSize_helper,
661 wxPoint_helper,
662 wxRealPoint_helper,
663 wxRect_helper,
664 wxColour_helper,
665
666 wxPyCBH_setSelf,
667 wxPyCBH_findCallback,
668 wxPyCBH_callCallback,
669 wxPyCBH_callCallbackObj,
670 wxPyCBH_delete,
671
672 wxPyClassExists,
673 wxPyMake_wxObject,
674 wxPyPtrTypeMap_Add,
675 };
676
677
678 #ifdef __cplusplus
679 extern "C" {
680 #endif
681 static PyObject *_wrap_ptrcast(PyObject *self, PyObject *args, PyObject *kwargs) {
682 PyObject * _resultobj;
683 PyObject * _result;
684 PyObject * _arg0;
685 char * _arg1;
686 PyObject * _obj0 = 0;
687 char *_kwnames[] = { "ptr","type", NULL };
688
689 self = self;
690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:ptrcast",_kwnames,&_obj0,&_arg1))
691 return NULL;
692 {
693 _arg0 = _obj0;
694 }
695 {
696 wxPy_BEGIN_ALLOW_THREADS;
697 _result = (PyObject *)ptrcast(_arg0,_arg1);
698
699 wxPy_END_ALLOW_THREADS;
700 if (PyErr_Occurred()) return NULL;
701 }{
702 _resultobj = _result;
703 }
704 return _resultobj;
705 }
706
707 static PyObject *_wrap_ptrvalue(PyObject *self, PyObject *args, PyObject *kwargs) {
708 PyObject * _resultobj;
709 PyObject * _result;
710 PyObject * _arg0;
711 int _arg1 = (int ) 0;
712 char * _arg2 = (char *) 0;
713 PyObject * _obj0 = 0;
714 char *_kwnames[] = { "ptr","index","type", NULL };
715
716 self = self;
717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|is:ptrvalue",_kwnames,&_obj0,&_arg1,&_arg2))
718 return NULL;
719 {
720 _arg0 = _obj0;
721 }
722 {
723 wxPy_BEGIN_ALLOW_THREADS;
724 _result = (PyObject *)ptrvalue(_arg0,_arg1,_arg2);
725
726 wxPy_END_ALLOW_THREADS;
727 if (PyErr_Occurred()) return NULL;
728 }{
729 _resultobj = _result;
730 }
731 return _resultobj;
732 }
733
734 static PyObject *_wrap_ptrset(PyObject *self, PyObject *args, PyObject *kwargs) {
735 PyObject * _resultobj;
736 PyObject * _result;
737 PyObject * _arg0;
738 PyObject * _arg1;
739 int _arg2 = (int ) 0;
740 char * _arg3 = (char *) 0;
741 PyObject * _obj0 = 0;
742 PyObject * _obj1 = 0;
743 char *_kwnames[] = { "ptr","value","index","type", NULL };
744
745 self = self;
746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|is:ptrset",_kwnames,&_obj0,&_obj1,&_arg2,&_arg3))
747 return NULL;
748 {
749 _arg0 = _obj0;
750 }
751 {
752 _arg1 = _obj1;
753 }
754 {
755 wxPy_BEGIN_ALLOW_THREADS;
756 _result = (PyObject *)ptrset(_arg0,_arg1,_arg2,_arg3);
757
758 wxPy_END_ALLOW_THREADS;
759 if (PyErr_Occurred()) return NULL;
760 }{
761 _resultobj = _result;
762 }
763 return _resultobj;
764 }
765
766 static PyObject *_wrap_ptrcreate(PyObject *self, PyObject *args, PyObject *kwargs) {
767 PyObject * _resultobj;
768 PyObject * _result;
769 char * _arg0;
770 PyObject * _arg1 = (PyObject *) 0;
771 int _arg2 = (int ) 1;
772 PyObject * _obj1 = 0;
773 char *_kwnames[] = { "type","value","nitems", NULL };
774
775 self = self;
776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|Oi:ptrcreate",_kwnames,&_arg0,&_obj1,&_arg2))
777 return NULL;
778 if (_obj1)
779 {
780 _arg1 = _obj1;
781 }
782 {
783 wxPy_BEGIN_ALLOW_THREADS;
784 _result = (PyObject *)ptrcreate(_arg0,_arg1,_arg2);
785
786 wxPy_END_ALLOW_THREADS;
787 if (PyErr_Occurred()) return NULL;
788 }{
789 _resultobj = _result;
790 }
791 return _resultobj;
792 }
793
794 static PyObject *_wrap_ptrfree(PyObject *self, PyObject *args, PyObject *kwargs) {
795 PyObject * _resultobj;
796 PyObject * _result;
797 PyObject * _arg0;
798 PyObject * _obj0 = 0;
799 char *_kwnames[] = { "ptr", NULL };
800
801 self = self;
802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:ptrfree",_kwnames,&_obj0))
803 return NULL;
804 {
805 _arg0 = _obj0;
806 }
807 {
808 wxPy_BEGIN_ALLOW_THREADS;
809 _result = (PyObject *)ptrfree(_arg0);
810
811 wxPy_END_ALLOW_THREADS;
812 if (PyErr_Occurred()) return NULL;
813 }{
814 _resultobj = _result;
815 }
816 return _resultobj;
817 }
818
819 static PyObject *_wrap_ptradd(PyObject *self, PyObject *args, PyObject *kwargs) {
820 PyObject * _resultobj;
821 PyObject * _result;
822 PyObject * _arg0;
823 int _arg1;
824 PyObject * _obj0 = 0;
825 char *_kwnames[] = { "ptr","offset", NULL };
826
827 self = self;
828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:ptradd",_kwnames,&_obj0,&_arg1))
829 return NULL;
830 {
831 _arg0 = _obj0;
832 }
833 {
834 wxPy_BEGIN_ALLOW_THREADS;
835 _result = (PyObject *)ptradd(_arg0,_arg1);
836
837 wxPy_END_ALLOW_THREADS;
838 if (PyErr_Occurred()) return NULL;
839 }{
840 _resultobj = _result;
841 }
842 return _resultobj;
843 }
844
845 static PyObject *_wrap_ptrmap(PyObject *self, PyObject *args, PyObject *kwargs) {
846 PyObject * _resultobj;
847 char * _arg0;
848 char * _arg1;
849 char *_kwnames[] = { "type1","type2", NULL };
850
851 self = self;
852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ss:ptrmap",_kwnames,&_arg0,&_arg1))
853 return NULL;
854 {
855 wxPy_BEGIN_ALLOW_THREADS;
856 ptrmap(_arg0,_arg1);
857
858 wxPy_END_ALLOW_THREADS;
859 if (PyErr_Occurred()) return NULL;
860 } Py_INCREF(Py_None);
861 _resultobj = Py_None;
862 return _resultobj;
863 }
864
865 static int _wrap_wxDefaultPosition_set(PyObject *val) {
866
867 PyErr_SetString(PyExc_TypeError,"Variable wxDefaultPosition is read-only.");
868 return 1;
869 }
870
871 static PyObject *_wrap_wxDefaultPosition_get() {
872 PyObject * pyobj;
873 char ptemp[128];
874
875 SWIG_MakePtr(ptemp,(char *) &wxDefaultPosition,"_wxPoint_p");
876 pyobj = PyString_FromString(ptemp);
877 return pyobj;
878 }
879
880 static int _wrap_wxDefaultSize_set(PyObject *val) {
881
882 PyErr_SetString(PyExc_TypeError,"Variable wxDefaultSize is read-only.");
883 return 1;
884 }
885
886 static PyObject *_wrap_wxDefaultSize_get() {
887 PyObject * pyobj;
888 char ptemp[128];
889
890 SWIG_MakePtr(ptemp,(char *) &wxDefaultSize,"_wxSize_p");
891 pyobj = PyString_FromString(ptemp);
892 return pyobj;
893 }
894
895 static PyObject *_wrap_wxGetApp(PyObject *self, PyObject *args, PyObject *kwargs) {
896 PyObject * _resultobj;
897 wxPyApp * _result;
898 char *_kwnames[] = { NULL };
899 char _ptemp[128];
900
901 self = self;
902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetApp",_kwnames))
903 return NULL;
904 {
905 wxPy_BEGIN_ALLOW_THREADS;
906 _result = (wxPyApp *)wxGetApp();
907
908 wxPy_END_ALLOW_THREADS;
909 } if (_result) {
910 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyApp_p");
911 _resultobj = Py_BuildValue("s",_ptemp);
912 } else {
913 Py_INCREF(Py_None);
914 _resultobj = Py_None;
915 }
916 return _resultobj;
917 }
918
919 static PyObject *_wrap_wxApp_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
920 PyObject * _resultobj;
921 char *_kwnames[] = { NULL };
922
923 self = self;
924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxApp_CleanUp",_kwnames))
925 return NULL;
926 {
927 wxPy_BEGIN_ALLOW_THREADS;
928 wxApp_CleanUp();
929
930 wxPy_END_ALLOW_THREADS;
931 } Py_INCREF(Py_None);
932 _resultobj = Py_None;
933 return _resultobj;
934 }
935
936 static void *SwigwxPyAppTowxEvtHandler(void *ptr) {
937 wxPyApp *src;
938 wxEvtHandler *dest;
939 src = (wxPyApp *) ptr;
940 dest = (wxEvtHandler *) src;
941 return (void *) dest;
942 }
943
944 static void *SwigwxPyAppTowxObject(void *ptr) {
945 wxPyApp *src;
946 wxObject *dest;
947 src = (wxPyApp *) ptr;
948 dest = (wxObject *) src;
949 return (void *) dest;
950 }
951
952 static wxPyApp *new_wxPyApp() {
953 wxPythonApp = new wxPyApp();
954 return wxPythonApp;
955 }
956
957 static PyObject *_wrap_new_wxPyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
958 PyObject * _resultobj;
959 wxPyApp * _result;
960 char *_kwnames[] = { NULL };
961 char _ptemp[128];
962
963 self = self;
964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyApp",_kwnames))
965 return NULL;
966 {
967 wxPy_BEGIN_ALLOW_THREADS;
968 _result = (wxPyApp *)new_wxPyApp();
969
970 wxPy_END_ALLOW_THREADS;
971 } if (_result) {
972 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyApp_p");
973 _resultobj = Py_BuildValue("s",_ptemp);
974 } else {
975 Py_INCREF(Py_None);
976 _resultobj = Py_None;
977 }
978 return _resultobj;
979 }
980
981 #define delete_wxPyApp(_swigobj) (delete _swigobj)
982 static PyObject *_wrap_delete_wxPyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject * _resultobj;
984 wxPyApp * _arg0;
985 PyObject * _argo0 = 0;
986 char *_kwnames[] = { "self", NULL };
987
988 self = self;
989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyApp",_kwnames,&_argo0))
990 return NULL;
991 if (_argo0) {
992 if (_argo0 == Py_None) { _arg0 = NULL; }
993 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
994 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyApp. Expected _wxPyApp_p.");
995 return NULL;
996 }
997 }
998 {
999 wxPy_BEGIN_ALLOW_THREADS;
1000 delete_wxPyApp(_arg0);
1001
1002 wxPy_END_ALLOW_THREADS;
1003 } Py_INCREF(Py_None);
1004 _resultobj = Py_None;
1005 return _resultobj;
1006 }
1007
1008 #define wxPyApp_GetAppName(_swigobj) (_swigobj->GetAppName())
1009 static PyObject *_wrap_wxPyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
1010 PyObject * _resultobj;
1011 wxString * _result;
1012 wxPyApp * _arg0;
1013 PyObject * _argo0 = 0;
1014 char *_kwnames[] = { "self", NULL };
1015
1016 self = self;
1017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetAppName",_kwnames,&_argo0))
1018 return NULL;
1019 if (_argo0) {
1020 if (_argo0 == Py_None) { _arg0 = NULL; }
1021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetAppName. Expected _wxPyApp_p.");
1023 return NULL;
1024 }
1025 }
1026 {
1027 wxPy_BEGIN_ALLOW_THREADS;
1028 _result = new wxString (wxPyApp_GetAppName(_arg0));
1029
1030 wxPy_END_ALLOW_THREADS;
1031 }{
1032 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1033 }
1034 {
1035 delete _result;
1036 }
1037 return _resultobj;
1038 }
1039
1040 #define wxPyApp_GetClassName(_swigobj) (_swigobj->GetClassName())
1041 static PyObject *_wrap_wxPyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
1042 PyObject * _resultobj;
1043 wxString * _result;
1044 wxPyApp * _arg0;
1045 PyObject * _argo0 = 0;
1046 char *_kwnames[] = { "self", NULL };
1047
1048 self = self;
1049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetClassName",_kwnames,&_argo0))
1050 return NULL;
1051 if (_argo0) {
1052 if (_argo0 == Py_None) { _arg0 = NULL; }
1053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetClassName. Expected _wxPyApp_p.");
1055 return NULL;
1056 }
1057 }
1058 {
1059 wxPy_BEGIN_ALLOW_THREADS;
1060 _result = new wxString (wxPyApp_GetClassName(_arg0));
1061
1062 wxPy_END_ALLOW_THREADS;
1063 }{
1064 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1065 }
1066 {
1067 delete _result;
1068 }
1069 return _resultobj;
1070 }
1071
1072 #define wxPyApp_GetExitOnFrameDelete(_swigobj) (_swigobj->GetExitOnFrameDelete())
1073 static PyObject *_wrap_wxPyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
1074 PyObject * _resultobj;
1075 bool _result;
1076 wxPyApp * _arg0;
1077 PyObject * _argo0 = 0;
1078 char *_kwnames[] = { "self", NULL };
1079
1080 self = self;
1081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetExitOnFrameDelete",_kwnames,&_argo0))
1082 return NULL;
1083 if (_argo0) {
1084 if (_argo0 == Py_None) { _arg0 = NULL; }
1085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetExitOnFrameDelete. Expected _wxPyApp_p.");
1087 return NULL;
1088 }
1089 }
1090 {
1091 wxPy_BEGIN_ALLOW_THREADS;
1092 _result = (bool )wxPyApp_GetExitOnFrameDelete(_arg0);
1093
1094 wxPy_END_ALLOW_THREADS;
1095 } _resultobj = Py_BuildValue("i",_result);
1096 return _resultobj;
1097 }
1098
1099 #define wxPyApp_GetPrintMode(_swigobj) (_swigobj->GetPrintMode())
1100 static PyObject *_wrap_wxPyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1101 PyObject * _resultobj;
1102 int _result;
1103 wxPyApp * _arg0;
1104 PyObject * _argo0 = 0;
1105 char *_kwnames[] = { "self", NULL };
1106
1107 self = self;
1108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetPrintMode",_kwnames,&_argo0))
1109 return NULL;
1110 if (_argo0) {
1111 if (_argo0 == Py_None) { _arg0 = NULL; }
1112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetPrintMode. Expected _wxPyApp_p.");
1114 return NULL;
1115 }
1116 }
1117 {
1118 wxPy_BEGIN_ALLOW_THREADS;
1119 _result = (int )wxPyApp_GetPrintMode(_arg0);
1120
1121 wxPy_END_ALLOW_THREADS;
1122 } _resultobj = Py_BuildValue("i",_result);
1123 return _resultobj;
1124 }
1125
1126 #define wxPyApp_GetTopWindow(_swigobj) (_swigobj->GetTopWindow())
1127 static PyObject *_wrap_wxPyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1128 PyObject * _resultobj;
1129 wxWindow * _result;
1130 wxPyApp * _arg0;
1131 PyObject * _argo0 = 0;
1132 char *_kwnames[] = { "self", NULL };
1133
1134 self = self;
1135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetTopWindow",_kwnames,&_argo0))
1136 return NULL;
1137 if (_argo0) {
1138 if (_argo0 == Py_None) { _arg0 = NULL; }
1139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetTopWindow. Expected _wxPyApp_p.");
1141 return NULL;
1142 }
1143 }
1144 {
1145 wxPy_BEGIN_ALLOW_THREADS;
1146 _result = (wxWindow *)wxPyApp_GetTopWindow(_arg0);
1147
1148 wxPy_END_ALLOW_THREADS;
1149 }{ _resultobj = wxPyMake_wxObject(_result); }
1150 return _resultobj;
1151 }
1152
1153 #define wxPyApp_GetVendorName(_swigobj) (_swigobj->GetVendorName())
1154 static PyObject *_wrap_wxPyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
1155 PyObject * _resultobj;
1156 wxString * _result;
1157 wxPyApp * _arg0;
1158 PyObject * _argo0 = 0;
1159 char *_kwnames[] = { "self", NULL };
1160
1161 self = self;
1162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetVendorName",_kwnames,&_argo0))
1163 return NULL;
1164 if (_argo0) {
1165 if (_argo0 == Py_None) { _arg0 = NULL; }
1166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetVendorName. Expected _wxPyApp_p.");
1168 return NULL;
1169 }
1170 }
1171 {
1172 wxPy_BEGIN_ALLOW_THREADS;
1173 _result = new wxString (wxPyApp_GetVendorName(_arg0));
1174
1175 wxPy_END_ALLOW_THREADS;
1176 }{
1177 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1178 }
1179 {
1180 delete _result;
1181 }
1182 return _resultobj;
1183 }
1184
1185 #define wxPyApp_GetUseBestVisual(_swigobj) (_swigobj->GetUseBestVisual())
1186 static PyObject *_wrap_wxPyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
1187 PyObject * _resultobj;
1188 bool _result;
1189 wxPyApp * _arg0;
1190 PyObject * _argo0 = 0;
1191 char *_kwnames[] = { "self", NULL };
1192
1193 self = self;
1194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetUseBestVisual",_kwnames,&_argo0))
1195 return NULL;
1196 if (_argo0) {
1197 if (_argo0 == Py_None) { _arg0 = NULL; }
1198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetUseBestVisual. Expected _wxPyApp_p.");
1200 return NULL;
1201 }
1202 }
1203 {
1204 wxPy_BEGIN_ALLOW_THREADS;
1205 _result = (bool )wxPyApp_GetUseBestVisual(_arg0);
1206
1207 wxPy_END_ALLOW_THREADS;
1208 } _resultobj = Py_BuildValue("i",_result);
1209 return _resultobj;
1210 }
1211
1212 #define wxPyApp_Dispatch(_swigobj) (_swigobj->Dispatch())
1213 static PyObject *_wrap_wxPyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
1214 PyObject * _resultobj;
1215 wxPyApp * _arg0;
1216 PyObject * _argo0 = 0;
1217 char *_kwnames[] = { "self", NULL };
1218
1219 self = self;
1220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_Dispatch",_kwnames,&_argo0))
1221 return NULL;
1222 if (_argo0) {
1223 if (_argo0 == Py_None) { _arg0 = NULL; }
1224 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1225 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_Dispatch. Expected _wxPyApp_p.");
1226 return NULL;
1227 }
1228 }
1229 {
1230 wxPy_BEGIN_ALLOW_THREADS;
1231 wxPyApp_Dispatch(_arg0);
1232
1233 wxPy_END_ALLOW_THREADS;
1234 } Py_INCREF(Py_None);
1235 _resultobj = Py_None;
1236 return _resultobj;
1237 }
1238
1239 #define wxPyApp_ExitMainLoop(_swigobj) (_swigobj->ExitMainLoop())
1240 static PyObject *_wrap_wxPyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
1241 PyObject * _resultobj;
1242 wxPyApp * _arg0;
1243 PyObject * _argo0 = 0;
1244 char *_kwnames[] = { "self", NULL };
1245
1246 self = self;
1247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_ExitMainLoop",_kwnames,&_argo0))
1248 return NULL;
1249 if (_argo0) {
1250 if (_argo0 == Py_None) { _arg0 = NULL; }
1251 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1252 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_ExitMainLoop. Expected _wxPyApp_p.");
1253 return NULL;
1254 }
1255 }
1256 {
1257 wxPy_BEGIN_ALLOW_THREADS;
1258 wxPyApp_ExitMainLoop(_arg0);
1259
1260 wxPy_END_ALLOW_THREADS;
1261 } Py_INCREF(Py_None);
1262 _resultobj = Py_None;
1263 return _resultobj;
1264 }
1265
1266 #define wxPyApp_Initialized(_swigobj) (_swigobj->Initialized())
1267 static PyObject *_wrap_wxPyApp_Initialized(PyObject *self, PyObject *args, PyObject *kwargs) {
1268 PyObject * _resultobj;
1269 bool _result;
1270 wxPyApp * _arg0;
1271 PyObject * _argo0 = 0;
1272 char *_kwnames[] = { "self", NULL };
1273
1274 self = self;
1275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_Initialized",_kwnames,&_argo0))
1276 return NULL;
1277 if (_argo0) {
1278 if (_argo0 == Py_None) { _arg0 = NULL; }
1279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_Initialized. Expected _wxPyApp_p.");
1281 return NULL;
1282 }
1283 }
1284 {
1285 wxPy_BEGIN_ALLOW_THREADS;
1286 _result = (bool )wxPyApp_Initialized(_arg0);
1287
1288 wxPy_END_ALLOW_THREADS;
1289 } _resultobj = Py_BuildValue("i",_result);
1290 return _resultobj;
1291 }
1292
1293 #define wxPyApp_MainLoop(_swigobj) (_swigobj->MainLoop())
1294 static PyObject *_wrap_wxPyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
1295 PyObject * _resultobj;
1296 int _result;
1297 wxPyApp * _arg0;
1298 PyObject * _argo0 = 0;
1299 char *_kwnames[] = { "self", NULL };
1300
1301 self = self;
1302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_MainLoop",_kwnames,&_argo0))
1303 return NULL;
1304 if (_argo0) {
1305 if (_argo0 == Py_None) { _arg0 = NULL; }
1306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_MainLoop. Expected _wxPyApp_p.");
1308 return NULL;
1309 }
1310 }
1311 {
1312 wxPy_BEGIN_ALLOW_THREADS;
1313 _result = (int )wxPyApp_MainLoop(_arg0);
1314
1315 wxPy_END_ALLOW_THREADS;
1316 } _resultobj = Py_BuildValue("i",_result);
1317 return _resultobj;
1318 }
1319
1320 #define wxPyApp_Pending(_swigobj) (_swigobj->Pending())
1321 static PyObject *_wrap_wxPyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) {
1322 PyObject * _resultobj;
1323 bool _result;
1324 wxPyApp * _arg0;
1325 PyObject * _argo0 = 0;
1326 char *_kwnames[] = { "self", NULL };
1327
1328 self = self;
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_Pending",_kwnames,&_argo0))
1330 return NULL;
1331 if (_argo0) {
1332 if (_argo0 == Py_None) { _arg0 = NULL; }
1333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_Pending. Expected _wxPyApp_p.");
1335 return NULL;
1336 }
1337 }
1338 {
1339 wxPy_BEGIN_ALLOW_THREADS;
1340 _result = (bool )wxPyApp_Pending(_arg0);
1341
1342 wxPy_END_ALLOW_THREADS;
1343 } _resultobj = Py_BuildValue("i",_result);
1344 return _resultobj;
1345 }
1346
1347 #define wxPyApp_ProcessIdle(_swigobj) (_swigobj->ProcessIdle())
1348 static PyObject *_wrap_wxPyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
1349 PyObject * _resultobj;
1350 bool _result;
1351 wxPyApp * _arg0;
1352 PyObject * _argo0 = 0;
1353 char *_kwnames[] = { "self", NULL };
1354
1355 self = self;
1356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_ProcessIdle",_kwnames,&_argo0))
1357 return NULL;
1358 if (_argo0) {
1359 if (_argo0 == Py_None) { _arg0 = NULL; }
1360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_ProcessIdle. Expected _wxPyApp_p.");
1362 return NULL;
1363 }
1364 }
1365 {
1366 wxPy_BEGIN_ALLOW_THREADS;
1367 _result = (bool )wxPyApp_ProcessIdle(_arg0);
1368
1369 wxPy_END_ALLOW_THREADS;
1370 } _resultobj = Py_BuildValue("i",_result);
1371 return _resultobj;
1372 }
1373
1374 #define wxPyApp_SetAppName(_swigobj,_swigarg0) (_swigobj->SetAppName(_swigarg0))
1375 static PyObject *_wrap_wxPyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
1376 PyObject * _resultobj;
1377 wxPyApp * _arg0;
1378 wxString * _arg1;
1379 PyObject * _argo0 = 0;
1380 PyObject * _obj1 = 0;
1381 char *_kwnames[] = { "self","name", NULL };
1382
1383 self = self;
1384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyApp_SetAppName",_kwnames,&_argo0,&_obj1))
1385 return NULL;
1386 if (_argo0) {
1387 if (_argo0 == Py_None) { _arg0 = NULL; }
1388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetAppName. Expected _wxPyApp_p.");
1390 return NULL;
1391 }
1392 }
1393 {
1394 #if PYTHON_API_VERSION >= 1009
1395 char* tmpPtr; int tmpSize;
1396 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1397 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1398 return NULL;
1399 }
1400 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1401 return NULL;
1402 _arg1 = new wxString(tmpPtr, tmpSize);
1403 #else
1404 if (!PyString_Check(_obj1)) {
1405 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1406 return NULL;
1407 }
1408 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1409 #endif
1410 }
1411 {
1412 wxPy_BEGIN_ALLOW_THREADS;
1413 wxPyApp_SetAppName(_arg0,*_arg1);
1414
1415 wxPy_END_ALLOW_THREADS;
1416 } Py_INCREF(Py_None);
1417 _resultobj = Py_None;
1418 {
1419 if (_obj1)
1420 delete _arg1;
1421 }
1422 return _resultobj;
1423 }
1424
1425 #define wxPyApp_SetClassName(_swigobj,_swigarg0) (_swigobj->SetClassName(_swigarg0))
1426 static PyObject *_wrap_wxPyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
1427 PyObject * _resultobj;
1428 wxPyApp * _arg0;
1429 wxString * _arg1;
1430 PyObject * _argo0 = 0;
1431 PyObject * _obj1 = 0;
1432 char *_kwnames[] = { "self","name", NULL };
1433
1434 self = self;
1435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyApp_SetClassName",_kwnames,&_argo0,&_obj1))
1436 return NULL;
1437 if (_argo0) {
1438 if (_argo0 == Py_None) { _arg0 = NULL; }
1439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetClassName. Expected _wxPyApp_p.");
1441 return NULL;
1442 }
1443 }
1444 {
1445 #if PYTHON_API_VERSION >= 1009
1446 char* tmpPtr; int tmpSize;
1447 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1448 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1449 return NULL;
1450 }
1451 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1452 return NULL;
1453 _arg1 = new wxString(tmpPtr, tmpSize);
1454 #else
1455 if (!PyString_Check(_obj1)) {
1456 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1457 return NULL;
1458 }
1459 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1460 #endif
1461 }
1462 {
1463 wxPy_BEGIN_ALLOW_THREADS;
1464 wxPyApp_SetClassName(_arg0,*_arg1);
1465
1466 wxPy_END_ALLOW_THREADS;
1467 } Py_INCREF(Py_None);
1468 _resultobj = Py_None;
1469 {
1470 if (_obj1)
1471 delete _arg1;
1472 }
1473 return _resultobj;
1474 }
1475
1476 #define wxPyApp_SetExitOnFrameDelete(_swigobj,_swigarg0) (_swigobj->SetExitOnFrameDelete(_swigarg0))
1477 static PyObject *_wrap_wxPyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
1478 PyObject * _resultobj;
1479 wxPyApp * _arg0;
1480 bool _arg1;
1481 PyObject * _argo0 = 0;
1482 int tempbool1;
1483 char *_kwnames[] = { "self","flag", NULL };
1484
1485 self = self;
1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyApp_SetExitOnFrameDelete",_kwnames,&_argo0,&tempbool1))
1487 return NULL;
1488 if (_argo0) {
1489 if (_argo0 == Py_None) { _arg0 = NULL; }
1490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetExitOnFrameDelete. Expected _wxPyApp_p.");
1492 return NULL;
1493 }
1494 }
1495 _arg1 = (bool ) tempbool1;
1496 {
1497 wxPy_BEGIN_ALLOW_THREADS;
1498 wxPyApp_SetExitOnFrameDelete(_arg0,_arg1);
1499
1500 wxPy_END_ALLOW_THREADS;
1501 } Py_INCREF(Py_None);
1502 _resultobj = Py_None;
1503 return _resultobj;
1504 }
1505
1506 #define wxPyApp_SetPrintMode(_swigobj,_swigarg0) (_swigobj->SetPrintMode(_swigarg0))
1507 static PyObject *_wrap_wxPyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1508 PyObject * _resultobj;
1509 wxPyApp * _arg0;
1510 int _arg1;
1511 PyObject * _argo0 = 0;
1512 char *_kwnames[] = { "self","mode", NULL };
1513
1514 self = self;
1515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyApp_SetPrintMode",_kwnames,&_argo0,&_arg1))
1516 return NULL;
1517 if (_argo0) {
1518 if (_argo0 == Py_None) { _arg0 = NULL; }
1519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetPrintMode. Expected _wxPyApp_p.");
1521 return NULL;
1522 }
1523 }
1524 {
1525 wxPy_BEGIN_ALLOW_THREADS;
1526 wxPyApp_SetPrintMode(_arg0,_arg1);
1527
1528 wxPy_END_ALLOW_THREADS;
1529 } Py_INCREF(Py_None);
1530 _resultobj = Py_None;
1531 return _resultobj;
1532 }
1533
1534 #define wxPyApp_SetTopWindow(_swigobj,_swigarg0) (_swigobj->SetTopWindow(_swigarg0))
1535 static PyObject *_wrap_wxPyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1536 PyObject * _resultobj;
1537 wxPyApp * _arg0;
1538 wxWindow * _arg1;
1539 PyObject * _argo0 = 0;
1540 PyObject * _argo1 = 0;
1541 char *_kwnames[] = { "self","window", NULL };
1542
1543 self = self;
1544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyApp_SetTopWindow",_kwnames,&_argo0,&_argo1))
1545 return NULL;
1546 if (_argo0) {
1547 if (_argo0 == Py_None) { _arg0 = NULL; }
1548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetTopWindow. Expected _wxPyApp_p.");
1550 return NULL;
1551 }
1552 }
1553 if (_argo1) {
1554 if (_argo1 == Py_None) { _arg1 = NULL; }
1555 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1556 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyApp_SetTopWindow. Expected _wxWindow_p.");
1557 return NULL;
1558 }
1559 }
1560 {
1561 wxPy_BEGIN_ALLOW_THREADS;
1562 wxPyApp_SetTopWindow(_arg0,_arg1);
1563
1564 wxPy_END_ALLOW_THREADS;
1565 } Py_INCREF(Py_None);
1566 _resultobj = Py_None;
1567 return _resultobj;
1568 }
1569
1570 #define wxPyApp_SetVendorName(_swigobj,_swigarg0) (_swigobj->SetVendorName(_swigarg0))
1571 static PyObject *_wrap_wxPyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject * _resultobj;
1573 wxPyApp * _arg0;
1574 wxString * _arg1;
1575 PyObject * _argo0 = 0;
1576 PyObject * _obj1 = 0;
1577 char *_kwnames[] = { "self","name", NULL };
1578
1579 self = self;
1580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyApp_SetVendorName",_kwnames,&_argo0,&_obj1))
1581 return NULL;
1582 if (_argo0) {
1583 if (_argo0 == Py_None) { _arg0 = NULL; }
1584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetVendorName. Expected _wxPyApp_p.");
1586 return NULL;
1587 }
1588 }
1589 {
1590 #if PYTHON_API_VERSION >= 1009
1591 char* tmpPtr; int tmpSize;
1592 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1593 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1594 return NULL;
1595 }
1596 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1597 return NULL;
1598 _arg1 = new wxString(tmpPtr, tmpSize);
1599 #else
1600 if (!PyString_Check(_obj1)) {
1601 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1602 return NULL;
1603 }
1604 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1605 #endif
1606 }
1607 {
1608 wxPy_BEGIN_ALLOW_THREADS;
1609 wxPyApp_SetVendorName(_arg0,*_arg1);
1610
1611 wxPy_END_ALLOW_THREADS;
1612 } Py_INCREF(Py_None);
1613 _resultobj = Py_None;
1614 {
1615 if (_obj1)
1616 delete _arg1;
1617 }
1618 return _resultobj;
1619 }
1620
1621 #define wxPyApp_SetUseBestVisual(_swigobj,_swigarg0) (_swigobj->SetUseBestVisual(_swigarg0))
1622 static PyObject *_wrap_wxPyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject * _resultobj;
1624 wxPyApp * _arg0;
1625 bool _arg1;
1626 PyObject * _argo0 = 0;
1627 int tempbool1;
1628 char *_kwnames[] = { "self","flag", NULL };
1629
1630 self = self;
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyApp_SetUseBestVisual",_kwnames,&_argo0,&tempbool1))
1632 return NULL;
1633 if (_argo0) {
1634 if (_argo0 == Py_None) { _arg0 = NULL; }
1635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_SetUseBestVisual. Expected _wxPyApp_p.");
1637 return NULL;
1638 }
1639 }
1640 _arg1 = (bool ) tempbool1;
1641 {
1642 wxPy_BEGIN_ALLOW_THREADS;
1643 wxPyApp_SetUseBestVisual(_arg0,_arg1);
1644
1645 wxPy_END_ALLOW_THREADS;
1646 } Py_INCREF(Py_None);
1647 _resultobj = Py_None;
1648 return _resultobj;
1649 }
1650
1651 #define wxPyApp_GetStdIcon(_swigobj,_swigarg0) (_swigobj->GetStdIcon(_swigarg0))
1652 static PyObject *_wrap_wxPyApp_GetStdIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1653 PyObject * _resultobj;
1654 wxIcon * _result;
1655 wxPyApp * _arg0;
1656 int _arg1;
1657 PyObject * _argo0 = 0;
1658 char *_kwnames[] = { "self","which", NULL };
1659 char _ptemp[128];
1660
1661 self = self;
1662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyApp_GetStdIcon",_kwnames,&_argo0,&_arg1))
1663 return NULL;
1664 if (_argo0) {
1665 if (_argo0 == Py_None) { _arg0 = NULL; }
1666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyApp_p")) {
1667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyApp_GetStdIcon. Expected _wxPyApp_p.");
1668 return NULL;
1669 }
1670 }
1671 {
1672 wxPy_BEGIN_ALLOW_THREADS;
1673 _result = new wxIcon (wxPyApp_GetStdIcon(_arg0,_arg1));
1674
1675 wxPy_END_ALLOW_THREADS;
1676 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
1677 _resultobj = Py_BuildValue("s",_ptemp);
1678 return _resultobj;
1679 }
1680
1681 static PyMethodDef wxcMethods[] = {
1682 { "wxPyApp_GetStdIcon", (PyCFunction) _wrap_wxPyApp_GetStdIcon, METH_VARARGS | METH_KEYWORDS },
1683 { "wxPyApp_SetUseBestVisual", (PyCFunction) _wrap_wxPyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
1684 { "wxPyApp_SetVendorName", (PyCFunction) _wrap_wxPyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
1685 { "wxPyApp_SetTopWindow", (PyCFunction) _wrap_wxPyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
1686 { "wxPyApp_SetPrintMode", (PyCFunction) _wrap_wxPyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
1687 { "wxPyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_wxPyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
1688 { "wxPyApp_SetClassName", (PyCFunction) _wrap_wxPyApp_SetClassName, METH_VARARGS | METH_KEYWORDS },
1689 { "wxPyApp_SetAppName", (PyCFunction) _wrap_wxPyApp_SetAppName, METH_VARARGS | METH_KEYWORDS },
1690 { "wxPyApp_ProcessIdle", (PyCFunction) _wrap_wxPyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS },
1691 { "wxPyApp_Pending", (PyCFunction) _wrap_wxPyApp_Pending, METH_VARARGS | METH_KEYWORDS },
1692 { "wxPyApp_MainLoop", (PyCFunction) _wrap_wxPyApp_MainLoop, METH_VARARGS | METH_KEYWORDS },
1693 { "wxPyApp_Initialized", (PyCFunction) _wrap_wxPyApp_Initialized, METH_VARARGS | METH_KEYWORDS },
1694 { "wxPyApp_ExitMainLoop", (PyCFunction) _wrap_wxPyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
1695 { "wxPyApp_Dispatch", (PyCFunction) _wrap_wxPyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
1696 { "wxPyApp_GetUseBestVisual", (PyCFunction) _wrap_wxPyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
1697 { "wxPyApp_GetVendorName", (PyCFunction) _wrap_wxPyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
1698 { "wxPyApp_GetTopWindow", (PyCFunction) _wrap_wxPyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
1699 { "wxPyApp_GetPrintMode", (PyCFunction) _wrap_wxPyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
1700 { "wxPyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_wxPyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
1701 { "wxPyApp_GetClassName", (PyCFunction) _wrap_wxPyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
1702 { "wxPyApp_GetAppName", (PyCFunction) _wrap_wxPyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
1703 { "delete_wxPyApp", (PyCFunction) _wrap_delete_wxPyApp, METH_VARARGS | METH_KEYWORDS },
1704 { "new_wxPyApp", (PyCFunction) _wrap_new_wxPyApp, METH_VARARGS | METH_KEYWORDS },
1705 { "wxApp_CleanUp", (PyCFunction) _wrap_wxApp_CleanUp, METH_VARARGS | METH_KEYWORDS },
1706 { "wxGetApp", (PyCFunction) _wrap_wxGetApp, METH_VARARGS | METH_KEYWORDS },
1707 { "_wxSetDictionary", (PyCFunction) __wxSetDictionary, METH_VARARGS | METH_KEYWORDS },
1708 { "_wxStart", (PyCFunction) __wxStart, METH_VARARGS | METH_KEYWORDS },
1709 { "ptrmap", (PyCFunction) _wrap_ptrmap, METH_VARARGS | METH_KEYWORDS },
1710 { "ptradd", (PyCFunction) _wrap_ptradd, METH_VARARGS | METH_KEYWORDS },
1711 { "ptrfree", (PyCFunction) _wrap_ptrfree, METH_VARARGS | METH_KEYWORDS },
1712 { "ptrcreate", (PyCFunction) _wrap_ptrcreate, METH_VARARGS | METH_KEYWORDS },
1713 { "ptrset", (PyCFunction) _wrap_ptrset, METH_VARARGS | METH_KEYWORDS },
1714 { "ptrvalue", (PyCFunction) _wrap_ptrvalue, METH_VARARGS | METH_KEYWORDS },
1715 { "ptrcast", (PyCFunction) _wrap_ptrcast, METH_VARARGS | METH_KEYWORDS },
1716 { NULL, NULL }
1717 };
1718 #ifdef __cplusplus
1719 }
1720 #endif
1721 /*
1722 * This table is used by the pointer type-checker
1723 */
1724 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1725 { "_signed_long","_long",0},
1726 { "_wxPrintQuality","_wxCoord",0},
1727 { "_wxPrintQuality","_int",0},
1728 { "_wxPrintQuality","_signed_int",0},
1729 { "_wxPrintQuality","_unsigned_int",0},
1730 { "_wxPrintQuality","_wxWindowID",0},
1731 { "_wxPrintQuality","_uint",0},
1732 { "_wxPrintQuality","_EBool",0},
1733 { "_wxPrintQuality","_size_t",0},
1734 { "_wxPrintQuality","_time_t",0},
1735 { "_class_wxEvtHandler","_class_wxPyApp",SwigwxPyAppTowxEvtHandler},
1736 { "_class_wxEvtHandler","_wxPyApp",SwigwxPyAppTowxEvtHandler},
1737 { "_byte","_unsigned_char",0},
1738 { "_long","_unsigned_long",0},
1739 { "_long","_signed_long",0},
1740 { "_class_wxObject","_class_wxPyApp",SwigwxPyAppTowxObject},
1741 { "_class_wxObject","_wxPyApp",SwigwxPyAppTowxObject},
1742 { "_size_t","_wxCoord",0},
1743 { "_size_t","_wxPrintQuality",0},
1744 { "_size_t","_time_t",0},
1745 { "_size_t","_unsigned_int",0},
1746 { "_size_t","_int",0},
1747 { "_size_t","_wxWindowID",0},
1748 { "_size_t","_uint",0},
1749 { "_uint","_wxCoord",0},
1750 { "_uint","_wxPrintQuality",0},
1751 { "_uint","_time_t",0},
1752 { "_uint","_size_t",0},
1753 { "_uint","_unsigned_int",0},
1754 { "_uint","_int",0},
1755 { "_uint","_wxWindowID",0},
1756 { "_wxChar","_char",0},
1757 { "_char","_wxChar",0},
1758 { "_EBool","_wxCoord",0},
1759 { "_EBool","_wxPrintQuality",0},
1760 { "_EBool","_signed_int",0},
1761 { "_EBool","_int",0},
1762 { "_EBool","_wxWindowID",0},
1763 { "_unsigned_long","_long",0},
1764 { "_signed_int","_wxCoord",0},
1765 { "_signed_int","_wxPrintQuality",0},
1766 { "_signed_int","_EBool",0},
1767 { "_signed_int","_wxWindowID",0},
1768 { "_signed_int","_int",0},
1769 { "_WXTYPE","_wxDateTime_t",0},
1770 { "_WXTYPE","_short",0},
1771 { "_WXTYPE","_signed_short",0},
1772 { "_WXTYPE","_unsigned_short",0},
1773 { "_unsigned_short","_wxDateTime_t",0},
1774 { "_unsigned_short","_WXTYPE",0},
1775 { "_unsigned_short","_short",0},
1776 { "_wxObject","_class_wxPyApp",SwigwxPyAppTowxObject},
1777 { "_wxObject","_wxPyApp",SwigwxPyAppTowxObject},
1778 { "_signed_short","_WXTYPE",0},
1779 { "_signed_short","_short",0},
1780 { "_unsigned_char","_byte",0},
1781 { "_unsigned_int","_wxCoord",0},
1782 { "_unsigned_int","_wxPrintQuality",0},
1783 { "_unsigned_int","_time_t",0},
1784 { "_unsigned_int","_size_t",0},
1785 { "_unsigned_int","_uint",0},
1786 { "_unsigned_int","_wxWindowID",0},
1787 { "_unsigned_int","_int",0},
1788 { "_short","_wxDateTime_t",0},
1789 { "_short","_WXTYPE",0},
1790 { "_short","_unsigned_short",0},
1791 { "_short","_signed_short",0},
1792 { "_wxWindowID","_wxCoord",0},
1793 { "_wxWindowID","_wxPrintQuality",0},
1794 { "_wxWindowID","_time_t",0},
1795 { "_wxWindowID","_size_t",0},
1796 { "_wxWindowID","_EBool",0},
1797 { "_wxWindowID","_uint",0},
1798 { "_wxWindowID","_int",0},
1799 { "_wxWindowID","_signed_int",0},
1800 { "_wxWindowID","_unsigned_int",0},
1801 { "_int","_wxCoord",0},
1802 { "_int","_wxPrintQuality",0},
1803 { "_int","_time_t",0},
1804 { "_int","_size_t",0},
1805 { "_int","_EBool",0},
1806 { "_int","_uint",0},
1807 { "_int","_wxWindowID",0},
1808 { "_int","_unsigned_int",0},
1809 { "_int","_signed_int",0},
1810 { "_wxDateTime_t","_unsigned_short",0},
1811 { "_wxDateTime_t","_short",0},
1812 { "_wxDateTime_t","_WXTYPE",0},
1813 { "_time_t","_wxCoord",0},
1814 { "_time_t","_wxPrintQuality",0},
1815 { "_time_t","_unsigned_int",0},
1816 { "_time_t","_int",0},
1817 { "_time_t","_wxWindowID",0},
1818 { "_time_t","_uint",0},
1819 { "_time_t","_size_t",0},
1820 { "_wxCoord","_int",0},
1821 { "_wxCoord","_signed_int",0},
1822 { "_wxCoord","_unsigned_int",0},
1823 { "_wxCoord","_wxWindowID",0},
1824 { "_wxCoord","_uint",0},
1825 { "_wxCoord","_EBool",0},
1826 { "_wxCoord","_size_t",0},
1827 { "_wxCoord","_time_t",0},
1828 { "_wxCoord","_wxPrintQuality",0},
1829 { "_wxEvtHandler","_class_wxPyApp",SwigwxPyAppTowxEvtHandler},
1830 { "_wxEvtHandler","_wxPyApp",SwigwxPyAppTowxEvtHandler},
1831 {0,0,0}};
1832
1833 static PyObject *SWIG_globals;
1834 #ifdef __cplusplus
1835 extern "C"
1836 #endif
1837 SWIGEXPORT(void) initwxc() {
1838 PyObject *m, *d;
1839 SWIG_globals = SWIG_newvarlink();
1840 m = Py_InitModule("wxc", wxcMethods);
1841 d = PyModule_GetDict(m);
1842 PyDict_SetItemString(d,"wxMAJOR_VERSION", PyInt_FromLong((long) wxMAJOR_VERSION));
1843 PyDict_SetItemString(d,"wxMINOR_VERSION", PyInt_FromLong((long) wxMINOR_VERSION));
1844 PyDict_SetItemString(d,"wxRELEASE_NUMBER", PyInt_FromLong((long) wxRELEASE_NUMBER));
1845 PyDict_SetItemString(d,"wxNOT_FOUND", PyInt_FromLong((long) wxNOT_FOUND));
1846 PyDict_SetItemString(d,"wxVSCROLL", PyInt_FromLong((long) wxVSCROLL));
1847 PyDict_SetItemString(d,"wxHSCROLL", PyInt_FromLong((long) wxHSCROLL));
1848 PyDict_SetItemString(d,"wxCAPTION", PyInt_FromLong((long) wxCAPTION));
1849 PyDict_SetItemString(d,"wxDOUBLE_BORDER", PyInt_FromLong((long) wxDOUBLE_BORDER));
1850 PyDict_SetItemString(d,"wxSUNKEN_BORDER", PyInt_FromLong((long) wxSUNKEN_BORDER));
1851 PyDict_SetItemString(d,"wxRAISED_BORDER", PyInt_FromLong((long) wxRAISED_BORDER));
1852 PyDict_SetItemString(d,"wxBORDER", PyInt_FromLong((long) wxBORDER));
1853 PyDict_SetItemString(d,"wxSIMPLE_BORDER", PyInt_FromLong((long) wxSIMPLE_BORDER));
1854 PyDict_SetItemString(d,"wxSTATIC_BORDER", PyInt_FromLong((long) wxSTATIC_BORDER));
1855 PyDict_SetItemString(d,"wxTRANSPARENT_WINDOW", PyInt_FromLong((long) wxTRANSPARENT_WINDOW));
1856 PyDict_SetItemString(d,"wxNO_BORDER", PyInt_FromLong((long) wxNO_BORDER));
1857 PyDict_SetItemString(d,"wxUSER_COLOURS", PyInt_FromLong((long) wxUSER_COLOURS));
1858 PyDict_SetItemString(d,"wxNO_3D", PyInt_FromLong((long) wxNO_3D));
1859 PyDict_SetItemString(d,"wxTAB_TRAVERSAL", PyInt_FromLong((long) wxTAB_TRAVERSAL));
1860 PyDict_SetItemString(d,"wxWANTS_CHARS", PyInt_FromLong((long) wxWANTS_CHARS));
1861 PyDict_SetItemString(d,"wxHORIZONTAL", PyInt_FromLong((long) wxHORIZONTAL));
1862 PyDict_SetItemString(d,"wxVERTICAL", PyInt_FromLong((long) wxVERTICAL));
1863 PyDict_SetItemString(d,"wxBOTH", PyInt_FromLong((long) wxBOTH));
1864 PyDict_SetItemString(d,"wxCENTER_FRAME", PyInt_FromLong((long) wxCENTER_FRAME));
1865 PyDict_SetItemString(d,"wxCENTRE_ON_SCREEN", PyInt_FromLong((long) wxCENTRE_ON_SCREEN));
1866 PyDict_SetItemString(d,"wxCENTER_ON_SCREEN", PyInt_FromLong((long) wxCENTER_ON_SCREEN));
1867 PyDict_SetItemString(d,"wxSTAY_ON_TOP", PyInt_FromLong((long) wxSTAY_ON_TOP));
1868 PyDict_SetItemString(d,"wxICONIZE", PyInt_FromLong((long) wxICONIZE));
1869 PyDict_SetItemString(d,"wxMINIMIZE", PyInt_FromLong((long) wxMINIMIZE));
1870 PyDict_SetItemString(d,"wxMAXIMIZE", PyInt_FromLong((long) wxMAXIMIZE));
1871 PyDict_SetItemString(d,"wxTHICK_FRAME", PyInt_FromLong((long) wxTHICK_FRAME));
1872 PyDict_SetItemString(d,"wxSYSTEM_MENU", PyInt_FromLong((long) wxSYSTEM_MENU));
1873 PyDict_SetItemString(d,"wxMINIMIZE_BOX", PyInt_FromLong((long) wxMINIMIZE_BOX));
1874 PyDict_SetItemString(d,"wxMAXIMIZE_BOX", PyInt_FromLong((long) wxMAXIMIZE_BOX));
1875 PyDict_SetItemString(d,"wxTINY_CAPTION_HORIZ", PyInt_FromLong((long) wxTINY_CAPTION_HORIZ));
1876 PyDict_SetItemString(d,"wxTINY_CAPTION_VERT", PyInt_FromLong((long) wxTINY_CAPTION_VERT));
1877 PyDict_SetItemString(d,"wxRESIZE_BOX", PyInt_FromLong((long) wxRESIZE_BOX));
1878 PyDict_SetItemString(d,"wxRESIZE_BORDER", PyInt_FromLong((long) wxRESIZE_BORDER));
1879 PyDict_SetItemString(d,"wxDIALOG_MODAL", PyInt_FromLong((long) wxDIALOG_MODAL));
1880 PyDict_SetItemString(d,"wxDIALOG_MODELESS", PyInt_FromLong((long) wxDIALOG_MODELESS));
1881 PyDict_SetItemString(d,"wxDIALOG_NO_PARENT", PyInt_FromLong((long) wxDIALOG_NO_PARENT));
1882 PyDict_SetItemString(d,"wxDEFAULT_FRAME_STYLE", PyInt_FromLong((long) wxDEFAULT_FRAME_STYLE));
1883 PyDict_SetItemString(d,"wxDEFAULT_DIALOG_STYLE", PyInt_FromLong((long) wxDEFAULT_DIALOG_STYLE));
1884 PyDict_SetItemString(d,"wxFRAME_TOOL_WINDOW", PyInt_FromLong((long) wxFRAME_TOOL_WINDOW));
1885 PyDict_SetItemString(d,"wxFRAME_FLOAT_ON_PARENT", PyInt_FromLong((long) wxFRAME_FLOAT_ON_PARENT));
1886 PyDict_SetItemString(d,"wxFRAME_NO_WINDOW_MENU", PyInt_FromLong((long) wxFRAME_NO_WINDOW_MENU));
1887 PyDict_SetItemString(d,"wxFRAME_NO_TASKBAR", PyInt_FromLong((long) wxFRAME_NO_TASKBAR));
1888 PyDict_SetItemString(d,"wxFRAME_EX_CONTEXTHELP", PyInt_FromLong((long) wxFRAME_EX_CONTEXTHELP));
1889 PyDict_SetItemString(d,"wxED_CLIENT_MARGIN", PyInt_FromLong((long) wxED_CLIENT_MARGIN));
1890 PyDict_SetItemString(d,"wxED_BUTTONS_BOTTOM", PyInt_FromLong((long) wxED_BUTTONS_BOTTOM));
1891 PyDict_SetItemString(d,"wxED_BUTTONS_RIGHT", PyInt_FromLong((long) wxED_BUTTONS_RIGHT));
1892 PyDict_SetItemString(d,"wxED_STATIC_LINE", PyInt_FromLong((long) wxED_STATIC_LINE));
1893 PyDict_SetItemString(d,"wxEXT_DIALOG_STYLE", PyInt_FromLong((long) wxEXT_DIALOG_STYLE));
1894 PyDict_SetItemString(d,"wxCLIP_CHILDREN", PyInt_FromLong((long) wxCLIP_CHILDREN));
1895 PyDict_SetItemString(d,"wxCLIP_SIBLINGS", PyInt_FromLong((long) wxCLIP_SIBLINGS));
1896 PyDict_SetItemString(d,"wxRETAINED", PyInt_FromLong((long) wxRETAINED));
1897 PyDict_SetItemString(d,"wxBACKINGSTORE", PyInt_FromLong((long) wxBACKINGSTORE));
1898 PyDict_SetItemString(d,"wxTB_3DBUTTONS", PyInt_FromLong((long) wxTB_3DBUTTONS));
1899 PyDict_SetItemString(d,"wxTB_HORIZONTAL", PyInt_FromLong((long) wxTB_HORIZONTAL));
1900 PyDict_SetItemString(d,"wxTB_VERTICAL", PyInt_FromLong((long) wxTB_VERTICAL));
1901 PyDict_SetItemString(d,"wxTB_FLAT", PyInt_FromLong((long) wxTB_FLAT));
1902 PyDict_SetItemString(d,"wxTB_DOCKABLE", PyInt_FromLong((long) wxTB_DOCKABLE));
1903 PyDict_SetItemString(d,"wxCOLOURED", PyInt_FromLong((long) wxCOLOURED));
1904 PyDict_SetItemString(d,"wxFIXED_LENGTH", PyInt_FromLong((long) wxFIXED_LENGTH));
1905 PyDict_SetItemString(d,"wxALIGN_LEFT", PyInt_FromLong((long) wxALIGN_LEFT));
1906 PyDict_SetItemString(d,"wxALIGN_CENTER_HORIZONTAL", PyInt_FromLong((long) wxALIGN_CENTER_HORIZONTAL));
1907 PyDict_SetItemString(d,"wxALIGN_CENTRE_HORIZONTAL", PyInt_FromLong((long) wxALIGN_CENTRE_HORIZONTAL));
1908 PyDict_SetItemString(d,"wxALIGN_RIGHT", PyInt_FromLong((long) wxALIGN_RIGHT));
1909 PyDict_SetItemString(d,"wxALIGN_BOTTOM", PyInt_FromLong((long) wxALIGN_BOTTOM));
1910 PyDict_SetItemString(d,"wxALIGN_CENTER_VERTICAL", PyInt_FromLong((long) wxALIGN_CENTER_VERTICAL));
1911 PyDict_SetItemString(d,"wxALIGN_CENTRE_VERTICAL", PyInt_FromLong((long) wxALIGN_CENTRE_VERTICAL));
1912 PyDict_SetItemString(d,"wxALIGN_TOP", PyInt_FromLong((long) wxALIGN_TOP));
1913 PyDict_SetItemString(d,"wxALIGN_CENTER", PyInt_FromLong((long) wxALIGN_CENTER));
1914 PyDict_SetItemString(d,"wxALIGN_CENTRE", PyInt_FromLong((long) wxALIGN_CENTRE));
1915 PyDict_SetItemString(d,"wxSHAPED", PyInt_FromLong((long) wxSHAPED));
1916 PyDict_SetItemString(d,"wxADJUST_MINSIZE", PyInt_FromLong((long) wxADJUST_MINSIZE));
1917 PyDict_SetItemString(d,"wxLB_NEEDED_SB", PyInt_FromLong((long) wxLB_NEEDED_SB));
1918 PyDict_SetItemString(d,"wxLB_ALWAYS_SB", PyInt_FromLong((long) wxLB_ALWAYS_SB));
1919 PyDict_SetItemString(d,"wxLB_SORT", PyInt_FromLong((long) wxLB_SORT));
1920 PyDict_SetItemString(d,"wxLB_SINGLE", PyInt_FromLong((long) wxLB_SINGLE));
1921 PyDict_SetItemString(d,"wxLB_MULTIPLE", PyInt_FromLong((long) wxLB_MULTIPLE));
1922 PyDict_SetItemString(d,"wxLB_EXTENDED", PyInt_FromLong((long) wxLB_EXTENDED));
1923 PyDict_SetItemString(d,"wxLB_OWNERDRAW", PyInt_FromLong((long) wxLB_OWNERDRAW));
1924 PyDict_SetItemString(d,"wxLB_HSCROLL", PyInt_FromLong((long) wxLB_HSCROLL));
1925 PyDict_SetItemString(d,"wxPROCESS_ENTER", PyInt_FromLong((long) wxPROCESS_ENTER));
1926 PyDict_SetItemString(d,"wxPASSWORD", PyInt_FromLong((long) wxPASSWORD));
1927 PyDict_SetItemString(d,"wxTE_PROCESS_ENTER", PyInt_FromLong((long) wxTE_PROCESS_ENTER));
1928 PyDict_SetItemString(d,"wxTE_PROCESS_TAB", PyInt_FromLong((long) wxTE_PROCESS_TAB));
1929 PyDict_SetItemString(d,"wxTE_PASSWORD", PyInt_FromLong((long) wxTE_PASSWORD));
1930 PyDict_SetItemString(d,"wxTE_READONLY", PyInt_FromLong((long) wxTE_READONLY));
1931 PyDict_SetItemString(d,"wxTE_RICH", PyInt_FromLong((long) wxTE_RICH));
1932 PyDict_SetItemString(d,"wxTE_MULTILINE", PyInt_FromLong((long) wxTE_MULTILINE));
1933 PyDict_SetItemString(d,"wxTE_AUTO_SCROLL", PyInt_FromLong((long) wxTE_AUTO_SCROLL));
1934 PyDict_SetItemString(d,"wxTE_NO_VSCROLL", PyInt_FromLong((long) wxTE_NO_VSCROLL));
1935 PyDict_SetItemString(d,"wxCB_SIMPLE", PyInt_FromLong((long) wxCB_SIMPLE));
1936 PyDict_SetItemString(d,"wxCB_DROPDOWN", PyInt_FromLong((long) wxCB_DROPDOWN));
1937 PyDict_SetItemString(d,"wxCB_SORT", PyInt_FromLong((long) wxCB_SORT));
1938 PyDict_SetItemString(d,"wxCB_READONLY", PyInt_FromLong((long) wxCB_READONLY));
1939 PyDict_SetItemString(d,"wxRA_HORIZONTAL", PyInt_FromLong((long) wxRA_HORIZONTAL));
1940 PyDict_SetItemString(d,"wxRA_VERTICAL", PyInt_FromLong((long) wxRA_VERTICAL));
1941 PyDict_SetItemString(d,"wxRA_SPECIFY_ROWS", PyInt_FromLong((long) wxRA_SPECIFY_ROWS));
1942 PyDict_SetItemString(d,"wxRA_SPECIFY_COLS", PyInt_FromLong((long) wxRA_SPECIFY_COLS));
1943 PyDict_SetItemString(d,"wxRB_GROUP", PyInt_FromLong((long) wxRB_GROUP));
1944 PyDict_SetItemString(d,"wxGA_PROGRESSBAR", PyInt_FromLong((long) wxGA_PROGRESSBAR));
1945 PyDict_SetItemString(d,"wxGA_HORIZONTAL", PyInt_FromLong((long) wxGA_HORIZONTAL));
1946 PyDict_SetItemString(d,"wxGA_VERTICAL", PyInt_FromLong((long) wxGA_VERTICAL));
1947 PyDict_SetItemString(d,"wxGA_SMOOTH", PyInt_FromLong((long) wxGA_SMOOTH));
1948 PyDict_SetItemString(d,"wxSL_HORIZONTAL", PyInt_FromLong((long) wxSL_HORIZONTAL));
1949 PyDict_SetItemString(d,"wxSL_VERTICAL", PyInt_FromLong((long) wxSL_VERTICAL));
1950 PyDict_SetItemString(d,"wxSL_AUTOTICKS", PyInt_FromLong((long) wxSL_AUTOTICKS));
1951 PyDict_SetItemString(d,"wxSL_LABELS", PyInt_FromLong((long) wxSL_LABELS));
1952 PyDict_SetItemString(d,"wxSL_LEFT", PyInt_FromLong((long) wxSL_LEFT));
1953 PyDict_SetItemString(d,"wxSL_TOP", PyInt_FromLong((long) wxSL_TOP));
1954 PyDict_SetItemString(d,"wxSL_RIGHT", PyInt_FromLong((long) wxSL_RIGHT));
1955 PyDict_SetItemString(d,"wxSL_BOTTOM", PyInt_FromLong((long) wxSL_BOTTOM));
1956 PyDict_SetItemString(d,"wxSL_BOTH", PyInt_FromLong((long) wxSL_BOTH));
1957 PyDict_SetItemString(d,"wxSL_SELRANGE", PyInt_FromLong((long) wxSL_SELRANGE));
1958 PyDict_SetItemString(d,"wxSB_HORIZONTAL", PyInt_FromLong((long) wxSB_HORIZONTAL));
1959 PyDict_SetItemString(d,"wxSB_VERTICAL", PyInt_FromLong((long) wxSB_VERTICAL));
1960 PyDict_SetItemString(d,"wxST_SIZEGRIP", PyInt_FromLong((long) wxST_SIZEGRIP));
1961 PyDict_SetItemString(d,"wxST_NO_AUTORESIZE", PyInt_FromLong((long) wxST_NO_AUTORESIZE));
1962 PyDict_SetItemString(d,"wxBU_AUTODRAW", PyInt_FromLong((long) wxBU_AUTODRAW));
1963 PyDict_SetItemString(d,"wxBU_NOAUTODRAW", PyInt_FromLong((long) wxBU_NOAUTODRAW));
1964 PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS));
1965 PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS));
1966 PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT));
1967 PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE));
1968 PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE));
1969 PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT));
1970 PyDict_SetItemString(d,"wxSP_VERTICAL", PyInt_FromLong((long) wxSP_VERTICAL));
1971 PyDict_SetItemString(d,"wxSP_HORIZONTAL", PyInt_FromLong((long) wxSP_HORIZONTAL));
1972 PyDict_SetItemString(d,"wxSP_ARROW_KEYS", PyInt_FromLong((long) wxSP_ARROW_KEYS));
1973 PyDict_SetItemString(d,"wxSP_WRAP", PyInt_FromLong((long) wxSP_WRAP));
1974 PyDict_SetItemString(d,"wxSP_NOBORDER", PyInt_FromLong((long) wxSP_NOBORDER));
1975 PyDict_SetItemString(d,"wxSP_3D", PyInt_FromLong((long) wxSP_3D));
1976 PyDict_SetItemString(d,"wxSP_3DSASH", PyInt_FromLong((long) wxSP_3DSASH));
1977 PyDict_SetItemString(d,"wxSP_3DBORDER", PyInt_FromLong((long) wxSP_3DBORDER));
1978 PyDict_SetItemString(d,"wxSP_FULLSASH", PyInt_FromLong((long) wxSP_FULLSASH));
1979 PyDict_SetItemString(d,"wxSP_BORDER", PyInt_FromLong((long) wxSP_BORDER));
1980 PyDict_SetItemString(d,"wxSP_LIVE_UPDATE", PyInt_FromLong((long) wxSP_LIVE_UPDATE));
1981 PyDict_SetItemString(d,"wxSP_PERMIT_UNSPLIT", PyInt_FromLong((long) wxSP_PERMIT_UNSPLIT));
1982 PyDict_SetItemString(d,"wxFLOOD_SURFACE", PyInt_FromLong((long) wxFLOOD_SURFACE));
1983 PyDict_SetItemString(d,"wxFLOOD_BORDER", PyInt_FromLong((long) wxFLOOD_BORDER));
1984 PyDict_SetItemString(d,"wxODDEVEN_RULE", PyInt_FromLong((long) wxODDEVEN_RULE));
1985 PyDict_SetItemString(d,"wxWINDING_RULE", PyInt_FromLong((long) wxWINDING_RULE));
1986 PyDict_SetItemString(d,"wxTOOL_TOP", PyInt_FromLong((long) wxTOOL_TOP));
1987 PyDict_SetItemString(d,"wxTOOL_BOTTOM", PyInt_FromLong((long) wxTOOL_BOTTOM));
1988 PyDict_SetItemString(d,"wxTOOL_LEFT", PyInt_FromLong((long) wxTOOL_LEFT));
1989 PyDict_SetItemString(d,"wxTOOL_RIGHT", PyInt_FromLong((long) wxTOOL_RIGHT));
1990 PyDict_SetItemString(d,"wxOK", PyInt_FromLong((long) wxOK));
1991 PyDict_SetItemString(d,"wxYES_NO", PyInt_FromLong((long) wxYES_NO));
1992 PyDict_SetItemString(d,"wxCANCEL", PyInt_FromLong((long) wxCANCEL));
1993 PyDict_SetItemString(d,"wxYES", PyInt_FromLong((long) wxYES));
1994 PyDict_SetItemString(d,"wxNO", PyInt_FromLong((long) wxNO));
1995 PyDict_SetItemString(d,"wxNO_DEFAULT", PyInt_FromLong((long) wxNO_DEFAULT));
1996 PyDict_SetItemString(d,"wxYES_DEFAULT", PyInt_FromLong((long) wxYES_DEFAULT));
1997 PyDict_SetItemString(d,"wxICON_EXCLAMATION", PyInt_FromLong((long) wxICON_EXCLAMATION));
1998 PyDict_SetItemString(d,"wxICON_HAND", PyInt_FromLong((long) wxICON_HAND));
1999 PyDict_SetItemString(d,"wxICON_QUESTION", PyInt_FromLong((long) wxICON_QUESTION));
2000 PyDict_SetItemString(d,"wxICON_INFORMATION", PyInt_FromLong((long) wxICON_INFORMATION));
2001 PyDict_SetItemString(d,"wxICON_STOP", PyInt_FromLong((long) wxICON_STOP));
2002 PyDict_SetItemString(d,"wxICON_ASTERISK", PyInt_FromLong((long) wxICON_ASTERISK));
2003 PyDict_SetItemString(d,"wxICON_MASK", PyInt_FromLong((long) wxICON_MASK));
2004 PyDict_SetItemString(d,"wxICON_WARNING", PyInt_FromLong((long) wxICON_WARNING));
2005 PyDict_SetItemString(d,"wxICON_ERROR", PyInt_FromLong((long) wxICON_ERROR));
2006 PyDict_SetItemString(d,"wxFORWARD", PyInt_FromLong((long) wxFORWARD));
2007 PyDict_SetItemString(d,"wxBACKWARD", PyInt_FromLong((long) wxBACKWARD));
2008 PyDict_SetItemString(d,"wxRESET", PyInt_FromLong((long) wxRESET));
2009 PyDict_SetItemString(d,"wxHELP", PyInt_FromLong((long) wxHELP));
2010 PyDict_SetItemString(d,"wxMORE", PyInt_FromLong((long) wxMORE));
2011 PyDict_SetItemString(d,"wxSETUP", PyInt_FromLong((long) wxSETUP));
2012 PyDict_SetItemString(d,"wxCENTRE", PyInt_FromLong((long) wxCENTRE));
2013 PyDict_SetItemString(d,"wxCENTER", PyInt_FromLong((long) wxCENTER));
2014 PyDict_SetItemString(d,"wxSIZE_AUTO_WIDTH", PyInt_FromLong((long) wxSIZE_AUTO_WIDTH));
2015 PyDict_SetItemString(d,"wxSIZE_AUTO_HEIGHT", PyInt_FromLong((long) wxSIZE_AUTO_HEIGHT));
2016 PyDict_SetItemString(d,"wxSIZE_AUTO", PyInt_FromLong((long) wxSIZE_AUTO));
2017 PyDict_SetItemString(d,"wxSIZE_USE_EXISTING", PyInt_FromLong((long) wxSIZE_USE_EXISTING));
2018 PyDict_SetItemString(d,"wxSIZE_ALLOW_MINUS_ONE", PyInt_FromLong((long) wxSIZE_ALLOW_MINUS_ONE));
2019 PyDict_SetItemString(d,"wxPORTRAIT", PyInt_FromLong((long) wxPORTRAIT));
2020 PyDict_SetItemString(d,"wxLANDSCAPE", PyInt_FromLong((long) wxLANDSCAPE));
2021 PyDict_SetItemString(d,"wxPRINT_QUALITY_HIGH", PyInt_FromLong((long) wxPRINT_QUALITY_HIGH));
2022 PyDict_SetItemString(d,"wxPRINT_QUALITY_MEDIUM", PyInt_FromLong((long) wxPRINT_QUALITY_MEDIUM));
2023 PyDict_SetItemString(d,"wxPRINT_QUALITY_LOW", PyInt_FromLong((long) wxPRINT_QUALITY_LOW));
2024 PyDict_SetItemString(d,"wxPRINT_QUALITY_DRAFT", PyInt_FromLong((long) wxPRINT_QUALITY_DRAFT));
2025 PyDict_SetItemString(d,"wxID_OPEN", PyInt_FromLong((long) wxID_OPEN));
2026 PyDict_SetItemString(d,"wxID_CLOSE", PyInt_FromLong((long) wxID_CLOSE));
2027 PyDict_SetItemString(d,"wxID_NEW", PyInt_FromLong((long) wxID_NEW));
2028 PyDict_SetItemString(d,"wxID_SAVE", PyInt_FromLong((long) wxID_SAVE));
2029 PyDict_SetItemString(d,"wxID_SAVEAS", PyInt_FromLong((long) wxID_SAVEAS));
2030 PyDict_SetItemString(d,"wxID_REVERT", PyInt_FromLong((long) wxID_REVERT));
2031 PyDict_SetItemString(d,"wxID_EXIT", PyInt_FromLong((long) wxID_EXIT));
2032 PyDict_SetItemString(d,"wxID_UNDO", PyInt_FromLong((long) wxID_UNDO));
2033 PyDict_SetItemString(d,"wxID_REDO", PyInt_FromLong((long) wxID_REDO));
2034 PyDict_SetItemString(d,"wxID_HELP", PyInt_FromLong((long) wxID_HELP));
2035 PyDict_SetItemString(d,"wxID_PRINT", PyInt_FromLong((long) wxID_PRINT));
2036 PyDict_SetItemString(d,"wxID_PRINT_SETUP", PyInt_FromLong((long) wxID_PRINT_SETUP));
2037 PyDict_SetItemString(d,"wxID_PREVIEW", PyInt_FromLong((long) wxID_PREVIEW));
2038 PyDict_SetItemString(d,"wxID_ABOUT", PyInt_FromLong((long) wxID_ABOUT));
2039 PyDict_SetItemString(d,"wxID_HELP_CONTENTS", PyInt_FromLong((long) wxID_HELP_CONTENTS));
2040 PyDict_SetItemString(d,"wxID_HELP_COMMANDS", PyInt_FromLong((long) wxID_HELP_COMMANDS));
2041 PyDict_SetItemString(d,"wxID_HELP_PROCEDURES", PyInt_FromLong((long) wxID_HELP_PROCEDURES));
2042 PyDict_SetItemString(d,"wxID_HELP_CONTEXT", PyInt_FromLong((long) wxID_HELP_CONTEXT));
2043 PyDict_SetItemString(d,"wxID_CUT", PyInt_FromLong((long) wxID_CUT));
2044 PyDict_SetItemString(d,"wxID_COPY", PyInt_FromLong((long) wxID_COPY));
2045 PyDict_SetItemString(d,"wxID_PASTE", PyInt_FromLong((long) wxID_PASTE));
2046 PyDict_SetItemString(d,"wxID_CLEAR", PyInt_FromLong((long) wxID_CLEAR));
2047 PyDict_SetItemString(d,"wxID_FIND", PyInt_FromLong((long) wxID_FIND));
2048 PyDict_SetItemString(d,"wxID_DUPLICATE", PyInt_FromLong((long) wxID_DUPLICATE));
2049 PyDict_SetItemString(d,"wxID_SELECTALL", PyInt_FromLong((long) wxID_SELECTALL));
2050 PyDict_SetItemString(d,"wxID_FILE1", PyInt_FromLong((long) wxID_FILE1));
2051 PyDict_SetItemString(d,"wxID_FILE2", PyInt_FromLong((long) wxID_FILE2));
2052 PyDict_SetItemString(d,"wxID_FILE3", PyInt_FromLong((long) wxID_FILE3));
2053 PyDict_SetItemString(d,"wxID_FILE4", PyInt_FromLong((long) wxID_FILE4));
2054 PyDict_SetItemString(d,"wxID_FILE5", PyInt_FromLong((long) wxID_FILE5));
2055 PyDict_SetItemString(d,"wxID_FILE6", PyInt_FromLong((long) wxID_FILE6));
2056 PyDict_SetItemString(d,"wxID_FILE7", PyInt_FromLong((long) wxID_FILE7));
2057 PyDict_SetItemString(d,"wxID_FILE8", PyInt_FromLong((long) wxID_FILE8));
2058 PyDict_SetItemString(d,"wxID_FILE9", PyInt_FromLong((long) wxID_FILE9));
2059 PyDict_SetItemString(d,"wxID_OK", PyInt_FromLong((long) wxID_OK));
2060 PyDict_SetItemString(d,"wxID_CANCEL", PyInt_FromLong((long) wxID_CANCEL));
2061 PyDict_SetItemString(d,"wxID_APPLY", PyInt_FromLong((long) wxID_APPLY));
2062 PyDict_SetItemString(d,"wxID_YES", PyInt_FromLong((long) wxID_YES));
2063 PyDict_SetItemString(d,"wxID_NO", PyInt_FromLong((long) wxID_NO));
2064 PyDict_SetItemString(d,"wxID_STATIC", PyInt_FromLong((long) wxID_STATIC));
2065 PyDict_SetItemString(d,"wxID_SEPARATOR", PyInt_FromLong((long) wxID_SEPARATOR));
2066 PyDict_SetItemString(d,"wxID_FORWARD", PyInt_FromLong((long) wxID_FORWARD));
2067 PyDict_SetItemString(d,"wxID_BACKWARD", PyInt_FromLong((long) wxID_BACKWARD));
2068 PyDict_SetItemString(d,"wxID_SETUP", PyInt_FromLong((long) wxID_SETUP));
2069 PyDict_SetItemString(d,"wxID_MORE", PyInt_FromLong((long) wxID_MORE));
2070 PyDict_SetItemString(d,"wxOPEN", PyInt_FromLong((long) wxOPEN));
2071 PyDict_SetItemString(d,"wxSAVE", PyInt_FromLong((long) wxSAVE));
2072 PyDict_SetItemString(d,"wxHIDE_READONLY", PyInt_FromLong((long) wxHIDE_READONLY));
2073 PyDict_SetItemString(d,"wxOVERWRITE_PROMPT", PyInt_FromLong((long) wxOVERWRITE_PROMPT));
2074 PyDict_SetItemString(d,"wxFILE_MUST_EXIST", PyInt_FromLong((long) wxFILE_MUST_EXIST));
2075 PyDict_SetItemString(d,"wxMULTIPLE", PyInt_FromLong((long) wxMULTIPLE));
2076 PyDict_SetItemString(d,"wxCHANGE_DIR", PyInt_FromLong((long) wxCHANGE_DIR));
2077 PyDict_SetItemString(d,"wxACCEL_ALT", PyInt_FromLong((long) wxACCEL_ALT));
2078 PyDict_SetItemString(d,"wxACCEL_CTRL", PyInt_FromLong((long) wxACCEL_CTRL));
2079 PyDict_SetItemString(d,"wxACCEL_SHIFT", PyInt_FromLong((long) wxACCEL_SHIFT));
2080 PyDict_SetItemString(d,"wxACCEL_NORMAL", PyInt_FromLong((long) wxACCEL_NORMAL));
2081 PyDict_SetItemString(d,"wxPD_AUTO_HIDE", PyInt_FromLong((long) wxPD_AUTO_HIDE));
2082 PyDict_SetItemString(d,"wxPD_APP_MODAL", PyInt_FromLong((long) wxPD_APP_MODAL));
2083 PyDict_SetItemString(d,"wxPD_CAN_ABORT", PyInt_FromLong((long) wxPD_CAN_ABORT));
2084 PyDict_SetItemString(d,"wxPD_ELAPSED_TIME", PyInt_FromLong((long) wxPD_ELAPSED_TIME));
2085 PyDict_SetItemString(d,"wxPD_ESTIMATED_TIME", PyInt_FromLong((long) wxPD_ESTIMATED_TIME));
2086 PyDict_SetItemString(d,"wxPD_REMAINING_TIME", PyInt_FromLong((long) wxPD_REMAINING_TIME));
2087 PyDict_SetItemString(d,"wxMENU_TEAROFF", PyInt_FromLong((long) wxMENU_TEAROFF));
2088 PyDict_SetItemString(d,"wxMB_DOCKABLE", PyInt_FromLong((long) wxMB_DOCKABLE));
2089 PyDict_SetItemString(d,"wxNO_FULL_REPAINT_ON_RESIZE", PyInt_FromLong((long) wxNO_FULL_REPAINT_ON_RESIZE));
2090 PyDict_SetItemString(d,"wxLEFT", PyInt_FromLong((long) wxLEFT));
2091 PyDict_SetItemString(d,"wxRIGHT", PyInt_FromLong((long) wxRIGHT));
2092 PyDict_SetItemString(d,"wxUP", PyInt_FromLong((long) wxUP));
2093 PyDict_SetItemString(d,"wxDOWN", PyInt_FromLong((long) wxDOWN));
2094 PyDict_SetItemString(d,"wxALL", PyInt_FromLong((long) wxALL));
2095 PyDict_SetItemString(d,"wxTOP", PyInt_FromLong((long) wxTOP));
2096 PyDict_SetItemString(d,"wxBOTTOM", PyInt_FromLong((long) wxBOTTOM));
2097 PyDict_SetItemString(d,"wxNORTH", PyInt_FromLong((long) wxNORTH));
2098 PyDict_SetItemString(d,"wxSOUTH", PyInt_FromLong((long) wxSOUTH));
2099 PyDict_SetItemString(d,"wxEAST", PyInt_FromLong((long) wxEAST));
2100 PyDict_SetItemString(d,"wxWEST", PyInt_FromLong((long) wxWEST));
2101 PyDict_SetItemString(d,"wxSTRETCH_NOT", PyInt_FromLong((long) wxSTRETCH_NOT));
2102 PyDict_SetItemString(d,"wxSHRINK", PyInt_FromLong((long) wxSHRINK));
2103 PyDict_SetItemString(d,"wxGROW", PyInt_FromLong((long) wxGROW));
2104 PyDict_SetItemString(d,"wxEXPAND", PyInt_FromLong((long) wxEXPAND));
2105 PyDict_SetItemString(d,"wxNB_FIXEDWIDTH", PyInt_FromLong((long) wxNB_FIXEDWIDTH));
2106 PyDict_SetItemString(d,"wxNB_LEFT", PyInt_FromLong((long) wxNB_LEFT));
2107 PyDict_SetItemString(d,"wxNB_RIGHT", PyInt_FromLong((long) wxNB_RIGHT));
2108 PyDict_SetItemString(d,"wxNB_BOTTOM", PyInt_FromLong((long) wxNB_BOTTOM));
2109 PyDict_SetItemString(d,"wxNB_MULTILINE", PyInt_FromLong((long) wxNB_MULTILINE));
2110 PyDict_SetItemString(d,"wxLI_HORIZONTAL", PyInt_FromLong((long) wxLI_HORIZONTAL));
2111 PyDict_SetItemString(d,"wxLI_VERTICAL", PyInt_FromLong((long) wxLI_VERTICAL));
2112 PyDict_SetItemString(d,"wxHW_SCROLLBAR_NEVER", PyInt_FromLong((long) wxHW_SCROLLBAR_NEVER));
2113 PyDict_SetItemString(d,"wxHW_SCROLLBAR_AUTO", PyInt_FromLong((long) wxHW_SCROLLBAR_AUTO));
2114 PyDict_SetItemString(d,"wxJOYSTICK1", PyInt_FromLong((long) wxJOYSTICK1));
2115 PyDict_SetItemString(d,"wxJOYSTICK2", PyInt_FromLong((long) wxJOYSTICK2));
2116 PyDict_SetItemString(d,"wxJOY_BUTTON1", PyInt_FromLong((long) wxJOY_BUTTON1));
2117 PyDict_SetItemString(d,"wxJOY_BUTTON2", PyInt_FromLong((long) wxJOY_BUTTON2));
2118 PyDict_SetItemString(d,"wxJOY_BUTTON3", PyInt_FromLong((long) wxJOY_BUTTON3));
2119 PyDict_SetItemString(d,"wxJOY_BUTTON4", PyInt_FromLong((long) wxJOY_BUTTON4));
2120 PyDict_SetItemString(d,"wxJOY_BUTTON_ANY", PyInt_FromLong((long) wxJOY_BUTTON_ANY));
2121 PyDict_SetItemString(d,"wxWS_EX_VALIDATE_RECURSIVELY", PyInt_FromLong((long) wxWS_EX_VALIDATE_RECURSIVELY));
2122 PyDict_SetItemString(d,"wxDEFAULT", PyInt_FromLong((long) wxDEFAULT));
2123 PyDict_SetItemString(d,"wxDECORATIVE", PyInt_FromLong((long) wxDECORATIVE));
2124 PyDict_SetItemString(d,"wxROMAN", PyInt_FromLong((long) wxROMAN));
2125 PyDict_SetItemString(d,"wxSCRIPT", PyInt_FromLong((long) wxSCRIPT));
2126 PyDict_SetItemString(d,"wxSWISS", PyInt_FromLong((long) wxSWISS));
2127 PyDict_SetItemString(d,"wxMODERN", PyInt_FromLong((long) wxMODERN));
2128 PyDict_SetItemString(d,"wxTELETYPE", PyInt_FromLong((long) wxTELETYPE));
2129 PyDict_SetItemString(d,"wxVARIABLE", PyInt_FromLong((long) wxVARIABLE));
2130 PyDict_SetItemString(d,"wxFIXED", PyInt_FromLong((long) wxFIXED));
2131 PyDict_SetItemString(d,"wxNORMAL", PyInt_FromLong((long) wxNORMAL));
2132 PyDict_SetItemString(d,"wxLIGHT", PyInt_FromLong((long) wxLIGHT));
2133 PyDict_SetItemString(d,"wxBOLD", PyInt_FromLong((long) wxBOLD));
2134 PyDict_SetItemString(d,"wxITALIC", PyInt_FromLong((long) wxITALIC));
2135 PyDict_SetItemString(d,"wxSLANT", PyInt_FromLong((long) wxSLANT));
2136 PyDict_SetItemString(d,"wxSOLID", PyInt_FromLong((long) wxSOLID));
2137 PyDict_SetItemString(d,"wxDOT", PyInt_FromLong((long) wxDOT));
2138 PyDict_SetItemString(d,"wxLONG_DASH", PyInt_FromLong((long) wxLONG_DASH));
2139 PyDict_SetItemString(d,"wxSHORT_DASH", PyInt_FromLong((long) wxSHORT_DASH));
2140 PyDict_SetItemString(d,"wxDOT_DASH", PyInt_FromLong((long) wxDOT_DASH));
2141 PyDict_SetItemString(d,"wxUSER_DASH", PyInt_FromLong((long) wxUSER_DASH));
2142 PyDict_SetItemString(d,"wxTRANSPARENT", PyInt_FromLong((long) wxTRANSPARENT));
2143 PyDict_SetItemString(d,"wxSTIPPLE", PyInt_FromLong((long) wxSTIPPLE));
2144 PyDict_SetItemString(d,"wxBDIAGONAL_HATCH", PyInt_FromLong((long) wxBDIAGONAL_HATCH));
2145 PyDict_SetItemString(d,"wxCROSSDIAG_HATCH", PyInt_FromLong((long) wxCROSSDIAG_HATCH));
2146 PyDict_SetItemString(d,"wxFDIAGONAL_HATCH", PyInt_FromLong((long) wxFDIAGONAL_HATCH));
2147 PyDict_SetItemString(d,"wxCROSS_HATCH", PyInt_FromLong((long) wxCROSS_HATCH));
2148 PyDict_SetItemString(d,"wxHORIZONTAL_HATCH", PyInt_FromLong((long) wxHORIZONTAL_HATCH));
2149 PyDict_SetItemString(d,"wxVERTICAL_HATCH", PyInt_FromLong((long) wxVERTICAL_HATCH));
2150 PyDict_SetItemString(d,"wxJOIN_BEVEL", PyInt_FromLong((long) wxJOIN_BEVEL));
2151 PyDict_SetItemString(d,"wxJOIN_MITER", PyInt_FromLong((long) wxJOIN_MITER));
2152 PyDict_SetItemString(d,"wxJOIN_ROUND", PyInt_FromLong((long) wxJOIN_ROUND));
2153 PyDict_SetItemString(d,"wxCAP_ROUND", PyInt_FromLong((long) wxCAP_ROUND));
2154 PyDict_SetItemString(d,"wxCAP_PROJECTING", PyInt_FromLong((long) wxCAP_PROJECTING));
2155 PyDict_SetItemString(d,"wxCAP_BUTT", PyInt_FromLong((long) wxCAP_BUTT));
2156 PyDict_SetItemString(d,"wxCLEAR", PyInt_FromLong((long) wxCLEAR));
2157 PyDict_SetItemString(d,"wxXOR", PyInt_FromLong((long) wxXOR));
2158 PyDict_SetItemString(d,"wxINVERT", PyInt_FromLong((long) wxINVERT));
2159 PyDict_SetItemString(d,"wxOR_REVERSE", PyInt_FromLong((long) wxOR_REVERSE));
2160 PyDict_SetItemString(d,"wxAND_REVERSE", PyInt_FromLong((long) wxAND_REVERSE));
2161 PyDict_SetItemString(d,"wxCOPY", PyInt_FromLong((long) wxCOPY));
2162 PyDict_SetItemString(d,"wxAND", PyInt_FromLong((long) wxAND));
2163 PyDict_SetItemString(d,"wxAND_INVERT", PyInt_FromLong((long) wxAND_INVERT));
2164 PyDict_SetItemString(d,"wxNO_OP", PyInt_FromLong((long) wxNO_OP));
2165 PyDict_SetItemString(d,"wxNOR", PyInt_FromLong((long) wxNOR));
2166 PyDict_SetItemString(d,"wxEQUIV", PyInt_FromLong((long) wxEQUIV));
2167 PyDict_SetItemString(d,"wxSRC_INVERT", PyInt_FromLong((long) wxSRC_INVERT));
2168 PyDict_SetItemString(d,"wxOR_INVERT", PyInt_FromLong((long) wxOR_INVERT));
2169 PyDict_SetItemString(d,"wxNAND", PyInt_FromLong((long) wxNAND));
2170 PyDict_SetItemString(d,"wxOR", PyInt_FromLong((long) wxOR));
2171 PyDict_SetItemString(d,"wxSET", PyInt_FromLong((long) wxSET));
2172 PyDict_SetItemString(d,"WXK_BACK", PyInt_FromLong((long) WXK_BACK));
2173 PyDict_SetItemString(d,"WXK_TAB", PyInt_FromLong((long) WXK_TAB));
2174 PyDict_SetItemString(d,"WXK_RETURN", PyInt_FromLong((long) WXK_RETURN));
2175 PyDict_SetItemString(d,"WXK_ESCAPE", PyInt_FromLong((long) WXK_ESCAPE));
2176 PyDict_SetItemString(d,"WXK_SPACE", PyInt_FromLong((long) WXK_SPACE));
2177 PyDict_SetItemString(d,"WXK_DELETE", PyInt_FromLong((long) WXK_DELETE));
2178 PyDict_SetItemString(d,"WXK_START", PyInt_FromLong((long) WXK_START));
2179 PyDict_SetItemString(d,"WXK_LBUTTON", PyInt_FromLong((long) WXK_LBUTTON));
2180 PyDict_SetItemString(d,"WXK_RBUTTON", PyInt_FromLong((long) WXK_RBUTTON));
2181 PyDict_SetItemString(d,"WXK_CANCEL", PyInt_FromLong((long) WXK_CANCEL));
2182 PyDict_SetItemString(d,"WXK_MBUTTON", PyInt_FromLong((long) WXK_MBUTTON));
2183 PyDict_SetItemString(d,"WXK_CLEAR", PyInt_FromLong((long) WXK_CLEAR));
2184 PyDict_SetItemString(d,"WXK_SHIFT", PyInt_FromLong((long) WXK_SHIFT));
2185 PyDict_SetItemString(d,"WXK_CONTROL", PyInt_FromLong((long) WXK_CONTROL));
2186 PyDict_SetItemString(d,"WXK_MENU", PyInt_FromLong((long) WXK_MENU));
2187 PyDict_SetItemString(d,"WXK_PAUSE", PyInt_FromLong((long) WXK_PAUSE));
2188 PyDict_SetItemString(d,"WXK_CAPITAL", PyInt_FromLong((long) WXK_CAPITAL));
2189 PyDict_SetItemString(d,"WXK_PRIOR", PyInt_FromLong((long) WXK_PRIOR));
2190 PyDict_SetItemString(d,"WXK_NEXT", PyInt_FromLong((long) WXK_NEXT));
2191 PyDict_SetItemString(d,"WXK_END", PyInt_FromLong((long) WXK_END));
2192 PyDict_SetItemString(d,"WXK_HOME", PyInt_FromLong((long) WXK_HOME));
2193 PyDict_SetItemString(d,"WXK_LEFT", PyInt_FromLong((long) WXK_LEFT));
2194 PyDict_SetItemString(d,"WXK_UP", PyInt_FromLong((long) WXK_UP));
2195 PyDict_SetItemString(d,"WXK_RIGHT", PyInt_FromLong((long) WXK_RIGHT));
2196 PyDict_SetItemString(d,"WXK_DOWN", PyInt_FromLong((long) WXK_DOWN));
2197 PyDict_SetItemString(d,"WXK_SELECT", PyInt_FromLong((long) WXK_SELECT));
2198 PyDict_SetItemString(d,"WXK_PRINT", PyInt_FromLong((long) WXK_PRINT));
2199 PyDict_SetItemString(d,"WXK_EXECUTE", PyInt_FromLong((long) WXK_EXECUTE));
2200 PyDict_SetItemString(d,"WXK_SNAPSHOT", PyInt_FromLong((long) WXK_SNAPSHOT));
2201 PyDict_SetItemString(d,"WXK_INSERT", PyInt_FromLong((long) WXK_INSERT));
2202 PyDict_SetItemString(d,"WXK_HELP", PyInt_FromLong((long) WXK_HELP));
2203 PyDict_SetItemString(d,"WXK_NUMPAD0", PyInt_FromLong((long) WXK_NUMPAD0));
2204 PyDict_SetItemString(d,"WXK_NUMPAD1", PyInt_FromLong((long) WXK_NUMPAD1));
2205 PyDict_SetItemString(d,"WXK_NUMPAD2", PyInt_FromLong((long) WXK_NUMPAD2));
2206 PyDict_SetItemString(d,"WXK_NUMPAD3", PyInt_FromLong((long) WXK_NUMPAD3));
2207 PyDict_SetItemString(d,"WXK_NUMPAD4", PyInt_FromLong((long) WXK_NUMPAD4));
2208 PyDict_SetItemString(d,"WXK_NUMPAD5", PyInt_FromLong((long) WXK_NUMPAD5));
2209 PyDict_SetItemString(d,"WXK_NUMPAD6", PyInt_FromLong((long) WXK_NUMPAD6));
2210 PyDict_SetItemString(d,"WXK_NUMPAD7", PyInt_FromLong((long) WXK_NUMPAD7));
2211 PyDict_SetItemString(d,"WXK_NUMPAD8", PyInt_FromLong((long) WXK_NUMPAD8));
2212 PyDict_SetItemString(d,"WXK_NUMPAD9", PyInt_FromLong((long) WXK_NUMPAD9));
2213 PyDict_SetItemString(d,"WXK_MULTIPLY", PyInt_FromLong((long) WXK_MULTIPLY));
2214 PyDict_SetItemString(d,"WXK_ADD", PyInt_FromLong((long) WXK_ADD));
2215 PyDict_SetItemString(d,"WXK_SEPARATOR", PyInt_FromLong((long) WXK_SEPARATOR));
2216 PyDict_SetItemString(d,"WXK_SUBTRACT", PyInt_FromLong((long) WXK_SUBTRACT));
2217 PyDict_SetItemString(d,"WXK_DECIMAL", PyInt_FromLong((long) WXK_DECIMAL));
2218 PyDict_SetItemString(d,"WXK_DIVIDE", PyInt_FromLong((long) WXK_DIVIDE));
2219 PyDict_SetItemString(d,"WXK_F1", PyInt_FromLong((long) WXK_F1));
2220 PyDict_SetItemString(d,"WXK_F2", PyInt_FromLong((long) WXK_F2));
2221 PyDict_SetItemString(d,"WXK_F3", PyInt_FromLong((long) WXK_F3));
2222 PyDict_SetItemString(d,"WXK_F4", PyInt_FromLong((long) WXK_F4));
2223 PyDict_SetItemString(d,"WXK_F5", PyInt_FromLong((long) WXK_F5));
2224 PyDict_SetItemString(d,"WXK_F6", PyInt_FromLong((long) WXK_F6));
2225 PyDict_SetItemString(d,"WXK_F7", PyInt_FromLong((long) WXK_F7));
2226 PyDict_SetItemString(d,"WXK_F8", PyInt_FromLong((long) WXK_F8));
2227 PyDict_SetItemString(d,"WXK_F9", PyInt_FromLong((long) WXK_F9));
2228 PyDict_SetItemString(d,"WXK_F10", PyInt_FromLong((long) WXK_F10));
2229 PyDict_SetItemString(d,"WXK_F11", PyInt_FromLong((long) WXK_F11));
2230 PyDict_SetItemString(d,"WXK_F12", PyInt_FromLong((long) WXK_F12));
2231 PyDict_SetItemString(d,"WXK_F13", PyInt_FromLong((long) WXK_F13));
2232 PyDict_SetItemString(d,"WXK_F14", PyInt_FromLong((long) WXK_F14));
2233 PyDict_SetItemString(d,"WXK_F15", PyInt_FromLong((long) WXK_F15));
2234 PyDict_SetItemString(d,"WXK_F16", PyInt_FromLong((long) WXK_F16));
2235 PyDict_SetItemString(d,"WXK_F17", PyInt_FromLong((long) WXK_F17));
2236 PyDict_SetItemString(d,"WXK_F18", PyInt_FromLong((long) WXK_F18));
2237 PyDict_SetItemString(d,"WXK_F19", PyInt_FromLong((long) WXK_F19));
2238 PyDict_SetItemString(d,"WXK_F20", PyInt_FromLong((long) WXK_F20));
2239 PyDict_SetItemString(d,"WXK_F21", PyInt_FromLong((long) WXK_F21));
2240 PyDict_SetItemString(d,"WXK_F22", PyInt_FromLong((long) WXK_F22));
2241 PyDict_SetItemString(d,"WXK_F23", PyInt_FromLong((long) WXK_F23));
2242 PyDict_SetItemString(d,"WXK_F24", PyInt_FromLong((long) WXK_F24));
2243 PyDict_SetItemString(d,"WXK_NUMLOCK", PyInt_FromLong((long) WXK_NUMLOCK));
2244 PyDict_SetItemString(d,"WXK_SCROLL", PyInt_FromLong((long) WXK_SCROLL));
2245 PyDict_SetItemString(d,"WXK_PAGEUP", PyInt_FromLong((long) WXK_PAGEUP));
2246 PyDict_SetItemString(d,"WXK_PAGEDOWN", PyInt_FromLong((long) WXK_PAGEDOWN));
2247 PyDict_SetItemString(d,"wxBITMAP_TYPE_INVALID", PyInt_FromLong((long) wxBITMAP_TYPE_INVALID));
2248 PyDict_SetItemString(d,"wxBITMAP_TYPE_BMP", PyInt_FromLong((long) wxBITMAP_TYPE_BMP));
2249 PyDict_SetItemString(d,"wxBITMAP_TYPE_BMP_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_BMP_RESOURCE));
2250 PyDict_SetItemString(d,"wxBITMAP_TYPE_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_RESOURCE));
2251 PyDict_SetItemString(d,"wxBITMAP_TYPE_ICO", PyInt_FromLong((long) wxBITMAP_TYPE_ICO));
2252 PyDict_SetItemString(d,"wxBITMAP_TYPE_ICO_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_ICO_RESOURCE));
2253 PyDict_SetItemString(d,"wxBITMAP_TYPE_CUR", PyInt_FromLong((long) wxBITMAP_TYPE_CUR));
2254 PyDict_SetItemString(d,"wxBITMAP_TYPE_CUR_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_CUR_RESOURCE));
2255 PyDict_SetItemString(d,"wxBITMAP_TYPE_XBM", PyInt_FromLong((long) wxBITMAP_TYPE_XBM));
2256 PyDict_SetItemString(d,"wxBITMAP_TYPE_XBM_DATA", PyInt_FromLong((long) wxBITMAP_TYPE_XBM_DATA));
2257 PyDict_SetItemString(d,"wxBITMAP_TYPE_XPM", PyInt_FromLong((long) wxBITMAP_TYPE_XPM));
2258 PyDict_SetItemString(d,"wxBITMAP_TYPE_XPM_DATA", PyInt_FromLong((long) wxBITMAP_TYPE_XPM_DATA));
2259 PyDict_SetItemString(d,"wxBITMAP_TYPE_TIF", PyInt_FromLong((long) wxBITMAP_TYPE_TIF));
2260 PyDict_SetItemString(d,"wxBITMAP_TYPE_TIF_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_TIF_RESOURCE));
2261 PyDict_SetItemString(d,"wxBITMAP_TYPE_GIF", PyInt_FromLong((long) wxBITMAP_TYPE_GIF));
2262 PyDict_SetItemString(d,"wxBITMAP_TYPE_GIF_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_GIF_RESOURCE));
2263 PyDict_SetItemString(d,"wxBITMAP_TYPE_PNG", PyInt_FromLong((long) wxBITMAP_TYPE_PNG));
2264 PyDict_SetItemString(d,"wxBITMAP_TYPE_PNG_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_PNG_RESOURCE));
2265 PyDict_SetItemString(d,"wxBITMAP_TYPE_JPEG", PyInt_FromLong((long) wxBITMAP_TYPE_JPEG));
2266 PyDict_SetItemString(d,"wxBITMAP_TYPE_JPEG_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_JPEG_RESOURCE));
2267 PyDict_SetItemString(d,"wxBITMAP_TYPE_PNM", PyInt_FromLong((long) wxBITMAP_TYPE_PNM));
2268 PyDict_SetItemString(d,"wxBITMAP_TYPE_PNM_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_PNM_RESOURCE));
2269 PyDict_SetItemString(d,"wxBITMAP_TYPE_PCX", PyInt_FromLong((long) wxBITMAP_TYPE_PCX));
2270 PyDict_SetItemString(d,"wxBITMAP_TYPE_PCX_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_PCX_RESOURCE));
2271 PyDict_SetItemString(d,"wxBITMAP_TYPE_PICT", PyInt_FromLong((long) wxBITMAP_TYPE_PICT));
2272 PyDict_SetItemString(d,"wxBITMAP_TYPE_PICT_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_PICT_RESOURCE));
2273 PyDict_SetItemString(d,"wxBITMAP_TYPE_ICON", PyInt_FromLong((long) wxBITMAP_TYPE_ICON));
2274 PyDict_SetItemString(d,"wxBITMAP_TYPE_ICON_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_ICON_RESOURCE));
2275 PyDict_SetItemString(d,"wxBITMAP_TYPE_MACCURSOR", PyInt_FromLong((long) wxBITMAP_TYPE_MACCURSOR));
2276 PyDict_SetItemString(d,"wxBITMAP_TYPE_MACCURSOR_RESOURCE", PyInt_FromLong((long) wxBITMAP_TYPE_MACCURSOR_RESOURCE));
2277 PyDict_SetItemString(d,"wxBITMAP_TYPE_ANY", PyInt_FromLong((long) wxBITMAP_TYPE_ANY));
2278 PyDict_SetItemString(d,"wxCURSOR_NONE", PyInt_FromLong((long) wxCURSOR_NONE));
2279 PyDict_SetItemString(d,"wxCURSOR_ARROW", PyInt_FromLong((long) wxCURSOR_ARROW));
2280 PyDict_SetItemString(d,"wxCURSOR_BULLSEYE", PyInt_FromLong((long) wxCURSOR_BULLSEYE));
2281 PyDict_SetItemString(d,"wxCURSOR_CHAR", PyInt_FromLong((long) wxCURSOR_CHAR));
2282 PyDict_SetItemString(d,"wxCURSOR_CROSS", PyInt_FromLong((long) wxCURSOR_CROSS));
2283 PyDict_SetItemString(d,"wxCURSOR_HAND", PyInt_FromLong((long) wxCURSOR_HAND));
2284 PyDict_SetItemString(d,"wxCURSOR_IBEAM", PyInt_FromLong((long) wxCURSOR_IBEAM));
2285 PyDict_SetItemString(d,"wxCURSOR_LEFT_BUTTON", PyInt_FromLong((long) wxCURSOR_LEFT_BUTTON));
2286 PyDict_SetItemString(d,"wxCURSOR_MAGNIFIER", PyInt_FromLong((long) wxCURSOR_MAGNIFIER));
2287 PyDict_SetItemString(d,"wxCURSOR_MIDDLE_BUTTON", PyInt_FromLong((long) wxCURSOR_MIDDLE_BUTTON));
2288 PyDict_SetItemString(d,"wxCURSOR_NO_ENTRY", PyInt_FromLong((long) wxCURSOR_NO_ENTRY));
2289 PyDict_SetItemString(d,"wxCURSOR_PAINT_BRUSH", PyInt_FromLong((long) wxCURSOR_PAINT_BRUSH));
2290 PyDict_SetItemString(d,"wxCURSOR_PENCIL", PyInt_FromLong((long) wxCURSOR_PENCIL));
2291 PyDict_SetItemString(d,"wxCURSOR_POINT_LEFT", PyInt_FromLong((long) wxCURSOR_POINT_LEFT));
2292 PyDict_SetItemString(d,"wxCURSOR_POINT_RIGHT", PyInt_FromLong((long) wxCURSOR_POINT_RIGHT));
2293 PyDict_SetItemString(d,"wxCURSOR_QUESTION_ARROW", PyInt_FromLong((long) wxCURSOR_QUESTION_ARROW));
2294 PyDict_SetItemString(d,"wxCURSOR_RIGHT_BUTTON", PyInt_FromLong((long) wxCURSOR_RIGHT_BUTTON));
2295 PyDict_SetItemString(d,"wxCURSOR_SIZENESW", PyInt_FromLong((long) wxCURSOR_SIZENESW));
2296 PyDict_SetItemString(d,"wxCURSOR_SIZENS", PyInt_FromLong((long) wxCURSOR_SIZENS));
2297 PyDict_SetItemString(d,"wxCURSOR_SIZENWSE", PyInt_FromLong((long) wxCURSOR_SIZENWSE));
2298 PyDict_SetItemString(d,"wxCURSOR_SIZEWE", PyInt_FromLong((long) wxCURSOR_SIZEWE));
2299 PyDict_SetItemString(d,"wxCURSOR_SIZING", PyInt_FromLong((long) wxCURSOR_SIZING));
2300 PyDict_SetItemString(d,"wxCURSOR_SPRAYCAN", PyInt_FromLong((long) wxCURSOR_SPRAYCAN));
2301 PyDict_SetItemString(d,"wxCURSOR_WAIT", PyInt_FromLong((long) wxCURSOR_WAIT));
2302 PyDict_SetItemString(d,"wxCURSOR_WATCH", PyInt_FromLong((long) wxCURSOR_WATCH));
2303 PyDict_SetItemString(d,"wxCURSOR_BLANK", PyInt_FromLong((long) wxCURSOR_BLANK));
2304 PyDict_SetItemString(d,"wxCURSOR_DEFAULT", PyInt_FromLong((long) wxCURSOR_DEFAULT));
2305 PyDict_SetItemString(d,"wxCURSOR_ARROWWAIT", PyInt_FromLong((long) wxCURSOR_ARROWWAIT));
2306 PyDict_SetItemString(d,"wxCURSOR_MAX", PyInt_FromLong((long) wxCURSOR_MAX));
2307 PyDict_SetItemString(d,"wxPAPER_NONE", PyInt_FromLong((long) wxPAPER_NONE));
2308 PyDict_SetItemString(d,"wxPAPER_LETTER", PyInt_FromLong((long) wxPAPER_LETTER));
2309 PyDict_SetItemString(d,"wxPAPER_LEGAL", PyInt_FromLong((long) wxPAPER_LEGAL));
2310 PyDict_SetItemString(d,"wxPAPER_A4", PyInt_FromLong((long) wxPAPER_A4));
2311 PyDict_SetItemString(d,"wxPAPER_CSHEET", PyInt_FromLong((long) wxPAPER_CSHEET));
2312 PyDict_SetItemString(d,"wxPAPER_DSHEET", PyInt_FromLong((long) wxPAPER_DSHEET));
2313 PyDict_SetItemString(d,"wxPAPER_ESHEET", PyInt_FromLong((long) wxPAPER_ESHEET));
2314 PyDict_SetItemString(d,"wxPAPER_LETTERSMALL", PyInt_FromLong((long) wxPAPER_LETTERSMALL));
2315 PyDict_SetItemString(d,"wxPAPER_TABLOID", PyInt_FromLong((long) wxPAPER_TABLOID));
2316 PyDict_SetItemString(d,"wxPAPER_LEDGER", PyInt_FromLong((long) wxPAPER_LEDGER));
2317 PyDict_SetItemString(d,"wxPAPER_STATEMENT", PyInt_FromLong((long) wxPAPER_STATEMENT));
2318 PyDict_SetItemString(d,"wxPAPER_EXECUTIVE", PyInt_FromLong((long) wxPAPER_EXECUTIVE));
2319 PyDict_SetItemString(d,"wxPAPER_A3", PyInt_FromLong((long) wxPAPER_A3));
2320 PyDict_SetItemString(d,"wxPAPER_A4SMALL", PyInt_FromLong((long) wxPAPER_A4SMALL));
2321 PyDict_SetItemString(d,"wxPAPER_A5", PyInt_FromLong((long) wxPAPER_A5));
2322 PyDict_SetItemString(d,"wxPAPER_B4", PyInt_FromLong((long) wxPAPER_B4));
2323 PyDict_SetItemString(d,"wxPAPER_B5", PyInt_FromLong((long) wxPAPER_B5));
2324 PyDict_SetItemString(d,"wxPAPER_FOLIO", PyInt_FromLong((long) wxPAPER_FOLIO));
2325 PyDict_SetItemString(d,"wxPAPER_QUARTO", PyInt_FromLong((long) wxPAPER_QUARTO));
2326 PyDict_SetItemString(d,"wxPAPER_10X14", PyInt_FromLong((long) wxPAPER_10X14));
2327 PyDict_SetItemString(d,"wxPAPER_11X17", PyInt_FromLong((long) wxPAPER_11X17));
2328 PyDict_SetItemString(d,"wxPAPER_NOTE", PyInt_FromLong((long) wxPAPER_NOTE));
2329 PyDict_SetItemString(d,"wxPAPER_ENV_9", PyInt_FromLong((long) wxPAPER_ENV_9));
2330 PyDict_SetItemString(d,"wxPAPER_ENV_10", PyInt_FromLong((long) wxPAPER_ENV_10));
2331 PyDict_SetItemString(d,"wxPAPER_ENV_11", PyInt_FromLong((long) wxPAPER_ENV_11));
2332 PyDict_SetItemString(d,"wxPAPER_ENV_12", PyInt_FromLong((long) wxPAPER_ENV_12));
2333 PyDict_SetItemString(d,"wxPAPER_ENV_14", PyInt_FromLong((long) wxPAPER_ENV_14));
2334 PyDict_SetItemString(d,"wxPAPER_ENV_DL", PyInt_FromLong((long) wxPAPER_ENV_DL));
2335 PyDict_SetItemString(d,"wxPAPER_ENV_C5", PyInt_FromLong((long) wxPAPER_ENV_C5));
2336 PyDict_SetItemString(d,"wxPAPER_ENV_C3", PyInt_FromLong((long) wxPAPER_ENV_C3));
2337 PyDict_SetItemString(d,"wxPAPER_ENV_C4", PyInt_FromLong((long) wxPAPER_ENV_C4));
2338 PyDict_SetItemString(d,"wxPAPER_ENV_C6", PyInt_FromLong((long) wxPAPER_ENV_C6));
2339 PyDict_SetItemString(d,"wxPAPER_ENV_C65", PyInt_FromLong((long) wxPAPER_ENV_C65));
2340 PyDict_SetItemString(d,"wxPAPER_ENV_B4", PyInt_FromLong((long) wxPAPER_ENV_B4));
2341 PyDict_SetItemString(d,"wxPAPER_ENV_B5", PyInt_FromLong((long) wxPAPER_ENV_B5));
2342 PyDict_SetItemString(d,"wxPAPER_ENV_B6", PyInt_FromLong((long) wxPAPER_ENV_B6));
2343 PyDict_SetItemString(d,"wxPAPER_ENV_ITALY", PyInt_FromLong((long) wxPAPER_ENV_ITALY));
2344 PyDict_SetItemString(d,"wxPAPER_ENV_MONARCH", PyInt_FromLong((long) wxPAPER_ENV_MONARCH));
2345 PyDict_SetItemString(d,"wxPAPER_ENV_PERSONAL", PyInt_FromLong((long) wxPAPER_ENV_PERSONAL));
2346 PyDict_SetItemString(d,"wxPAPER_FANFOLD_US", PyInt_FromLong((long) wxPAPER_FANFOLD_US));
2347 PyDict_SetItemString(d,"wxPAPER_FANFOLD_STD_GERMAN", PyInt_FromLong((long) wxPAPER_FANFOLD_STD_GERMAN));
2348 PyDict_SetItemString(d,"wxPAPER_FANFOLD_LGL_GERMAN", PyInt_FromLong((long) wxPAPER_FANFOLD_LGL_GERMAN));
2349 PyDict_SetItemString(d,"wxPAPER_ISO_B4", PyInt_FromLong((long) wxPAPER_ISO_B4));
2350 PyDict_SetItemString(d,"wxPAPER_JAPANESE_POSTCARD", PyInt_FromLong((long) wxPAPER_JAPANESE_POSTCARD));
2351 PyDict_SetItemString(d,"wxPAPER_9X11", PyInt_FromLong((long) wxPAPER_9X11));
2352 PyDict_SetItemString(d,"wxPAPER_10X11", PyInt_FromLong((long) wxPAPER_10X11));
2353 PyDict_SetItemString(d,"wxPAPER_15X11", PyInt_FromLong((long) wxPAPER_15X11));
2354 PyDict_SetItemString(d,"wxPAPER_ENV_INVITE", PyInt_FromLong((long) wxPAPER_ENV_INVITE));
2355 PyDict_SetItemString(d,"wxPAPER_LETTER_EXTRA", PyInt_FromLong((long) wxPAPER_LETTER_EXTRA));
2356 PyDict_SetItemString(d,"wxPAPER_LEGAL_EXTRA", PyInt_FromLong((long) wxPAPER_LEGAL_EXTRA));
2357 PyDict_SetItemString(d,"wxPAPER_TABLOID_EXTRA", PyInt_FromLong((long) wxPAPER_TABLOID_EXTRA));
2358 PyDict_SetItemString(d,"wxPAPER_A4_EXTRA", PyInt_FromLong((long) wxPAPER_A4_EXTRA));
2359 PyDict_SetItemString(d,"wxPAPER_LETTER_TRANSVERSE", PyInt_FromLong((long) wxPAPER_LETTER_TRANSVERSE));
2360 PyDict_SetItemString(d,"wxPAPER_A4_TRANSVERSE", PyInt_FromLong((long) wxPAPER_A4_TRANSVERSE));
2361 PyDict_SetItemString(d,"wxPAPER_LETTER_EXTRA_TRANSVERSE", PyInt_FromLong((long) wxPAPER_LETTER_EXTRA_TRANSVERSE));
2362 PyDict_SetItemString(d,"wxPAPER_A_PLUS", PyInt_FromLong((long) wxPAPER_A_PLUS));
2363 PyDict_SetItemString(d,"wxPAPER_B_PLUS", PyInt_FromLong((long) wxPAPER_B_PLUS));
2364 PyDict_SetItemString(d,"wxPAPER_LETTER_PLUS", PyInt_FromLong((long) wxPAPER_LETTER_PLUS));
2365 PyDict_SetItemString(d,"wxPAPER_A4_PLUS", PyInt_FromLong((long) wxPAPER_A4_PLUS));
2366 PyDict_SetItemString(d,"wxPAPER_A5_TRANSVERSE", PyInt_FromLong((long) wxPAPER_A5_TRANSVERSE));
2367 PyDict_SetItemString(d,"wxPAPER_B5_TRANSVERSE", PyInt_FromLong((long) wxPAPER_B5_TRANSVERSE));
2368 PyDict_SetItemString(d,"wxPAPER_A3_EXTRA", PyInt_FromLong((long) wxPAPER_A3_EXTRA));
2369 PyDict_SetItemString(d,"wxPAPER_A5_EXTRA", PyInt_FromLong((long) wxPAPER_A5_EXTRA));
2370 PyDict_SetItemString(d,"wxPAPER_B5_EXTRA", PyInt_FromLong((long) wxPAPER_B5_EXTRA));
2371 PyDict_SetItemString(d,"wxPAPER_A2", PyInt_FromLong((long) wxPAPER_A2));
2372 PyDict_SetItemString(d,"wxPAPER_A3_TRANSVERSE", PyInt_FromLong((long) wxPAPER_A3_TRANSVERSE));
2373 PyDict_SetItemString(d,"wxPAPER_A3_EXTRA_TRANSVERSE", PyInt_FromLong((long) wxPAPER_A3_EXTRA_TRANSVERSE));
2374 PyDict_SetItemString(d,"wxDUPLEX_SIMPLEX", PyInt_FromLong((long) wxDUPLEX_SIMPLEX));
2375 PyDict_SetItemString(d,"wxDUPLEX_HORIZONTAL", PyInt_FromLong((long) wxDUPLEX_HORIZONTAL));
2376 PyDict_SetItemString(d,"wxDUPLEX_VERTICAL", PyInt_FromLong((long) wxDUPLEX_VERTICAL));
2377 PyDict_SetItemString(d,"FALSE", PyInt_FromLong((long) 0));
2378 PyDict_SetItemString(d,"false", PyInt_FromLong((long) 0));
2379 PyDict_SetItemString(d,"TRUE", PyInt_FromLong((long) 1));
2380 PyDict_SetItemString(d,"true", PyInt_FromLong((long) 1));
2381 PyDict_SetItemString(d,"wxVERSION_STRING", PyString_FromString("wxVERSION_STRING"));
2382 PyDict_SetItemString(d,"wxEVT_NULL", PyInt_FromLong((long) wxEVT_NULL));
2383 PyDict_SetItemString(d,"wxEVT_FIRST", PyInt_FromLong((long) wxEVT_FIRST));
2384 PyDict_SetItemString(d,"wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_BUTTON_CLICKED));
2385 PyDict_SetItemString(d,"wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_CHECKBOX_CLICKED));
2386 PyDict_SetItemString(d,"wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_CHOICE_SELECTED));
2387 PyDict_SetItemString(d,"wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LISTBOX_SELECTED));
2388 PyDict_SetItemString(d,"wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong((long) wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
2389 PyDict_SetItemString(d,"wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong((long) wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
2390 PyDict_SetItemString(d,"wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong((long) wxEVT_COMMAND_SPINCTRL_UPDATED));
2391 PyDict_SetItemString(d,"wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong((long) wxEVT_COMMAND_TEXT_UPDATED));
2392 PyDict_SetItemString(d,"wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong((long) wxEVT_COMMAND_TEXT_ENTER));
2393 PyDict_SetItemString(d,"wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_MENU_SELECTED));
2394 PyDict_SetItemString(d,"wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong((long) wxEVT_COMMAND_SLIDER_UPDATED));
2395 PyDict_SetItemString(d,"wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_RADIOBOX_SELECTED));
2396 PyDict_SetItemString(d,"wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_RADIOBUTTON_SELECTED));
2397 PyDict_SetItemString(d,"wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong((long) wxEVT_COMMAND_SCROLLBAR_UPDATED));
2398 PyDict_SetItemString(d,"wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_VLBOX_SELECTED));
2399 PyDict_SetItemString(d,"wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_COMBOBOX_SELECTED));
2400 PyDict_SetItemString(d,"wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOOL_CLICKED));
2401 PyDict_SetItemString(d,"wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong((long) wxEVT_COMMAND_TOOL_RCLICKED));
2402 PyDict_SetItemString(d,"wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong((long) wxEVT_COMMAND_TOOL_ENTER));
2403 PyDict_SetItemString(d,"wxEVT_SET_FOCUS", PyInt_FromLong((long) wxEVT_SET_FOCUS));
2404 PyDict_SetItemString(d,"wxEVT_KILL_FOCUS", PyInt_FromLong((long) wxEVT_KILL_FOCUS));
2405 PyDict_SetItemString(d,"wxEVT_MOUSEWHEEL", PyInt_FromLong((long) wxEVT_MOUSEWHEEL));
2406 PyDict_SetItemString(d,"wxEVT_LEFT_DOWN", PyInt_FromLong((long) wxEVT_LEFT_DOWN));
2407 PyDict_SetItemString(d,"wxEVT_LEFT_UP", PyInt_FromLong((long) wxEVT_LEFT_UP));
2408 PyDict_SetItemString(d,"wxEVT_MIDDLE_DOWN", PyInt_FromLong((long) wxEVT_MIDDLE_DOWN));
2409 PyDict_SetItemString(d,"wxEVT_MIDDLE_UP", PyInt_FromLong((long) wxEVT_MIDDLE_UP));
2410 PyDict_SetItemString(d,"wxEVT_RIGHT_DOWN", PyInt_FromLong((long) wxEVT_RIGHT_DOWN));
2411 PyDict_SetItemString(d,"wxEVT_RIGHT_UP", PyInt_FromLong((long) wxEVT_RIGHT_UP));
2412 PyDict_SetItemString(d,"wxEVT_MOTION", PyInt_FromLong((long) wxEVT_MOTION));
2413 PyDict_SetItemString(d,"wxEVT_ENTER_WINDOW", PyInt_FromLong((long) wxEVT_ENTER_WINDOW));
2414 PyDict_SetItemString(d,"wxEVT_LEAVE_WINDOW", PyInt_FromLong((long) wxEVT_LEAVE_WINDOW));
2415 PyDict_SetItemString(d,"wxEVT_LEFT_DCLICK", PyInt_FromLong((long) wxEVT_LEFT_DCLICK));
2416 PyDict_SetItemString(d,"wxEVT_MIDDLE_DCLICK", PyInt_FromLong((long) wxEVT_MIDDLE_DCLICK));
2417 PyDict_SetItemString(d,"wxEVT_RIGHT_DCLICK", PyInt_FromLong((long) wxEVT_RIGHT_DCLICK));
2418 PyDict_SetItemString(d,"wxEVT_NC_LEFT_DOWN", PyInt_FromLong((long) wxEVT_NC_LEFT_DOWN));
2419 PyDict_SetItemString(d,"wxEVT_NC_LEFT_UP", PyInt_FromLong((long) wxEVT_NC_LEFT_UP));
2420 PyDict_SetItemString(d,"wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong((long) wxEVT_NC_MIDDLE_DOWN));
2421 PyDict_SetItemString(d,"wxEVT_NC_MIDDLE_UP", PyInt_FromLong((long) wxEVT_NC_MIDDLE_UP));
2422 PyDict_SetItemString(d,"wxEVT_NC_RIGHT_DOWN", PyInt_FromLong((long) wxEVT_NC_RIGHT_DOWN));
2423 PyDict_SetItemString(d,"wxEVT_NC_RIGHT_UP", PyInt_FromLong((long) wxEVT_NC_RIGHT_UP));
2424 PyDict_SetItemString(d,"wxEVT_NC_MOTION", PyInt_FromLong((long) wxEVT_NC_MOTION));
2425 PyDict_SetItemString(d,"wxEVT_NC_ENTER_WINDOW", PyInt_FromLong((long) wxEVT_NC_ENTER_WINDOW));
2426 PyDict_SetItemString(d,"wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong((long) wxEVT_NC_LEAVE_WINDOW));
2427 PyDict_SetItemString(d,"wxEVT_NC_LEFT_DCLICK", PyInt_FromLong((long) wxEVT_NC_LEFT_DCLICK));
2428 PyDict_SetItemString(d,"wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong((long) wxEVT_NC_MIDDLE_DCLICK));
2429 PyDict_SetItemString(d,"wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong((long) wxEVT_NC_RIGHT_DCLICK));
2430 PyDict_SetItemString(d,"wxEVT_CHAR", PyInt_FromLong((long) wxEVT_CHAR));
2431 PyDict_SetItemString(d,"wxEVT_KEY_DOWN", PyInt_FromLong((long) wxEVT_KEY_DOWN));
2432 PyDict_SetItemString(d,"wxEVT_KEY_UP", PyInt_FromLong((long) wxEVT_KEY_UP));
2433 PyDict_SetItemString(d,"wxEVT_CHAR_HOOK", PyInt_FromLong((long) wxEVT_CHAR_HOOK));
2434 PyDict_SetItemString(d,"wxEVT_SCROLL_TOP", PyInt_FromLong((long) wxEVT_SCROLL_TOP));
2435 PyDict_SetItemString(d,"wxEVT_SCROLL_BOTTOM", PyInt_FromLong((long) wxEVT_SCROLL_BOTTOM));
2436 PyDict_SetItemString(d,"wxEVT_SCROLL_LINEUP", PyInt_FromLong((long) wxEVT_SCROLL_LINEUP));
2437 PyDict_SetItemString(d,"wxEVT_SCROLL_LINEDOWN", PyInt_FromLong((long) wxEVT_SCROLL_LINEDOWN));
2438 PyDict_SetItemString(d,"wxEVT_SCROLL_PAGEUP", PyInt_FromLong((long) wxEVT_SCROLL_PAGEUP));
2439 PyDict_SetItemString(d,"wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong((long) wxEVT_SCROLL_PAGEDOWN));
2440 PyDict_SetItemString(d,"wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong((long) wxEVT_SCROLL_THUMBTRACK));
2441 PyDict_SetItemString(d,"wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong((long) wxEVT_SCROLL_THUMBRELEASE));
2442 PyDict_SetItemString(d,"wxEVT_SCROLLWIN_TOP", PyInt_FromLong((long) wxEVT_SCROLLWIN_TOP));
2443 PyDict_SetItemString(d,"wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong((long) wxEVT_SCROLLWIN_BOTTOM));
2444 PyDict_SetItemString(d,"wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong((long) wxEVT_SCROLLWIN_LINEUP));
2445 PyDict_SetItemString(d,"wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong((long) wxEVT_SCROLLWIN_LINEDOWN));
2446 PyDict_SetItemString(d,"wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong((long) wxEVT_SCROLLWIN_PAGEUP));
2447 PyDict_SetItemString(d,"wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong((long) wxEVT_SCROLLWIN_PAGEDOWN));
2448 PyDict_SetItemString(d,"wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong((long) wxEVT_SCROLLWIN_THUMBTRACK));
2449 PyDict_SetItemString(d,"wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong((long) wxEVT_SCROLLWIN_THUMBRELEASE));
2450 PyDict_SetItemString(d,"wxEVT_SIZE", PyInt_FromLong((long) wxEVT_SIZE));
2451 PyDict_SetItemString(d,"wxEVT_MOVE", PyInt_FromLong((long) wxEVT_MOVE));
2452 PyDict_SetItemString(d,"wxEVT_CLOSE_WINDOW", PyInt_FromLong((long) wxEVT_CLOSE_WINDOW));
2453 PyDict_SetItemString(d,"wxEVT_END_SESSION", PyInt_FromLong((long) wxEVT_END_SESSION));
2454 PyDict_SetItemString(d,"wxEVT_QUERY_END_SESSION", PyInt_FromLong((long) wxEVT_QUERY_END_SESSION));
2455 PyDict_SetItemString(d,"wxEVT_ACTIVATE_APP", PyInt_FromLong((long) wxEVT_ACTIVATE_APP));
2456 PyDict_SetItemString(d,"wxEVT_POWER", PyInt_FromLong((long) wxEVT_POWER));
2457 PyDict_SetItemString(d,"wxEVT_ACTIVATE", PyInt_FromLong((long) wxEVT_ACTIVATE));
2458 PyDict_SetItemString(d,"wxEVT_CREATE", PyInt_FromLong((long) wxEVT_CREATE));
2459 PyDict_SetItemString(d,"wxEVT_DESTROY", PyInt_FromLong((long) wxEVT_DESTROY));
2460 PyDict_SetItemString(d,"wxEVT_SHOW", PyInt_FromLong((long) wxEVT_SHOW));
2461 PyDict_SetItemString(d,"wxEVT_ICONIZE", PyInt_FromLong((long) wxEVT_ICONIZE));
2462 PyDict_SetItemString(d,"wxEVT_MAXIMIZE", PyInt_FromLong((long) wxEVT_MAXIMIZE));
2463 PyDict_SetItemString(d,"wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong((long) wxEVT_MOUSE_CAPTURE_CHANGED));
2464 PyDict_SetItemString(d,"wxEVT_PAINT", PyInt_FromLong((long) wxEVT_PAINT));
2465 PyDict_SetItemString(d,"wxEVT_ERASE_BACKGROUND", PyInt_FromLong((long) wxEVT_ERASE_BACKGROUND));
2466 PyDict_SetItemString(d,"wxEVT_NC_PAINT", PyInt_FromLong((long) wxEVT_NC_PAINT));
2467 PyDict_SetItemString(d,"wxEVT_PAINT_ICON", PyInt_FromLong((long) wxEVT_PAINT_ICON));
2468 PyDict_SetItemString(d,"wxEVT_MENU_CHAR", PyInt_FromLong((long) wxEVT_MENU_CHAR));
2469 PyDict_SetItemString(d,"wxEVT_MENU_INIT", PyInt_FromLong((long) wxEVT_MENU_INIT));
2470 PyDict_SetItemString(d,"wxEVT_MENU_HIGHLIGHT", PyInt_FromLong((long) wxEVT_MENU_HIGHLIGHT));
2471 PyDict_SetItemString(d,"wxEVT_POPUP_MENU_INIT", PyInt_FromLong((long) wxEVT_POPUP_MENU_INIT));
2472 PyDict_SetItemString(d,"wxEVT_CONTEXT_MENU", PyInt_FromLong((long) wxEVT_CONTEXT_MENU));
2473 PyDict_SetItemString(d,"wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong((long) wxEVT_SYS_COLOUR_CHANGED));
2474 PyDict_SetItemString(d,"wxEVT_SETTING_CHANGED", PyInt_FromLong((long) wxEVT_SETTING_CHANGED));
2475 PyDict_SetItemString(d,"wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong((long) wxEVT_QUERY_NEW_PALETTE));
2476 PyDict_SetItemString(d,"wxEVT_PALETTE_CHANGED", PyInt_FromLong((long) wxEVT_PALETTE_CHANGED));
2477 PyDict_SetItemString(d,"wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong((long) wxEVT_JOY_BUTTON_DOWN));
2478 PyDict_SetItemString(d,"wxEVT_JOY_BUTTON_UP", PyInt_FromLong((long) wxEVT_JOY_BUTTON_UP));
2479 PyDict_SetItemString(d,"wxEVT_JOY_MOVE", PyInt_FromLong((long) wxEVT_JOY_MOVE));
2480 PyDict_SetItemString(d,"wxEVT_JOY_ZMOVE", PyInt_FromLong((long) wxEVT_JOY_ZMOVE));
2481 PyDict_SetItemString(d,"wxEVT_DROP_FILES", PyInt_FromLong((long) wxEVT_DROP_FILES));
2482 PyDict_SetItemString(d,"wxEVT_DRAW_ITEM", PyInt_FromLong((long) wxEVT_DRAW_ITEM));
2483 PyDict_SetItemString(d,"wxEVT_MEASURE_ITEM", PyInt_FromLong((long) wxEVT_MEASURE_ITEM));
2484 PyDict_SetItemString(d,"wxEVT_COMPARE_ITEM", PyInt_FromLong((long) wxEVT_COMPARE_ITEM));
2485 PyDict_SetItemString(d,"wxEVT_INIT_DIALOG", PyInt_FromLong((long) wxEVT_INIT_DIALOG));
2486 PyDict_SetItemString(d,"wxEVT_HELP", PyInt_FromLong((long) wxEVT_HELP));
2487 PyDict_SetItemString(d,"wxEVT_DETAILED_HELP", PyInt_FromLong((long) wxEVT_DETAILED_HELP));
2488 PyDict_SetItemString(d,"wxEVT_IDLE", PyInt_FromLong((long) wxEVT_IDLE));
2489 PyDict_SetItemString(d,"wxEVT_UPDATE_UI", PyInt_FromLong((long) wxEVT_UPDATE_UI));
2490 PyDict_SetItemString(d,"wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LEFT_CLICK));
2491 PyDict_SetItemString(d,"wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong((long) wxEVT_COMMAND_LEFT_DCLICK));
2492 PyDict_SetItemString(d,"wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_RIGHT_CLICK));
2493 PyDict_SetItemString(d,"wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong((long) wxEVT_COMMAND_RIGHT_DCLICK));
2494 PyDict_SetItemString(d,"wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong((long) wxEVT_COMMAND_SET_FOCUS));
2495 PyDict_SetItemString(d,"wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong((long) wxEVT_COMMAND_KILL_FOCUS));
2496 PyDict_SetItemString(d,"wxEVT_COMMAND_ENTER", PyInt_FromLong((long) wxEVT_COMMAND_ENTER));
2497 PyDict_SetItemString(d,"wxEVT_NAVIGATION_KEY", PyInt_FromLong((long) wxEVT_NAVIGATION_KEY));
2498 PyDict_SetItemString(d,"wxEVT_TIMER", PyInt_FromLong((long) wxEVT_TIMER));
2499 PyDict_SetItemString(d,"__version__", PyString_FromString("0.0.0"));
2500 PyDict_SetItemString(d,"cvar", SWIG_globals);
2501 SWIG_addvarlink(SWIG_globals,"wxDefaultPosition",_wrap_wxDefaultPosition_get, _wrap_wxDefaultPosition_set);
2502 SWIG_addvarlink(SWIG_globals,"wxDefaultSize",_wrap_wxDefaultSize_get, _wrap_wxDefaultSize_set);
2503
2504 // Make our API structure a CObject so other modules can import it
2505 // from this module.
2506 PyObject* v = PyCObject_FromVoidPtr(&API, NULL);
2507 PyDict_SetItemString(d,"wxPyCoreAPI", v);
2508 Py_XDECREF(v);
2509
2510
2511 __wxPreStart(); // initialize the GUI toolkit, if needed.
2512
2513
2514 // Since these modules are all linked together, initialize them now
2515 // because Python won't be able to find their shared library files,
2516 // (since there isn't any.)
2517 initwindowsc();
2518 initwindows2c();
2519 initeventsc();
2520 initmiscc();
2521 initmisc2c();
2522 initgdic();
2523 initmdic();
2524 initcontrolsc();
2525 initcontrols2c();
2526 initcmndlgsc();
2527 initstattoolc();
2528 initframesc();
2529 initwindows3c();
2530 initimagec();
2531 initprintfwc();
2532 initsizersc();
2533 initclip_dndc();
2534 initstreamsc();
2535 initfilesysc();
2536
2537 {
2538 int i;
2539 for (i = 0; _swig_mapping[i].n1; i++)
2540 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
2541 }
2542 }