1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
14 template<class T
> class SwigValueWrapper
{
17 SwigValueWrapper() : tt(0) { }
18 SwigValueWrapper(const SwigValueWrapper
<T
>& rhs
) : tt(new T(*rhs
.tt
)) { }
19 SwigValueWrapper(const T
& t
) : tt(new T(t
)) { }
20 ~SwigValueWrapper() { delete tt
; }
21 SwigValueWrapper
& operator=(const T
& t
) { delete tt
; tt
= new T(t
); return *this; }
22 operator T
&() const { return *tt
; }
23 T
*operator&() { return tt
; }
25 SwigValueWrapper
& operator=(const SwigValueWrapper
<T
>& rhs
);
30 #ifndef SWIG_TEMPLATE_DISAMBIGUATOR
31 # if defined(__SUNPRO_CC)
32 # define SWIG_TEMPLATE_DISAMBIGUATOR template
34 # define SWIG_TEMPLATE_DISAMBIGUATOR
41 /***********************************************************************
44 * This file contains generic CAPI SWIG runtime support for pointer
47 ************************************************************************/
49 /* This should only be incremented when either the layout of swig_type_info changes,
50 or for whatever reason, the runtime changes incompatibly */
51 #define SWIG_RUNTIME_VERSION "1"
53 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
54 #ifdef SWIG_TYPE_TABLE
55 #define SWIG_QUOTE_STRING(x) #x
56 #define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
57 #define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
59 #define SWIG_TYPE_TABLE_NAME
65 #if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
66 # define SWIGINLINE inline
73 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
74 creating a static or dynamic library from the swig runtime code.
75 In 99.9% of the cases, swig just needs to declare them as 'static'.
77 But only do this if is strictly necessary, ie, if you have problems
78 with your compiler or so.
81 #define SWIGRUNTIME static
83 #ifndef SWIGRUNTIMEINLINE
84 #define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
91 typedef void *(*swig_converter_func
)(void *);
92 typedef struct swig_type_info
*(*swig_dycast_func
)(void **);
94 typedef struct swig_type_info
{
96 swig_converter_func converter
;
99 swig_dycast_func dcast
;
100 struct swig_type_info
*next
;
101 struct swig_type_info
*prev
;
105 Compare two type names skipping the space characters, therefore
106 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
108 Return 0 when the two name types are equivalent, as in
109 strncmp, but skipping ' '.
112 SWIG_TypeNameComp(const char *f1
, const char *l1
,
113 const char *f2
, const char *l2
) {
114 for (;(f1
!= l1
) && (f2
!= l2
); ++f1
, ++f2
) {
115 while ((*f1
== ' ') && (f1
!= l1
)) ++f1
;
116 while ((*f2
== ' ') && (f2
!= l2
)) ++f2
;
117 if (*f1
!= *f2
) return *f1
- *f2
;
119 return (l1
- f1
) - (l2
- f2
);
123 Check type equivalence in a name list like <name1>|<name2>|...
126 SWIG_TypeEquiv(const char *nb
, const char *tb
) {
128 const char* te
= tb
+ strlen(tb
);
130 while (!equiv
&& *ne
) {
131 for (nb
= ne
; *ne
; ++ne
) {
132 if (*ne
== '|') break;
134 equiv
= SWIG_TypeNameComp(nb
, ne
, tb
, te
) == 0;
141 Register a type mapping with the type-checking
143 SWIGRUNTIME swig_type_info
*
144 SWIG_TypeRegisterTL(swig_type_info
**tl
, swig_type_info
*ti
) {
145 swig_type_info
*tc
, *head
, *ret
, *next
;
146 /* Check to see if this type has already been registered */
149 /* check simple type equivalence */
150 int typeequiv
= (strcmp(tc
->name
, ti
->name
) == 0);
151 /* check full type equivalence, resolving typedefs */
153 /* only if tc is not a typedef (no '|' on it) */
154 if (tc
->str
&& ti
->str
&& !strstr(tc
->str
,"|")) {
155 typeequiv
= SWIG_TypeEquiv(ti
->str
,tc
->str
);
159 /* Already exists in the table. Just add additional types to the list */
160 if (ti
->clientdata
) tc
->clientdata
= ti
->clientdata
;
174 /* Build linked lists */
178 /* Patch up the rest of the links */
185 if (next
) next
->prev
= head
;
194 SWIGRUNTIME swig_type_info
*
195 SWIG_TypeCheck(const char *c
, swig_type_info
*ty
) {
197 if (!ty
) return 0; /* Void pointer */
198 s
= ty
->next
; /* First element always just a name */
200 if (strcmp(s
->name
,c
) == 0) {
201 if (s
== ty
->next
) return s
;
202 /* Move s to the top of the linked list */
203 s
->prev
->next
= s
->next
;
205 s
->next
->prev
= s
->prev
;
207 /* Insert s as second element in the list */
209 if (ty
->next
) ty
->next
->prev
= s
;
215 } while (s
&& (s
!= ty
->next
));
220 Cast a pointer up an inheritance hierarchy
222 SWIGRUNTIMEINLINE
void *
223 SWIG_TypeCast(swig_type_info
*ty
, void *ptr
) {
224 return ((!ty
) || (!ty
->converter
)) ? ptr
: (*ty
->converter
)(ptr
);
228 Dynamic pointer casting. Down an inheritance hierarchy
230 SWIGRUNTIME swig_type_info
*
231 SWIG_TypeDynamicCast(swig_type_info
*ty
, void **ptr
) {
232 swig_type_info
*lastty
= ty
;
233 if (!ty
|| !ty
->dcast
) return ty
;
234 while (ty
&& (ty
->dcast
)) {
235 ty
= (*ty
->dcast
)(ptr
);
242 Return the name associated with this type
244 SWIGRUNTIMEINLINE
const char *
245 SWIG_TypeName(const swig_type_info
*ty
) {
250 Return the pretty name associated with this type,
251 that is an unmangled type name in a form presentable to the user.
253 SWIGRUNTIME
const char *
254 SWIG_TypePrettyName(const swig_type_info
*type
) {
255 /* The "str" field contains the equivalent pretty names of the
256 type, separated by vertical-bar characters. We choose
257 to print the last name, as it is often (?) the most
259 if (type
->str
!= NULL
) {
260 const char *last_name
= type
->str
;
262 for (s
= type
->str
; *s
; s
++)
263 if (*s
== '|') last_name
= s
+1;
271 Search for a swig_type_info structure
273 SWIGRUNTIME swig_type_info
*
274 SWIG_TypeQueryTL(swig_type_info
*tl
, const char *name
) {
275 swig_type_info
*ty
= tl
;
277 if (ty
->str
&& (SWIG_TypeEquiv(ty
->str
,name
))) return ty
;
278 if (ty
->name
&& (strcmp(name
,ty
->name
) == 0)) return ty
;
285 Set the clientdata field for a type
288 SWIG_TypeClientDataTL(swig_type_info
*tl
, swig_type_info
*ti
, void *clientdata
) {
289 swig_type_info
*tc
, *equiv
;
290 if (ti
->clientdata
) return;
291 /* if (ti->clientdata == clientdata) return; */
292 ti
->clientdata
= clientdata
;
295 if (!equiv
->converter
) {
298 if ((strcmp(tc
->name
, equiv
->name
) == 0))
299 SWIG_TypeClientDataTL(tl
,tc
,clientdata
);
308 Pack binary data into a string
311 SWIG_PackData(char *c
, void *ptr
, size_t sz
) {
312 static char hex
[17] = "0123456789abcdef";
313 unsigned char *u
= (unsigned char *) ptr
;
314 const unsigned char *eu
= u
+ sz
;
315 register unsigned char uu
;
316 for (; u
!= eu
; ++u
) {
318 *(c
++) = hex
[(uu
& 0xf0) >> 4];
319 *(c
++) = hex
[uu
& 0xf];
325 Unpack binary data from a string
327 SWIGRUNTIME
const char *
328 SWIG_UnpackData(const char *c
, void *ptr
, size_t sz
) {
329 register unsigned char *u
= (unsigned char *) ptr
;
330 register const unsigned char *eu
= u
+ sz
;
331 for (; u
!= eu
; ++u
) {
332 register int d
= *(c
++);
333 register unsigned char uu
= 0;
334 if ((d
>= '0') && (d
<= '9'))
335 uu
= ((d
- '0') << 4);
336 else if ((d
>= 'a') && (d
<= 'f'))
337 uu
= ((d
- ('a'-10)) << 4);
341 if ((d
>= '0') && (d
<= '9'))
343 else if ((d
>= 'a') && (d
<= 'f'))
344 uu
|= (d
- ('a'-10));
353 This function will propagate the clientdata field of type to any new
354 swig_type_info structures that have been added into the list of
355 equivalent types. It is like calling SWIG_TypeClientData(type,
356 clientdata) a second time.
359 SWIG_PropagateClientDataTL(swig_type_info
*tl
, swig_type_info
*type
) {
360 swig_type_info
*equiv
= type
->next
;
362 if (!type
->clientdata
) return;
364 if (!equiv
->converter
) {
367 if ((strcmp(tc
->name
, equiv
->name
) == 0) && !tc
->clientdata
)
368 SWIG_TypeClientDataTL(tl
,tc
, type
->clientdata
);
377 Pack 'void *' into a string buffer.
380 SWIG_PackVoidPtr(char *buff
, void *ptr
, const char *name
, size_t bsz
) {
382 if ((2*sizeof(void *) + 2) > bsz
) return 0;
384 r
= SWIG_PackData(r
,&ptr
,sizeof(void *));
385 if (strlen(name
) + 1 > (bsz
- (r
- buff
))) return 0;
390 SWIGRUNTIME
const char *
391 SWIG_UnpackVoidPtr(const char *c
, void **ptr
, const char *name
) {
393 if (strcmp(c
,"NULL") == 0) {
400 return SWIG_UnpackData(++c
,ptr
,sizeof(void *));
404 SWIG_PackDataName(char *buff
, void *ptr
, size_t sz
, const char *name
, size_t bsz
) {
406 size_t lname
= (name
? strlen(name
) : 0);
407 if ((2*sz
+ 2 + lname
) > bsz
) return 0;
409 r
= SWIG_PackData(r
,ptr
,sz
);
411 strncpy(r
,name
,lname
+1);
418 SWIGRUNTIME
const char *
419 SWIG_UnpackDataName(const char *c
, void *ptr
, size_t sz
, const char *name
) {
421 if (strcmp(c
,"NULL") == 0) {
428 return SWIG_UnpackData(++c
,ptr
,sz
);
435 /***********************************************************************
438 * This file contains generic SWIG runtime support for pointer
439 * type checking as well as a few commonly used macros to control
442 * Author : David Beazley (beazley@cs.uchicago.edu)
444 * Copyright (c) 1999-2000, The University of Chicago
446 * This file may be freely redistributed without license or fee provided
447 * this copyright message remains intact.
448 ************************************************************************/
451 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
452 # if !defined(STATIC_LINKED)
453 # define SWIGEXPORT(a) __declspec(dllexport) a
455 # define SWIGEXPORT(a) a
458 # define SWIGEXPORT(a) a
466 /*************************************************************************/
469 /* The static type info list */
471 static swig_type_info
*swig_type_list
= 0;
472 static swig_type_info
**swig_type_list_handle
= &swig_type_list
;
475 /* Register a type mapping with the type-checking */
476 static swig_type_info
*
477 SWIG_TypeRegister(swig_type_info
*ti
) {
478 return SWIG_TypeRegisterTL(swig_type_list_handle
, ti
);
481 /* Search for a swig_type_info structure */
482 static swig_type_info
*
483 SWIG_TypeQuery(const char *name
) {
484 return SWIG_TypeQueryTL(*swig_type_list_handle
, name
);
487 /* Set the clientdata field for a type */
489 SWIG_TypeClientData(swig_type_info
*ti
, void *clientdata
) {
490 SWIG_TypeClientDataTL(*swig_type_list_handle
, ti
, clientdata
);
493 /* This function will propagate the clientdata field of type to
494 * any new swig_type_info structures that have been added into the list
495 * of equivalent types. It is like calling
496 * SWIG_TypeClientData(type, clientdata) a second time.
499 SWIG_PropagateClientData(swig_type_info
*type
) {
500 SWIG_PropagateClientDataTL(*swig_type_list_handle
, type
);
507 /* -----------------------------------------------------------------------------
508 * SWIG API. Portion that goes into the runtime
509 * ----------------------------------------------------------------------------- */
515 /* -----------------------------------------------------------------------------
516 * for internal method declarations
517 * ----------------------------------------------------------------------------- */
520 #define SWIGINTERN static
523 #ifndef SWIGINTERNSHORT
525 #define SWIGINTERNSHORT static inline
527 #define SWIGINTERNSHORT static
528 #endif /* __cplusplus */
533 Exception handling in wrappers
535 #define SWIG_fail goto fail
536 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
537 #define SWIG_append_errmsg(msg) SWIG_Python_AddErrMesg(msg,0)
538 #define SWIG_preppend_errmsg(msg) SWIG_Python_AddErrMesg(msg,1)
539 #define SWIG_type_error(type,obj) SWIG_Python_TypeError(type,obj)
540 #define SWIG_null_ref(type) SWIG_Python_NullRef(type)
545 #define SWIG_contract_assert(expr, msg) \
546 if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
548 /* -----------------------------------------------------------------------------
549 * Constant declarations
550 * ----------------------------------------------------------------------------- */
553 #define SWIG_PY_INT 1
554 #define SWIG_PY_FLOAT 2
555 #define SWIG_PY_STRING 3
556 #define SWIG_PY_POINTER 4
557 #define SWIG_PY_BINARY 5
559 /* Constant information structure */
560 typedef struct swig_const_info
{
566 swig_type_info
**ptype
;
570 /* -----------------------------------------------------------------------------
571 * Alloc. memory flags
572 * ----------------------------------------------------------------------------- */
573 #define SWIG_OLDOBJ 1
574 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
575 #define SWIG_PYSTR SWIG_NEWOBJ + 1
582 /***********************************************************************
585 * This file contains the runtime support for Python modules
586 * and includes code for managing global variables and pointer
589 * Author : David Beazley (beazley@cs.uchicago.edu)
590 ************************************************************************/
592 /* Common SWIG API */
593 #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Python_ConvertPtr(obj, pp, type, flags)
594 #define SWIG_NewPointerObj(p, type, flags) SWIG_Python_NewPointerObj(p, type, flags)
595 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
598 /* Python-specific SWIG API */
599 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
600 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
603 /* -----------------------------------------------------------------------------
604 * Pointer declarations
605 * ----------------------------------------------------------------------------- */
607 Use SWIG_NO_COBJECT_TYPES to force the use of strings to represent
608 C/C++ pointers in the python side. Very useful for debugging, but
611 #if !defined(SWIG_NO_COBJECT_TYPES) && !defined(SWIG_COBJECT_TYPES)
612 # define SWIG_COBJECT_TYPES
615 /* Flags for pointer conversion */
616 #define SWIG_POINTER_EXCEPTION 0x1
617 #define SWIG_POINTER_DISOWN 0x2
624 /* -----------------------------------------------------------------------------
625 * Create a new pointer string
626 * ----------------------------------------------------------------------------- */
628 #ifndef SWIG_BUFFER_SIZE
629 #define SWIG_BUFFER_SIZE 1024
632 #if defined(SWIG_COBJECT_TYPES)
633 #if !defined(SWIG_COBJECT_PYTHON)
634 /* -----------------------------------------------------------------------------
635 * Implements a simple Swig Object type, and use it instead of PyCObject
636 * ----------------------------------------------------------------------------- */
644 /* Declarations for objects of type PySwigObject */
647 PySwigObject_print(PySwigObject
*v
, FILE *fp
, int flags
)
649 char result
[SWIG_BUFFER_SIZE
];
650 if (SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
))) {
651 fputs("<Swig Object at ", fp
); fputs(result
, fp
); fputs(">", fp
);
658 SWIGRUNTIME PyObject
*
659 PySwigObject_repr(PySwigObject
*v
)
661 char result
[SWIG_BUFFER_SIZE
];
662 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
663 PyString_FromFormat("<Swig Object at %s>", result
) : 0;
666 SWIGRUNTIME PyObject
*
667 PySwigObject_str(PySwigObject
*v
)
669 char result
[SWIG_BUFFER_SIZE
];
670 return SWIG_PackVoidPtr(result
, v
->ptr
, v
->desc
, sizeof(result
)) ?
671 PyString_FromString(result
) : 0;
674 SWIGRUNTIME PyObject
*
675 PySwigObject_long(PySwigObject
*v
)
677 return PyLong_FromUnsignedLong((unsigned long) v
->ptr
);
680 SWIGRUNTIME PyObject
*
681 PySwigObject_oct(PySwigObject
*v
)
684 unsigned long x
= (unsigned long)v
->ptr
;
688 PyOS_snprintf(buf
, sizeof(buf
), "0%lo", x
);
689 return PyString_FromString(buf
);
692 SWIGRUNTIME PyObject
*
693 PySwigObject_hex(PySwigObject
*v
)
696 PyOS_snprintf(buf
, sizeof(buf
), "0x%lx", (unsigned long)v
->ptr
);
697 return PyString_FromString(buf
);
701 PySwigObject_compare(PySwigObject
*v
, PySwigObject
*w
)
703 int c
= strcmp(v
->desc
, w
->desc
);
709 return (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
714 PySwigObject_dealloc(PySwigObject
*self
)
719 SWIGRUNTIME PyTypeObject
*
720 PySwigObject_GetType() {
721 static char PySwigObject_Type__doc__
[] =
722 "Swig object carries a C/C++ instance pointer";
724 static PyNumberMethods PySwigObject_as_number
= {
725 (binaryfunc
)0, /*nb_add*/
726 (binaryfunc
)0, /*nb_subtract*/
727 (binaryfunc
)0, /*nb_multiply*/
728 (binaryfunc
)0, /*nb_divide*/
729 (binaryfunc
)0, /*nb_remainder*/
730 (binaryfunc
)0, /*nb_divmod*/
731 (ternaryfunc
)0,/*nb_power*/
732 (unaryfunc
)0, /*nb_negative*/
733 (unaryfunc
)0, /*nb_positive*/
734 (unaryfunc
)0, /*nb_absolute*/
735 (inquiry
)0, /*nb_nonzero*/
742 (coercion
)0, /*nb_coerce*/
743 (unaryfunc
)PySwigObject_long
, /*nb_int*/
744 (unaryfunc
)PySwigObject_long
, /*nb_long*/
745 (unaryfunc
)0, /*nb_float*/
746 (unaryfunc
)PySwigObject_oct
, /*nb_oct*/
747 (unaryfunc
)PySwigObject_hex
, /*nb_hex*/
748 #if PY_VERSION_HEX >= 0x02000000
749 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
753 static int type_init
= 0;
754 static PyTypeObject PySwigObject_Type
;
758 PyObject_HEAD_INIT(&PyType_Type
)
760 "PySwigObject", /*tp_name*/
761 sizeof(PySwigObject
), /*tp_basicsize*/
764 (destructor
)PySwigObject_dealloc
, /*tp_dealloc*/
765 (printfunc
)PySwigObject_print
, /*tp_print*/
766 (getattrfunc
)0, /*tp_getattr*/
767 (setattrfunc
)0, /*tp_setattr*/
768 (cmpfunc
)PySwigObject_compare
, /*tp_compare*/
769 (reprfunc
)PySwigObject_repr
, /*tp_repr*/
770 &PySwigObject_as_number
, /*tp_as_number*/
771 0, /*tp_as_sequence*/
773 (hashfunc
)0, /*tp_hash*/
774 (ternaryfunc
)0, /*tp_call*/
775 (reprfunc
)PySwigObject_str
, /*tp_str*/
776 /* Space for future expansion */
778 PySwigObject_Type__doc__
, /* Documentation string */
779 #if PY_VERSION_HEX >= 0x02000000
783 #if PY_VERSION_HEX >= 0x02010000
784 0, /* tp_richcompare */
785 0, /* tp_weaklistoffset */
787 #if PY_VERSION_HEX >= 0x02020000
788 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
790 #if PY_VERSION_HEX >= 0x02030000
794 0,0,0,0 /* tp_alloc -> tp_next */
798 PySwigObject_Type
= tmp
;
802 return &PySwigObject_Type
;
805 SWIGRUNTIME PyObject
*
806 PySwigObject_FromVoidPtrAndDesc(void *ptr
, const char *desc
)
808 PySwigObject
*self
= PyObject_NEW(PySwigObject
, PySwigObject_GetType());
809 if (self
== NULL
) return NULL
;
812 return (PyObject
*)self
;
815 SWIGRUNTIMEINLINE
void *
816 PySwigObject_AsVoidPtr(PyObject
*self
)
818 return ((PySwigObject
*)self
)->ptr
;
821 SWIGRUNTIMEINLINE
const char *
822 PySwigObject_GetDesc(PyObject
*self
)
824 return ((PySwigObject
*)self
)->desc
;
827 SWIGRUNTIMEINLINE
int
828 PySwigObject_Check(PyObject
*op
) {
829 return ((op
)->ob_type
== PySwigObject_GetType())
830 || (strcmp((op
)->ob_type
->tp_name
,"PySwigObject") == 0);
833 /* -----------------------------------------------------------------------------
834 * Implements a simple Swig Packed type, and use it instead of string
835 * ----------------------------------------------------------------------------- */
845 PySwigPacked_print(PySwigPacked
*v
, FILE *fp
, int flags
)
847 char result
[SWIG_BUFFER_SIZE
];
848 fputs("<Swig Packed ", fp
);
849 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
858 SWIGRUNTIME PyObject
*
859 PySwigPacked_repr(PySwigPacked
*v
)
861 char result
[SWIG_BUFFER_SIZE
];
862 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))) {
863 return PyString_FromFormat("<Swig Packed at %s%s>", result
, v
->desc
);
865 return PyString_FromFormat("<Swig Packed %s>", v
->desc
);
869 SWIGRUNTIME PyObject
*
870 PySwigPacked_str(PySwigPacked
*v
)
872 char result
[SWIG_BUFFER_SIZE
];
873 if (SWIG_PackDataName(result
, v
->pack
, v
->size
, 0, sizeof(result
))){
874 return PyString_FromFormat("%s%s", result
, v
->desc
);
876 return PyString_FromFormat("%s", v
->desc
);
881 PySwigPacked_compare(PySwigPacked
*v
, PySwigPacked
*w
)
883 int c
= strcmp(v
->desc
, w
->desc
);
889 int s
= (i
< j
) ? -1 : (i
> j
) ? 1 : 0;
890 return s
? s
: strncmp((char *)v
->pack
, (char *)w
->pack
, 2*v
->size
);
895 PySwigPacked_dealloc(PySwigPacked
*self
)
901 SWIGRUNTIME PyTypeObject
*
902 PySwigPacked_GetType() {
903 static char PySwigPacked_Type__doc__
[] =
904 "Swig object carries a C/C++ instance pointer";
905 static int type_init
= 0;
907 static PyTypeObject PySwigPacked_Type
;
910 PyObject_HEAD_INIT(&PyType_Type
)
912 "PySwigPacked", /*tp_name*/
913 sizeof(PySwigPacked
), /*tp_basicsize*/
916 (destructor
)PySwigPacked_dealloc
, /*tp_dealloc*/
917 (printfunc
)PySwigPacked_print
, /*tp_print*/
918 (getattrfunc
)0, /*tp_getattr*/
919 (setattrfunc
)0, /*tp_setattr*/
920 (cmpfunc
)PySwigPacked_compare
, /*tp_compare*/
921 (reprfunc
)PySwigPacked_repr
, /*tp_repr*/
923 0, /*tp_as_sequence*/
925 (hashfunc
)0, /*tp_hash*/
926 (ternaryfunc
)0, /*tp_call*/
927 (reprfunc
)PySwigPacked_str
, /*tp_str*/
928 /* Space for future expansion */
930 PySwigPacked_Type__doc__
, /* Documentation string */
931 #if PY_VERSION_HEX >= 0x02000000
935 #if PY_VERSION_HEX >= 0x02010000
936 0, /* tp_richcompare */
937 0, /* tp_weaklistoffset */
939 #if PY_VERSION_HEX >= 0x02020000
940 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
942 #if PY_VERSION_HEX >= 0x02030000
946 0,0,0,0 /* tp_alloc -> tp_next */
950 PySwigPacked_Type
= tmp
;
956 return &PySwigPacked_Type
;
959 SWIGRUNTIME PyObject
*
960 PySwigPacked_FromDataAndDesc(void *ptr
, size_t size
, const char *desc
)
962 PySwigPacked
*self
= PyObject_NEW(PySwigPacked
, PySwigPacked_GetType());
966 void *pack
= malloc(size
);
967 memcpy(pack
, ptr
, size
);
971 return (PyObject
*) self
;
975 SWIGRUNTIMEINLINE
const char *
976 PySwigPacked_UnpackData(PyObject
*obj
, void *ptr
, size_t size
)
978 PySwigPacked
*self
= (PySwigPacked
*)obj
;
979 if (self
->size
!= size
) return 0;
980 memcpy(ptr
, self
->pack
, size
);
984 SWIGRUNTIMEINLINE
const char *
985 PySwigPacked_GetDesc(PyObject
*self
)
987 return ((PySwigPacked
*)self
)->desc
;
990 SWIGRUNTIMEINLINE
int
991 PySwigPacked_Check(PyObject
*op
) {
992 return ((op
)->ob_type
== PySwigPacked_GetType())
993 || (strcmp((op
)->ob_type
->tp_name
,"PySwigPacked") == 0);
997 /* -----------------------------------------------------------------------------
998 * Use the old Python PyCObject instead of PySwigObject
999 * ----------------------------------------------------------------------------- */
1001 #define PySwigObject_GetDesc(obj) PyCObject_GetDesc(obj)
1002 #define PySwigObject_Check(obj) PyCObject_Check(obj)
1003 #define PySwigObject_AsVoidPtr(obj) PyCObject_AsVoidPtr(obj)
1004 #define PySwigObject_FromVoidPtrAndDesc(p, d) PyCObject_FromVoidPtrAndDesc(p, d, NULL)
1010 /* -----------------------------------------------------------------------------
1011 * errors manipulation
1012 * ----------------------------------------------------------------------------- */
1015 SWIG_Python_TypeError(const char *type
, PyObject
*obj
)
1018 #if defined(SWIG_COBJECT_TYPES)
1019 if (PySwigObject_Check(obj
)) {
1020 const char *otype
= (const char *) PySwigObject_GetDesc(obj
);
1022 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, 'PySwigObject(%s)' is received",
1029 const char *otype
= (obj
? obj
->ob_type
->tp_name
: 0);
1031 PyObject
*str
= PyObject_Str(obj
);
1032 const char *cstr
= str
? PyString_AsString(str
) : 0;
1034 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s(%s)' is received",
1037 PyErr_Format(PyExc_TypeError
, "a '%s' is expected, '%s' is received",
1044 PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
);
1046 PyErr_Format(PyExc_TypeError
, "unexpected type is received");
1050 SWIGRUNTIMEINLINE
void
1051 SWIG_Python_NullRef(const char *type
)
1054 PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
);
1056 PyErr_Format(PyExc_TypeError
, "null reference was received");
1061 SWIG_Python_AddErrMesg(const char* mesg
, int infront
)
1063 if (PyErr_Occurred()) {
1065 PyObject
*value
= 0;
1066 PyObject
*traceback
= 0;
1067 PyErr_Fetch(&type
, &value
, &traceback
);
1069 PyObject
*old_str
= PyObject_Str(value
);
1073 PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
));
1075 PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
);
1086 SWIG_Python_ArgFail(int argnum
)
1088 if (PyErr_Occurred()) {
1089 /* add information about failing argument */
1091 sprintf(mesg
, "argument number %d:", argnum
);
1092 return SWIG_Python_AddErrMesg(mesg
, 1);
1099 /* -----------------------------------------------------------------------------
1100 * pointers/data manipulation
1101 * ----------------------------------------------------------------------------- */
1103 /* Convert a pointer value */
1105 SWIG_Python_ConvertPtr(PyObject
*obj
, void **ptr
, swig_type_info
*ty
, int flags
) {
1108 static PyObject
*SWIG_this
= 0;
1110 PyObject
*pyobj
= 0;
1114 if (obj
== Py_None
) {
1119 #ifdef SWIG_COBJECT_TYPES
1120 if (!(PySwigObject_Check(obj
))) {
1122 SWIG_this
= PyString_FromString("this");
1124 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1126 if (!obj
) goto type_error
;
1127 if (!PySwigObject_Check(obj
)) {
1132 vptr
= PySwigObject_AsVoidPtr(obj
);
1133 c
= (const char *) PySwigObject_GetDesc(obj
);
1134 if (newref
) { Py_DECREF(obj
); }
1137 if (!(PyString_Check(obj
))) {
1139 SWIG_this
= PyString_FromString("this");
1141 obj
= PyObject_GetAttr(obj
,SWIG_this
);
1143 if (!obj
) goto type_error
;
1144 if (!PyString_Check(obj
)) {
1149 c
= PyString_AS_STRING(obj
);
1150 /* Pointer values must start with leading underscore */
1151 c
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
);
1152 if (newref
) { Py_DECREF(obj
); }
1153 if (!c
) goto type_error
;
1159 tc
= SWIG_TypeCheck(c
,ty
);
1160 if (!tc
) goto type_error
;
1161 *ptr
= SWIG_TypeCast(tc
,vptr
);
1166 if ((pyobj
) && (flags
& SWIG_POINTER_DISOWN
)) {
1167 PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
);
1173 if (pyobj
&& !obj
) {
1175 if (PyCFunction_Check(obj
)) {
1176 /* here we get the method pointer for callbacks */
1177 char *doc
= (((PyCFunctionObject
*)obj
) -> m_ml
-> ml_doc
);
1178 c
= doc
? strstr(doc
, "swig_ptr: ") : 0;
1180 c
= SWIG_UnpackVoidPtr(c
+ 10, &vptr
, ty
->name
);
1181 if (!c
) goto type_error
;
1186 if (flags
& SWIG_POINTER_EXCEPTION
) {
1188 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1190 SWIG_Python_TypeError("C/C++ pointer", obj
);
1196 /* Convert a pointer value, signal an exception on a type mismatch */
1198 SWIG_Python_MustGetPtr(PyObject
*obj
, swig_type_info
*ty
, int argnum
, int flags
) {
1200 if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) {
1202 if (flags
& SWIG_POINTER_EXCEPTION
) {
1203 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1204 SWIG_Python_ArgFail(argnum
);
1210 /* Convert a packed value value */
1212 SWIG_Python_ConvertPacked(PyObject
*obj
, void *ptr
, size_t sz
, swig_type_info
*ty
, int flags
) {
1216 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1217 c
= PySwigPacked_UnpackData(obj
, ptr
, sz
);
1219 if ((!obj
) || (!PyString_Check(obj
))) goto type_error
;
1220 c
= PyString_AS_STRING(obj
);
1221 /* Pointer values must start with leading underscore */
1222 c
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
);
1224 if (!c
) goto type_error
;
1226 tc
= SWIG_TypeCheck(c
,ty
);
1227 if (!tc
) goto type_error
;
1233 if (flags
& SWIG_POINTER_EXCEPTION
) {
1235 SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
);
1237 SWIG_Python_TypeError("C/C++ packed data", obj
);
1243 /* Create a new array object */
1244 SWIGRUNTIME PyObject
*
1245 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info
*type
, int own
) {
1251 #ifdef SWIG_COBJECT_TYPES
1252 robj
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
);
1255 char result
[SWIG_BUFFER_SIZE
];
1256 robj
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ?
1257 PyString_FromString(result
) : 0;
1260 if (!robj
|| (robj
== Py_None
)) return robj
;
1261 if (type
->clientdata
) {
1263 PyObject
*args
= Py_BuildValue((char*)"(O)", robj
);
1265 inst
= PyObject_CallObject((PyObject
*) type
->clientdata
, args
);
1269 PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
);
1277 SWIGRUNTIME PyObject
*
1278 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info
*type
) {
1284 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON)
1285 robj
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
);
1288 char result
[SWIG_BUFFER_SIZE
];
1289 robj
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ?
1290 PyString_FromString(result
) : 0;
1296 /* -----------------------------------------------------------------------------*
1298 * -----------------------------------------------------------------------------*/
1300 #ifdef SWIG_LINK_RUNTIME
1301 void *SWIG_ReturnGlobalTypeList(void *);
1304 SWIGRUNTIME swig_type_info
**
1305 SWIG_Python_GetTypeListHandle() {
1306 static void *type_pointer
= (void *)0;
1307 /* first check if module already created */
1308 if (!type_pointer
) {
1309 #ifdef SWIG_LINK_RUNTIME
1310 type_pointer
= SWIG_ReturnGlobalTypeList((void *)0);
1312 type_pointer
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
1313 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
);
1314 if (PyErr_Occurred()) {
1316 type_pointer
= (void *)0;
1320 return (swig_type_info
**) type_pointer
;
1324 Search for a swig_type_info structure
1326 SWIGRUNTIMEINLINE swig_type_info
*
1327 SWIG_Python_GetTypeList() {
1328 swig_type_info
**tlh
= SWIG_Python_GetTypeListHandle();
1329 return tlh
? *tlh
: (swig_type_info
*)0;
1332 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList
1339 /* -------- TYPES TABLE (BEGIN) -------- */
1341 #define SWIGTYPE_p_wxObject swig_types[0]
1342 #define SWIGTYPE_p_unsigned_char swig_types[1]
1343 #define SWIGTYPE_p_wxColour swig_types[2]
1344 #define SWIGTYPE_p_wxCalendarDateAttr swig_types[3]
1345 #define SWIGTYPE_p_wxCalendarEvent swig_types[4]
1346 #define SWIGTYPE_p_wxVisualAttributes swig_types[5]
1347 #define SWIGTYPE_p_wxWindow swig_types[6]
1348 #define SWIGTYPE_p_wxCommandEvent swig_types[7]
1349 #define SWIGTYPE_p_unsigned_long swig_types[8]
1350 #define SWIGTYPE_p_unsigned_int swig_types[9]
1351 #define SWIGTYPE_unsigned_int swig_types[10]
1352 #define SWIGTYPE_p_form_ops_t swig_types[11]
1353 #define SWIGTYPE_p_wxDuplexMode swig_types[12]
1354 #define SWIGTYPE_p_wxDateEvent swig_types[13]
1355 #define SWIGTYPE_p_char swig_types[14]
1356 #define SWIGTYPE_p_wxEvtHandler swig_types[15]
1357 #define SWIGTYPE_std__ptrdiff_t swig_types[16]
1358 #define SWIGTYPE_ptrdiff_t swig_types[17]
1359 #define SWIGTYPE_p_wxFont swig_types[18]
1360 #define SWIGTYPE_p_wxDateTime swig_types[19]
1361 #define SWIGTYPE_p_wxControl swig_types[20]
1362 #define SWIGTYPE_p_wxEvent swig_types[21]
1363 #define SWIGTYPE_p_wxPaperSize swig_types[22]
1364 #define SWIGTYPE_p_wxCalendarCtrl swig_types[23]
1365 #define SWIGTYPE_p_int swig_types[24]
1366 static swig_type_info
*swig_types
[26];
1368 /* -------- TYPES TABLE (END) -------- */
1371 /*-----------------------------------------------
1372 @(target):= _calendar.so
1373 ------------------------------------------------*/
1374 #define SWIG_init init_calendar
1376 #define SWIG_name "_calendar"
1378 #include "wx/wxPython/wxPython.h"
1379 #include "wx/wxPython/pyclasses.h"
1381 #include <wx/calctrl.h>
1384 /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/
1385 #define SWIG_From_int PyInt_FromLong
1393 SWIG_CheckLongInRange(long value
, long min_value
, long max_value
,
1396 if (value
< min_value
) {
1398 PyErr_Format(PyExc_OverflowError
,
1399 "value %ld is less than '%s' minimum %ld",
1400 value
, errmsg
, min_value
);
1403 } else if (value
> max_value
) {
1405 PyErr_Format(PyExc_OverflowError
,
1406 "value %ld is greater than '%s' maximum %ld",
1407 value
, errmsg
, max_value
);
1416 SWIG_AsVal_long(PyObject
* obj
, long* val
)
1418 if (PyNumber_Check(obj
)) {
1419 if (val
) *val
= PyInt_AsLong(obj
);
1423 SWIG_type_error("number", obj
);
1429 #if INT_MAX != LONG_MAX
1431 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1433 const char* errmsg
= val
? "int" : (char*)0;
1435 if (SWIG_AsVal_long(obj
, &v
)) {
1436 if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) {
1437 if (val
) *val
= (int)(v
);
1446 SWIG_type_error(errmsg
, obj
);
1452 SWIG_AsVal_int(PyObject
*obj
, int *val
)
1454 return SWIG_AsVal_long(obj
,(long*)val
);
1460 SWIG_As_int(PyObject
* obj
)
1463 if (!SWIG_AsVal_int(obj
, &v
)) {
1465 this is needed to make valgrind/purify happier.
1467 memset((void*)&v
, 0, sizeof(int));
1474 SWIG_Check_int(PyObject
* obj
)
1476 return SWIG_AsVal_int(obj
, (int*)0);
1481 SWIG_AsVal_bool(PyObject
*obj
, bool *val
)
1483 if (obj
== Py_True
) {
1484 if (val
) *val
= true;
1487 if (obj
== Py_False
) {
1488 if (val
) *val
= false;
1492 if (SWIG_AsVal_int(obj
, &res
)) {
1493 if (val
) *val
= res
? true : false;
1499 SWIG_type_error("bool", obj
);
1505 SWIGINTERNSHORT
bool
1506 SWIG_As_bool(PyObject
* obj
)
1509 if (!SWIG_AsVal_bool(obj
, &v
)) {
1511 this is needed to make valgrind/purify happier.
1513 memset((void*)&v
, 0, sizeof(bool));
1520 SWIG_Check_bool(PyObject
* obj
)
1522 return SWIG_AsVal_bool(obj
, (bool*)0);
1525 static const wxString
wxPyCalendarNameStr(wxCalendarNameStr
);
1527 SWIGINTERNSHORT
long
1528 SWIG_As_long(PyObject
* obj
)
1531 if (!SWIG_AsVal_long(obj
, &v
)) {
1533 this is needed to make valgrind/purify happier.
1535 memset((void*)&v
, 0, sizeof(long));
1542 SWIG_Check_long(PyObject
* obj
)
1544 return SWIG_AsVal_long(obj
, (long*)0);
1549 SWIG_AsVal_unsigned_SS_long(PyObject
* obj
, unsigned long* val
)
1552 if (SWIG_AsVal_long(obj
, &v
) && v
< 0) {
1553 SWIG_type_error("unsigned number", obj
);
1556 *val
= (unsigned long)v
;
1561 SWIGINTERNSHORT
unsigned long
1562 SWIG_As_unsigned_SS_long(PyObject
* obj
)
1565 if (!SWIG_AsVal_unsigned_SS_long(obj
, &v
)) {
1567 this is needed to make valgrind/purify happier.
1569 memset((void*)&v
, 0, sizeof(unsigned long));
1576 SWIG_Check_unsigned_SS_long(PyObject
* obj
)
1578 return SWIG_AsVal_unsigned_SS_long(obj
, (unsigned long*)0);
1581 static PyObject
*wxCalendarCtrl_HitTest(wxCalendarCtrl
*self
,wxPoint
const &pos
){
1582 wxDateTime
* date
= new wxDateTime
;
1583 wxDateTime::WeekDay wd
;
1584 wxCalendarHitTestResult result
= self
->HitTest(pos
, date
, &wd
);
1585 wxPyBlock_t blocked
= wxPyBeginBlockThreads();
1586 PyObject
* tup
= PyTuple_New(3);
1587 PyTuple_SET_ITEM(tup
, 0, PyInt_FromLong(result
));
1588 PyTuple_SET_ITEM(tup
, 1, wxPyConstructObject(date
, wxT("wxDateTime"), 1));
1589 PyTuple_SET_ITEM(tup
, 2, PyInt_FromLong(wd
));
1590 wxPyEndBlockThreads(blocked
);
1596 static PyObject
*_wrap_new_CalendarDateAttr(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1597 PyObject
*resultobj
;
1598 wxColour
const &arg1_defvalue
= wxNullColour
;
1599 wxColour
*arg1
= (wxColour
*) &arg1_defvalue
;
1600 wxColour
const &arg2_defvalue
= wxNullColour
;
1601 wxColour
*arg2
= (wxColour
*) &arg2_defvalue
;
1602 wxColour
const &arg3_defvalue
= wxNullColour
;
1603 wxColour
*arg3
= (wxColour
*) &arg3_defvalue
;
1604 wxFont
const &arg4_defvalue
= wxNullFont
;
1605 wxFont
*arg4
= (wxFont
*) &arg4_defvalue
;
1606 wxCalendarDateBorder arg5
= (wxCalendarDateBorder
) wxCAL_BORDER_NONE
;
1607 wxCalendarDateAttr
*result
;
1611 PyObject
* obj0
= 0 ;
1612 PyObject
* obj1
= 0 ;
1613 PyObject
* obj2
= 0 ;
1614 PyObject
* obj3
= 0 ;
1615 PyObject
* obj4
= 0 ;
1617 (char *) "colText",(char *) "colBack",(char *) "colBorder",(char *) "font",(char *) "border", NULL
1620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOO:new_CalendarDateAttr",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
;
1624 if ( ! wxColour_helper(obj0
, &arg1
)) SWIG_fail
;
1630 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
1636 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
1641 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxFont
, SWIG_POINTER_EXCEPTION
| 0);
1642 if (SWIG_arg_fail(4)) SWIG_fail
;
1644 SWIG_null_ref("wxFont");
1646 if (SWIG_arg_fail(4)) SWIG_fail
;
1651 arg5
= (wxCalendarDateBorder
)(SWIG_As_int(obj4
));
1652 if (SWIG_arg_fail(5)) SWIG_fail
;
1656 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1657 result
= (wxCalendarDateAttr
*)new wxCalendarDateAttr((wxColour
const &)*arg1
,(wxColour
const &)*arg2
,(wxColour
const &)*arg3
,(wxFont
const &)*arg4
,(wxCalendarDateBorder
)arg5
);
1659 wxPyEndAllowThreads(__tstate
);
1660 if (PyErr_Occurred()) SWIG_fail
;
1662 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarDateAttr
, 1);
1669 static PyObject
*_wrap_CalendarDateAttr_SetTextColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1670 PyObject
*resultobj
;
1671 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1672 wxColour
*arg2
= 0 ;
1674 PyObject
* obj0
= 0 ;
1675 PyObject
* obj1
= 0 ;
1677 (char *) "self",(char *) "colText", NULL
1680 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetTextColour",kwnames
,&obj0
,&obj1
)) goto fail
;
1681 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1682 if (SWIG_arg_fail(1)) SWIG_fail
;
1685 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
1688 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1689 (arg1
)->SetTextColour((wxColour
const &)*arg2
);
1691 wxPyEndAllowThreads(__tstate
);
1692 if (PyErr_Occurred()) SWIG_fail
;
1694 Py_INCREF(Py_None
); resultobj
= Py_None
;
1701 static PyObject
*_wrap_CalendarDateAttr_SetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1702 PyObject
*resultobj
;
1703 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1704 wxColour
*arg2
= 0 ;
1706 PyObject
* obj0
= 0 ;
1707 PyObject
* obj1
= 0 ;
1709 (char *) "self",(char *) "colBack", NULL
1712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
;
1713 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1714 if (SWIG_arg_fail(1)) SWIG_fail
;
1717 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
1720 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1721 (arg1
)->SetBackgroundColour((wxColour
const &)*arg2
);
1723 wxPyEndAllowThreads(__tstate
);
1724 if (PyErr_Occurred()) SWIG_fail
;
1726 Py_INCREF(Py_None
); resultobj
= Py_None
;
1733 static PyObject
*_wrap_CalendarDateAttr_SetBorderColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1734 PyObject
*resultobj
;
1735 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1736 wxColour
*arg2
= 0 ;
1738 PyObject
* obj0
= 0 ;
1739 PyObject
* obj1
= 0 ;
1741 (char *) "self",(char *) "col", NULL
1744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetBorderColour",kwnames
,&obj0
,&obj1
)) goto fail
;
1745 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1746 if (SWIG_arg_fail(1)) SWIG_fail
;
1749 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
1752 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1753 (arg1
)->SetBorderColour((wxColour
const &)*arg2
);
1755 wxPyEndAllowThreads(__tstate
);
1756 if (PyErr_Occurred()) SWIG_fail
;
1758 Py_INCREF(Py_None
); resultobj
= Py_None
;
1765 static PyObject
*_wrap_CalendarDateAttr_SetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1766 PyObject
*resultobj
;
1767 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1769 PyObject
* obj0
= 0 ;
1770 PyObject
* obj1
= 0 ;
1772 (char *) "self",(char *) "font", NULL
1775 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetFont",kwnames
,&obj0
,&obj1
)) goto fail
;
1776 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1777 if (SWIG_arg_fail(1)) SWIG_fail
;
1779 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxFont
, SWIG_POINTER_EXCEPTION
| 0);
1780 if (SWIG_arg_fail(2)) SWIG_fail
;
1782 SWIG_null_ref("wxFont");
1784 if (SWIG_arg_fail(2)) SWIG_fail
;
1787 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1788 (arg1
)->SetFont((wxFont
const &)*arg2
);
1790 wxPyEndAllowThreads(__tstate
);
1791 if (PyErr_Occurred()) SWIG_fail
;
1793 Py_INCREF(Py_None
); resultobj
= Py_None
;
1800 static PyObject
*_wrap_CalendarDateAttr_SetBorder(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1801 PyObject
*resultobj
;
1802 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1803 wxCalendarDateBorder arg2
;
1804 PyObject
* obj0
= 0 ;
1805 PyObject
* obj1
= 0 ;
1807 (char *) "self",(char *) "border", NULL
1810 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetBorder",kwnames
,&obj0
,&obj1
)) goto fail
;
1811 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1812 if (SWIG_arg_fail(1)) SWIG_fail
;
1814 arg2
= (wxCalendarDateBorder
)(SWIG_As_int(obj1
));
1815 if (SWIG_arg_fail(2)) SWIG_fail
;
1818 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1819 (arg1
)->SetBorder((wxCalendarDateBorder
)arg2
);
1821 wxPyEndAllowThreads(__tstate
);
1822 if (PyErr_Occurred()) SWIG_fail
;
1824 Py_INCREF(Py_None
); resultobj
= Py_None
;
1831 static PyObject
*_wrap_CalendarDateAttr_SetHoliday(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1832 PyObject
*resultobj
;
1833 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1835 PyObject
* obj0
= 0 ;
1836 PyObject
* obj1
= 0 ;
1838 (char *) "self",(char *) "holiday", NULL
1841 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetHoliday",kwnames
,&obj0
,&obj1
)) goto fail
;
1842 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1843 if (SWIG_arg_fail(1)) SWIG_fail
;
1845 arg2
= (bool)(SWIG_As_bool(obj1
));
1846 if (SWIG_arg_fail(2)) SWIG_fail
;
1849 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1850 (arg1
)->SetHoliday(arg2
);
1852 wxPyEndAllowThreads(__tstate
);
1853 if (PyErr_Occurred()) SWIG_fail
;
1855 Py_INCREF(Py_None
); resultobj
= Py_None
;
1862 static PyObject
*_wrap_CalendarDateAttr_HasTextColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1863 PyObject
*resultobj
;
1864 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1866 PyObject
* obj0
= 0 ;
1868 (char *) "self", NULL
1871 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasTextColour",kwnames
,&obj0
)) goto fail
;
1872 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1873 if (SWIG_arg_fail(1)) SWIG_fail
;
1875 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1876 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasTextColour();
1878 wxPyEndAllowThreads(__tstate
);
1879 if (PyErr_Occurred()) SWIG_fail
;
1882 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1890 static PyObject
*_wrap_CalendarDateAttr_HasBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1891 PyObject
*resultobj
;
1892 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1894 PyObject
* obj0
= 0 ;
1896 (char *) "self", NULL
1899 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasBackgroundColour",kwnames
,&obj0
)) goto fail
;
1900 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1901 if (SWIG_arg_fail(1)) SWIG_fail
;
1903 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1904 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasBackgroundColour();
1906 wxPyEndAllowThreads(__tstate
);
1907 if (PyErr_Occurred()) SWIG_fail
;
1910 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1918 static PyObject
*_wrap_CalendarDateAttr_HasBorderColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1919 PyObject
*resultobj
;
1920 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1922 PyObject
* obj0
= 0 ;
1924 (char *) "self", NULL
1927 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasBorderColour",kwnames
,&obj0
)) goto fail
;
1928 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1929 if (SWIG_arg_fail(1)) SWIG_fail
;
1931 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1932 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasBorderColour();
1934 wxPyEndAllowThreads(__tstate
);
1935 if (PyErr_Occurred()) SWIG_fail
;
1938 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1946 static PyObject
*_wrap_CalendarDateAttr_HasFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1947 PyObject
*resultobj
;
1948 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1950 PyObject
* obj0
= 0 ;
1952 (char *) "self", NULL
1955 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasFont",kwnames
,&obj0
)) goto fail
;
1956 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1957 if (SWIG_arg_fail(1)) SWIG_fail
;
1959 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1960 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasFont();
1962 wxPyEndAllowThreads(__tstate
);
1963 if (PyErr_Occurred()) SWIG_fail
;
1966 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
1974 static PyObject
*_wrap_CalendarDateAttr_HasBorder(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
1975 PyObject
*resultobj
;
1976 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
1978 PyObject
* obj0
= 0 ;
1980 (char *) "self", NULL
1983 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasBorder",kwnames
,&obj0
)) goto fail
;
1984 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
1985 if (SWIG_arg_fail(1)) SWIG_fail
;
1987 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1988 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->HasBorder();
1990 wxPyEndAllowThreads(__tstate
);
1991 if (PyErr_Occurred()) SWIG_fail
;
1994 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2002 static PyObject
*_wrap_CalendarDateAttr_IsHoliday(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2003 PyObject
*resultobj
;
2004 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2006 PyObject
* obj0
= 0 ;
2008 (char *) "self", NULL
2011 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_IsHoliday",kwnames
,&obj0
)) goto fail
;
2012 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
2013 if (SWIG_arg_fail(1)) SWIG_fail
;
2015 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2016 result
= (bool)((wxCalendarDateAttr
const *)arg1
)->IsHoliday();
2018 wxPyEndAllowThreads(__tstate
);
2019 if (PyErr_Occurred()) SWIG_fail
;
2022 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2030 static PyObject
*_wrap_CalendarDateAttr_GetTextColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2031 PyObject
*resultobj
;
2032 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2034 PyObject
* obj0
= 0 ;
2036 (char *) "self", NULL
2039 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetTextColour",kwnames
,&obj0
)) goto fail
;
2040 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
2041 if (SWIG_arg_fail(1)) SWIG_fail
;
2043 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2044 result
= ((wxCalendarDateAttr
const *)arg1
)->GetTextColour();
2046 wxPyEndAllowThreads(__tstate
);
2047 if (PyErr_Occurred()) SWIG_fail
;
2050 wxColour
* resultptr
;
2051 resultptr
= new wxColour((wxColour
&)(result
));
2052 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
2060 static PyObject
*_wrap_CalendarDateAttr_GetBackgroundColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2061 PyObject
*resultobj
;
2062 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2064 PyObject
* obj0
= 0 ;
2066 (char *) "self", NULL
2069 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetBackgroundColour",kwnames
,&obj0
)) goto fail
;
2070 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
2071 if (SWIG_arg_fail(1)) SWIG_fail
;
2073 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2074 result
= ((wxCalendarDateAttr
const *)arg1
)->GetBackgroundColour();
2076 wxPyEndAllowThreads(__tstate
);
2077 if (PyErr_Occurred()) SWIG_fail
;
2080 wxColour
* resultptr
;
2081 resultptr
= new wxColour((wxColour
&)(result
));
2082 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
2090 static PyObject
*_wrap_CalendarDateAttr_GetBorderColour(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2091 PyObject
*resultobj
;
2092 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2094 PyObject
* obj0
= 0 ;
2096 (char *) "self", NULL
2099 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetBorderColour",kwnames
,&obj0
)) goto fail
;
2100 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
2101 if (SWIG_arg_fail(1)) SWIG_fail
;
2103 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2104 result
= ((wxCalendarDateAttr
const *)arg1
)->GetBorderColour();
2106 wxPyEndAllowThreads(__tstate
);
2107 if (PyErr_Occurred()) SWIG_fail
;
2110 wxColour
* resultptr
;
2111 resultptr
= new wxColour((wxColour
&)(result
));
2112 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
2120 static PyObject
*_wrap_CalendarDateAttr_GetFont(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2121 PyObject
*resultobj
;
2122 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2124 PyObject
* obj0
= 0 ;
2126 (char *) "self", NULL
2129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetFont",kwnames
,&obj0
)) goto fail
;
2130 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
2131 if (SWIG_arg_fail(1)) SWIG_fail
;
2133 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2134 result
= ((wxCalendarDateAttr
const *)arg1
)->GetFont();
2136 wxPyEndAllowThreads(__tstate
);
2137 if (PyErr_Occurred()) SWIG_fail
;
2141 resultptr
= new wxFont((wxFont
&)(result
));
2142 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1);
2150 static PyObject
*_wrap_CalendarDateAttr_GetBorder(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2151 PyObject
*resultobj
;
2152 wxCalendarDateAttr
*arg1
= (wxCalendarDateAttr
*) 0 ;
2153 wxCalendarDateBorder result
;
2154 PyObject
* obj0
= 0 ;
2156 (char *) "self", NULL
2159 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetBorder",kwnames
,&obj0
)) goto fail
;
2160 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
2161 if (SWIG_arg_fail(1)) SWIG_fail
;
2163 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2164 result
= (wxCalendarDateBorder
)((wxCalendarDateAttr
const *)arg1
)->GetBorder();
2166 wxPyEndAllowThreads(__tstate
);
2167 if (PyErr_Occurred()) SWIG_fail
;
2169 resultobj
= SWIG_From_int((result
));
2176 static PyObject
* CalendarDateAttr_swigregister(PyObject
*, PyObject
*args
) {
2178 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2179 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarDateAttr
, obj
);
2181 return Py_BuildValue((char *)"");
2183 static PyObject
*_wrap_new_CalendarEvent(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2184 PyObject
*resultobj
;
2185 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2187 wxCalendarEvent
*result
;
2188 PyObject
* obj0
= 0 ;
2189 PyObject
* obj1
= 0 ;
2191 (char *) "cal",(char *) "type", NULL
2194 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:new_CalendarEvent",kwnames
,&obj0
,&obj1
)) goto fail
;
2195 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2196 if (SWIG_arg_fail(1)) SWIG_fail
;
2198 arg2
= (wxEventType
)(SWIG_As_int(obj1
));
2199 if (SWIG_arg_fail(2)) SWIG_fail
;
2202 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2203 result
= (wxCalendarEvent
*)new wxCalendarEvent(arg1
,arg2
);
2205 wxPyEndAllowThreads(__tstate
);
2206 if (PyErr_Occurred()) SWIG_fail
;
2208 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarEvent
, 1);
2215 static PyObject
*_wrap_CalendarEvent_SetWeekDay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2216 PyObject
*resultobj
;
2217 wxCalendarEvent
*arg1
= (wxCalendarEvent
*) 0 ;
2218 wxDateTime::WeekDay arg2
;
2219 PyObject
* obj0
= 0 ;
2220 PyObject
* obj1
= 0 ;
2222 (char *) "self",(char *) "wd", NULL
2225 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarEvent_SetWeekDay",kwnames
,&obj0
,&obj1
)) goto fail
;
2226 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarEvent
, SWIG_POINTER_EXCEPTION
| 0);
2227 if (SWIG_arg_fail(1)) SWIG_fail
;
2229 arg2
= (wxDateTime::WeekDay
const)(SWIG_As_int(obj1
));
2230 if (SWIG_arg_fail(2)) SWIG_fail
;
2233 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2234 (arg1
)->SetWeekDay((wxDateTime::WeekDay
)arg2
);
2236 wxPyEndAllowThreads(__tstate
);
2237 if (PyErr_Occurred()) SWIG_fail
;
2239 Py_INCREF(Py_None
); resultobj
= Py_None
;
2246 static PyObject
*_wrap_CalendarEvent_GetWeekDay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2247 PyObject
*resultobj
;
2248 wxCalendarEvent
*arg1
= (wxCalendarEvent
*) 0 ;
2249 wxDateTime::WeekDay result
;
2250 PyObject
* obj0
= 0 ;
2252 (char *) "self", NULL
2255 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarEvent_GetWeekDay",kwnames
,&obj0
)) goto fail
;
2256 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarEvent
, SWIG_POINTER_EXCEPTION
| 0);
2257 if (SWIG_arg_fail(1)) SWIG_fail
;
2259 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2260 result
= (wxDateTime::WeekDay
)((wxCalendarEvent
const *)arg1
)->GetWeekDay();
2262 wxPyEndAllowThreads(__tstate
);
2263 if (PyErr_Occurred()) SWIG_fail
;
2265 resultobj
= SWIG_From_int((result
));
2272 static PyObject
* CalendarEvent_swigregister(PyObject
*, PyObject
*args
) {
2274 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
2275 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent
, obj
);
2277 return Py_BuildValue((char *)"");
2279 static int _wrap_CalendarNameStr_set(PyObject
*) {
2280 PyErr_SetString(PyExc_TypeError
,"Variable CalendarNameStr is read-only.");
2285 static PyObject
*_wrap_CalendarNameStr_get(void) {
2290 pyobj
= PyUnicode_FromWideChar((&wxPyCalendarNameStr
)->c_str(), (&wxPyCalendarNameStr
)->Len());
2292 pyobj
= PyString_FromStringAndSize((&wxPyCalendarNameStr
)->c_str(), (&wxPyCalendarNameStr
)->Len());
2299 static PyObject
*_wrap_new_CalendarCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2300 PyObject
*resultobj
;
2301 wxWindow
*arg1
= (wxWindow
*) 0 ;
2302 int arg2
= (int) -1 ;
2303 wxDateTime
const &arg3_defvalue
= wxDefaultDateTime
;
2304 wxDateTime
*arg3
= (wxDateTime
*) &arg3_defvalue
;
2305 wxPoint
const &arg4_defvalue
= wxDefaultPosition
;
2306 wxPoint
*arg4
= (wxPoint
*) &arg4_defvalue
;
2307 wxSize
const &arg5_defvalue
= wxDefaultSize
;
2308 wxSize
*arg5
= (wxSize
*) &arg5_defvalue
;
2309 long arg6
= (long) wxCAL_SHOW_HOLIDAYS
|wxWANTS_CHARS
;
2310 wxString
const &arg7_defvalue
= wxPyCalendarNameStr
;
2311 wxString
*arg7
= (wxString
*) &arg7_defvalue
;
2312 wxCalendarCtrl
*result
;
2315 bool temp7
= false ;
2316 PyObject
* obj0
= 0 ;
2317 PyObject
* obj1
= 0 ;
2318 PyObject
* obj2
= 0 ;
2319 PyObject
* obj3
= 0 ;
2320 PyObject
* obj4
= 0 ;
2321 PyObject
* obj5
= 0 ;
2322 PyObject
* obj6
= 0 ;
2324 (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
2327 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOO:new_CalendarCtrl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
;
2328 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2329 if (SWIG_arg_fail(1)) SWIG_fail
;
2332 arg2
= (int)(SWIG_As_int(obj1
));
2333 if (SWIG_arg_fail(2)) SWIG_fail
;
2338 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2339 if (SWIG_arg_fail(3)) SWIG_fail
;
2341 SWIG_null_ref("wxDateTime");
2343 if (SWIG_arg_fail(3)) SWIG_fail
;
2349 if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
;
2355 if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
;
2360 arg6
= (long)(SWIG_As_long(obj5
));
2361 if (SWIG_arg_fail(6)) SWIG_fail
;
2366 arg7
= wxString_in_helper(obj6
);
2367 if (arg7
== NULL
) SWIG_fail
;
2372 if (!wxPyCheckForApp()) SWIG_fail
;
2373 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2374 result
= (wxCalendarCtrl
*)new wxCalendarCtrl(arg1
,arg2
,(wxDateTime
const &)*arg3
,(wxPoint
const &)*arg4
,(wxSize
const &)*arg5
,arg6
,(wxString
const &)*arg7
);
2376 wxPyEndAllowThreads(__tstate
);
2377 if (PyErr_Occurred()) SWIG_fail
;
2379 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarCtrl
, 1);
2394 static PyObject
*_wrap_new_PreCalendarCtrl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2395 PyObject
*resultobj
;
2396 wxCalendarCtrl
*result
;
2401 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_PreCalendarCtrl",kwnames
)) goto fail
;
2403 if (!wxPyCheckForApp()) SWIG_fail
;
2404 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2405 result
= (wxCalendarCtrl
*)new wxCalendarCtrl();
2407 wxPyEndAllowThreads(__tstate
);
2408 if (PyErr_Occurred()) SWIG_fail
;
2410 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarCtrl
, 1);
2417 static PyObject
*_wrap_CalendarCtrl_Create(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2418 PyObject
*resultobj
;
2419 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2420 wxWindow
*arg2
= (wxWindow
*) 0 ;
2422 wxDateTime
const &arg4_defvalue
= wxDefaultDateTime
;
2423 wxDateTime
*arg4
= (wxDateTime
*) &arg4_defvalue
;
2424 wxPoint
const &arg5_defvalue
= wxDefaultPosition
;
2425 wxPoint
*arg5
= (wxPoint
*) &arg5_defvalue
;
2426 wxSize
const &arg6_defvalue
= wxDefaultSize
;
2427 wxSize
*arg6
= (wxSize
*) &arg6_defvalue
;
2428 long arg7
= (long) wxCAL_SHOW_HOLIDAYS
|wxWANTS_CHARS
;
2429 wxString
const &arg8_defvalue
= wxPyCalendarNameStr
;
2430 wxString
*arg8
= (wxString
*) &arg8_defvalue
;
2434 bool temp8
= false ;
2435 PyObject
* obj0
= 0 ;
2436 PyObject
* obj1
= 0 ;
2437 PyObject
* obj2
= 0 ;
2438 PyObject
* obj3
= 0 ;
2439 PyObject
* obj4
= 0 ;
2440 PyObject
* obj5
= 0 ;
2441 PyObject
* obj6
= 0 ;
2442 PyObject
* obj7
= 0 ;
2444 (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
2447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|OOOOO:CalendarCtrl_Create",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) goto fail
;
2448 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2449 if (SWIG_arg_fail(1)) SWIG_fail
;
2450 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION
| 0);
2451 if (SWIG_arg_fail(2)) SWIG_fail
;
2453 arg3
= (int)(SWIG_As_int(obj2
));
2454 if (SWIG_arg_fail(3)) SWIG_fail
;
2458 SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2459 if (SWIG_arg_fail(4)) SWIG_fail
;
2461 SWIG_null_ref("wxDateTime");
2463 if (SWIG_arg_fail(4)) SWIG_fail
;
2469 if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
;
2475 if ( ! wxSize_helper(obj5
, &arg6
)) SWIG_fail
;
2480 arg7
= (long)(SWIG_As_long(obj6
));
2481 if (SWIG_arg_fail(7)) SWIG_fail
;
2486 arg8
= wxString_in_helper(obj7
);
2487 if (arg8
== NULL
) SWIG_fail
;
2492 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2493 result
= (bool)(arg1
)->Create(arg2
,arg3
,(wxDateTime
const &)*arg4
,(wxPoint
const &)*arg5
,(wxSize
const &)*arg6
,arg7
,(wxString
const &)*arg8
);
2495 wxPyEndAllowThreads(__tstate
);
2496 if (PyErr_Occurred()) SWIG_fail
;
2499 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2515 static PyObject
*_wrap_CalendarCtrl_SetDate(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2516 PyObject
*resultobj
;
2517 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2518 wxDateTime
*arg2
= 0 ;
2519 PyObject
* obj0
= 0 ;
2520 PyObject
* obj1
= 0 ;
2522 (char *) "self",(char *) "date", NULL
2525 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_SetDate",kwnames
,&obj0
,&obj1
)) goto fail
;
2526 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2527 if (SWIG_arg_fail(1)) SWIG_fail
;
2529 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2530 if (SWIG_arg_fail(2)) SWIG_fail
;
2532 SWIG_null_ref("wxDateTime");
2534 if (SWIG_arg_fail(2)) SWIG_fail
;
2537 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2538 (arg1
)->SetDate((wxDateTime
const &)*arg2
);
2540 wxPyEndAllowThreads(__tstate
);
2541 if (PyErr_Occurred()) SWIG_fail
;
2543 Py_INCREF(Py_None
); resultobj
= Py_None
;
2550 static PyObject
*_wrap_CalendarCtrl_GetDate(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2551 PyObject
*resultobj
;
2552 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2554 PyObject
* obj0
= 0 ;
2556 (char *) "self", NULL
2559 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetDate",kwnames
,&obj0
)) goto fail
;
2560 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2561 if (SWIG_arg_fail(1)) SWIG_fail
;
2563 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2565 wxDateTime
const &_result_ref
= ((wxCalendarCtrl
const *)arg1
)->GetDate();
2566 result
= (wxDateTime
*) &_result_ref
;
2569 wxPyEndAllowThreads(__tstate
);
2570 if (PyErr_Occurred()) SWIG_fail
;
2572 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0);
2579 static PyObject
*_wrap_CalendarCtrl_SetLowerDateLimit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2580 PyObject
*resultobj
;
2581 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2582 wxDateTime
const &arg2_defvalue
= wxDefaultDateTime
;
2583 wxDateTime
*arg2
= (wxDateTime
*) &arg2_defvalue
;
2585 PyObject
* obj0
= 0 ;
2586 PyObject
* obj1
= 0 ;
2588 (char *) "self",(char *) "date", NULL
2591 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames
,&obj0
,&obj1
)) goto fail
;
2592 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2593 if (SWIG_arg_fail(1)) SWIG_fail
;
2596 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2597 if (SWIG_arg_fail(2)) SWIG_fail
;
2599 SWIG_null_ref("wxDateTime");
2601 if (SWIG_arg_fail(2)) SWIG_fail
;
2605 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2606 result
= (bool)(arg1
)->SetLowerDateLimit((wxDateTime
const &)*arg2
);
2608 wxPyEndAllowThreads(__tstate
);
2609 if (PyErr_Occurred()) SWIG_fail
;
2612 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2620 static PyObject
*_wrap_CalendarCtrl_SetUpperDateLimit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2621 PyObject
*resultobj
;
2622 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2623 wxDateTime
const &arg2_defvalue
= wxDefaultDateTime
;
2624 wxDateTime
*arg2
= (wxDateTime
*) &arg2_defvalue
;
2626 PyObject
* obj0
= 0 ;
2627 PyObject
* obj1
= 0 ;
2629 (char *) "self",(char *) "date", NULL
2632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames
,&obj0
,&obj1
)) goto fail
;
2633 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2634 if (SWIG_arg_fail(1)) SWIG_fail
;
2637 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2638 if (SWIG_arg_fail(2)) SWIG_fail
;
2640 SWIG_null_ref("wxDateTime");
2642 if (SWIG_arg_fail(2)) SWIG_fail
;
2646 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2647 result
= (bool)(arg1
)->SetUpperDateLimit((wxDateTime
const &)*arg2
);
2649 wxPyEndAllowThreads(__tstate
);
2650 if (PyErr_Occurred()) SWIG_fail
;
2653 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2661 static PyObject
*_wrap_CalendarCtrl_GetLowerDateLimit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2662 PyObject
*resultobj
;
2663 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2665 PyObject
* obj0
= 0 ;
2667 (char *) "self", NULL
2670 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames
,&obj0
)) goto fail
;
2671 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2672 if (SWIG_arg_fail(1)) SWIG_fail
;
2674 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2676 wxDateTime
const &_result_ref
= ((wxCalendarCtrl
const *)arg1
)->GetLowerDateLimit();
2677 result
= (wxDateTime
*) &_result_ref
;
2680 wxPyEndAllowThreads(__tstate
);
2681 if (PyErr_Occurred()) SWIG_fail
;
2683 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0);
2690 static PyObject
*_wrap_CalendarCtrl_GetUpperDateLimit(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2691 PyObject
*resultobj
;
2692 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2694 PyObject
* obj0
= 0 ;
2696 (char *) "self", NULL
2699 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames
,&obj0
)) goto fail
;
2700 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2701 if (SWIG_arg_fail(1)) SWIG_fail
;
2703 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2705 wxDateTime
const &_result_ref
= ((wxCalendarCtrl
const *)arg1
)->GetUpperDateLimit();
2706 result
= (wxDateTime
*) &_result_ref
;
2709 wxPyEndAllowThreads(__tstate
);
2710 if (PyErr_Occurred()) SWIG_fail
;
2712 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0);
2719 static PyObject
*_wrap_CalendarCtrl_SetDateRange(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2720 PyObject
*resultobj
;
2721 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2722 wxDateTime
const &arg2_defvalue
= wxDefaultDateTime
;
2723 wxDateTime
*arg2
= (wxDateTime
*) &arg2_defvalue
;
2724 wxDateTime
const &arg3_defvalue
= wxDefaultDateTime
;
2725 wxDateTime
*arg3
= (wxDateTime
*) &arg3_defvalue
;
2727 PyObject
* obj0
= 0 ;
2728 PyObject
* obj1
= 0 ;
2729 PyObject
* obj2
= 0 ;
2731 (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL
2734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2735 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2736 if (SWIG_arg_fail(1)) SWIG_fail
;
2739 SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2740 if (SWIG_arg_fail(2)) SWIG_fail
;
2742 SWIG_null_ref("wxDateTime");
2744 if (SWIG_arg_fail(2)) SWIG_fail
;
2749 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION
| 0);
2750 if (SWIG_arg_fail(3)) SWIG_fail
;
2752 SWIG_null_ref("wxDateTime");
2754 if (SWIG_arg_fail(3)) SWIG_fail
;
2758 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2759 result
= (bool)(arg1
)->SetDateRange((wxDateTime
const &)*arg2
,(wxDateTime
const &)*arg3
);
2761 wxPyEndAllowThreads(__tstate
);
2762 if (PyErr_Occurred()) SWIG_fail
;
2765 resultobj
= result
? Py_True
: Py_False
; Py_INCREF(resultobj
);
2773 static PyObject
*_wrap_CalendarCtrl_EnableYearChange(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2774 PyObject
*resultobj
;
2775 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2776 bool arg2
= (bool) true ;
2777 PyObject
* obj0
= 0 ;
2778 PyObject
* obj1
= 0 ;
2780 (char *) "self",(char *) "enable", NULL
2783 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames
,&obj0
,&obj1
)) goto fail
;
2784 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2785 if (SWIG_arg_fail(1)) SWIG_fail
;
2788 arg2
= (bool)(SWIG_As_bool(obj1
));
2789 if (SWIG_arg_fail(2)) SWIG_fail
;
2793 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2794 (arg1
)->EnableYearChange(arg2
);
2796 wxPyEndAllowThreads(__tstate
);
2797 if (PyErr_Occurred()) SWIG_fail
;
2799 Py_INCREF(Py_None
); resultobj
= Py_None
;
2806 static PyObject
*_wrap_CalendarCtrl_EnableMonthChange(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2807 PyObject
*resultobj
;
2808 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2809 bool arg2
= (bool) true ;
2810 PyObject
* obj0
= 0 ;
2811 PyObject
* obj1
= 0 ;
2813 (char *) "self",(char *) "enable", NULL
2816 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames
,&obj0
,&obj1
)) goto fail
;
2817 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2818 if (SWIG_arg_fail(1)) SWIG_fail
;
2821 arg2
= (bool)(SWIG_As_bool(obj1
));
2822 if (SWIG_arg_fail(2)) SWIG_fail
;
2826 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2827 (arg1
)->EnableMonthChange(arg2
);
2829 wxPyEndAllowThreads(__tstate
);
2830 if (PyErr_Occurred()) SWIG_fail
;
2832 Py_INCREF(Py_None
); resultobj
= Py_None
;
2839 static PyObject
*_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2840 PyObject
*resultobj
;
2841 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2842 bool arg2
= (bool) true ;
2843 PyObject
* obj0
= 0 ;
2844 PyObject
* obj1
= 0 ;
2846 (char *) "self",(char *) "display", NULL
2849 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames
,&obj0
,&obj1
)) goto fail
;
2850 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2851 if (SWIG_arg_fail(1)) SWIG_fail
;
2854 arg2
= (bool)(SWIG_As_bool(obj1
));
2855 if (SWIG_arg_fail(2)) SWIG_fail
;
2859 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2860 (arg1
)->EnableHolidayDisplay(arg2
);
2862 wxPyEndAllowThreads(__tstate
);
2863 if (PyErr_Occurred()) SWIG_fail
;
2865 Py_INCREF(Py_None
); resultobj
= Py_None
;
2872 static PyObject
*_wrap_CalendarCtrl_SetHeaderColours(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2873 PyObject
*resultobj
;
2874 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2875 wxColour
*arg2
= 0 ;
2876 wxColour
*arg3
= 0 ;
2879 PyObject
* obj0
= 0 ;
2880 PyObject
* obj1
= 0 ;
2881 PyObject
* obj2
= 0 ;
2883 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
2886 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:CalendarCtrl_SetHeaderColours",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2887 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2888 if (SWIG_arg_fail(1)) SWIG_fail
;
2891 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2895 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
2898 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2899 (arg1
)->SetHeaderColours((wxColour
const &)*arg2
,(wxColour
const &)*arg3
);
2901 wxPyEndAllowThreads(__tstate
);
2902 if (PyErr_Occurred()) SWIG_fail
;
2904 Py_INCREF(Py_None
); resultobj
= Py_None
;
2911 static PyObject
*_wrap_CalendarCtrl_GetHeaderColourFg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2912 PyObject
*resultobj
;
2913 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2915 PyObject
* obj0
= 0 ;
2917 (char *) "self", NULL
2920 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHeaderColourFg",kwnames
,&obj0
)) goto fail
;
2921 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2922 if (SWIG_arg_fail(1)) SWIG_fail
;
2924 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2925 result
= ((wxCalendarCtrl
const *)arg1
)->GetHeaderColourFg();
2927 wxPyEndAllowThreads(__tstate
);
2928 if (PyErr_Occurred()) SWIG_fail
;
2931 wxColour
* resultptr
;
2932 resultptr
= new wxColour((wxColour
&)(result
));
2933 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
2941 static PyObject
*_wrap_CalendarCtrl_GetHeaderColourBg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2942 PyObject
*resultobj
;
2943 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2945 PyObject
* obj0
= 0 ;
2947 (char *) "self", NULL
2950 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHeaderColourBg",kwnames
,&obj0
)) goto fail
;
2951 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2952 if (SWIG_arg_fail(1)) SWIG_fail
;
2954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2955 result
= ((wxCalendarCtrl
const *)arg1
)->GetHeaderColourBg();
2957 wxPyEndAllowThreads(__tstate
);
2958 if (PyErr_Occurred()) SWIG_fail
;
2961 wxColour
* resultptr
;
2962 resultptr
= new wxColour((wxColour
&)(result
));
2963 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
2971 static PyObject
*_wrap_CalendarCtrl_SetHighlightColours(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
2972 PyObject
*resultobj
;
2973 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
2974 wxColour
*arg2
= 0 ;
2975 wxColour
*arg3
= 0 ;
2978 PyObject
* obj0
= 0 ;
2979 PyObject
* obj1
= 0 ;
2980 PyObject
* obj2
= 0 ;
2982 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
2985 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:CalendarCtrl_SetHighlightColours",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
2986 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
2987 if (SWIG_arg_fail(1)) SWIG_fail
;
2990 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
2994 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
2997 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
2998 (arg1
)->SetHighlightColours((wxColour
const &)*arg2
,(wxColour
const &)*arg3
);
3000 wxPyEndAllowThreads(__tstate
);
3001 if (PyErr_Occurred()) SWIG_fail
;
3003 Py_INCREF(Py_None
); resultobj
= Py_None
;
3010 static PyObject
*_wrap_CalendarCtrl_GetHighlightColourFg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3011 PyObject
*resultobj
;
3012 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3014 PyObject
* obj0
= 0 ;
3016 (char *) "self", NULL
3019 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHighlightColourFg",kwnames
,&obj0
)) goto fail
;
3020 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3021 if (SWIG_arg_fail(1)) SWIG_fail
;
3023 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3024 result
= ((wxCalendarCtrl
const *)arg1
)->GetHighlightColourFg();
3026 wxPyEndAllowThreads(__tstate
);
3027 if (PyErr_Occurred()) SWIG_fail
;
3030 wxColour
* resultptr
;
3031 resultptr
= new wxColour((wxColour
&)(result
));
3032 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
3040 static PyObject
*_wrap_CalendarCtrl_GetHighlightColourBg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3041 PyObject
*resultobj
;
3042 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3044 PyObject
* obj0
= 0 ;
3046 (char *) "self", NULL
3049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHighlightColourBg",kwnames
,&obj0
)) goto fail
;
3050 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3051 if (SWIG_arg_fail(1)) SWIG_fail
;
3053 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3054 result
= ((wxCalendarCtrl
const *)arg1
)->GetHighlightColourBg();
3056 wxPyEndAllowThreads(__tstate
);
3057 if (PyErr_Occurred()) SWIG_fail
;
3060 wxColour
* resultptr
;
3061 resultptr
= new wxColour((wxColour
&)(result
));
3062 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
3070 static PyObject
*_wrap_CalendarCtrl_SetHolidayColours(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3071 PyObject
*resultobj
;
3072 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3073 wxColour
*arg2
= 0 ;
3074 wxColour
*arg3
= 0 ;
3077 PyObject
* obj0
= 0 ;
3078 PyObject
* obj1
= 0 ;
3079 PyObject
* obj2
= 0 ;
3081 (char *) "self",(char *) "colFg",(char *) "colBg", NULL
3084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:CalendarCtrl_SetHolidayColours",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3085 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3086 if (SWIG_arg_fail(1)) SWIG_fail
;
3089 if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
;
3093 if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
;
3096 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3097 (arg1
)->SetHolidayColours((wxColour
const &)*arg2
,(wxColour
const &)*arg3
);
3099 wxPyEndAllowThreads(__tstate
);
3100 if (PyErr_Occurred()) SWIG_fail
;
3102 Py_INCREF(Py_None
); resultobj
= Py_None
;
3109 static PyObject
*_wrap_CalendarCtrl_GetHolidayColourFg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3110 PyObject
*resultobj
;
3111 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3113 PyObject
* obj0
= 0 ;
3115 (char *) "self", NULL
3118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHolidayColourFg",kwnames
,&obj0
)) goto fail
;
3119 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3120 if (SWIG_arg_fail(1)) SWIG_fail
;
3122 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3123 result
= ((wxCalendarCtrl
const *)arg1
)->GetHolidayColourFg();
3125 wxPyEndAllowThreads(__tstate
);
3126 if (PyErr_Occurred()) SWIG_fail
;
3129 wxColour
* resultptr
;
3130 resultptr
= new wxColour((wxColour
&)(result
));
3131 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
3139 static PyObject
*_wrap_CalendarCtrl_GetHolidayColourBg(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3140 PyObject
*resultobj
;
3141 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3143 PyObject
* obj0
= 0 ;
3145 (char *) "self", NULL
3148 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHolidayColourBg",kwnames
,&obj0
)) goto fail
;
3149 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3150 if (SWIG_arg_fail(1)) SWIG_fail
;
3152 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3153 result
= ((wxCalendarCtrl
const *)arg1
)->GetHolidayColourBg();
3155 wxPyEndAllowThreads(__tstate
);
3156 if (PyErr_Occurred()) SWIG_fail
;
3159 wxColour
* resultptr
;
3160 resultptr
= new wxColour((wxColour
&)(result
));
3161 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1);
3169 static PyObject
*_wrap_CalendarCtrl_GetAttr(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3170 PyObject
*resultobj
;
3171 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3173 wxCalendarDateAttr
*result
;
3174 PyObject
* obj0
= 0 ;
3175 PyObject
* obj1
= 0 ;
3177 (char *) "self",(char *) "day", NULL
3180 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_GetAttr",kwnames
,&obj0
,&obj1
)) goto fail
;
3181 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3182 if (SWIG_arg_fail(1)) SWIG_fail
;
3184 arg2
= (size_t)(SWIG_As_unsigned_SS_long(obj1
));
3185 if (SWIG_arg_fail(2)) SWIG_fail
;
3188 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3189 result
= (wxCalendarDateAttr
*)((wxCalendarCtrl
const *)arg1
)->GetAttr(arg2
);
3191 wxPyEndAllowThreads(__tstate
);
3192 if (PyErr_Occurred()) SWIG_fail
;
3194 resultobj
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarDateAttr
, 0);
3201 static PyObject
*_wrap_CalendarCtrl_SetAttr(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3202 PyObject
*resultobj
;
3203 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3205 wxCalendarDateAttr
*arg3
= (wxCalendarDateAttr
*) 0 ;
3206 PyObject
* obj0
= 0 ;
3207 PyObject
* obj1
= 0 ;
3208 PyObject
* obj2
= 0 ;
3210 (char *) "self",(char *) "day",(char *) "attr", NULL
3213 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:CalendarCtrl_SetAttr",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
;
3214 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3215 if (SWIG_arg_fail(1)) SWIG_fail
;
3217 arg2
= (size_t)(SWIG_As_unsigned_SS_long(obj1
));
3218 if (SWIG_arg_fail(2)) SWIG_fail
;
3220 SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION
| 0);
3221 if (SWIG_arg_fail(3)) SWIG_fail
;
3223 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3224 (arg1
)->SetAttr(arg2
,arg3
);
3226 wxPyEndAllowThreads(__tstate
);
3227 if (PyErr_Occurred()) SWIG_fail
;
3229 Py_INCREF(Py_None
); resultobj
= Py_None
;
3236 static PyObject
*_wrap_CalendarCtrl_SetHoliday(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3237 PyObject
*resultobj
;
3238 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3240 PyObject
* obj0
= 0 ;
3241 PyObject
* obj1
= 0 ;
3243 (char *) "self",(char *) "day", NULL
3246 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_SetHoliday",kwnames
,&obj0
,&obj1
)) goto fail
;
3247 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3248 if (SWIG_arg_fail(1)) SWIG_fail
;
3250 arg2
= (size_t)(SWIG_As_unsigned_SS_long(obj1
));
3251 if (SWIG_arg_fail(2)) SWIG_fail
;
3254 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3255 (arg1
)->SetHoliday(arg2
);
3257 wxPyEndAllowThreads(__tstate
);
3258 if (PyErr_Occurred()) SWIG_fail
;
3260 Py_INCREF(Py_None
); resultobj
= Py_None
;
3267 static PyObject
*_wrap_CalendarCtrl_ResetAttr(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3268 PyObject
*resultobj
;
3269 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3271 PyObject
* obj0
= 0 ;
3272 PyObject
* obj1
= 0 ;
3274 (char *) "self",(char *) "day", NULL
3277 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_ResetAttr",kwnames
,&obj0
,&obj1
)) goto fail
;
3278 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3279 if (SWIG_arg_fail(1)) SWIG_fail
;
3281 arg2
= (size_t)(SWIG_As_unsigned_SS_long(obj1
));
3282 if (SWIG_arg_fail(2)) SWIG_fail
;
3285 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3286 (arg1
)->ResetAttr(arg2
);
3288 wxPyEndAllowThreads(__tstate
);
3289 if (PyErr_Occurred()) SWIG_fail
;
3291 Py_INCREF(Py_None
); resultobj
= Py_None
;
3298 static PyObject
*_wrap_CalendarCtrl_HitTest(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3299 PyObject
*resultobj
;
3300 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3304 PyObject
* obj0
= 0 ;
3305 PyObject
* obj1
= 0 ;
3307 (char *) "self",(char *) "pos", NULL
3310 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_HitTest",kwnames
,&obj0
,&obj1
)) goto fail
;
3311 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3312 if (SWIG_arg_fail(1)) SWIG_fail
;
3315 if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
;
3318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3319 result
= (PyObject
*)wxCalendarCtrl_HitTest(arg1
,(wxPoint
const &)*arg2
);
3321 wxPyEndAllowThreads(__tstate
);
3322 if (PyErr_Occurred()) SWIG_fail
;
3331 static PyObject
*_wrap_CalendarCtrl_GetMonthControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3332 PyObject
*resultobj
;
3333 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3335 PyObject
* obj0
= 0 ;
3337 (char *) "self", NULL
3340 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetMonthControl",kwnames
,&obj0
)) goto fail
;
3341 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3342 if (SWIG_arg_fail(1)) SWIG_fail
;
3344 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3345 result
= (wxControl
*)((wxCalendarCtrl
const *)arg1
)->GetMonthControl();
3347 wxPyEndAllowThreads(__tstate
);
3348 if (PyErr_Occurred()) SWIG_fail
;
3351 resultobj
= wxPyMake_wxObject(result
, 0);
3359 static PyObject
*_wrap_CalendarCtrl_GetYearControl(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3360 PyObject
*resultobj
;
3361 wxCalendarCtrl
*arg1
= (wxCalendarCtrl
*) 0 ;
3363 PyObject
* obj0
= 0 ;
3365 (char *) "self", NULL
3368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetYearControl",kwnames
,&obj0
)) goto fail
;
3369 SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION
| 0);
3370 if (SWIG_arg_fail(1)) SWIG_fail
;
3372 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3373 result
= (wxControl
*)((wxCalendarCtrl
const *)arg1
)->GetYearControl();
3375 wxPyEndAllowThreads(__tstate
);
3376 if (PyErr_Occurred()) SWIG_fail
;
3379 resultobj
= wxPyMake_wxObject(result
, 0);
3387 static PyObject
*_wrap_CalendarCtrl_GetClassDefaultAttributes(PyObject
*, PyObject
*args
, PyObject
*kwargs
) {
3388 PyObject
*resultobj
;
3389 wxWindowVariant arg1
= (wxWindowVariant
) wxWINDOW_VARIANT_NORMAL
;
3390 wxVisualAttributes result
;
3391 PyObject
* obj0
= 0 ;
3393 (char *) "variant", NULL
3396 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:CalendarCtrl_GetClassDefaultAttributes",kwnames
,&obj0
)) goto fail
;
3399 arg1
= (wxWindowVariant
)(SWIG_As_int(obj0
));
3400 if (SWIG_arg_fail(1)) SWIG_fail
;
3404 if (!wxPyCheckForApp()) SWIG_fail
;
3405 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
3406 result
= wxCalendarCtrl::GetClassDefaultAttributes((wxWindowVariant
)arg1
);
3408 wxPyEndAllowThreads(__tstate
);
3409 if (PyErr_Occurred()) SWIG_fail
;
3412 wxVisualAttributes
* resultptr
;
3413 resultptr
= new wxVisualAttributes((wxVisualAttributes
&)(result
));
3414 resultobj
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxVisualAttributes
, 1);
3422 static PyObject
* CalendarCtrl_swigregister(PyObject
*, PyObject
*args
) {
3424 if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
;
3425 SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl
, obj
);
3427 return Py_BuildValue((char *)"");
3429 static PyMethodDef SwigMethods
[] = {
3430 { (char *)"new_CalendarDateAttr", (PyCFunction
) _wrap_new_CalendarDateAttr
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3431 { (char *)"CalendarDateAttr_SetTextColour", (PyCFunction
) _wrap_CalendarDateAttr_SetTextColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3432 { (char *)"CalendarDateAttr_SetBackgroundColour", (PyCFunction
) _wrap_CalendarDateAttr_SetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3433 { (char *)"CalendarDateAttr_SetBorderColour", (PyCFunction
) _wrap_CalendarDateAttr_SetBorderColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3434 { (char *)"CalendarDateAttr_SetFont", (PyCFunction
) _wrap_CalendarDateAttr_SetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3435 { (char *)"CalendarDateAttr_SetBorder", (PyCFunction
) _wrap_CalendarDateAttr_SetBorder
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3436 { (char *)"CalendarDateAttr_SetHoliday", (PyCFunction
) _wrap_CalendarDateAttr_SetHoliday
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3437 { (char *)"CalendarDateAttr_HasTextColour", (PyCFunction
) _wrap_CalendarDateAttr_HasTextColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3438 { (char *)"CalendarDateAttr_HasBackgroundColour", (PyCFunction
) _wrap_CalendarDateAttr_HasBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3439 { (char *)"CalendarDateAttr_HasBorderColour", (PyCFunction
) _wrap_CalendarDateAttr_HasBorderColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3440 { (char *)"CalendarDateAttr_HasFont", (PyCFunction
) _wrap_CalendarDateAttr_HasFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3441 { (char *)"CalendarDateAttr_HasBorder", (PyCFunction
) _wrap_CalendarDateAttr_HasBorder
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3442 { (char *)"CalendarDateAttr_IsHoliday", (PyCFunction
) _wrap_CalendarDateAttr_IsHoliday
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3443 { (char *)"CalendarDateAttr_GetTextColour", (PyCFunction
) _wrap_CalendarDateAttr_GetTextColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3444 { (char *)"CalendarDateAttr_GetBackgroundColour", (PyCFunction
) _wrap_CalendarDateAttr_GetBackgroundColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3445 { (char *)"CalendarDateAttr_GetBorderColour", (PyCFunction
) _wrap_CalendarDateAttr_GetBorderColour
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3446 { (char *)"CalendarDateAttr_GetFont", (PyCFunction
) _wrap_CalendarDateAttr_GetFont
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3447 { (char *)"CalendarDateAttr_GetBorder", (PyCFunction
) _wrap_CalendarDateAttr_GetBorder
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3448 { (char *)"CalendarDateAttr_swigregister", CalendarDateAttr_swigregister
, METH_VARARGS
, NULL
},
3449 { (char *)"new_CalendarEvent", (PyCFunction
) _wrap_new_CalendarEvent
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3450 { (char *)"CalendarEvent_SetWeekDay", (PyCFunction
) _wrap_CalendarEvent_SetWeekDay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3451 { (char *)"CalendarEvent_GetWeekDay", (PyCFunction
) _wrap_CalendarEvent_GetWeekDay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3452 { (char *)"CalendarEvent_swigregister", CalendarEvent_swigregister
, METH_VARARGS
, NULL
},
3453 { (char *)"new_CalendarCtrl", (PyCFunction
) _wrap_new_CalendarCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3454 { (char *)"new_PreCalendarCtrl", (PyCFunction
) _wrap_new_PreCalendarCtrl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3455 { (char *)"CalendarCtrl_Create", (PyCFunction
) _wrap_CalendarCtrl_Create
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3456 { (char *)"CalendarCtrl_SetDate", (PyCFunction
) _wrap_CalendarCtrl_SetDate
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3457 { (char *)"CalendarCtrl_GetDate", (PyCFunction
) _wrap_CalendarCtrl_GetDate
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3458 { (char *)"CalendarCtrl_SetLowerDateLimit", (PyCFunction
) _wrap_CalendarCtrl_SetLowerDateLimit
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3459 { (char *)"CalendarCtrl_SetUpperDateLimit", (PyCFunction
) _wrap_CalendarCtrl_SetUpperDateLimit
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3460 { (char *)"CalendarCtrl_GetLowerDateLimit", (PyCFunction
) _wrap_CalendarCtrl_GetLowerDateLimit
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3461 { (char *)"CalendarCtrl_GetUpperDateLimit", (PyCFunction
) _wrap_CalendarCtrl_GetUpperDateLimit
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3462 { (char *)"CalendarCtrl_SetDateRange", (PyCFunction
) _wrap_CalendarCtrl_SetDateRange
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3463 { (char *)"CalendarCtrl_EnableYearChange", (PyCFunction
) _wrap_CalendarCtrl_EnableYearChange
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3464 { (char *)"CalendarCtrl_EnableMonthChange", (PyCFunction
) _wrap_CalendarCtrl_EnableMonthChange
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3465 { (char *)"CalendarCtrl_EnableHolidayDisplay", (PyCFunction
) _wrap_CalendarCtrl_EnableHolidayDisplay
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3466 { (char *)"CalendarCtrl_SetHeaderColours", (PyCFunction
) _wrap_CalendarCtrl_SetHeaderColours
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3467 { (char *)"CalendarCtrl_GetHeaderColourFg", (PyCFunction
) _wrap_CalendarCtrl_GetHeaderColourFg
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3468 { (char *)"CalendarCtrl_GetHeaderColourBg", (PyCFunction
) _wrap_CalendarCtrl_GetHeaderColourBg
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3469 { (char *)"CalendarCtrl_SetHighlightColours", (PyCFunction
) _wrap_CalendarCtrl_SetHighlightColours
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3470 { (char *)"CalendarCtrl_GetHighlightColourFg", (PyCFunction
) _wrap_CalendarCtrl_GetHighlightColourFg
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3471 { (char *)"CalendarCtrl_GetHighlightColourBg", (PyCFunction
) _wrap_CalendarCtrl_GetHighlightColourBg
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3472 { (char *)"CalendarCtrl_SetHolidayColours", (PyCFunction
) _wrap_CalendarCtrl_SetHolidayColours
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3473 { (char *)"CalendarCtrl_GetHolidayColourFg", (PyCFunction
) _wrap_CalendarCtrl_GetHolidayColourFg
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3474 { (char *)"CalendarCtrl_GetHolidayColourBg", (PyCFunction
) _wrap_CalendarCtrl_GetHolidayColourBg
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3475 { (char *)"CalendarCtrl_GetAttr", (PyCFunction
) _wrap_CalendarCtrl_GetAttr
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3476 { (char *)"CalendarCtrl_SetAttr", (PyCFunction
) _wrap_CalendarCtrl_SetAttr
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3477 { (char *)"CalendarCtrl_SetHoliday", (PyCFunction
) _wrap_CalendarCtrl_SetHoliday
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3478 { (char *)"CalendarCtrl_ResetAttr", (PyCFunction
) _wrap_CalendarCtrl_ResetAttr
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3479 { (char *)"CalendarCtrl_HitTest", (PyCFunction
) _wrap_CalendarCtrl_HitTest
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3480 { (char *)"CalendarCtrl_GetMonthControl", (PyCFunction
) _wrap_CalendarCtrl_GetMonthControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3481 { (char *)"CalendarCtrl_GetYearControl", (PyCFunction
) _wrap_CalendarCtrl_GetYearControl
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3482 { (char *)"CalendarCtrl_GetClassDefaultAttributes", (PyCFunction
) _wrap_CalendarCtrl_GetClassDefaultAttributes
, METH_VARARGS
| METH_KEYWORDS
, NULL
},
3483 { (char *)"CalendarCtrl_swigregister", CalendarCtrl_swigregister
, METH_VARARGS
, NULL
},
3484 { NULL
, NULL
, 0, NULL
}
3488 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
3490 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) {
3491 return (void *)((wxObject
*) ((wxLayoutConstraints
*) x
));
3493 static void *_p_wxCalendarCtrlTo_p_wxObject(void *x
) {
3494 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxCalendarCtrl
*) x
));
3496 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) {
3497 return (void *)((wxObject
*) (wxSizerItem
*) ((wxGBSizerItem
*) x
));
3499 static void *_p_wxSizerItemTo_p_wxObject(void *x
) {
3500 return (void *)((wxObject
*) ((wxSizerItem
*) x
));
3502 static void *_p_wxScrollEventTo_p_wxObject(void *x
) {
3503 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxScrollEvent
*) x
));
3505 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) {
3506 return (void *)((wxObject
*) ((wxIndividualLayoutConstraint
*) x
));
3508 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) {
3509 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStaticBoxSizer
*) x
));
3511 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) {
3512 return (void *)((wxObject
*) (wxSizer
*) ((wxBoxSizer
*) x
));
3514 static void *_p_wxSizerTo_p_wxObject(void *x
) {
3515 return (void *)((wxObject
*) ((wxSizer
*) x
));
3517 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) {
3518 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*)(wxFlexGridSizer
*) ((wxGridBagSizer
*) x
));
3520 static void *_p_wxFileHistoryTo_p_wxObject(void *x
) {
3521 return (void *)((wxObject
*) ((wxFileHistory
*) x
));
3523 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) {
3524 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
3526 static void *_p_wxEventTo_p_wxObject(void *x
) {
3527 return (void *)((wxObject
*) ((wxEvent
*) x
));
3529 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) {
3530 return (void *)((wxObject
*) (wxSizer
*)(wxGridSizer
*) ((wxFlexGridSizer
*) x
));
3532 static void *_p_wxGridSizerTo_p_wxObject(void *x
) {
3533 return (void *)((wxObject
*) (wxSizer
*) ((wxGridSizer
*) x
));
3535 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) {
3536 return (void *)((wxObject
*) (wxEvent
*) ((wxInitDialogEvent
*) x
));
3538 static void *_p_wxPaintEventTo_p_wxObject(void *x
) {
3539 return (void *)((wxObject
*) (wxEvent
*) ((wxPaintEvent
*) x
));
3541 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) {
3542 return (void *)((wxObject
*) (wxEvent
*) ((wxNcPaintEvent
*) x
));
3544 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) {
3545 return (void *)((wxObject
*) (wxEvent
*) ((wxPaletteChangedEvent
*) x
));
3547 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) {
3548 return (void *)((wxObject
*) (wxEvent
*) ((wxDisplayChangedEvent
*) x
));
3550 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) {
3551 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
3553 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) {
3554 return (void *)((wxObject
*) (wxEvent
*) ((wxSysColourChangedEvent
*) x
));
3556 static void *_p_wxControlTo_p_wxObject(void *x
) {
3557 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxControl
*) x
));
3559 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) {
3560 return (void *)((wxObject
*) (wxEvent
*) ((wxSetCursorEvent
*) x
));
3562 static void *_p_wxTimerEventTo_p_wxObject(void *x
) {
3563 return (void *)((wxObject
*) (wxEvent
*) ((wxTimerEvent
*) x
));
3565 static void *_p_wxCalendarEventTo_p_wxObject(void *x
) {
3566 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*)(wxDateEvent
*) ((wxCalendarEvent
*) x
));
3568 static void *_p_wxFSFileTo_p_wxObject(void *x
) {
3569 return (void *)((wxObject
*) ((wxFSFile
*) x
));
3571 static void *_p_wxClipboardTo_p_wxObject(void *x
) {
3572 return (void *)((wxObject
*) ((wxClipboard
*) x
));
3574 static void *_p_wxPySizerTo_p_wxObject(void *x
) {
3575 return (void *)((wxObject
*) (wxSizer
*) ((wxPySizer
*) x
));
3577 static void *_p_wxPyEventTo_p_wxObject(void *x
) {
3578 return (void *)((wxObject
*) (wxEvent
*) ((wxPyEvent
*) x
));
3580 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) {
3581 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxNotifyEvent
*) x
));
3583 static void *_p_wxShowEventTo_p_wxObject(void *x
) {
3584 return (void *)((wxObject
*) (wxEvent
*) ((wxShowEvent
*) x
));
3586 static void *_p_wxToolTipTo_p_wxObject(void *x
) {
3587 return (void *)((wxObject
*) ((wxToolTip
*) x
));
3589 static void *_p_wxMenuItemTo_p_wxObject(void *x
) {
3590 return (void *)((wxObject
*) ((wxMenuItem
*) x
));
3592 static void *_p_wxDateEventTo_p_wxObject(void *x
) {
3593 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxDateEvent
*) x
));
3595 static void *_p_wxIdleEventTo_p_wxObject(void *x
) {
3596 return (void *)((wxObject
*) (wxEvent
*) ((wxIdleEvent
*) x
));
3598 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) {
3599 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
3601 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) {
3602 return (void *)((wxObject
*) (wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
3604 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) {
3605 return (void *)((wxObject
*) (wxEvent
*) ((wxMaximizeEvent
*) x
));
3607 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) {
3608 return (void *)((wxObject
*) (wxEvent
*) ((wxIconizeEvent
*) x
));
3610 static void *_p_wxSizeEventTo_p_wxObject(void *x
) {
3611 return (void *)((wxObject
*) (wxEvent
*) ((wxSizeEvent
*) x
));
3613 static void *_p_wxMoveEventTo_p_wxObject(void *x
) {
3614 return (void *)((wxObject
*) (wxEvent
*) ((wxMoveEvent
*) x
));
3616 static void *_p_wxActivateEventTo_p_wxObject(void *x
) {
3617 return (void *)((wxObject
*) (wxEvent
*) ((wxActivateEvent
*) x
));
3619 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) {
3620 return (void *)((wxObject
*) (wxImageHandler
*) ((wxXPMHandler
*) x
));
3622 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) {
3623 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNMHandler
*) x
));
3625 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) {
3626 return (void *)((wxObject
*) (wxImageHandler
*) ((wxJPEGHandler
*) x
));
3628 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) {
3629 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPCXHandler
*) x
));
3631 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) {
3632 return (void *)((wxObject
*) (wxImageHandler
*) ((wxGIFHandler
*) x
));
3634 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) {
3635 return (void *)((wxObject
*) (wxImageHandler
*) ((wxPNGHandler
*) x
));
3637 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) {
3638 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*)(wxCURHandler
*) ((wxANIHandler
*) x
));
3640 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) {
3641 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*)(wxICOHandler
*) ((wxCURHandler
*) x
));
3643 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) {
3644 return (void *)((wxObject
*) (wxImageHandler
*)(wxBMPHandler
*) ((wxICOHandler
*) x
));
3646 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) {
3647 return (void *)((wxObject
*) (wxImageHandler
*) ((wxBMPHandler
*) x
));
3649 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) {
3650 return (void *)((wxObject
*) ((wxImageHandler
*) x
));
3652 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) {
3653 return (void *)((wxObject
*) (wxImageHandler
*) ((wxTIFFHandler
*) x
));
3655 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) {
3656 return (void *)((wxObject
*) ((wxEvtHandler
*) x
));
3658 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) {
3659 return (void *)((wxObject
*) (wxSizer
*)(wxBoxSizer
*) ((wxStdDialogButtonSizer
*) x
));
3661 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) {
3662 return (void *)((wxObject
*) ((wxAcceleratorTable
*) x
));
3664 static void *_p_wxImageTo_p_wxObject(void *x
) {
3665 return (void *)((wxObject
*) ((wxImage
*) x
));
3667 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) {
3668 return (void *)((wxObject
*) (wxEvent
*) ((wxScrollWinEvent
*) x
));
3670 static void *_p_wxSystemOptionsTo_p_wxObject(void *x
) {
3671 return (void *)((wxObject
*) ((wxSystemOptions
*) x
));
3673 static void *_p_wxJoystickEventTo_p_wxObject(void *x
) {
3674 return (void *)((wxObject
*) (wxEvent
*) ((wxJoystickEvent
*) x
));
3676 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) {
3677 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
3679 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) {
3680 return (void *)((wxObject
*) (wxEvent
*) ((wxNavigationKeyEvent
*) x
));
3682 static void *_p_wxKeyEventTo_p_wxObject(void *x
) {
3683 return (void *)((wxObject
*) (wxEvent
*) ((wxKeyEvent
*) x
));
3685 static void *_p_wxWindowTo_p_wxObject(void *x
) {
3686 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxWindow
*) x
));
3688 static void *_p_wxMenuTo_p_wxObject(void *x
) {
3689 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxMenu
*) x
));
3691 static void *_p_wxMenuBarTo_p_wxObject(void *x
) {
3692 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*) ((wxMenuBar
*) x
));
3694 static void *_p_wxPyProcessTo_p_wxObject(void *x
) {
3695 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyProcess
*) x
));
3697 static void *_p_wxFileSystemTo_p_wxObject(void *x
) {
3698 return (void *)((wxObject
*) ((wxFileSystem
*) x
));
3700 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) {
3701 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
3703 static void *_p_wxMenuEventTo_p_wxObject(void *x
) {
3704 return (void *)((wxObject
*) (wxEvent
*) ((wxMenuEvent
*) x
));
3706 static void *_p_wxPyAppTo_p_wxObject(void *x
) {
3707 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyApp
*) x
));
3709 static void *_p_wxCloseEventTo_p_wxObject(void *x
) {
3710 return (void *)((wxObject
*) (wxEvent
*) ((wxCloseEvent
*) x
));
3712 static void *_p_wxMouseEventTo_p_wxObject(void *x
) {
3713 return (void *)((wxObject
*) (wxEvent
*) ((wxMouseEvent
*) x
));
3715 static void *_p_wxEraseEventTo_p_wxObject(void *x
) {
3716 return (void *)((wxObject
*) (wxEvent
*) ((wxEraseEvent
*) x
));
3718 static void *_p_wxBusyInfoTo_p_wxObject(void *x
) {
3719 return (void *)((wxObject
*) ((wxBusyInfo
*) x
));
3721 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) {
3722 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
3724 static void *_p_wxCommandEventTo_p_wxObject(void *x
) {
3725 return (void *)((wxObject
*) (wxEvent
*) ((wxCommandEvent
*) x
));
3727 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) {
3728 return (void *)((wxObject
*) (wxEvent
*) ((wxDropFilesEvent
*) x
));
3730 static void *_p_wxFocusEventTo_p_wxObject(void *x
) {
3731 return (void *)((wxObject
*) (wxEvent
*) ((wxFocusEvent
*) x
));
3733 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) {
3734 return (void *)((wxObject
*) (wxEvent
*)(wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
3736 static void *_p_wxProcessEventTo_p_wxObject(void *x
) {
3737 return (void *)((wxObject
*) (wxEvent
*) ((wxProcessEvent
*) x
));
3739 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) {
3740 return (void *)((wxObject
*) (wxEvtHandler
*)(wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
3742 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) {
3743 return (void *)((wxObject
*) (wxEvtHandler
*)(wxValidator
*) ((wxPyValidator
*) x
));
3745 static void *_p_wxValidatorTo_p_wxObject(void *x
) {
3746 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxValidator
*) x
));
3748 static void *_p_wxPyTimerTo_p_wxObject(void *x
) {
3749 return (void *)((wxObject
*) (wxEvtHandler
*) ((wxPyTimer
*) x
));
3751 static void *_p_wxControlTo_p_wxWindow(void *x
) {
3752 return (void *)((wxWindow
*) ((wxControl
*) x
));
3754 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) {
3755 return (void *)((wxWindow
*) (wxControl
*) ((wxControlWithItems
*) x
));
3757 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) {
3758 return (void *)((wxWindow
*) ((wxMenuBar
*) x
));
3760 static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x
) {
3761 return (void *)((wxWindow
*) (wxControl
*) ((wxCalendarCtrl
*) x
));
3763 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) {
3764 return (void *)((wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
3766 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) {
3767 return (void *)((wxCommandEvent
*) ((wxScrollEvent
*) x
));
3769 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) {
3770 return (void *)((wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
3772 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x
) {
3773 return (void *)((wxCommandEvent
*) ((wxDateEvent
*) x
));
3775 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) {
3776 return (void *)((wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
3778 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) {
3779 return (void *)((wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
3781 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) {
3782 return (void *)((wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
3784 static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x
) {
3785 return (void *)((wxCommandEvent
*) (wxDateEvent
*) ((wxCalendarEvent
*) x
));
3787 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) {
3788 return (void *)((wxCommandEvent
*) ((wxNotifyEvent
*) x
));
3790 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) {
3791 return (void *)((wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
3793 static void *_p_wxCalendarEventTo_p_wxDateEvent(void *x
) {
3794 return (void *)((wxDateEvent
*) ((wxCalendarEvent
*) x
));
3796 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) {
3797 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxControl
*) x
));
3799 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) {
3800 return (void *)((wxEvtHandler
*) ((wxWindow
*) x
));
3802 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) {
3803 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxControlWithItems
*) x
));
3805 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) {
3806 return (void *)((wxEvtHandler
*) ((wxPyApp
*) x
));
3808 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x
) {
3809 return (void *)((wxEvtHandler
*) ((wxPyTimer
*) x
));
3811 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) {
3812 return (void *)((wxEvtHandler
*) ((wxValidator
*) x
));
3814 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) {
3815 return (void *)((wxEvtHandler
*) (wxValidator
*) ((wxPyValidator
*) x
));
3817 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) {
3818 return (void *)((wxEvtHandler
*) (wxWindow
*) ((wxMenuBar
*) x
));
3820 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) {
3821 return (void *)((wxEvtHandler
*) ((wxMenu
*) x
));
3823 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x
) {
3824 return (void *)((wxEvtHandler
*) ((wxPyProcess
*) x
));
3826 static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x
) {
3827 return (void *)((wxEvtHandler
*) (wxWindow
*)(wxControl
*) ((wxCalendarCtrl
*) x
));
3829 static void *_p_wxControlWithItemsTo_p_wxControl(void *x
) {
3830 return (void *)((wxControl
*) ((wxControlWithItems
*) x
));
3832 static void *_p_wxCalendarCtrlTo_p_wxControl(void *x
) {
3833 return (void *)((wxControl
*) ((wxCalendarCtrl
*) x
));
3835 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) {
3836 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxContextMenuEvent
*) x
));
3838 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) {
3839 return (void *)((wxEvent
*) ((wxMenuEvent
*) x
));
3841 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) {
3842 return (void *)((wxEvent
*) ((wxCloseEvent
*) x
));
3844 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) {
3845 return (void *)((wxEvent
*) ((wxMouseEvent
*) x
));
3847 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) {
3848 return (void *)((wxEvent
*) ((wxEraseEvent
*) x
));
3850 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) {
3851 return (void *)((wxEvent
*) ((wxSetCursorEvent
*) x
));
3853 static void *_p_wxTimerEventTo_p_wxEvent(void *x
) {
3854 return (void *)((wxEvent
*) ((wxTimerEvent
*) x
));
3856 static void *_p_wxCalendarEventTo_p_wxEvent(void *x
) {
3857 return (void *)((wxEvent
*) (wxCommandEvent
*)(wxDateEvent
*) ((wxCalendarEvent
*) x
));
3859 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) {
3860 return (void *)((wxEvent
*) ((wxInitDialogEvent
*) x
));
3862 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) {
3863 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxScrollEvent
*) x
));
3865 static void *_p_wxPyEventTo_p_wxEvent(void *x
) {
3866 return (void *)((wxEvent
*) ((wxPyEvent
*) x
));
3868 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) {
3869 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxNotifyEvent
*) x
));
3871 static void *_p_wxJoystickEventTo_p_wxEvent(void *x
) {
3872 return (void *)((wxEvent
*) ((wxJoystickEvent
*) x
));
3874 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) {
3875 return (void *)((wxEvent
*) ((wxIdleEvent
*) x
));
3877 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) {
3878 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowCreateEvent
*) x
));
3880 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) {
3881 return (void *)((wxEvent
*) ((wxQueryNewPaletteEvent
*) x
));
3883 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) {
3884 return (void *)((wxEvent
*) ((wxMaximizeEvent
*) x
));
3886 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) {
3887 return (void *)((wxEvent
*) ((wxIconizeEvent
*) x
));
3889 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) {
3890 return (void *)((wxEvent
*) ((wxActivateEvent
*) x
));
3892 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) {
3893 return (void *)((wxEvent
*) ((wxSizeEvent
*) x
));
3895 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) {
3896 return (void *)((wxEvent
*) ((wxMoveEvent
*) x
));
3898 static void *_p_wxDateEventTo_p_wxEvent(void *x
) {
3899 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxDateEvent
*) x
));
3901 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) {
3902 return (void *)((wxEvent
*) ((wxPaintEvent
*) x
));
3904 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) {
3905 return (void *)((wxEvent
*) ((wxNcPaintEvent
*) x
));
3907 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) {
3908 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxUpdateUIEvent
*) x
));
3910 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) {
3911 return (void *)((wxEvent
*) ((wxPaletteChangedEvent
*) x
));
3913 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) {
3914 return (void *)((wxEvent
*) ((wxDisplayChangedEvent
*) x
));
3916 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) {
3917 return (void *)((wxEvent
*) ((wxMouseCaptureChangedEvent
*) x
));
3919 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) {
3920 return (void *)((wxEvent
*) ((wxSysColourChangedEvent
*) x
));
3922 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) {
3923 return (void *)((wxEvent
*) ((wxDropFilesEvent
*) x
));
3925 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) {
3926 return (void *)((wxEvent
*) ((wxFocusEvent
*) x
));
3928 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) {
3929 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxChildFocusEvent
*) x
));
3931 static void *_p_wxProcessEventTo_p_wxEvent(void *x
) {
3932 return (void *)((wxEvent
*) ((wxProcessEvent
*) x
));
3934 static void *_p_wxShowEventTo_p_wxEvent(void *x
) {
3935 return (void *)((wxEvent
*) ((wxShowEvent
*) x
));
3937 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) {
3938 return (void *)((wxEvent
*) ((wxCommandEvent
*) x
));
3940 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) {
3941 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxPyCommandEvent
*) x
));
3943 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) {
3944 return (void *)((wxEvent
*) (wxCommandEvent
*) ((wxWindowDestroyEvent
*) x
));
3946 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) {
3947 return (void *)((wxEvent
*) ((wxNavigationKeyEvent
*) x
));
3949 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) {
3950 return (void *)((wxEvent
*) ((wxKeyEvent
*) x
));
3952 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) {
3953 return (void *)((wxEvent
*) ((wxScrollWinEvent
*) x
));
3955 static swig_type_info _swigt__p_wxObject
[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxStdDialogButtonSizer", _p_wxStdDialogButtonSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3956 static swig_type_info _swigt__p_unsigned_char
[] = {{"_p_unsigned_char", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3957 static swig_type_info _swigt__p_wxColour
[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3958 static swig_type_info _swigt__p_wxCalendarDateAttr
[] = {{"_p_wxCalendarDateAttr", 0, "wxCalendarDateAttr *", 0, 0, 0, 0},{"_p_wxCalendarDateAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3959 static swig_type_info _swigt__p_wxCalendarEvent
[] = {{"_p_wxCalendarEvent", 0, "wxCalendarEvent *", 0, 0, 0, 0},{"_p_wxCalendarEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3960 static swig_type_info _swigt__p_wxVisualAttributes
[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3961 static swig_type_info _swigt__p_wxWindow
[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3962 static swig_type_info _swigt__p_wxCommandEvent
[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3963 static swig_type_info _swigt__p_unsigned_long
[] = {{"_p_unsigned_long", 0, "unsigned long *|wxLogLevel *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3964 static swig_type_info _swigt__p_unsigned_int
[] = {{"_p_unsigned_int", 0, "unsigned int *|time_t *", 0, 0, 0, 0},{"_p_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3965 static swig_type_info _swigt__unsigned_int
[] = {{"_unsigned_int", 0, "unsigned int|std::size_t", 0, 0, 0, 0},{"_unsigned_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3966 static swig_type_info _swigt__p_form_ops_t
[] = {{"_p_form_ops_t", 0, "enum form_ops_t *|form_ops_t *", 0, 0, 0, 0},{"_p_form_ops_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3967 static swig_type_info _swigt__p_wxDuplexMode
[] = {{"_p_wxDuplexMode", 0, "enum wxDuplexMode *|wxDuplexMode *", 0, 0, 0, 0},{"_p_wxDuplexMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3968 static swig_type_info _swigt__p_wxDateEvent
[] = {{"_p_wxDateEvent", 0, "wxDateEvent *", 0, 0, 0, 0},{"_p_wxDateEvent", 0, 0, 0, 0, 0, 0},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxDateEvent
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3969 static swig_type_info _swigt__p_char
[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3970 static swig_type_info _swigt__p_wxEvtHandler
[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3971 static swig_type_info _swigt__std__ptrdiff_t
[] = {{"_std__ptrdiff_t", 0, "std::ptrdiff_t", 0, 0, 0, 0},{"_std__ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3972 static swig_type_info _swigt__ptrdiff_t
[] = {{"_ptrdiff_t", 0, "ptrdiff_t", 0, 0, 0, 0},{"_ptrdiff_t", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3973 static swig_type_info _swigt__p_wxFont
[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3974 static swig_type_info _swigt__p_wxDateTime
[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3975 static swig_type_info _swigt__p_wxControl
[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl
, 0, 0, 0, 0, 0},{"_p_wxCalendarCtrl", _p_wxCalendarCtrlTo_p_wxControl
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3976 static swig_type_info _swigt__p_wxEvent
[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxCalendarEvent", _p_wxCalendarEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxDateEvent", _p_wxDateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3977 static swig_type_info _swigt__p_wxPaperSize
[] = {{"_p_wxPaperSize", 0, "enum wxPaperSize *|wxPaperSize *", 0, 0, 0, 0},{"_p_wxPaperSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3978 static swig_type_info _swigt__p_wxCalendarCtrl
[] = {{"_p_wxCalendarCtrl", 0, "wxCalendarCtrl *", 0, 0, 0, 0},{"_p_wxCalendarCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3979 static swig_type_info _swigt__p_int
[] = {{"_p_int", 0, "int *|wxEventType *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
3981 static swig_type_info
*swig_types_initial
[] = {
3983 _swigt__p_unsigned_char
,
3985 _swigt__p_wxCalendarDateAttr
,
3986 _swigt__p_wxCalendarEvent
,
3987 _swigt__p_wxVisualAttributes
,
3989 _swigt__p_wxCommandEvent
,
3990 _swigt__p_unsigned_long
,
3991 _swigt__p_unsigned_int
,
3992 _swigt__unsigned_int
,
3993 _swigt__p_form_ops_t
,
3994 _swigt__p_wxDuplexMode
,
3995 _swigt__p_wxDateEvent
,
3997 _swigt__p_wxEvtHandler
,
3998 _swigt__std__ptrdiff_t
,
4001 _swigt__p_wxDateTime
,
4002 _swigt__p_wxControl
,
4004 _swigt__p_wxPaperSize
,
4005 _swigt__p_wxCalendarCtrl
,
4011 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
4013 static swig_const_info swig_const_table
[] = {
4014 {0, 0, 0, 0.0, 0, 0}};
4025 /* Python-specific SWIG API */
4026 #define SWIG_newvarlink() SWIG_Python_newvarlink()
4027 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
4028 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
4030 /* -----------------------------------------------------------------------------
4031 * global variable support code.
4032 * ----------------------------------------------------------------------------- */
4034 typedef struct swig_globalvar
{
4035 char *name
; /* Name of global variable */
4036 PyObject
*(*get_attr
)(); /* Return the current value */
4037 int (*set_attr
)(PyObject
*); /* Set the value */
4038 struct swig_globalvar
*next
;
4041 typedef struct swig_varlinkobject
{
4043 swig_globalvar
*vars
;
4044 } swig_varlinkobject
;
4047 swig_varlink_repr(swig_varlinkobject
*v
) {
4049 return PyString_FromString("<Swig global variables>");
4053 swig_varlink_print(swig_varlinkobject
*v
, FILE *fp
, int flags
) {
4054 swig_globalvar
*var
;
4056 fprintf(fp
,"Swig global variables { ");
4057 for (var
= v
->vars
; var
; var
=var
->next
) {
4058 fprintf(fp
,"%s", var
->name
);
4059 if (var
->next
) fprintf(fp
,", ");
4066 swig_varlink_getattr(swig_varlinkobject
*v
, char *n
) {
4067 swig_globalvar
*var
= v
->vars
;
4069 if (strcmp(var
->name
,n
) == 0) {
4070 return (*var
->get_attr
)();
4074 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4079 swig_varlink_setattr(swig_varlinkobject
*v
, char *n
, PyObject
*p
) {
4080 swig_globalvar
*var
= v
->vars
;
4082 if (strcmp(var
->name
,n
) == 0) {
4083 return (*var
->set_attr
)(p
);
4087 PyErr_SetString(PyExc_NameError
,"Unknown C global variable");
4091 static PyTypeObject varlinktype
= {
4092 PyObject_HEAD_INIT(0)
4093 0, /* Number of items in variable part (ob_size) */
4094 (char *)"swigvarlink", /* Type name (tp_name) */
4095 sizeof(swig_varlinkobject
), /* Basic size (tp_basicsize) */
4096 0, /* Itemsize (tp_itemsize) */
4097 0, /* Deallocator (tp_dealloc) */
4098 (printfunc
) swig_varlink_print
, /* Print (tp_print) */
4099 (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */
4100 (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */
4102 (reprfunc
) swig_varlink_repr
, /* tp_repr */
4103 0, /* tp_as_number */
4104 0, /* tp_as_sequence */
4105 0, /* tp_as_mapping */
4109 0, /* tp_getattro */
4110 0, /* tp_setattro */
4111 0, /* tp_as_buffer */
4114 #if PY_VERSION_HEX >= 0x02000000
4115 0, /* tp_traverse */
4118 #if PY_VERSION_HEX >= 0x02010000
4119 0, /* tp_richcompare */
4120 0, /* tp_weaklistoffset */
4122 #if PY_VERSION_HEX >= 0x02020000
4123 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
4125 #if PY_VERSION_HEX >= 0x02030000
4129 0,0,0,0 /* tp_alloc -> tp_next */
4133 /* Create a variable linking object for use later */
4135 SWIG_Python_newvarlink(void) {
4136 swig_varlinkobject
*result
= 0;
4137 result
= PyMem_NEW(swig_varlinkobject
,1);
4138 varlinktype
.ob_type
= &PyType_Type
; /* Patch varlinktype into a PyType */
4139 result
->ob_type
= &varlinktype
;
4141 result
->ob_refcnt
= 0;
4142 Py_XINCREF((PyObject
*) result
);
4143 return ((PyObject
*) result
);
4147 SWIG_Python_addvarlink(PyObject
*p
, char *name
, PyObject
*(*get_attr
)(void), int (*set_attr
)(PyObject
*p
)) {
4148 swig_varlinkobject
*v
;
4150 v
= (swig_varlinkobject
*) p
;
4151 gv
= (swig_globalvar
*) malloc(sizeof(swig_globalvar
));
4152 gv
->name
= (char *) malloc(strlen(name
)+1);
4153 strcpy(gv
->name
,name
);
4154 gv
->get_attr
= get_attr
;
4155 gv
->set_attr
= set_attr
;
4160 /* -----------------------------------------------------------------------------
4161 * constants/methods manipulation
4162 * ----------------------------------------------------------------------------- */
4164 /* Install Constants */
4166 SWIG_Python_InstallConstants(PyObject
*d
, swig_const_info constants
[]) {
4169 for (i
= 0; constants
[i
].type
; i
++) {
4170 switch(constants
[i
].type
) {
4172 obj
= PyInt_FromLong(constants
[i
].lvalue
);
4175 obj
= PyFloat_FromDouble(constants
[i
].dvalue
);
4177 case SWIG_PY_STRING
:
4178 if (constants
[i
].pvalue
) {
4179 obj
= PyString_FromString((char *) constants
[i
].pvalue
);
4185 case SWIG_PY_POINTER
:
4186 obj
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0);
4188 case SWIG_PY_BINARY
:
4189 obj
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
));
4196 PyDict_SetItemString(d
,constants
[i
].name
,obj
);
4202 /* -----------------------------------------------------------------------------*/
4203 /* Fix SwigMethods to carry the callback ptrs when needed */
4204 /* -----------------------------------------------------------------------------*/
4207 SWIG_Python_FixMethods(PyMethodDef
*methods
,
4208 swig_const_info
*const_table
,
4209 swig_type_info
**types
,
4210 swig_type_info
**types_initial
) {
4212 for (i
= 0; methods
[i
].ml_name
; ++i
) {
4213 char *c
= methods
[i
].ml_doc
;
4214 if (c
&& (c
= strstr(c
, "swig_ptr: "))) {
4216 swig_const_info
*ci
= 0;
4217 char *name
= c
+ 10;
4218 for (j
= 0; const_table
[j
].type
; j
++) {
4219 if (strncmp(const_table
[j
].name
, name
,
4220 strlen(const_table
[j
].name
)) == 0) {
4221 ci
= &(const_table
[j
]);
4226 size_t shift
= (ci
->ptype
) - types
;
4227 swig_type_info
*ty
= types_initial
[shift
];
4228 size_t ldoc
= (c
- methods
[i
].ml_doc
);
4229 size_t lptr
= strlen(ty
->name
)+2*sizeof(void*)+2;
4230 char *ndoc
= (char*)malloc(ldoc
+ lptr
+ 10);
4232 void *ptr
= (ci
->type
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
);
4233 strncpy(buff
, methods
[i
].ml_doc
, ldoc
);
4235 strncpy(buff
, "swig_ptr: ", 10);
4237 SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
);
4238 methods
[i
].ml_doc
= ndoc
;
4244 /* -----------------------------------------------------------------------------*
4245 * Initialize type list
4246 * -----------------------------------------------------------------------------*/
4248 #if PY_MAJOR_VERSION < 2
4249 /* PyModule_AddObject function was introduced in Python 2.0. The following function
4250 is copied out of Python/modsupport.c in python version 2.3.4 */
4252 PyModule_AddObject(PyObject
*m
, char *name
, PyObject
*o
)
4255 if (!PyModule_Check(m
)) {
4256 PyErr_SetString(PyExc_TypeError
,
4257 "PyModule_AddObject() needs module as first arg");
4261 PyErr_SetString(PyExc_TypeError
,
4262 "PyModule_AddObject() needs non-NULL value");
4266 dict
= PyModule_GetDict(m
);
4268 /* Internal error -- modules must have a dict! */
4269 PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__",
4270 PyModule_GetName(m
));
4273 if (PyDict_SetItemString(dict
, name
, o
))
4280 static swig_type_info
**
4281 SWIG_Python_SetTypeListHandle(swig_type_info
**type_list_handle
) {
4282 static PyMethodDef swig_empty_runtime_method_table
[] = {
4288 PyObject
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
,
4289 swig_empty_runtime_method_table
);
4290 PyObject
*pointer
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
);
4291 if (pointer
&& module) {
4292 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
);
4294 return type_list_handle
;
4297 static swig_type_info
**
4298 SWIG_Python_LookupTypePointer(swig_type_info
**type_list_handle
) {
4299 swig_type_info
**type_pointer
;
4301 /* first check if module already created */
4302 type_pointer
= SWIG_Python_GetTypeListHandle();
4304 return type_pointer
;
4306 /* create a new module and variable */
4307 return SWIG_Python_SetTypeListHandle(type_list_handle
);
4315 /* -----------------------------------------------------------------------------*
4316 * Partial Init method
4317 * -----------------------------------------------------------------------------*/
4319 #ifdef SWIG_LINK_RUNTIME
4323 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *);
4329 SWIGEXPORT(void) SWIG_init(void) {
4330 static PyObject
*SWIG_globals
= 0;
4331 static int typeinit
= 0;
4334 if (!SWIG_globals
) SWIG_globals
= SWIG_newvarlink();
4336 /* Fix SwigMethods to carry the callback ptrs when needed */
4337 SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
);
4339 m
= Py_InitModule((char *) SWIG_name
, SwigMethods
);
4340 d
= PyModule_GetDict(m
);
4343 #ifdef SWIG_LINK_RUNTIME
4344 swig_type_list_handle
= (swig_type_info
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
);
4346 # ifndef SWIG_STATIC_RUNTIME
4347 swig_type_list_handle
= SWIG_Python_LookupTypePointer(swig_type_list_handle
);
4350 for (i
= 0; swig_types_initial
[i
]; i
++) {
4351 swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]);
4355 SWIG_InstallConstants(d
,swig_const_table
);
4358 PyDict_SetItemString(d
,"CAL_SUNDAY_FIRST", SWIG_From_int((int)(wxCAL_SUNDAY_FIRST
)));
4361 PyDict_SetItemString(d
,"CAL_MONDAY_FIRST", SWIG_From_int((int)(wxCAL_MONDAY_FIRST
)));
4364 PyDict_SetItemString(d
,"CAL_SHOW_HOLIDAYS", SWIG_From_int((int)(wxCAL_SHOW_HOLIDAYS
)));
4367 PyDict_SetItemString(d
,"CAL_NO_YEAR_CHANGE", SWIG_From_int((int)(wxCAL_NO_YEAR_CHANGE
)));
4370 PyDict_SetItemString(d
,"CAL_NO_MONTH_CHANGE", SWIG_From_int((int)(wxCAL_NO_MONTH_CHANGE
)));
4373 PyDict_SetItemString(d
,"CAL_SEQUENTIAL_MONTH_SELECTION", SWIG_From_int((int)(wxCAL_SEQUENTIAL_MONTH_SELECTION
)));
4376 PyDict_SetItemString(d
,"CAL_SHOW_SURROUNDING_WEEKS", SWIG_From_int((int)(wxCAL_SHOW_SURROUNDING_WEEKS
)));
4379 PyDict_SetItemString(d
,"CAL_HITTEST_NOWHERE", SWIG_From_int((int)(wxCAL_HITTEST_NOWHERE
)));
4382 PyDict_SetItemString(d
,"CAL_HITTEST_HEADER", SWIG_From_int((int)(wxCAL_HITTEST_HEADER
)));
4385 PyDict_SetItemString(d
,"CAL_HITTEST_DAY", SWIG_From_int((int)(wxCAL_HITTEST_DAY
)));
4388 PyDict_SetItemString(d
,"CAL_HITTEST_INCMONTH", SWIG_From_int((int)(wxCAL_HITTEST_INCMONTH
)));
4391 PyDict_SetItemString(d
,"CAL_HITTEST_DECMONTH", SWIG_From_int((int)(wxCAL_HITTEST_DECMONTH
)));
4394 PyDict_SetItemString(d
,"CAL_HITTEST_SURROUNDING_WEEK", SWIG_From_int((int)(wxCAL_HITTEST_SURROUNDING_WEEK
)));
4397 PyDict_SetItemString(d
,"CAL_BORDER_NONE", SWIG_From_int((int)(wxCAL_BORDER_NONE
)));
4400 PyDict_SetItemString(d
,"CAL_BORDER_SQUARE", SWIG_From_int((int)(wxCAL_BORDER_SQUARE
)));
4403 PyDict_SetItemString(d
,"CAL_BORDER_ROUND", SWIG_From_int((int)(wxCAL_BORDER_ROUND
)));
4405 PyDict_SetItemString(d
, "wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong(wxEVT_CALENDAR_DOUBLECLICKED
));
4406 PyDict_SetItemString(d
, "wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_SEL_CHANGED
));
4407 PyDict_SetItemString(d
, "wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_DAY_CHANGED
));
4408 PyDict_SetItemString(d
, "wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_MONTH_CHANGED
));
4409 PyDict_SetItemString(d
, "wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_YEAR_CHANGED
));
4410 PyDict_SetItemString(d
, "wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong(wxEVT_CALENDAR_WEEKDAY_CLICKED
));
4411 PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
);
4412 SWIG_addvarlink(SWIG_globals
,(char*)"CalendarNameStr",_wrap_CalendarNameStr_get
, _wrap_CalendarNameStr_set
);