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", 
1045     PyErr_Format(PyExc_TypeError
, "a '%s' is expected", type
); 
1047     PyErr_Format(PyExc_TypeError
, "unexpected type is received"); 
1051 SWIGRUNTIMEINLINE 
void 
1052 SWIG_Python_NullRef(const char *type
) 
1055     PyErr_Format(PyExc_TypeError
, "null reference of type '%s' was received",type
); 
1057     PyErr_Format(PyExc_TypeError
, "null reference was received"); 
1062 SWIG_Python_AddErrMesg(const char* mesg
, int infront
) 
1064   if (PyErr_Occurred()) { 
1066     PyObject 
*value 
= 0; 
1067     PyObject 
*traceback 
= 0; 
1068     PyErr_Fetch(&type
, &value
, &traceback
); 
1070       PyObject 
*old_str 
= PyObject_Str(value
); 
1074         PyErr_Format(type
, "%s %s", mesg
, PyString_AsString(old_str
)); 
1076         PyErr_Format(type
, "%s %s", PyString_AsString(old_str
), mesg
); 
1087 SWIG_Python_ArgFail(int argnum
) 
1089   if (PyErr_Occurred()) { 
1090     /* add information about failing argument */ 
1092     sprintf(mesg
, "argument number %d:", argnum
); 
1093     return SWIG_Python_AddErrMesg(mesg
, 1); 
1100 /* ----------------------------------------------------------------------------- 
1101  * pointers/data manipulation 
1102  * ----------------------------------------------------------------------------- */ 
1104 /* Convert a pointer value */ 
1106 SWIG_Python_ConvertPtr(PyObject 
*obj
, void **ptr
, swig_type_info 
*ty
, int flags
) { 
1109   static PyObject 
*SWIG_this 
= 0; 
1111   PyObject  
*pyobj 
= 0; 
1115   if (obj 
== Py_None
) { 
1120 #ifdef SWIG_COBJECT_TYPES 
1121   if (!(PySwigObject_Check(obj
))) { 
1123       SWIG_this 
= PyString_FromString("this"); 
1125     obj 
= PyObject_GetAttr(obj
,SWIG_this
); 
1127     if (!obj
) goto type_error
; 
1128     if (!PySwigObject_Check(obj
)) { 
1133   vptr 
= PySwigObject_AsVoidPtr(obj
); 
1134   c 
= (const char *) PySwigObject_GetDesc(obj
); 
1135   if (newref
) { Py_DECREF(obj
); } 
1138   if (!(PyString_Check(obj
))) { 
1140       SWIG_this 
= PyString_FromString("this"); 
1142     obj 
= PyObject_GetAttr(obj
,SWIG_this
); 
1144     if (!obj
) goto type_error
; 
1145     if (!PyString_Check(obj
)) { 
1150   c 
= PyString_AS_STRING(obj
); 
1151   /* Pointer values must start with leading underscore */ 
1152   c 
= SWIG_UnpackVoidPtr(c
, &vptr
, ty
->name
); 
1153   if (newref
) { Py_DECREF(obj
); } 
1154   if (!c
) goto type_error
; 
1160     tc 
= SWIG_TypeCheck(c
,ty
); 
1161     if (!tc
) goto type_error
; 
1162     *ptr 
= SWIG_TypeCast(tc
,vptr
); 
1167   if ((pyobj
) && (flags 
& SWIG_POINTER_DISOWN
)) { 
1168     PyObject_SetAttrString(pyobj
,(char*)"thisown",Py_False
); 
1174   if (pyobj 
&& !obj
) {     
1176     if (PyCFunction_Check(obj
)) { 
1177       /* here we get the method pointer for callbacks */ 
1178       char *doc 
= (((PyCFunctionObject 
*)obj
) -> m_ml 
-> ml_doc
); 
1179       c 
= doc 
? strstr(doc
, "swig_ptr: ") : 0; 
1181         c 
= SWIG_UnpackVoidPtr(c 
+ 10, &vptr
, ty
->name
); 
1182         if (!c
) goto type_error
; 
1187   if (flags 
& SWIG_POINTER_EXCEPTION
) { 
1189       SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
); 
1191       SWIG_Python_TypeError("C/C++ pointer", obj
); 
1197 /* Convert a pointer value, signal an exception on a type mismatch */ 
1199 SWIG_Python_MustGetPtr(PyObject 
*obj
, swig_type_info 
*ty
, int argnum
, int flags
) { 
1201   if (SWIG_Python_ConvertPtr(obj
, &result
, ty
, flags
) == -1) { 
1203     if (flags 
& SWIG_POINTER_EXCEPTION
) { 
1204       SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
); 
1205       SWIG_Python_ArgFail(argnum
); 
1211 /* Convert a packed value value */ 
1213 SWIG_Python_ConvertPacked(PyObject 
*obj
, void *ptr
, size_t sz
, swig_type_info 
*ty
, int flags
) { 
1217 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) 
1218   c 
= PySwigPacked_UnpackData(obj
, ptr
, sz
); 
1220   if ((!obj
) || (!PyString_Check(obj
))) goto type_error
; 
1221   c 
= PyString_AS_STRING(obj
); 
1222   /* Pointer values must start with leading underscore */ 
1223   c 
= SWIG_UnpackDataName(c
, ptr
, sz
, ty
->name
); 
1225   if (!c
) goto type_error
; 
1227     tc 
= SWIG_TypeCheck(c
,ty
); 
1228     if (!tc
) goto type_error
; 
1234   if (flags 
& SWIG_POINTER_EXCEPTION
) { 
1236       SWIG_Python_TypeError(SWIG_TypePrettyName(ty
), obj
); 
1238       SWIG_Python_TypeError("C/C++ packed data", obj
); 
1244 /* Create a new array object */ 
1245 SWIGRUNTIME PyObject 
* 
1246 SWIG_Python_NewPointerObj(void *ptr
, swig_type_info 
*type
, int own
) { 
1252 #ifdef SWIG_COBJECT_TYPES 
1253   robj 
= PySwigObject_FromVoidPtrAndDesc((void *) ptr
, (char *)type
->name
); 
1256     char result
[SWIG_BUFFER_SIZE
]; 
1257     robj 
= SWIG_PackVoidPtr(result
, ptr
, type
->name
, sizeof(result
)) ? 
1258       PyString_FromString(result
) : 0; 
1261   if (!robj 
|| (robj 
== Py_None
)) return robj
; 
1262   if (type
->clientdata
) { 
1264     PyObject 
*args 
= Py_BuildValue((char*)"(O)", robj
); 
1266     inst 
= PyObject_CallObject((PyObject 
*) type
->clientdata
, args
); 
1270         PyObject_SetAttrString(inst
,(char*)"thisown",Py_True
); 
1278 SWIGRUNTIME PyObject 
* 
1279 SWIG_Python_NewPackedObj(void *ptr
, size_t sz
, swig_type_info 
*type
) { 
1285 #if defined(SWIG_COBJECT_TYPES) && !defined(SWIG_COBJECT_PYTHON) 
1286   robj 
= PySwigPacked_FromDataAndDesc((void *) ptr
, sz
, (char *)type
->name
); 
1289     char result
[SWIG_BUFFER_SIZE
]; 
1290     robj 
= SWIG_PackDataName(result
, ptr
, sz
, type
->name
, sizeof(result
)) ? 
1291       PyString_FromString(result
) : 0; 
1297 /* -----------------------------------------------------------------------------* 
1299  * -----------------------------------------------------------------------------*/ 
1301 #ifdef SWIG_LINK_RUNTIME 
1302 void *SWIG_ReturnGlobalTypeList(void *); 
1305 SWIGRUNTIME swig_type_info 
** 
1306 SWIG_Python_GetTypeListHandle() { 
1307   static void *type_pointer 
= (void *)0; 
1308   /* first check if module already created */ 
1309   if (!type_pointer
) { 
1310 #ifdef SWIG_LINK_RUNTIME 
1311     type_pointer 
= SWIG_ReturnGlobalTypeList((void *)0); 
1313     type_pointer 
= PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
, 
1314                                     (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
); 
1315     if (PyErr_Occurred()) { 
1317       type_pointer 
= (void *)0; 
1321   return (swig_type_info 
**) type_pointer
; 
1325   Search for a swig_type_info structure 
1327 SWIGRUNTIMEINLINE swig_type_info 
* 
1328 SWIG_Python_GetTypeList() { 
1329   swig_type_info 
**tlh 
= SWIG_Python_GetTypeListHandle(); 
1330   return tlh 
? *tlh 
: (swig_type_info
*)0; 
1333 #define SWIG_Runtime_GetTypeList SWIG_Python_GetTypeList  
1340 /* -------- TYPES TABLE (BEGIN) -------- */ 
1342 #define  SWIGTYPE_p_wxObject swig_types[0]  
1343 #define  SWIGTYPE_p_unsigned_char swig_types[1]  
1344 #define  SWIGTYPE_p_wxColour swig_types[2]  
1345 #define  SWIGTYPE_p_wxCalendarDateAttr swig_types[3]  
1346 #define  SWIGTYPE_p_wxCalendarEvent swig_types[4]  
1347 #define  SWIGTYPE_p_wxVisualAttributes swig_types[5]  
1348 #define  SWIGTYPE_p_wxWindow swig_types[6]  
1349 #define  SWIGTYPE_p_wxCommandEvent swig_types[7]  
1350 #define  SWIGTYPE_p_unsigned_long swig_types[8]  
1351 #define  SWIGTYPE_p_unsigned_int swig_types[9]  
1352 #define  SWIGTYPE_unsigned_int swig_types[10]  
1353 #define  SWIGTYPE_p_form_ops_t swig_types[11]  
1354 #define  SWIGTYPE_p_wxDuplexMode swig_types[12]  
1355 #define  SWIGTYPE_p_wxDateEvent swig_types[13]  
1356 #define  SWIGTYPE_p_char swig_types[14]  
1357 #define  SWIGTYPE_p_wxEvtHandler swig_types[15]  
1358 #define  SWIGTYPE_std__ptrdiff_t swig_types[16]  
1359 #define  SWIGTYPE_ptrdiff_t swig_types[17]  
1360 #define  SWIGTYPE_p_wxFont swig_types[18]  
1361 #define  SWIGTYPE_p_wxDateTime swig_types[19]  
1362 #define  SWIGTYPE_p_wxControl swig_types[20]  
1363 #define  SWIGTYPE_p_wxEvent swig_types[21]  
1364 #define  SWIGTYPE_p_wxPaperSize swig_types[22]  
1365 #define  SWIGTYPE_p_wxCalendarCtrl swig_types[23]  
1366 #define  SWIGTYPE_p_int swig_types[24]  
1367 static swig_type_info 
*swig_types
[26]; 
1369 /* -------- TYPES TABLE (END) -------- */ 
1372 /*----------------------------------------------- 
1373               @(target):= _calendar.so 
1374   ------------------------------------------------*/ 
1375 #define SWIG_init    init_calendar 
1377 #define SWIG_name    "_calendar" 
1379 #include "wx/wxPython/wxPython.h" 
1380 #include "wx/wxPython/pyclasses.h" 
1382 #include <wx/calctrl.h> 
1385   /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,66,SWIG_define@*/ 
1386 #define SWIG_From_int PyInt_FromLong 
1394   SWIG_CheckLongInRange(long value
, long min_value
, long max_value
, 
1397   if (value 
< min_value
) { 
1399       PyErr_Format(PyExc_OverflowError
,  
1400                    "value %ld is less than '%s' minimum %ld",  
1401                    value
, errmsg
, min_value
); 
1404   } else if (value 
> max_value
) { 
1406       PyErr_Format(PyExc_OverflowError
, 
1407                    "value %ld is greater than '%s' maximum %ld",  
1408                    value
, errmsg
, max_value
); 
1417 SWIG_AsVal_long(PyObject
* obj
, long* val
) 
1419     if (PyNumber_Check(obj
)) { 
1420         if (val
) *val 
= PyInt_AsLong(obj
); 
1424         SWIG_type_error("number", obj
); 
1430 #if INT_MAX != LONG_MAX 
1432   SWIG_AsVal_int(PyObject 
*obj
, int *val
) 
1434   const char* errmsg 
= val 
? "int" : (char*)0; 
1436   if (SWIG_AsVal_long(obj
, &v
)) { 
1437     if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) { 
1438       if (val
) *val 
= (int)(v
); 
1447     SWIG_type_error(errmsg
, obj
); 
1453   SWIG_AsVal_int(PyObject 
*obj
, int *val
) 
1455   return SWIG_AsVal_long(obj
,(long*)val
); 
1461 SWIG_As_int(PyObject
* obj
) 
1464   if (!SWIG_AsVal_int(obj
, &v
)) { 
1466       this is needed to make valgrind/purify happier.  
1468     memset((void*)&v
, 0, sizeof(int)); 
1475 SWIG_Check_int(PyObject
* obj
) 
1477   return SWIG_AsVal_int(obj
, (int*)0); 
1482   SWIG_AsVal_bool(PyObject 
*obj
, bool *val
) 
1484   if (obj 
== Py_True
) { 
1485     if (val
) *val 
= true; 
1488   if (obj 
== Py_False
) { 
1489     if (val
) *val 
= false; 
1493   if (SWIG_AsVal_int(obj
, &res
)) {     
1494     if (val
) *val 
= res 
? true : false; 
1500     SWIG_type_error("bool", obj
); 
1506 SWIGINTERNSHORT 
bool 
1507 SWIG_As_bool(PyObject
* obj
) 
1510   if (!SWIG_AsVal_bool(obj
, &v
)) { 
1512       this is needed to make valgrind/purify happier.  
1514     memset((void*)&v
, 0, sizeof(bool)); 
1521 SWIG_Check_bool(PyObject
* obj
) 
1523   return SWIG_AsVal_bool(obj
, (bool*)0); 
1526  static const wxString 
wxPyCalendarNameStr(wxCalendarNameStr
);  
1528 SWIGINTERNSHORT 
long 
1529 SWIG_As_long(PyObject
* obj
) 
1532   if (!SWIG_AsVal_long(obj
, &v
)) { 
1534       this is needed to make valgrind/purify happier.  
1536     memset((void*)&v
, 0, sizeof(long)); 
1543 SWIG_Check_long(PyObject
* obj
) 
1545   return SWIG_AsVal_long(obj
, (long*)0); 
1550 SWIG_AsVal_unsigned_SS_long(PyObject
* obj
, unsigned long* val
) 
1553     if (SWIG_AsVal_long(obj
, &v
) && v 
< 0) { 
1554         SWIG_type_error("unsigned number", obj
); 
1557         *val 
= (unsigned long)v
; 
1562 SWIGINTERNSHORT 
unsigned long 
1563 SWIG_As_unsigned_SS_long(PyObject
* obj
) 
1566   if (!SWIG_AsVal_unsigned_SS_long(obj
, &v
)) { 
1568       this is needed to make valgrind/purify happier.  
1570     memset((void*)&v
, 0, sizeof(unsigned long)); 
1577 SWIG_Check_unsigned_SS_long(PyObject
* obj
) 
1579   return SWIG_AsVal_unsigned_SS_long(obj
, (unsigned long*)0); 
1582 static PyObject 
*wxCalendarCtrl_HitTest(wxCalendarCtrl 
*self
,wxPoint 
const &pos
){ 
1583             wxDateTime
* date 
= new wxDateTime
; 
1584             wxDateTime::WeekDay wd
; 
1585             wxCalendarHitTestResult result 
= self
->HitTest(pos
, date
, &wd
); 
1586             wxPyBlock_t blocked 
= wxPyBeginBlockThreads(); 
1587             PyObject
* tup 
= PyTuple_New(3); 
1588             PyTuple_SET_ITEM(tup
, 0, PyInt_FromLong(result
)); 
1589             PyTuple_SET_ITEM(tup
, 1, wxPyConstructObject(date
, wxT("wxDateTime"), 1)); 
1590             PyTuple_SET_ITEM(tup
, 2, PyInt_FromLong(wd
)); 
1591             wxPyEndBlockThreads(blocked
); 
1597 static PyObject 
*_wrap_new_CalendarDateAttr(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1598     PyObject 
*resultobj
; 
1599     wxColour 
const &arg1_defvalue 
= wxNullColour 
; 
1600     wxColour 
*arg1 
= (wxColour 
*) &arg1_defvalue 
; 
1601     wxColour 
const &arg2_defvalue 
= wxNullColour 
; 
1602     wxColour 
*arg2 
= (wxColour 
*) &arg2_defvalue 
; 
1603     wxColour 
const &arg3_defvalue 
= wxNullColour 
; 
1604     wxColour 
*arg3 
= (wxColour 
*) &arg3_defvalue 
; 
1605     wxFont 
const &arg4_defvalue 
= wxNullFont 
; 
1606     wxFont 
*arg4 
= (wxFont 
*) &arg4_defvalue 
; 
1607     wxCalendarDateBorder arg5 
= (wxCalendarDateBorder
) wxCAL_BORDER_NONE 
; 
1608     wxCalendarDateAttr 
*result
; 
1612     PyObject 
* obj0 
= 0 ; 
1613     PyObject 
* obj1 
= 0 ; 
1614     PyObject 
* obj2 
= 0 ; 
1615     PyObject 
* obj3 
= 0 ; 
1616     PyObject 
* obj4 
= 0 ; 
1618         (char *) "colText",(char *) "colBack",(char *) "colBorder",(char *) "font",(char *) "border", NULL 
 
1621     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OOOOO:new_CalendarDateAttr",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
)) goto fail
; 
1625             if ( ! wxColour_helper(obj0
, &arg1
)) SWIG_fail
; 
1631             if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
; 
1637             if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
; 
1642             SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxFont
, SWIG_POINTER_EXCEPTION 
| 0); 
1643             if (SWIG_arg_fail(4)) SWIG_fail
; 
1645                 SWIG_null_ref("wxFont"); 
1647             if (SWIG_arg_fail(4)) SWIG_fail
; 
1652             arg5 
= (wxCalendarDateBorder
)(SWIG_As_int(obj4
));  
1653             if (SWIG_arg_fail(5)) SWIG_fail
; 
1657         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1658         result 
= (wxCalendarDateAttr 
*)new wxCalendarDateAttr((wxColour 
const &)*arg1
,(wxColour 
const &)*arg2
,(wxColour 
const &)*arg3
,(wxFont 
const &)*arg4
,(wxCalendarDateBorder 
)arg5
); 
1660         wxPyEndAllowThreads(__tstate
); 
1661         if (PyErr_Occurred()) SWIG_fail
; 
1663     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarDateAttr
, 1); 
1670 static PyObject 
*_wrap_CalendarDateAttr_SetTextColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1671     PyObject 
*resultobj
; 
1672     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1673     wxColour 
*arg2 
= 0 ; 
1675     PyObject 
* obj0 
= 0 ; 
1676     PyObject 
* obj1 
= 0 ; 
1678         (char *) "self",(char *) "colText", NULL 
 
1681     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetTextColour",kwnames
,&obj0
,&obj1
)) goto fail
; 
1682     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1683     if (SWIG_arg_fail(1)) SWIG_fail
; 
1686         if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
; 
1689         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1690         (arg1
)->SetTextColour((wxColour 
const &)*arg2
); 
1692         wxPyEndAllowThreads(__tstate
); 
1693         if (PyErr_Occurred()) SWIG_fail
; 
1695     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
1702 static PyObject 
*_wrap_CalendarDateAttr_SetBackgroundColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1703     PyObject 
*resultobj
; 
1704     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1705     wxColour 
*arg2 
= 0 ; 
1707     PyObject 
* obj0 
= 0 ; 
1708     PyObject 
* obj1 
= 0 ; 
1710         (char *) "self",(char *) "colBack", NULL 
 
1713     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetBackgroundColour",kwnames
,&obj0
,&obj1
)) goto fail
; 
1714     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1715     if (SWIG_arg_fail(1)) SWIG_fail
; 
1718         if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
; 
1721         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1722         (arg1
)->SetBackgroundColour((wxColour 
const &)*arg2
); 
1724         wxPyEndAllowThreads(__tstate
); 
1725         if (PyErr_Occurred()) SWIG_fail
; 
1727     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
1734 static PyObject 
*_wrap_CalendarDateAttr_SetBorderColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1735     PyObject 
*resultobj
; 
1736     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1737     wxColour 
*arg2 
= 0 ; 
1739     PyObject 
* obj0 
= 0 ; 
1740     PyObject 
* obj1 
= 0 ; 
1742         (char *) "self",(char *) "col", NULL 
 
1745     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetBorderColour",kwnames
,&obj0
,&obj1
)) goto fail
; 
1746     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1747     if (SWIG_arg_fail(1)) SWIG_fail
; 
1750         if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
; 
1753         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1754         (arg1
)->SetBorderColour((wxColour 
const &)*arg2
); 
1756         wxPyEndAllowThreads(__tstate
); 
1757         if (PyErr_Occurred()) SWIG_fail
; 
1759     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
1766 static PyObject 
*_wrap_CalendarDateAttr_SetFont(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1767     PyObject 
*resultobj
; 
1768     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1770     PyObject 
* obj0 
= 0 ; 
1771     PyObject 
* obj1 
= 0 ; 
1773         (char *) "self",(char *) "font", NULL 
 
1776     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetFont",kwnames
,&obj0
,&obj1
)) goto fail
; 
1777     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1778     if (SWIG_arg_fail(1)) SWIG_fail
; 
1780         SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxFont
, SWIG_POINTER_EXCEPTION 
| 0); 
1781         if (SWIG_arg_fail(2)) SWIG_fail
; 
1783             SWIG_null_ref("wxFont"); 
1785         if (SWIG_arg_fail(2)) SWIG_fail
; 
1788         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1789         (arg1
)->SetFont((wxFont 
const &)*arg2
); 
1791         wxPyEndAllowThreads(__tstate
); 
1792         if (PyErr_Occurred()) SWIG_fail
; 
1794     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
1801 static PyObject 
*_wrap_CalendarDateAttr_SetBorder(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1802     PyObject 
*resultobj
; 
1803     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1804     wxCalendarDateBorder arg2 
; 
1805     PyObject 
* obj0 
= 0 ; 
1806     PyObject 
* obj1 
= 0 ; 
1808         (char *) "self",(char *) "border", NULL 
 
1811     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetBorder",kwnames
,&obj0
,&obj1
)) goto fail
; 
1812     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1813     if (SWIG_arg_fail(1)) SWIG_fail
; 
1815         arg2 
= (wxCalendarDateBorder
)(SWIG_As_int(obj1
));  
1816         if (SWIG_arg_fail(2)) SWIG_fail
; 
1819         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1820         (arg1
)->SetBorder((wxCalendarDateBorder 
)arg2
); 
1822         wxPyEndAllowThreads(__tstate
); 
1823         if (PyErr_Occurred()) SWIG_fail
; 
1825     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
1832 static PyObject 
*_wrap_CalendarDateAttr_SetHoliday(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1833     PyObject 
*resultobj
; 
1834     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1836     PyObject 
* obj0 
= 0 ; 
1837     PyObject 
* obj1 
= 0 ; 
1839         (char *) "self",(char *) "holiday", NULL 
 
1842     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarDateAttr_SetHoliday",kwnames
,&obj0
,&obj1
)) goto fail
; 
1843     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1844     if (SWIG_arg_fail(1)) SWIG_fail
; 
1846         arg2 
= (bool)(SWIG_As_bool(obj1
));  
1847         if (SWIG_arg_fail(2)) SWIG_fail
; 
1850         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1851         (arg1
)->SetHoliday(arg2
); 
1853         wxPyEndAllowThreads(__tstate
); 
1854         if (PyErr_Occurred()) SWIG_fail
; 
1856     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
1863 static PyObject 
*_wrap_CalendarDateAttr_HasTextColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1864     PyObject 
*resultobj
; 
1865     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1867     PyObject 
* obj0 
= 0 ; 
1869         (char *) "self", NULL 
 
1872     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasTextColour",kwnames
,&obj0
)) goto fail
; 
1873     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1874     if (SWIG_arg_fail(1)) SWIG_fail
; 
1876         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1877         result 
= (bool)((wxCalendarDateAttr 
const *)arg1
)->HasTextColour(); 
1879         wxPyEndAllowThreads(__tstate
); 
1880         if (PyErr_Occurred()) SWIG_fail
; 
1883         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
1891 static PyObject 
*_wrap_CalendarDateAttr_HasBackgroundColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1892     PyObject 
*resultobj
; 
1893     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1895     PyObject 
* obj0 
= 0 ; 
1897         (char *) "self", NULL 
 
1900     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasBackgroundColour",kwnames
,&obj0
)) goto fail
; 
1901     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1902     if (SWIG_arg_fail(1)) SWIG_fail
; 
1904         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1905         result 
= (bool)((wxCalendarDateAttr 
const *)arg1
)->HasBackgroundColour(); 
1907         wxPyEndAllowThreads(__tstate
); 
1908         if (PyErr_Occurred()) SWIG_fail
; 
1911         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
1919 static PyObject 
*_wrap_CalendarDateAttr_HasBorderColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1920     PyObject 
*resultobj
; 
1921     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1923     PyObject 
* obj0 
= 0 ; 
1925         (char *) "self", NULL 
 
1928     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasBorderColour",kwnames
,&obj0
)) goto fail
; 
1929     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1930     if (SWIG_arg_fail(1)) SWIG_fail
; 
1932         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1933         result 
= (bool)((wxCalendarDateAttr 
const *)arg1
)->HasBorderColour(); 
1935         wxPyEndAllowThreads(__tstate
); 
1936         if (PyErr_Occurred()) SWIG_fail
; 
1939         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
1947 static PyObject 
*_wrap_CalendarDateAttr_HasFont(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1948     PyObject 
*resultobj
; 
1949     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1951     PyObject 
* obj0 
= 0 ; 
1953         (char *) "self", NULL 
 
1956     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasFont",kwnames
,&obj0
)) goto fail
; 
1957     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1958     if (SWIG_arg_fail(1)) SWIG_fail
; 
1960         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1961         result 
= (bool)((wxCalendarDateAttr 
const *)arg1
)->HasFont(); 
1963         wxPyEndAllowThreads(__tstate
); 
1964         if (PyErr_Occurred()) SWIG_fail
; 
1967         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
1975 static PyObject 
*_wrap_CalendarDateAttr_HasBorder(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1976     PyObject 
*resultobj
; 
1977     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
1979     PyObject 
* obj0 
= 0 ; 
1981         (char *) "self", NULL 
 
1984     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_HasBorder",kwnames
,&obj0
)) goto fail
; 
1985     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
1986     if (SWIG_arg_fail(1)) SWIG_fail
; 
1988         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1989         result 
= (bool)((wxCalendarDateAttr 
const *)arg1
)->HasBorder(); 
1991         wxPyEndAllowThreads(__tstate
); 
1992         if (PyErr_Occurred()) SWIG_fail
; 
1995         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2003 static PyObject 
*_wrap_CalendarDateAttr_IsHoliday(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2004     PyObject 
*resultobj
; 
2005     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
2007     PyObject 
* obj0 
= 0 ; 
2009         (char *) "self", NULL 
 
2012     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_IsHoliday",kwnames
,&obj0
)) goto fail
; 
2013     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
2014     if (SWIG_arg_fail(1)) SWIG_fail
; 
2016         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2017         result 
= (bool)((wxCalendarDateAttr 
const *)arg1
)->IsHoliday(); 
2019         wxPyEndAllowThreads(__tstate
); 
2020         if (PyErr_Occurred()) SWIG_fail
; 
2023         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2031 static PyObject 
*_wrap_CalendarDateAttr_GetTextColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2032     PyObject 
*resultobj
; 
2033     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
2035     PyObject 
* obj0 
= 0 ; 
2037         (char *) "self", NULL 
 
2040     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetTextColour",kwnames
,&obj0
)) goto fail
; 
2041     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
2042     if (SWIG_arg_fail(1)) SWIG_fail
; 
2044         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2045         result 
= ((wxCalendarDateAttr 
const *)arg1
)->GetTextColour(); 
2047         wxPyEndAllowThreads(__tstate
); 
2048         if (PyErr_Occurred()) SWIG_fail
; 
2051         wxColour 
* resultptr
; 
2052         resultptr 
= new wxColour((wxColour 
&)(result
)); 
2053         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
2061 static PyObject 
*_wrap_CalendarDateAttr_GetBackgroundColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2062     PyObject 
*resultobj
; 
2063     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
2065     PyObject 
* obj0 
= 0 ; 
2067         (char *) "self", NULL 
 
2070     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetBackgroundColour",kwnames
,&obj0
)) goto fail
; 
2071     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
2072     if (SWIG_arg_fail(1)) SWIG_fail
; 
2074         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2075         result 
= ((wxCalendarDateAttr 
const *)arg1
)->GetBackgroundColour(); 
2077         wxPyEndAllowThreads(__tstate
); 
2078         if (PyErr_Occurred()) SWIG_fail
; 
2081         wxColour 
* resultptr
; 
2082         resultptr 
= new wxColour((wxColour 
&)(result
)); 
2083         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
2091 static PyObject 
*_wrap_CalendarDateAttr_GetBorderColour(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2092     PyObject 
*resultobj
; 
2093     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
2095     PyObject 
* obj0 
= 0 ; 
2097         (char *) "self", NULL 
 
2100     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetBorderColour",kwnames
,&obj0
)) goto fail
; 
2101     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
2102     if (SWIG_arg_fail(1)) SWIG_fail
; 
2104         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2105         result 
= ((wxCalendarDateAttr 
const *)arg1
)->GetBorderColour(); 
2107         wxPyEndAllowThreads(__tstate
); 
2108         if (PyErr_Occurred()) SWIG_fail
; 
2111         wxColour 
* resultptr
; 
2112         resultptr 
= new wxColour((wxColour 
&)(result
)); 
2113         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
2121 static PyObject 
*_wrap_CalendarDateAttr_GetFont(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2122     PyObject 
*resultobj
; 
2123     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
2125     PyObject 
* obj0 
= 0 ; 
2127         (char *) "self", NULL 
 
2130     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetFont",kwnames
,&obj0
)) goto fail
; 
2131     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
2132     if (SWIG_arg_fail(1)) SWIG_fail
; 
2134         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2135         result 
= ((wxCalendarDateAttr 
const *)arg1
)->GetFont(); 
2137         wxPyEndAllowThreads(__tstate
); 
2138         if (PyErr_Occurred()) SWIG_fail
; 
2142         resultptr 
= new wxFont((wxFont 
&)(result
)); 
2143         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxFont
, 1); 
2151 static PyObject 
*_wrap_CalendarDateAttr_GetBorder(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2152     PyObject 
*resultobj
; 
2153     wxCalendarDateAttr 
*arg1 
= (wxCalendarDateAttr 
*) 0 ; 
2154     wxCalendarDateBorder result
; 
2155     PyObject 
* obj0 
= 0 ; 
2157         (char *) "self", NULL 
 
2160     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarDateAttr_GetBorder",kwnames
,&obj0
)) goto fail
; 
2161     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
2162     if (SWIG_arg_fail(1)) SWIG_fail
; 
2164         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2165         result 
= (wxCalendarDateBorder
)((wxCalendarDateAttr 
const *)arg1
)->GetBorder(); 
2167         wxPyEndAllowThreads(__tstate
); 
2168         if (PyErr_Occurred()) SWIG_fail
; 
2170     resultobj 
= SWIG_From_int((result
)); 
2177 static PyObject 
* CalendarDateAttr_swigregister(PyObject 
*, PyObject 
*args
) { 
2179     if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
; 
2180     SWIG_TypeClientData(SWIGTYPE_p_wxCalendarDateAttr
, obj
); 
2182     return Py_BuildValue((char *)""); 
2184 static PyObject 
*_wrap_new_CalendarEvent(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2185     PyObject 
*resultobj
; 
2186     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2188     wxCalendarEvent 
*result
; 
2189     PyObject 
* obj0 
= 0 ; 
2190     PyObject 
* obj1 
= 0 ; 
2192         (char *) "cal",(char *) "type", NULL 
 
2195     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:new_CalendarEvent",kwnames
,&obj0
,&obj1
)) goto fail
; 
2196     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2197     if (SWIG_arg_fail(1)) SWIG_fail
; 
2199         arg2 
= (wxEventType
)(SWIG_As_int(obj1
));  
2200         if (SWIG_arg_fail(2)) SWIG_fail
; 
2203         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2204         result 
= (wxCalendarEvent 
*)new wxCalendarEvent(arg1
,arg2
); 
2206         wxPyEndAllowThreads(__tstate
); 
2207         if (PyErr_Occurred()) SWIG_fail
; 
2209     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarEvent
, 1); 
2216 static PyObject 
*_wrap_CalendarEvent_SetWeekDay(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2217     PyObject 
*resultobj
; 
2218     wxCalendarEvent 
*arg1 
= (wxCalendarEvent 
*) 0 ; 
2219     wxDateTime::WeekDay arg2 
; 
2220     PyObject 
* obj0 
= 0 ; 
2221     PyObject 
* obj1 
= 0 ; 
2223         (char *) "self",(char *) "wd", NULL 
 
2226     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarEvent_SetWeekDay",kwnames
,&obj0
,&obj1
)) goto fail
; 
2227     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarEvent
, SWIG_POINTER_EXCEPTION 
| 0); 
2228     if (SWIG_arg_fail(1)) SWIG_fail
; 
2230         arg2 
= (wxDateTime::WeekDay 
const)(SWIG_As_int(obj1
));  
2231         if (SWIG_arg_fail(2)) SWIG_fail
; 
2234         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2235         (arg1
)->SetWeekDay((wxDateTime::WeekDay 
)arg2
); 
2237         wxPyEndAllowThreads(__tstate
); 
2238         if (PyErr_Occurred()) SWIG_fail
; 
2240     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
2247 static PyObject 
*_wrap_CalendarEvent_GetWeekDay(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2248     PyObject 
*resultobj
; 
2249     wxCalendarEvent 
*arg1 
= (wxCalendarEvent 
*) 0 ; 
2250     wxDateTime::WeekDay result
; 
2251     PyObject 
* obj0 
= 0 ; 
2253         (char *) "self", NULL 
 
2256     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarEvent_GetWeekDay",kwnames
,&obj0
)) goto fail
; 
2257     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarEvent
, SWIG_POINTER_EXCEPTION 
| 0); 
2258     if (SWIG_arg_fail(1)) SWIG_fail
; 
2260         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2261         result 
= (wxDateTime::WeekDay
)((wxCalendarEvent 
const *)arg1
)->GetWeekDay(); 
2263         wxPyEndAllowThreads(__tstate
); 
2264         if (PyErr_Occurred()) SWIG_fail
; 
2266     resultobj 
= SWIG_From_int((result
)); 
2273 static PyObject 
* CalendarEvent_swigregister(PyObject 
*, PyObject 
*args
) { 
2275     if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
; 
2276     SWIG_TypeClientData(SWIGTYPE_p_wxCalendarEvent
, obj
); 
2278     return Py_BuildValue((char *)""); 
2280 static int _wrap_CalendarNameStr_set(PyObject 
*) { 
2281     PyErr_SetString(PyExc_TypeError
,"Variable CalendarNameStr is read-only."); 
2286 static PyObject 
*_wrap_CalendarNameStr_get(void) { 
2291         pyobj 
= PyUnicode_FromWideChar((&wxPyCalendarNameStr
)->c_str(), (&wxPyCalendarNameStr
)->Len()); 
2293         pyobj 
= PyString_FromStringAndSize((&wxPyCalendarNameStr
)->c_str(), (&wxPyCalendarNameStr
)->Len()); 
2300 static PyObject 
*_wrap_new_CalendarCtrl(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2301     PyObject 
*resultobj
; 
2302     wxWindow 
*arg1 
= (wxWindow 
*) 0 ; 
2303     int arg2 
= (int) -1 ; 
2304     wxDateTime 
const &arg3_defvalue 
= wxDefaultDateTime 
; 
2305     wxDateTime 
*arg3 
= (wxDateTime 
*) &arg3_defvalue 
; 
2306     wxPoint 
const &arg4_defvalue 
= wxDefaultPosition 
; 
2307     wxPoint 
*arg4 
= (wxPoint 
*) &arg4_defvalue 
; 
2308     wxSize 
const &arg5_defvalue 
= wxDefaultSize 
; 
2309     wxSize 
*arg5 
= (wxSize 
*) &arg5_defvalue 
; 
2310     long arg6 
= (long) wxCAL_SHOW_HOLIDAYS
|wxWANTS_CHARS 
; 
2311     wxString 
const &arg7_defvalue 
= wxPyCalendarNameStr 
; 
2312     wxString 
*arg7 
= (wxString 
*) &arg7_defvalue 
; 
2313     wxCalendarCtrl 
*result
; 
2316     bool temp7 
= false ; 
2317     PyObject 
* obj0 
= 0 ; 
2318     PyObject 
* obj1 
= 0 ; 
2319     PyObject 
* obj2 
= 0 ; 
2320     PyObject 
* obj3 
= 0 ; 
2321     PyObject 
* obj4 
= 0 ; 
2322     PyObject 
* obj5 
= 0 ; 
2323     PyObject 
* obj6 
= 0 ; 
2325         (char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL 
 
2328     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOO:new_CalendarCtrl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
)) goto fail
; 
2329     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION 
| 0); 
2330     if (SWIG_arg_fail(1)) SWIG_fail
; 
2333             arg2 
= (int)(SWIG_As_int(obj1
));  
2334             if (SWIG_arg_fail(2)) SWIG_fail
; 
2339             SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION 
| 0); 
2340             if (SWIG_arg_fail(3)) SWIG_fail
; 
2342                 SWIG_null_ref("wxDateTime"); 
2344             if (SWIG_arg_fail(3)) SWIG_fail
; 
2350             if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
; 
2356             if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
; 
2361             arg6 
= (long)(SWIG_As_long(obj5
));  
2362             if (SWIG_arg_fail(6)) SWIG_fail
; 
2367             arg7 
= wxString_in_helper(obj6
); 
2368             if (arg7 
== NULL
) SWIG_fail
; 
2373         if (!wxPyCheckForApp()) SWIG_fail
; 
2374         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2375         result 
= (wxCalendarCtrl 
*)new wxCalendarCtrl(arg1
,arg2
,(wxDateTime 
const &)*arg3
,(wxPoint 
const &)*arg4
,(wxSize 
const &)*arg5
,arg6
,(wxString 
const &)*arg7
); 
2377         wxPyEndAllowThreads(__tstate
); 
2378         if (PyErr_Occurred()) SWIG_fail
; 
2380     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarCtrl
, 1); 
2395 static PyObject 
*_wrap_new_PreCalendarCtrl(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2396     PyObject 
*resultobj
; 
2397     wxCalendarCtrl 
*result
; 
2402     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_PreCalendarCtrl",kwnames
)) goto fail
; 
2404         if (!wxPyCheckForApp()) SWIG_fail
; 
2405         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2406         result 
= (wxCalendarCtrl 
*)new wxCalendarCtrl(); 
2408         wxPyEndAllowThreads(__tstate
); 
2409         if (PyErr_Occurred()) SWIG_fail
; 
2411     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarCtrl
, 1); 
2418 static PyObject 
*_wrap_CalendarCtrl_Create(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2419     PyObject 
*resultobj
; 
2420     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2421     wxWindow 
*arg2 
= (wxWindow 
*) 0 ; 
2423     wxDateTime 
const &arg4_defvalue 
= wxDefaultDateTime 
; 
2424     wxDateTime 
*arg4 
= (wxDateTime 
*) &arg4_defvalue 
; 
2425     wxPoint 
const &arg5_defvalue 
= wxDefaultPosition 
; 
2426     wxPoint 
*arg5 
= (wxPoint 
*) &arg5_defvalue 
; 
2427     wxSize 
const &arg6_defvalue 
= wxDefaultSize 
; 
2428     wxSize 
*arg6 
= (wxSize 
*) &arg6_defvalue 
; 
2429     long arg7 
= (long) wxCAL_SHOW_HOLIDAYS
|wxWANTS_CHARS 
; 
2430     wxString 
const &arg8_defvalue 
= wxPyCalendarNameStr 
; 
2431     wxString 
*arg8 
= (wxString 
*) &arg8_defvalue 
; 
2435     bool temp8 
= false ; 
2436     PyObject 
* obj0 
= 0 ; 
2437     PyObject 
* obj1 
= 0 ; 
2438     PyObject 
* obj2 
= 0 ; 
2439     PyObject 
* obj3 
= 0 ; 
2440     PyObject 
* obj4 
= 0 ; 
2441     PyObject 
* obj5 
= 0 ; 
2442     PyObject 
* obj6 
= 0 ; 
2443     PyObject 
* obj7 
= 0 ; 
2445         (char *) "self",(char *) "parent",(char *) "id",(char *) "date",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL 
 
2448     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO|OOOOO:CalendarCtrl_Create",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
)) goto fail
; 
2449     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2450     if (SWIG_arg_fail(1)) SWIG_fail
; 
2451     SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION 
| 0); 
2452     if (SWIG_arg_fail(2)) SWIG_fail
; 
2454         arg3 
= (int)(SWIG_As_int(obj2
));  
2455         if (SWIG_arg_fail(3)) SWIG_fail
; 
2459             SWIG_Python_ConvertPtr(obj3
, (void **)&arg4
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION 
| 0); 
2460             if (SWIG_arg_fail(4)) SWIG_fail
; 
2462                 SWIG_null_ref("wxDateTime"); 
2464             if (SWIG_arg_fail(4)) SWIG_fail
; 
2470             if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
; 
2476             if ( ! wxSize_helper(obj5
, &arg6
)) SWIG_fail
; 
2481             arg7 
= (long)(SWIG_As_long(obj6
));  
2482             if (SWIG_arg_fail(7)) SWIG_fail
; 
2487             arg8 
= wxString_in_helper(obj7
); 
2488             if (arg8 
== NULL
) SWIG_fail
; 
2493         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2494         result 
= (bool)(arg1
)->Create(arg2
,arg3
,(wxDateTime 
const &)*arg4
,(wxPoint 
const &)*arg5
,(wxSize 
const &)*arg6
,arg7
,(wxString 
const &)*arg8
); 
2496         wxPyEndAllowThreads(__tstate
); 
2497         if (PyErr_Occurred()) SWIG_fail
; 
2500         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2516 static PyObject 
*_wrap_CalendarCtrl_SetDate(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2517     PyObject 
*resultobj
; 
2518     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2519     wxDateTime 
*arg2 
= 0 ; 
2520     PyObject 
* obj0 
= 0 ; 
2521     PyObject 
* obj1 
= 0 ; 
2523         (char *) "self",(char *) "date", NULL 
 
2526     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_SetDate",kwnames
,&obj0
,&obj1
)) goto fail
; 
2527     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2528     if (SWIG_arg_fail(1)) SWIG_fail
; 
2530         SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION 
| 0); 
2531         if (SWIG_arg_fail(2)) SWIG_fail
; 
2533             SWIG_null_ref("wxDateTime"); 
2535         if (SWIG_arg_fail(2)) SWIG_fail
; 
2538         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2539         (arg1
)->SetDate((wxDateTime 
const &)*arg2
); 
2541         wxPyEndAllowThreads(__tstate
); 
2542         if (PyErr_Occurred()) SWIG_fail
; 
2544     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
2551 static PyObject 
*_wrap_CalendarCtrl_GetDate(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2552     PyObject 
*resultobj
; 
2553     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2555     PyObject 
* obj0 
= 0 ; 
2557         (char *) "self", NULL 
 
2560     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetDate",kwnames
,&obj0
)) goto fail
; 
2561     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2562     if (SWIG_arg_fail(1)) SWIG_fail
; 
2564         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2566             wxDateTime 
const &_result_ref 
= ((wxCalendarCtrl 
const *)arg1
)->GetDate(); 
2567             result 
= (wxDateTime 
*) &_result_ref
; 
2570         wxPyEndAllowThreads(__tstate
); 
2571         if (PyErr_Occurred()) SWIG_fail
; 
2573     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0); 
2580 static PyObject 
*_wrap_CalendarCtrl_SetLowerDateLimit(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2581     PyObject 
*resultobj
; 
2582     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2583     wxDateTime 
const &arg2_defvalue 
= wxDefaultDateTime 
; 
2584     wxDateTime 
*arg2 
= (wxDateTime 
*) &arg2_defvalue 
; 
2586     PyObject 
* obj0 
= 0 ; 
2587     PyObject 
* obj1 
= 0 ; 
2589         (char *) "self",(char *) "date", NULL 
 
2592     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_SetLowerDateLimit",kwnames
,&obj0
,&obj1
)) goto fail
; 
2593     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2594     if (SWIG_arg_fail(1)) SWIG_fail
; 
2597             SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION 
| 0); 
2598             if (SWIG_arg_fail(2)) SWIG_fail
; 
2600                 SWIG_null_ref("wxDateTime"); 
2602             if (SWIG_arg_fail(2)) SWIG_fail
; 
2606         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2607         result 
= (bool)(arg1
)->SetLowerDateLimit((wxDateTime 
const &)*arg2
); 
2609         wxPyEndAllowThreads(__tstate
); 
2610         if (PyErr_Occurred()) SWIG_fail
; 
2613         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2621 static PyObject 
*_wrap_CalendarCtrl_SetUpperDateLimit(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2622     PyObject 
*resultobj
; 
2623     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2624     wxDateTime 
const &arg2_defvalue 
= wxDefaultDateTime 
; 
2625     wxDateTime 
*arg2 
= (wxDateTime 
*) &arg2_defvalue 
; 
2627     PyObject 
* obj0 
= 0 ; 
2628     PyObject 
* obj1 
= 0 ; 
2630         (char *) "self",(char *) "date", NULL 
 
2633     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_SetUpperDateLimit",kwnames
,&obj0
,&obj1
)) goto fail
; 
2634     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2635     if (SWIG_arg_fail(1)) SWIG_fail
; 
2638             SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION 
| 0); 
2639             if (SWIG_arg_fail(2)) SWIG_fail
; 
2641                 SWIG_null_ref("wxDateTime"); 
2643             if (SWIG_arg_fail(2)) SWIG_fail
; 
2647         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2648         result 
= (bool)(arg1
)->SetUpperDateLimit((wxDateTime 
const &)*arg2
); 
2650         wxPyEndAllowThreads(__tstate
); 
2651         if (PyErr_Occurred()) SWIG_fail
; 
2654         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2662 static PyObject 
*_wrap_CalendarCtrl_GetLowerDateLimit(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2663     PyObject 
*resultobj
; 
2664     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2666     PyObject 
* obj0 
= 0 ; 
2668         (char *) "self", NULL 
 
2671     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetLowerDateLimit",kwnames
,&obj0
)) goto fail
; 
2672     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2673     if (SWIG_arg_fail(1)) SWIG_fail
; 
2675         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2677             wxDateTime 
const &_result_ref 
= ((wxCalendarCtrl 
const *)arg1
)->GetLowerDateLimit(); 
2678             result 
= (wxDateTime 
*) &_result_ref
; 
2681         wxPyEndAllowThreads(__tstate
); 
2682         if (PyErr_Occurred()) SWIG_fail
; 
2684     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0); 
2691 static PyObject 
*_wrap_CalendarCtrl_GetUpperDateLimit(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2692     PyObject 
*resultobj
; 
2693     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2695     PyObject 
* obj0 
= 0 ; 
2697         (char *) "self", NULL 
 
2700     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetUpperDateLimit",kwnames
,&obj0
)) goto fail
; 
2701     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2702     if (SWIG_arg_fail(1)) SWIG_fail
; 
2704         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2706             wxDateTime 
const &_result_ref 
= ((wxCalendarCtrl 
const *)arg1
)->GetUpperDateLimit(); 
2707             result 
= (wxDateTime 
*) &_result_ref
; 
2710         wxPyEndAllowThreads(__tstate
); 
2711         if (PyErr_Occurred()) SWIG_fail
; 
2713     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxDateTime
, 0); 
2720 static PyObject 
*_wrap_CalendarCtrl_SetDateRange(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2721     PyObject 
*resultobj
; 
2722     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2723     wxDateTime 
const &arg2_defvalue 
= wxDefaultDateTime 
; 
2724     wxDateTime 
*arg2 
= (wxDateTime 
*) &arg2_defvalue 
; 
2725     wxDateTime 
const &arg3_defvalue 
= wxDefaultDateTime 
; 
2726     wxDateTime 
*arg3 
= (wxDateTime 
*) &arg3_defvalue 
; 
2728     PyObject 
* obj0 
= 0 ; 
2729     PyObject 
* obj1 
= 0 ; 
2730     PyObject 
* obj2 
= 0 ; 
2732         (char *) "self",(char *) "lowerdate",(char *) "upperdate", NULL 
 
2735     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OO:CalendarCtrl_SetDateRange",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
; 
2736     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2737     if (SWIG_arg_fail(1)) SWIG_fail
; 
2740             SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION 
| 0); 
2741             if (SWIG_arg_fail(2)) SWIG_fail
; 
2743                 SWIG_null_ref("wxDateTime"); 
2745             if (SWIG_arg_fail(2)) SWIG_fail
; 
2750             SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxDateTime
, SWIG_POINTER_EXCEPTION 
| 0); 
2751             if (SWIG_arg_fail(3)) SWIG_fail
; 
2753                 SWIG_null_ref("wxDateTime"); 
2755             if (SWIG_arg_fail(3)) SWIG_fail
; 
2759         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2760         result 
= (bool)(arg1
)->SetDateRange((wxDateTime 
const &)*arg2
,(wxDateTime 
const &)*arg3
); 
2762         wxPyEndAllowThreads(__tstate
); 
2763         if (PyErr_Occurred()) SWIG_fail
; 
2766         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2774 static PyObject 
*_wrap_CalendarCtrl_EnableYearChange(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2775     PyObject 
*resultobj
; 
2776     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2777     bool arg2 
= (bool) true ; 
2778     PyObject 
* obj0 
= 0 ; 
2779     PyObject 
* obj1 
= 0 ; 
2781         (char *) "self",(char *) "enable", NULL 
 
2784     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_EnableYearChange",kwnames
,&obj0
,&obj1
)) goto fail
; 
2785     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2786     if (SWIG_arg_fail(1)) SWIG_fail
; 
2789             arg2 
= (bool)(SWIG_As_bool(obj1
));  
2790             if (SWIG_arg_fail(2)) SWIG_fail
; 
2794         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2795         (arg1
)->EnableYearChange(arg2
); 
2797         wxPyEndAllowThreads(__tstate
); 
2798         if (PyErr_Occurred()) SWIG_fail
; 
2800     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
2807 static PyObject 
*_wrap_CalendarCtrl_EnableMonthChange(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2808     PyObject 
*resultobj
; 
2809     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2810     bool arg2 
= (bool) true ; 
2811     PyObject 
* obj0 
= 0 ; 
2812     PyObject 
* obj1 
= 0 ; 
2814         (char *) "self",(char *) "enable", NULL 
 
2817     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_EnableMonthChange",kwnames
,&obj0
,&obj1
)) goto fail
; 
2818     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2819     if (SWIG_arg_fail(1)) SWIG_fail
; 
2822             arg2 
= (bool)(SWIG_As_bool(obj1
));  
2823             if (SWIG_arg_fail(2)) SWIG_fail
; 
2827         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2828         (arg1
)->EnableMonthChange(arg2
); 
2830         wxPyEndAllowThreads(__tstate
); 
2831         if (PyErr_Occurred()) SWIG_fail
; 
2833     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
2840 static PyObject 
*_wrap_CalendarCtrl_EnableHolidayDisplay(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2841     PyObject 
*resultobj
; 
2842     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2843     bool arg2 
= (bool) true ; 
2844     PyObject 
* obj0 
= 0 ; 
2845     PyObject 
* obj1 
= 0 ; 
2847         (char *) "self",(char *) "display", NULL 
 
2850     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|O:CalendarCtrl_EnableHolidayDisplay",kwnames
,&obj0
,&obj1
)) goto fail
; 
2851     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2852     if (SWIG_arg_fail(1)) SWIG_fail
; 
2855             arg2 
= (bool)(SWIG_As_bool(obj1
));  
2856             if (SWIG_arg_fail(2)) SWIG_fail
; 
2860         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2861         (arg1
)->EnableHolidayDisplay(arg2
); 
2863         wxPyEndAllowThreads(__tstate
); 
2864         if (PyErr_Occurred()) SWIG_fail
; 
2866     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
2873 static PyObject 
*_wrap_CalendarCtrl_SetHeaderColours(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2874     PyObject 
*resultobj
; 
2875     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2876     wxColour 
*arg2 
= 0 ; 
2877     wxColour 
*arg3 
= 0 ; 
2880     PyObject 
* obj0 
= 0 ; 
2881     PyObject 
* obj1 
= 0 ; 
2882     PyObject 
* obj2 
= 0 ; 
2884         (char *) "self",(char *) "colFg",(char *) "colBg", NULL 
 
2887     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:CalendarCtrl_SetHeaderColours",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
; 
2888     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2889     if (SWIG_arg_fail(1)) SWIG_fail
; 
2892         if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
; 
2896         if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
; 
2899         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2900         (arg1
)->SetHeaderColours((wxColour 
const &)*arg2
,(wxColour 
const &)*arg3
); 
2902         wxPyEndAllowThreads(__tstate
); 
2903         if (PyErr_Occurred()) SWIG_fail
; 
2905     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
2912 static PyObject 
*_wrap_CalendarCtrl_GetHeaderColourFg(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2913     PyObject 
*resultobj
; 
2914     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2916     PyObject 
* obj0 
= 0 ; 
2918         (char *) "self", NULL 
 
2921     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHeaderColourFg",kwnames
,&obj0
)) goto fail
; 
2922     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2923     if (SWIG_arg_fail(1)) SWIG_fail
; 
2925         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2926         result 
= ((wxCalendarCtrl 
const *)arg1
)->GetHeaderColourFg(); 
2928         wxPyEndAllowThreads(__tstate
); 
2929         if (PyErr_Occurred()) SWIG_fail
; 
2932         wxColour 
* resultptr
; 
2933         resultptr 
= new wxColour((wxColour 
&)(result
)); 
2934         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
2942 static PyObject 
*_wrap_CalendarCtrl_GetHeaderColourBg(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2943     PyObject 
*resultobj
; 
2944     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2946     PyObject 
* obj0 
= 0 ; 
2948         (char *) "self", NULL 
 
2951     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHeaderColourBg",kwnames
,&obj0
)) goto fail
; 
2952     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2953     if (SWIG_arg_fail(1)) SWIG_fail
; 
2955         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2956         result 
= ((wxCalendarCtrl 
const *)arg1
)->GetHeaderColourBg(); 
2958         wxPyEndAllowThreads(__tstate
); 
2959         if (PyErr_Occurred()) SWIG_fail
; 
2962         wxColour 
* resultptr
; 
2963         resultptr 
= new wxColour((wxColour 
&)(result
)); 
2964         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
2972 static PyObject 
*_wrap_CalendarCtrl_SetHighlightColours(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2973     PyObject 
*resultobj
; 
2974     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
2975     wxColour 
*arg2 
= 0 ; 
2976     wxColour 
*arg3 
= 0 ; 
2979     PyObject 
* obj0 
= 0 ; 
2980     PyObject 
* obj1 
= 0 ; 
2981     PyObject 
* obj2 
= 0 ; 
2983         (char *) "self",(char *) "colFg",(char *) "colBg", NULL 
 
2986     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:CalendarCtrl_SetHighlightColours",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
; 
2987     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2988     if (SWIG_arg_fail(1)) SWIG_fail
; 
2991         if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
; 
2995         if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
; 
2998         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2999         (arg1
)->SetHighlightColours((wxColour 
const &)*arg2
,(wxColour 
const &)*arg3
); 
3001         wxPyEndAllowThreads(__tstate
); 
3002         if (PyErr_Occurred()) SWIG_fail
; 
3004     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
3011 static PyObject 
*_wrap_CalendarCtrl_GetHighlightColourFg(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3012     PyObject 
*resultobj
; 
3013     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3015     PyObject 
* obj0 
= 0 ; 
3017         (char *) "self", NULL 
 
3020     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHighlightColourFg",kwnames
,&obj0
)) goto fail
; 
3021     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3022     if (SWIG_arg_fail(1)) SWIG_fail
; 
3024         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3025         result 
= ((wxCalendarCtrl 
const *)arg1
)->GetHighlightColourFg(); 
3027         wxPyEndAllowThreads(__tstate
); 
3028         if (PyErr_Occurred()) SWIG_fail
; 
3031         wxColour 
* resultptr
; 
3032         resultptr 
= new wxColour((wxColour 
&)(result
)); 
3033         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
3041 static PyObject 
*_wrap_CalendarCtrl_GetHighlightColourBg(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3042     PyObject 
*resultobj
; 
3043     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3045     PyObject 
* obj0 
= 0 ; 
3047         (char *) "self", NULL 
 
3050     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHighlightColourBg",kwnames
,&obj0
)) goto fail
; 
3051     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3052     if (SWIG_arg_fail(1)) SWIG_fail
; 
3054         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3055         result 
= ((wxCalendarCtrl 
const *)arg1
)->GetHighlightColourBg(); 
3057         wxPyEndAllowThreads(__tstate
); 
3058         if (PyErr_Occurred()) SWIG_fail
; 
3061         wxColour 
* resultptr
; 
3062         resultptr 
= new wxColour((wxColour 
&)(result
)); 
3063         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
3071 static PyObject 
*_wrap_CalendarCtrl_SetHolidayColours(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3072     PyObject 
*resultobj
; 
3073     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3074     wxColour 
*arg2 
= 0 ; 
3075     wxColour 
*arg3 
= 0 ; 
3078     PyObject 
* obj0 
= 0 ; 
3079     PyObject 
* obj1 
= 0 ; 
3080     PyObject 
* obj2 
= 0 ; 
3082         (char *) "self",(char *) "colFg",(char *) "colBg", NULL 
 
3085     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:CalendarCtrl_SetHolidayColours",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
; 
3086     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3087     if (SWIG_arg_fail(1)) SWIG_fail
; 
3090         if ( ! wxColour_helper(obj1
, &arg2
)) SWIG_fail
; 
3094         if ( ! wxColour_helper(obj2
, &arg3
)) SWIG_fail
; 
3097         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3098         (arg1
)->SetHolidayColours((wxColour 
const &)*arg2
,(wxColour 
const &)*arg3
); 
3100         wxPyEndAllowThreads(__tstate
); 
3101         if (PyErr_Occurred()) SWIG_fail
; 
3103     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
3110 static PyObject 
*_wrap_CalendarCtrl_GetHolidayColourFg(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3111     PyObject 
*resultobj
; 
3112     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3114     PyObject 
* obj0 
= 0 ; 
3116         (char *) "self", NULL 
 
3119     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHolidayColourFg",kwnames
,&obj0
)) goto fail
; 
3120     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3121     if (SWIG_arg_fail(1)) SWIG_fail
; 
3123         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3124         result 
= ((wxCalendarCtrl 
const *)arg1
)->GetHolidayColourFg(); 
3126         wxPyEndAllowThreads(__tstate
); 
3127         if (PyErr_Occurred()) SWIG_fail
; 
3130         wxColour 
* resultptr
; 
3131         resultptr 
= new wxColour((wxColour 
&)(result
)); 
3132         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
3140 static PyObject 
*_wrap_CalendarCtrl_GetHolidayColourBg(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3141     PyObject 
*resultobj
; 
3142     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3144     PyObject 
* obj0 
= 0 ; 
3146         (char *) "self", NULL 
 
3149     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetHolidayColourBg",kwnames
,&obj0
)) goto fail
; 
3150     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3151     if (SWIG_arg_fail(1)) SWIG_fail
; 
3153         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3154         result 
= ((wxCalendarCtrl 
const *)arg1
)->GetHolidayColourBg(); 
3156         wxPyEndAllowThreads(__tstate
); 
3157         if (PyErr_Occurred()) SWIG_fail
; 
3160         wxColour 
* resultptr
; 
3161         resultptr 
= new wxColour((wxColour 
&)(result
)); 
3162         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxColour
, 1); 
3170 static PyObject 
*_wrap_CalendarCtrl_GetAttr(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3171     PyObject 
*resultobj
; 
3172     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3174     wxCalendarDateAttr 
*result
; 
3175     PyObject 
* obj0 
= 0 ; 
3176     PyObject 
* obj1 
= 0 ; 
3178         (char *) "self",(char *) "day", NULL 
 
3181     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_GetAttr",kwnames
,&obj0
,&obj1
)) goto fail
; 
3182     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3183     if (SWIG_arg_fail(1)) SWIG_fail
; 
3185         arg2 
= (size_t)(SWIG_As_unsigned_SS_long(obj1
));  
3186         if (SWIG_arg_fail(2)) SWIG_fail
; 
3189         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3190         result 
= (wxCalendarDateAttr 
*)((wxCalendarCtrl 
const *)arg1
)->GetAttr(arg2
); 
3192         wxPyEndAllowThreads(__tstate
); 
3193         if (PyErr_Occurred()) SWIG_fail
; 
3195     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxCalendarDateAttr
, 0); 
3202 static PyObject 
*_wrap_CalendarCtrl_SetAttr(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3203     PyObject 
*resultobj
; 
3204     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3206     wxCalendarDateAttr 
*arg3 
= (wxCalendarDateAttr 
*) 0 ; 
3207     PyObject 
* obj0 
= 0 ; 
3208     PyObject 
* obj1 
= 0 ; 
3209     PyObject 
* obj2 
= 0 ; 
3211         (char *) "self",(char *) "day",(char *) "attr", NULL 
 
3214     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OOO:CalendarCtrl_SetAttr",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
; 
3215     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3216     if (SWIG_arg_fail(1)) SWIG_fail
; 
3218         arg2 
= (size_t)(SWIG_As_unsigned_SS_long(obj1
));  
3219         if (SWIG_arg_fail(2)) SWIG_fail
; 
3221     SWIG_Python_ConvertPtr(obj2
, (void **)&arg3
, SWIGTYPE_p_wxCalendarDateAttr
, SWIG_POINTER_EXCEPTION 
| 0); 
3222     if (SWIG_arg_fail(3)) SWIG_fail
; 
3224         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3225         (arg1
)->SetAttr(arg2
,arg3
); 
3227         wxPyEndAllowThreads(__tstate
); 
3228         if (PyErr_Occurred()) SWIG_fail
; 
3230     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
3237 static PyObject 
*_wrap_CalendarCtrl_SetHoliday(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3238     PyObject 
*resultobj
; 
3239     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3241     PyObject 
* obj0 
= 0 ; 
3242     PyObject 
* obj1 
= 0 ; 
3244         (char *) "self",(char *) "day", NULL 
 
3247     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_SetHoliday",kwnames
,&obj0
,&obj1
)) goto fail
; 
3248     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3249     if (SWIG_arg_fail(1)) SWIG_fail
; 
3251         arg2 
= (size_t)(SWIG_As_unsigned_SS_long(obj1
));  
3252         if (SWIG_arg_fail(2)) SWIG_fail
; 
3255         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3256         (arg1
)->SetHoliday(arg2
); 
3258         wxPyEndAllowThreads(__tstate
); 
3259         if (PyErr_Occurred()) SWIG_fail
; 
3261     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
3268 static PyObject 
*_wrap_CalendarCtrl_ResetAttr(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3269     PyObject 
*resultobj
; 
3270     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3272     PyObject 
* obj0 
= 0 ; 
3273     PyObject 
* obj1 
= 0 ; 
3275         (char *) "self",(char *) "day", NULL 
 
3278     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_ResetAttr",kwnames
,&obj0
,&obj1
)) goto fail
; 
3279     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3280     if (SWIG_arg_fail(1)) SWIG_fail
; 
3282         arg2 
= (size_t)(SWIG_As_unsigned_SS_long(obj1
));  
3283         if (SWIG_arg_fail(2)) SWIG_fail
; 
3286         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3287         (arg1
)->ResetAttr(arg2
); 
3289         wxPyEndAllowThreads(__tstate
); 
3290         if (PyErr_Occurred()) SWIG_fail
; 
3292     Py_INCREF(Py_None
); resultobj 
= Py_None
; 
3299 static PyObject 
*_wrap_CalendarCtrl_HitTest(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3300     PyObject 
*resultobj
; 
3301     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3305     PyObject 
* obj0 
= 0 ; 
3306     PyObject 
* obj1 
= 0 ; 
3308         (char *) "self",(char *) "pos", NULL 
 
3311     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:CalendarCtrl_HitTest",kwnames
,&obj0
,&obj1
)) goto fail
; 
3312     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3313     if (SWIG_arg_fail(1)) SWIG_fail
; 
3316         if ( ! wxPoint_helper(obj1
, &arg2
)) SWIG_fail
; 
3319         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3320         result 
= (PyObject 
*)wxCalendarCtrl_HitTest(arg1
,(wxPoint 
const &)*arg2
); 
3322         wxPyEndAllowThreads(__tstate
); 
3323         if (PyErr_Occurred()) SWIG_fail
; 
3332 static PyObject 
*_wrap_CalendarCtrl_GetMonthControl(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3333     PyObject 
*resultobj
; 
3334     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3336     PyObject 
* obj0 
= 0 ; 
3338         (char *) "self", NULL 
 
3341     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetMonthControl",kwnames
,&obj0
)) goto fail
; 
3342     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3343     if (SWIG_arg_fail(1)) SWIG_fail
; 
3345         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3346         result 
= (wxControl 
*)((wxCalendarCtrl 
const *)arg1
)->GetMonthControl(); 
3348         wxPyEndAllowThreads(__tstate
); 
3349         if (PyErr_Occurred()) SWIG_fail
; 
3352         resultobj 
= wxPyMake_wxObject(result
, 0);  
3360 static PyObject 
*_wrap_CalendarCtrl_GetYearControl(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3361     PyObject 
*resultobj
; 
3362     wxCalendarCtrl 
*arg1 
= (wxCalendarCtrl 
*) 0 ; 
3364     PyObject 
* obj0 
= 0 ; 
3366         (char *) "self", NULL 
 
3369     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:CalendarCtrl_GetYearControl",kwnames
,&obj0
)) goto fail
; 
3370     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxCalendarCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
3371     if (SWIG_arg_fail(1)) SWIG_fail
; 
3373         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3374         result 
= (wxControl 
*)((wxCalendarCtrl 
const *)arg1
)->GetYearControl(); 
3376         wxPyEndAllowThreads(__tstate
); 
3377         if (PyErr_Occurred()) SWIG_fail
; 
3380         resultobj 
= wxPyMake_wxObject(result
, 0);  
3388 static PyObject 
*_wrap_CalendarCtrl_GetClassDefaultAttributes(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
3389     PyObject 
*resultobj
; 
3390     wxWindowVariant arg1 
= (wxWindowVariant
) wxWINDOW_VARIANT_NORMAL 
; 
3391     wxVisualAttributes result
; 
3392     PyObject 
* obj0 
= 0 ; 
3394         (char *) "variant", NULL 
 
3397     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|O:CalendarCtrl_GetClassDefaultAttributes",kwnames
,&obj0
)) goto fail
; 
3400             arg1 
= (wxWindowVariant
)(SWIG_As_int(obj0
));  
3401             if (SWIG_arg_fail(1)) SWIG_fail
; 
3405         if (!wxPyCheckForApp()) SWIG_fail
; 
3406         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
3407         result 
= wxCalendarCtrl::GetClassDefaultAttributes((wxWindowVariant 
)arg1
); 
3409         wxPyEndAllowThreads(__tstate
); 
3410         if (PyErr_Occurred()) SWIG_fail
; 
3413         wxVisualAttributes 
* resultptr
; 
3414         resultptr 
= new wxVisualAttributes((wxVisualAttributes 
&)(result
)); 
3415         resultobj 
= SWIG_NewPointerObj((void *)(resultptr
), SWIGTYPE_p_wxVisualAttributes
, 1); 
3423 static PyObject 
* CalendarCtrl_swigregister(PyObject 
*, PyObject 
*args
) { 
3425     if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
; 
3426     SWIG_TypeClientData(SWIGTYPE_p_wxCalendarCtrl
, obj
); 
3428     return Py_BuildValue((char *)""); 
3430 static PyMethodDef SwigMethods
[] = { 
3431          { (char *)"new_CalendarDateAttr", (PyCFunction
) _wrap_new_CalendarDateAttr
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3432          { (char *)"CalendarDateAttr_SetTextColour", (PyCFunction
) _wrap_CalendarDateAttr_SetTextColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3433          { (char *)"CalendarDateAttr_SetBackgroundColour", (PyCFunction
) _wrap_CalendarDateAttr_SetBackgroundColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3434          { (char *)"CalendarDateAttr_SetBorderColour", (PyCFunction
) _wrap_CalendarDateAttr_SetBorderColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3435          { (char *)"CalendarDateAttr_SetFont", (PyCFunction
) _wrap_CalendarDateAttr_SetFont
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3436          { (char *)"CalendarDateAttr_SetBorder", (PyCFunction
) _wrap_CalendarDateAttr_SetBorder
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3437          { (char *)"CalendarDateAttr_SetHoliday", (PyCFunction
) _wrap_CalendarDateAttr_SetHoliday
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3438          { (char *)"CalendarDateAttr_HasTextColour", (PyCFunction
) _wrap_CalendarDateAttr_HasTextColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3439          { (char *)"CalendarDateAttr_HasBackgroundColour", (PyCFunction
) _wrap_CalendarDateAttr_HasBackgroundColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3440          { (char *)"CalendarDateAttr_HasBorderColour", (PyCFunction
) _wrap_CalendarDateAttr_HasBorderColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3441          { (char *)"CalendarDateAttr_HasFont", (PyCFunction
) _wrap_CalendarDateAttr_HasFont
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3442          { (char *)"CalendarDateAttr_HasBorder", (PyCFunction
) _wrap_CalendarDateAttr_HasBorder
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3443          { (char *)"CalendarDateAttr_IsHoliday", (PyCFunction
) _wrap_CalendarDateAttr_IsHoliday
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3444          { (char *)"CalendarDateAttr_GetTextColour", (PyCFunction
) _wrap_CalendarDateAttr_GetTextColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3445          { (char *)"CalendarDateAttr_GetBackgroundColour", (PyCFunction
) _wrap_CalendarDateAttr_GetBackgroundColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3446          { (char *)"CalendarDateAttr_GetBorderColour", (PyCFunction
) _wrap_CalendarDateAttr_GetBorderColour
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3447          { (char *)"CalendarDateAttr_GetFont", (PyCFunction
) _wrap_CalendarDateAttr_GetFont
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3448          { (char *)"CalendarDateAttr_GetBorder", (PyCFunction
) _wrap_CalendarDateAttr_GetBorder
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3449          { (char *)"CalendarDateAttr_swigregister", CalendarDateAttr_swigregister
, METH_VARARGS
, NULL
}, 
3450          { (char *)"new_CalendarEvent", (PyCFunction
) _wrap_new_CalendarEvent
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3451          { (char *)"CalendarEvent_SetWeekDay", (PyCFunction
) _wrap_CalendarEvent_SetWeekDay
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3452          { (char *)"CalendarEvent_GetWeekDay", (PyCFunction
) _wrap_CalendarEvent_GetWeekDay
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3453          { (char *)"CalendarEvent_swigregister", CalendarEvent_swigregister
, METH_VARARGS
, NULL
}, 
3454          { (char *)"new_CalendarCtrl", (PyCFunction
) _wrap_new_CalendarCtrl
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3455          { (char *)"new_PreCalendarCtrl", (PyCFunction
) _wrap_new_PreCalendarCtrl
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3456          { (char *)"CalendarCtrl_Create", (PyCFunction
) _wrap_CalendarCtrl_Create
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3457          { (char *)"CalendarCtrl_SetDate", (PyCFunction
) _wrap_CalendarCtrl_SetDate
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3458          { (char *)"CalendarCtrl_GetDate", (PyCFunction
) _wrap_CalendarCtrl_GetDate
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3459          { (char *)"CalendarCtrl_SetLowerDateLimit", (PyCFunction
) _wrap_CalendarCtrl_SetLowerDateLimit
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3460          { (char *)"CalendarCtrl_SetUpperDateLimit", (PyCFunction
) _wrap_CalendarCtrl_SetUpperDateLimit
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3461          { (char *)"CalendarCtrl_GetLowerDateLimit", (PyCFunction
) _wrap_CalendarCtrl_GetLowerDateLimit
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3462          { (char *)"CalendarCtrl_GetUpperDateLimit", (PyCFunction
) _wrap_CalendarCtrl_GetUpperDateLimit
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3463          { (char *)"CalendarCtrl_SetDateRange", (PyCFunction
) _wrap_CalendarCtrl_SetDateRange
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3464          { (char *)"CalendarCtrl_EnableYearChange", (PyCFunction
) _wrap_CalendarCtrl_EnableYearChange
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3465          { (char *)"CalendarCtrl_EnableMonthChange", (PyCFunction
) _wrap_CalendarCtrl_EnableMonthChange
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3466          { (char *)"CalendarCtrl_EnableHolidayDisplay", (PyCFunction
) _wrap_CalendarCtrl_EnableHolidayDisplay
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3467          { (char *)"CalendarCtrl_SetHeaderColours", (PyCFunction
) _wrap_CalendarCtrl_SetHeaderColours
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3468          { (char *)"CalendarCtrl_GetHeaderColourFg", (PyCFunction
) _wrap_CalendarCtrl_GetHeaderColourFg
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3469          { (char *)"CalendarCtrl_GetHeaderColourBg", (PyCFunction
) _wrap_CalendarCtrl_GetHeaderColourBg
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3470          { (char *)"CalendarCtrl_SetHighlightColours", (PyCFunction
) _wrap_CalendarCtrl_SetHighlightColours
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3471          { (char *)"CalendarCtrl_GetHighlightColourFg", (PyCFunction
) _wrap_CalendarCtrl_GetHighlightColourFg
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3472          { (char *)"CalendarCtrl_GetHighlightColourBg", (PyCFunction
) _wrap_CalendarCtrl_GetHighlightColourBg
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3473          { (char *)"CalendarCtrl_SetHolidayColours", (PyCFunction
) _wrap_CalendarCtrl_SetHolidayColours
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3474          { (char *)"CalendarCtrl_GetHolidayColourFg", (PyCFunction
) _wrap_CalendarCtrl_GetHolidayColourFg
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3475          { (char *)"CalendarCtrl_GetHolidayColourBg", (PyCFunction
) _wrap_CalendarCtrl_GetHolidayColourBg
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3476          { (char *)"CalendarCtrl_GetAttr", (PyCFunction
) _wrap_CalendarCtrl_GetAttr
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3477          { (char *)"CalendarCtrl_SetAttr", (PyCFunction
) _wrap_CalendarCtrl_SetAttr
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3478          { (char *)"CalendarCtrl_SetHoliday", (PyCFunction
) _wrap_CalendarCtrl_SetHoliday
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3479          { (char *)"CalendarCtrl_ResetAttr", (PyCFunction
) _wrap_CalendarCtrl_ResetAttr
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3480          { (char *)"CalendarCtrl_HitTest", (PyCFunction
) _wrap_CalendarCtrl_HitTest
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3481          { (char *)"CalendarCtrl_GetMonthControl", (PyCFunction
) _wrap_CalendarCtrl_GetMonthControl
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3482          { (char *)"CalendarCtrl_GetYearControl", (PyCFunction
) _wrap_CalendarCtrl_GetYearControl
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3483          { (char *)"CalendarCtrl_GetClassDefaultAttributes", (PyCFunction
) _wrap_CalendarCtrl_GetClassDefaultAttributes
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
3484          { (char *)"CalendarCtrl_swigregister", CalendarCtrl_swigregister
, METH_VARARGS
, NULL
}, 
3485          { NULL
, NULL
, 0, NULL 
} 
3489 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ 
3491 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) { 
3492     return (void *)((wxObject 
*)  ((wxLayoutConstraints 
*) x
)); 
3494 static void *_p_wxCalendarCtrlTo_p_wxObject(void *x
) { 
3495     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxWindow 
*)(wxControl 
*) ((wxCalendarCtrl 
*) x
)); 
3497 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) { 
3498     return (void *)((wxObject 
*) (wxSizerItem 
*) ((wxGBSizerItem 
*) x
)); 
3500 static void *_p_wxSizerItemTo_p_wxObject(void *x
) { 
3501     return (void *)((wxObject 
*)  ((wxSizerItem 
*) x
)); 
3503 static void *_p_wxScrollEventTo_p_wxObject(void *x
) { 
3504     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxScrollEvent 
*) x
)); 
3506 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) { 
3507     return (void *)((wxObject 
*)  ((wxIndividualLayoutConstraint 
*) x
)); 
3509 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) { 
3510     return (void *)((wxObject 
*) (wxSizer 
*)(wxBoxSizer 
*) ((wxStaticBoxSizer 
*) x
)); 
3512 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) { 
3513     return (void *)((wxObject 
*) (wxSizer 
*) ((wxBoxSizer 
*) x
)); 
3515 static void *_p_wxSizerTo_p_wxObject(void *x
) { 
3516     return (void *)((wxObject 
*)  ((wxSizer 
*) x
)); 
3518 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) { 
3519     return (void *)((wxObject 
*) (wxSizer 
*)(wxGridSizer 
*)(wxFlexGridSizer 
*) ((wxGridBagSizer 
*) x
)); 
3521 static void *_p_wxFileHistoryTo_p_wxObject(void *x
) { 
3522     return (void *)((wxObject 
*)  ((wxFileHistory 
*) x
)); 
3524 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) { 
3525     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxUpdateUIEvent 
*) x
)); 
3527 static void *_p_wxEventTo_p_wxObject(void *x
) { 
3528     return (void *)((wxObject 
*)  ((wxEvent 
*) x
)); 
3530 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) { 
3531     return (void *)((wxObject 
*) (wxSizer 
*)(wxGridSizer 
*) ((wxFlexGridSizer 
*) x
)); 
3533 static void *_p_wxGridSizerTo_p_wxObject(void *x
) { 
3534     return (void *)((wxObject 
*) (wxSizer 
*) ((wxGridSizer 
*) x
)); 
3536 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) { 
3537     return (void *)((wxObject 
*) (wxEvent 
*) ((wxInitDialogEvent 
*) x
)); 
3539 static void *_p_wxPaintEventTo_p_wxObject(void *x
) { 
3540     return (void *)((wxObject 
*) (wxEvent 
*) ((wxPaintEvent 
*) x
)); 
3542 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) { 
3543     return (void *)((wxObject 
*) (wxEvent 
*) ((wxNcPaintEvent 
*) x
)); 
3545 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) { 
3546     return (void *)((wxObject 
*) (wxEvent 
*) ((wxPaletteChangedEvent 
*) x
)); 
3548 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) { 
3549     return (void *)((wxObject 
*) (wxEvent 
*) ((wxDisplayChangedEvent 
*) x
)); 
3551 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) { 
3552     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMouseCaptureChangedEvent 
*) x
)); 
3554 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) { 
3555     return (void *)((wxObject 
*) (wxEvent 
*) ((wxSysColourChangedEvent 
*) x
)); 
3557 static void *_p_wxControlTo_p_wxObject(void *x
) { 
3558     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxWindow 
*) ((wxControl 
*) x
)); 
3560 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) { 
3561     return (void *)((wxObject 
*) (wxEvent 
*) ((wxSetCursorEvent 
*) x
)); 
3563 static void *_p_wxTimerEventTo_p_wxObject(void *x
) { 
3564     return (void *)((wxObject 
*) (wxEvent 
*) ((wxTimerEvent 
*) x
)); 
3566 static void *_p_wxCalendarEventTo_p_wxObject(void *x
) { 
3567     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*)(wxDateEvent 
*) ((wxCalendarEvent 
*) x
)); 
3569 static void *_p_wxFSFileTo_p_wxObject(void *x
) { 
3570     return (void *)((wxObject 
*)  ((wxFSFile 
*) x
)); 
3572 static void *_p_wxClipboardTo_p_wxObject(void *x
) { 
3573     return (void *)((wxObject 
*)  ((wxClipboard 
*) x
)); 
3575 static void *_p_wxPySizerTo_p_wxObject(void *x
) { 
3576     return (void *)((wxObject 
*) (wxSizer 
*) ((wxPySizer 
*) x
)); 
3578 static void *_p_wxPyEventTo_p_wxObject(void *x
) { 
3579     return (void *)((wxObject 
*) (wxEvent 
*) ((wxPyEvent 
*) x
)); 
3581 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) { 
3582     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxNotifyEvent 
*) x
)); 
3584 static void *_p_wxShowEventTo_p_wxObject(void *x
) { 
3585     return (void *)((wxObject 
*) (wxEvent 
*) ((wxShowEvent 
*) x
)); 
3587 static void *_p_wxToolTipTo_p_wxObject(void *x
) { 
3588     return (void *)((wxObject 
*)  ((wxToolTip 
*) x
)); 
3590 static void *_p_wxMenuItemTo_p_wxObject(void *x
) { 
3591     return (void *)((wxObject 
*)  ((wxMenuItem 
*) x
)); 
3593 static void *_p_wxDateEventTo_p_wxObject(void *x
) { 
3594     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxDateEvent 
*) x
)); 
3596 static void *_p_wxIdleEventTo_p_wxObject(void *x
) { 
3597     return (void *)((wxObject 
*) (wxEvent 
*) ((wxIdleEvent 
*) x
)); 
3599 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) { 
3600     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxWindowCreateEvent 
*) x
)); 
3602 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) { 
3603     return (void *)((wxObject 
*) (wxEvent 
*) ((wxQueryNewPaletteEvent 
*) x
)); 
3605 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) { 
3606     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMaximizeEvent 
*) x
)); 
3608 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) { 
3609     return (void *)((wxObject 
*) (wxEvent 
*) ((wxIconizeEvent 
*) x
)); 
3611 static void *_p_wxSizeEventTo_p_wxObject(void *x
) { 
3612     return (void *)((wxObject 
*) (wxEvent 
*) ((wxSizeEvent 
*) x
)); 
3614 static void *_p_wxMoveEventTo_p_wxObject(void *x
) { 
3615     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMoveEvent 
*) x
)); 
3617 static void *_p_wxActivateEventTo_p_wxObject(void *x
) { 
3618     return (void *)((wxObject 
*) (wxEvent 
*) ((wxActivateEvent 
*) x
)); 
3620 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) { 
3621     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxXPMHandler 
*) x
)); 
3623 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) { 
3624     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxPNMHandler 
*) x
)); 
3626 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) { 
3627     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxJPEGHandler 
*) x
)); 
3629 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) { 
3630     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxPCXHandler 
*) x
)); 
3632 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) { 
3633     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxGIFHandler 
*) x
)); 
3635 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) { 
3636     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxPNGHandler 
*) x
)); 
3638 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) { 
3639     return (void *)((wxObject 
*) (wxImageHandler 
*)(wxBMPHandler 
*)(wxICOHandler 
*)(wxCURHandler 
*) ((wxANIHandler 
*) x
)); 
3641 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) { 
3642     return (void *)((wxObject 
*) (wxImageHandler 
*)(wxBMPHandler 
*)(wxICOHandler 
*) ((wxCURHandler 
*) x
)); 
3644 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) { 
3645     return (void *)((wxObject 
*) (wxImageHandler 
*)(wxBMPHandler 
*) ((wxICOHandler 
*) x
)); 
3647 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) { 
3648     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxBMPHandler 
*) x
)); 
3650 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) { 
3651     return (void *)((wxObject 
*)  ((wxImageHandler 
*) x
)); 
3653 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) { 
3654     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxTIFFHandler 
*) x
)); 
3656 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) { 
3657     return (void *)((wxObject 
*)  ((wxEvtHandler 
*) x
)); 
3659 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) { 
3660     return (void *)((wxObject 
*) (wxSizer 
*)(wxBoxSizer 
*) ((wxStdDialogButtonSizer 
*) x
)); 
3662 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) { 
3663     return (void *)((wxObject 
*)  ((wxAcceleratorTable 
*) x
)); 
3665 static void *_p_wxImageTo_p_wxObject(void *x
) { 
3666     return (void *)((wxObject 
*)  ((wxImage 
*) x
)); 
3668 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) { 
3669     return (void *)((wxObject 
*) (wxEvent 
*) ((wxScrollWinEvent 
*) x
)); 
3671 static void *_p_wxSystemOptionsTo_p_wxObject(void *x
) { 
3672     return (void *)((wxObject 
*)  ((wxSystemOptions 
*) x
)); 
3674 static void *_p_wxJoystickEventTo_p_wxObject(void *x
) { 
3675     return (void *)((wxObject 
*) (wxEvent 
*) ((wxJoystickEvent 
*) x
)); 
3677 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) { 
3678     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxWindowDestroyEvent 
*) x
)); 
3680 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) { 
3681     return (void *)((wxObject 
*) (wxEvent 
*) ((wxNavigationKeyEvent 
*) x
)); 
3683 static void *_p_wxKeyEventTo_p_wxObject(void *x
) { 
3684     return (void *)((wxObject 
*) (wxEvent 
*) ((wxKeyEvent 
*) x
)); 
3686 static void *_p_wxWindowTo_p_wxObject(void *x
) { 
3687     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxWindow 
*) x
)); 
3689 static void *_p_wxMenuTo_p_wxObject(void *x
) { 
3690     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxMenu 
*) x
)); 
3692 static void *_p_wxMenuBarTo_p_wxObject(void *x
) { 
3693     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxWindow 
*) ((wxMenuBar 
*) x
)); 
3695 static void *_p_wxPyProcessTo_p_wxObject(void *x
) { 
3696     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxPyProcess 
*) x
)); 
3698 static void *_p_wxFileSystemTo_p_wxObject(void *x
) { 
3699     return (void *)((wxObject 
*)  ((wxFileSystem 
*) x
)); 
3701 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) { 
3702     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxContextMenuEvent 
*) x
)); 
3704 static void *_p_wxMenuEventTo_p_wxObject(void *x
) { 
3705     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMenuEvent 
*) x
)); 
3707 static void *_p_wxPyAppTo_p_wxObject(void *x
) { 
3708     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxPyApp 
*) x
)); 
3710 static void *_p_wxCloseEventTo_p_wxObject(void *x
) { 
3711     return (void *)((wxObject 
*) (wxEvent 
*) ((wxCloseEvent 
*) x
)); 
3713 static void *_p_wxMouseEventTo_p_wxObject(void *x
) { 
3714     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMouseEvent 
*) x
)); 
3716 static void *_p_wxEraseEventTo_p_wxObject(void *x
) { 
3717     return (void *)((wxObject 
*) (wxEvent 
*) ((wxEraseEvent 
*) x
)); 
3719 static void *_p_wxBusyInfoTo_p_wxObject(void *x
) { 
3720     return (void *)((wxObject 
*)  ((wxBusyInfo 
*) x
)); 
3722 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) { 
3723     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxPyCommandEvent 
*) x
)); 
3725 static void *_p_wxCommandEventTo_p_wxObject(void *x
) { 
3726     return (void *)((wxObject 
*) (wxEvent 
*) ((wxCommandEvent 
*) x
)); 
3728 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) { 
3729     return (void *)((wxObject 
*) (wxEvent 
*) ((wxDropFilesEvent 
*) x
)); 
3731 static void *_p_wxFocusEventTo_p_wxObject(void *x
) { 
3732     return (void *)((wxObject 
*) (wxEvent 
*) ((wxFocusEvent 
*) x
)); 
3734 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) { 
3735     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxChildFocusEvent 
*) x
)); 
3737 static void *_p_wxProcessEventTo_p_wxObject(void *x
) { 
3738     return (void *)((wxObject 
*) (wxEvent 
*) ((wxProcessEvent 
*) x
)); 
3740 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) { 
3741     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxWindow 
*)(wxControl 
*) ((wxControlWithItems 
*) x
)); 
3743 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) { 
3744     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxValidator 
*) ((wxPyValidator 
*) x
)); 
3746 static void *_p_wxValidatorTo_p_wxObject(void *x
) { 
3747     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxValidator 
*) x
)); 
3749 static void *_p_wxPyTimerTo_p_wxObject(void *x
) { 
3750     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxPyTimer 
*) x
)); 
3752 static void *_p_wxControlTo_p_wxWindow(void *x
) { 
3753     return (void *)((wxWindow 
*)  ((wxControl 
*) x
)); 
3755 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) { 
3756     return (void *)((wxWindow 
*) (wxControl 
*) ((wxControlWithItems 
*) x
)); 
3758 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) { 
3759     return (void *)((wxWindow 
*)  ((wxMenuBar 
*) x
)); 
3761 static void *_p_wxCalendarCtrlTo_p_wxWindow(void *x
) { 
3762     return (void *)((wxWindow 
*) (wxControl 
*) ((wxCalendarCtrl 
*) x
)); 
3764 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) { 
3765     return (void *)((wxCommandEvent 
*)  ((wxChildFocusEvent 
*) x
)); 
3767 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) { 
3768     return (void *)((wxCommandEvent 
*)  ((wxScrollEvent 
*) x
)); 
3770 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) { 
3771     return (void *)((wxCommandEvent 
*)  ((wxWindowCreateEvent 
*) x
)); 
3773 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x
) { 
3774     return (void *)((wxCommandEvent 
*)  ((wxDateEvent 
*) x
)); 
3776 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) { 
3777     return (void *)((wxCommandEvent 
*)  ((wxUpdateUIEvent 
*) x
)); 
3779 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) { 
3780     return (void *)((wxCommandEvent 
*)  ((wxWindowDestroyEvent 
*) x
)); 
3782 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) { 
3783     return (void *)((wxCommandEvent 
*)  ((wxContextMenuEvent 
*) x
)); 
3785 static void *_p_wxCalendarEventTo_p_wxCommandEvent(void *x
) { 
3786     return (void *)((wxCommandEvent 
*) (wxDateEvent 
*) ((wxCalendarEvent 
*) x
)); 
3788 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) { 
3789     return (void *)((wxCommandEvent 
*)  ((wxNotifyEvent 
*) x
)); 
3791 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) { 
3792     return (void *)((wxCommandEvent 
*)  ((wxPyCommandEvent 
*) x
)); 
3794 static void *_p_wxCalendarEventTo_p_wxDateEvent(void *x
) { 
3795     return (void *)((wxDateEvent 
*)  ((wxCalendarEvent 
*) x
)); 
3797 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) { 
3798     return (void *)((wxEvtHandler 
*) (wxWindow 
*) ((wxControl 
*) x
)); 
3800 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) { 
3801     return (void *)((wxEvtHandler 
*)  ((wxWindow 
*) x
)); 
3803 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) { 
3804     return (void *)((wxEvtHandler 
*) (wxWindow 
*)(wxControl 
*) ((wxControlWithItems 
*) x
)); 
3806 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) { 
3807     return (void *)((wxEvtHandler 
*)  ((wxPyApp 
*) x
)); 
3809 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x
) { 
3810     return (void *)((wxEvtHandler 
*)  ((wxPyTimer 
*) x
)); 
3812 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) { 
3813     return (void *)((wxEvtHandler 
*)  ((wxValidator 
*) x
)); 
3815 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) { 
3816     return (void *)((wxEvtHandler 
*) (wxValidator 
*) ((wxPyValidator 
*) x
)); 
3818 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) { 
3819     return (void *)((wxEvtHandler 
*) (wxWindow 
*) ((wxMenuBar 
*) x
)); 
3821 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) { 
3822     return (void *)((wxEvtHandler 
*)  ((wxMenu 
*) x
)); 
3824 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x
) { 
3825     return (void *)((wxEvtHandler 
*)  ((wxPyProcess 
*) x
)); 
3827 static void *_p_wxCalendarCtrlTo_p_wxEvtHandler(void *x
) { 
3828     return (void *)((wxEvtHandler 
*) (wxWindow 
*)(wxControl 
*) ((wxCalendarCtrl 
*) x
)); 
3830 static void *_p_wxControlWithItemsTo_p_wxControl(void *x
) { 
3831     return (void *)((wxControl 
*)  ((wxControlWithItems 
*) x
)); 
3833 static void *_p_wxCalendarCtrlTo_p_wxControl(void *x
) { 
3834     return (void *)((wxControl 
*)  ((wxCalendarCtrl 
*) x
)); 
3836 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) { 
3837     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxContextMenuEvent 
*) x
)); 
3839 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) { 
3840     return (void *)((wxEvent 
*)  ((wxMenuEvent 
*) x
)); 
3842 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) { 
3843     return (void *)((wxEvent 
*)  ((wxCloseEvent 
*) x
)); 
3845 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) { 
3846     return (void *)((wxEvent 
*)  ((wxMouseEvent 
*) x
)); 
3848 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) { 
3849     return (void *)((wxEvent 
*)  ((wxEraseEvent 
*) x
)); 
3851 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) { 
3852     return (void *)((wxEvent 
*)  ((wxSetCursorEvent 
*) x
)); 
3854 static void *_p_wxTimerEventTo_p_wxEvent(void *x
) { 
3855     return (void *)((wxEvent 
*)  ((wxTimerEvent 
*) x
)); 
3857 static void *_p_wxCalendarEventTo_p_wxEvent(void *x
) { 
3858     return (void *)((wxEvent 
*) (wxCommandEvent 
*)(wxDateEvent 
*) ((wxCalendarEvent 
*) x
)); 
3860 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) { 
3861     return (void *)((wxEvent 
*)  ((wxInitDialogEvent 
*) x
)); 
3863 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) { 
3864     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxScrollEvent 
*) x
)); 
3866 static void *_p_wxPyEventTo_p_wxEvent(void *x
) { 
3867     return (void *)((wxEvent 
*)  ((wxPyEvent 
*) x
)); 
3869 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) { 
3870     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxNotifyEvent 
*) x
)); 
3872 static void *_p_wxJoystickEventTo_p_wxEvent(void *x
) { 
3873     return (void *)((wxEvent 
*)  ((wxJoystickEvent 
*) x
)); 
3875 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) { 
3876     return (void *)((wxEvent 
*)  ((wxIdleEvent 
*) x
)); 
3878 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) { 
3879     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxWindowCreateEvent 
*) x
)); 
3881 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) { 
3882     return (void *)((wxEvent 
*)  ((wxQueryNewPaletteEvent 
*) x
)); 
3884 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) { 
3885     return (void *)((wxEvent 
*)  ((wxMaximizeEvent 
*) x
)); 
3887 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) { 
3888     return (void *)((wxEvent 
*)  ((wxIconizeEvent 
*) x
)); 
3890 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) { 
3891     return (void *)((wxEvent 
*)  ((wxActivateEvent 
*) x
)); 
3893 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) { 
3894     return (void *)((wxEvent 
*)  ((wxSizeEvent 
*) x
)); 
3896 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) { 
3897     return (void *)((wxEvent 
*)  ((wxMoveEvent 
*) x
)); 
3899 static void *_p_wxDateEventTo_p_wxEvent(void *x
) { 
3900     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxDateEvent 
*) x
)); 
3902 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) { 
3903     return (void *)((wxEvent 
*)  ((wxPaintEvent 
*) x
)); 
3905 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) { 
3906     return (void *)((wxEvent 
*)  ((wxNcPaintEvent 
*) x
)); 
3908 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) { 
3909     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxUpdateUIEvent 
*) x
)); 
3911 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) { 
3912     return (void *)((wxEvent 
*)  ((wxPaletteChangedEvent 
*) x
)); 
3914 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) { 
3915     return (void *)((wxEvent 
*)  ((wxDisplayChangedEvent 
*) x
)); 
3917 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) { 
3918     return (void *)((wxEvent 
*)  ((wxMouseCaptureChangedEvent 
*) x
)); 
3920 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) { 
3921     return (void *)((wxEvent 
*)  ((wxSysColourChangedEvent 
*) x
)); 
3923 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) { 
3924     return (void *)((wxEvent 
*)  ((wxDropFilesEvent 
*) x
)); 
3926 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) { 
3927     return (void *)((wxEvent 
*)  ((wxFocusEvent 
*) x
)); 
3929 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) { 
3930     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxChildFocusEvent 
*) x
)); 
3932 static void *_p_wxProcessEventTo_p_wxEvent(void *x
) { 
3933     return (void *)((wxEvent 
*)  ((wxProcessEvent 
*) x
)); 
3935 static void *_p_wxShowEventTo_p_wxEvent(void *x
) { 
3936     return (void *)((wxEvent 
*)  ((wxShowEvent 
*) x
)); 
3938 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) { 
3939     return (void *)((wxEvent 
*)  ((wxCommandEvent 
*) x
)); 
3941 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) { 
3942     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxPyCommandEvent 
*) x
)); 
3944 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) { 
3945     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxWindowDestroyEvent 
*) x
)); 
3947 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) { 
3948     return (void *)((wxEvent 
*)  ((wxNavigationKeyEvent 
*) x
)); 
3950 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) { 
3951     return (void *)((wxEvent 
*)  ((wxKeyEvent 
*) x
)); 
3953 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) { 
3954     return (void *)((wxEvent 
*)  ((wxScrollWinEvent 
*) x
)); 
3956 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}}; 
3957 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}}; 
3958 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}}; 
3959 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}}; 
3960 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}}; 
3961 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}}; 
3962 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}}; 
3963 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}}; 
3964 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}}; 
3965 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}}; 
3966 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}}; 
3967 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}}; 
3968 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}}; 
3969 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}}; 
3970 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}}; 
3971 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}}; 
3972 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}}; 
3973 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}}; 
3974 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}}; 
3975 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}}; 
3976 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}}; 
3977 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}}; 
3978 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}}; 
3979 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}}; 
3980 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}}; 
3982 static swig_type_info 
*swig_types_initial
[] = { 
3984 _swigt__p_unsigned_char
,  
3986 _swigt__p_wxCalendarDateAttr
,  
3987 _swigt__p_wxCalendarEvent
,  
3988 _swigt__p_wxVisualAttributes
,  
3990 _swigt__p_wxCommandEvent
,  
3991 _swigt__p_unsigned_long
,  
3992 _swigt__p_unsigned_int
,  
3993 _swigt__unsigned_int
,  
3994 _swigt__p_form_ops_t
,  
3995 _swigt__p_wxDuplexMode
,  
3996 _swigt__p_wxDateEvent
,  
3998 _swigt__p_wxEvtHandler
,  
3999 _swigt__std__ptrdiff_t
,  
4002 _swigt__p_wxDateTime
,  
4003 _swigt__p_wxControl
,  
4005 _swigt__p_wxPaperSize
,  
4006 _swigt__p_wxCalendarCtrl
,  
4012 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ 
4014 static swig_const_info swig_const_table
[] = { 
4015 {0, 0, 0, 0.0, 0, 0}}; 
4026     /* Python-specific SWIG API */ 
4027 #define SWIG_newvarlink()                             SWIG_Python_newvarlink() 
4028 #define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr) 
4029 #define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants) 
4031     /* ----------------------------------------------------------------------------- 
4032      * global variable support code. 
4033      * ----------------------------------------------------------------------------- */ 
4035     typedef struct swig_globalvar 
{ 
4036         char       *name
;                  /* Name of global variable */ 
4037         PyObject 
*(*get_attr
)();           /* Return the current value */ 
4038         int       (*set_attr
)(PyObject 
*); /* Set the value */ 
4039         struct swig_globalvar 
*next
; 
4042     typedef struct swig_varlinkobject 
{ 
4044         swig_globalvar 
*vars
; 
4045     } swig_varlinkobject
; 
4048     swig_varlink_repr(swig_varlinkobject 
*v
) { 
4050         return PyString_FromString("<Swig global variables>"); 
4054     swig_varlink_print(swig_varlinkobject 
*v
, FILE *fp
, int flags
) { 
4055         swig_globalvar  
*var
; 
4057         fprintf(fp
,"Swig global variables { "); 
4058         for (var 
= v
->vars
; var
; var
=var
->next
) { 
4059             fprintf(fp
,"%s", var
->name
); 
4060             if (var
->next
) fprintf(fp
,", "); 
4067     swig_varlink_getattr(swig_varlinkobject 
*v
, char *n
) { 
4068         swig_globalvar 
*var 
= v
->vars
; 
4070             if (strcmp(var
->name
,n
) == 0) { 
4071                 return (*var
->get_attr
)(); 
4075         PyErr_SetString(PyExc_NameError
,"Unknown C global variable"); 
4080     swig_varlink_setattr(swig_varlinkobject 
*v
, char *n
, PyObject 
*p
) { 
4081         swig_globalvar 
*var 
= v
->vars
; 
4083             if (strcmp(var
->name
,n
) == 0) { 
4084                 return (*var
->set_attr
)(p
); 
4088         PyErr_SetString(PyExc_NameError
,"Unknown C global variable"); 
4092     static PyTypeObject varlinktype 
= { 
4093         PyObject_HEAD_INIT(0)               
4094         0,                                  /* Number of items in variable part (ob_size) */ 
4095         (char *)"swigvarlink",              /* Type name (tp_name) */ 
4096         sizeof(swig_varlinkobject
),         /* Basic size (tp_basicsize) */ 
4097         0,                                  /* Itemsize (tp_itemsize) */ 
4098         0,                                  /* Deallocator (tp_dealloc) */  
4099         (printfunc
) swig_varlink_print
,     /* Print (tp_print) */ 
4100         (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */ 
4101         (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */ 
4103         (reprfunc
) swig_varlink_repr
,       /* tp_repr */ 
4104         0,                                  /* tp_as_number */ 
4105         0,                                  /* tp_as_sequence */ 
4106         0,                                  /* tp_as_mapping */ 
4110         0,                                  /* tp_getattro */ 
4111         0,                                  /* tp_setattro */ 
4112         0,                                  /* tp_as_buffer */ 
4115 #if PY_VERSION_HEX >= 0x02000000 
4116         0,                                  /* tp_traverse */ 
4119 #if PY_VERSION_HEX >= 0x02010000 
4120         0,                                  /* tp_richcompare */ 
4121         0,                                  /* tp_weaklistoffset */ 
4123 #if PY_VERSION_HEX >= 0x02020000 
4124         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ 
4126 #if PY_VERSION_HEX >= 0x02030000 
4130         0,0,0,0                             /* tp_alloc -> tp_next */ 
4134     /* Create a variable linking object for use later */ 
4136     SWIG_Python_newvarlink(void) { 
4137         swig_varlinkobject 
*result 
= 0; 
4138         result 
= PyMem_NEW(swig_varlinkobject
,1); 
4139         varlinktype
.ob_type 
= &PyType_Type
;    /* Patch varlinktype into a PyType */ 
4140         result
->ob_type 
= &varlinktype
; 
4142         result
->ob_refcnt 
= 0; 
4143         Py_XINCREF((PyObject 
*) result
); 
4144         return ((PyObject
*) result
); 
4148     SWIG_Python_addvarlink(PyObject 
*p
, char *name
, PyObject 
*(*get_attr
)(void), int (*set_attr
)(PyObject 
*p
)) { 
4149         swig_varlinkobject 
*v
; 
4151         v
= (swig_varlinkobject 
*) p
; 
4152         gv 
= (swig_globalvar 
*) malloc(sizeof(swig_globalvar
)); 
4153         gv
->name 
= (char *) malloc(strlen(name
)+1); 
4154         strcpy(gv
->name
,name
); 
4155         gv
->get_attr 
= get_attr
; 
4156         gv
->set_attr 
= set_attr
; 
4161     /* ----------------------------------------------------------------------------- 
4162      * constants/methods manipulation 
4163      * ----------------------------------------------------------------------------- */ 
4165     /* Install Constants */ 
4167     SWIG_Python_InstallConstants(PyObject 
*d
, swig_const_info constants
[]) { 
4170         for (i 
= 0; constants
[i
].type
; i
++) { 
4171             switch(constants
[i
].type
) { 
4173                 obj 
= PyInt_FromLong(constants
[i
].lvalue
); 
4176                 obj 
= PyFloat_FromDouble(constants
[i
].dvalue
); 
4178                 case SWIG_PY_STRING
: 
4179                 if (constants
[i
].pvalue
) { 
4180                     obj 
= PyString_FromString((char *) constants
[i
].pvalue
); 
4186                 case SWIG_PY_POINTER
: 
4187                 obj 
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0); 
4189                 case SWIG_PY_BINARY
: 
4190                 obj 
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
)); 
4197                 PyDict_SetItemString(d
,constants
[i
].name
,obj
); 
4203     /* -----------------------------------------------------------------------------*/ 
4204     /* Fix SwigMethods to carry the callback ptrs when needed */ 
4205     /* -----------------------------------------------------------------------------*/ 
4208     SWIG_Python_FixMethods(PyMethodDef 
*methods
, 
4209     swig_const_info 
*const_table
, 
4210     swig_type_info 
**types
, 
4211     swig_type_info 
**types_initial
) { 
4213         for (i 
= 0; methods
[i
].ml_name
; ++i
) { 
4214             char *c 
= methods
[i
].ml_doc
; 
4215             if (c 
&& (c 
= strstr(c
, "swig_ptr: "))) { 
4217                 swig_const_info 
*ci 
= 0; 
4218                 char *name 
= c 
+ 10; 
4219                 for (j 
= 0; const_table
[j
].type
; j
++) { 
4220                     if (strncmp(const_table
[j
].name
, name
,  
4221                     strlen(const_table
[j
].name
)) == 0) { 
4222                         ci 
= &(const_table
[j
]); 
4227                     size_t shift 
= (ci
->ptype
) - types
; 
4228                     swig_type_info 
*ty 
= types_initial
[shift
]; 
4229                     size_t ldoc 
= (c 
- methods
[i
].ml_doc
); 
4230                     size_t lptr 
= strlen(ty
->name
)+2*sizeof(void*)+2; 
4231                     char *ndoc 
= (char*)malloc(ldoc 
+ lptr 
+ 10); 
4233                     void *ptr 
= (ci
->type 
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
); 
4234                     strncpy(buff
, methods
[i
].ml_doc
, ldoc
); 
4236                     strncpy(buff
, "swig_ptr: ", 10); 
4238                     SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
); 
4239                     methods
[i
].ml_doc 
= ndoc
; 
4245     /* -----------------------------------------------------------------------------* 
4246      *  Initialize type list 
4247      * -----------------------------------------------------------------------------*/ 
4249 #if PY_MAJOR_VERSION < 2 
4250     /* PyModule_AddObject function was introduced in Python 2.0.  The following function 
4251     is copied out of Python/modsupport.c in python version 2.3.4 */ 
4253     PyModule_AddObject(PyObject 
*m
, char *name
, PyObject 
*o
) 
4256         if (!PyModule_Check(m
)) { 
4257             PyErr_SetString(PyExc_TypeError
, 
4258             "PyModule_AddObject() needs module as first arg"); 
4262             PyErr_SetString(PyExc_TypeError
, 
4263             "PyModule_AddObject() needs non-NULL value"); 
4267         dict 
= PyModule_GetDict(m
); 
4269             /* Internal error -- modules must have a dict! */ 
4270             PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__", 
4271             PyModule_GetName(m
)); 
4274         if (PyDict_SetItemString(dict
, name
, o
)) 
4281     static swig_type_info 
** 
4282     SWIG_Python_SetTypeListHandle(swig_type_info 
**type_list_handle
) { 
4283         static PyMethodDef swig_empty_runtime_method_table
[] = { 
4289         PyObject 
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
, 
4290         swig_empty_runtime_method_table
); 
4291         PyObject 
*pointer 
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
); 
4292         if (pointer 
&& module) { 
4293             PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
); 
4295         return type_list_handle
; 
4298     static swig_type_info 
** 
4299     SWIG_Python_LookupTypePointer(swig_type_info 
**type_list_handle
) { 
4300         swig_type_info 
**type_pointer
; 
4302         /* first check if module already created */ 
4303         type_pointer 
= SWIG_Python_GetTypeListHandle(); 
4305             return type_pointer
; 
4307             /* create a new module and variable */ 
4308             return SWIG_Python_SetTypeListHandle(type_list_handle
); 
4316 /* -----------------------------------------------------------------------------* 
4317  *  Partial Init method 
4318  * -----------------------------------------------------------------------------*/ 
4320 #ifdef SWIG_LINK_RUNTIME 
4324 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); 
4330 SWIGEXPORT(void) SWIG_init(void) { 
4331     static PyObject 
*SWIG_globals 
= 0;  
4332     static int       typeinit 
= 0; 
4335     if (!SWIG_globals
) SWIG_globals 
= SWIG_newvarlink(); 
4337     /* Fix SwigMethods to carry the callback ptrs when needed */ 
4338     SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
); 
4340     m 
= Py_InitModule((char *) SWIG_name
, SwigMethods
); 
4341     d 
= PyModule_GetDict(m
); 
4344 #ifdef SWIG_LINK_RUNTIME 
4345         swig_type_list_handle 
= (swig_type_info 
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
); 
4347 #  ifndef SWIG_STATIC_RUNTIME 
4348         swig_type_list_handle 
= SWIG_Python_LookupTypePointer(swig_type_list_handle
); 
4351         for (i 
= 0; swig_types_initial
[i
]; i
++) { 
4352             swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]); 
4356     SWIG_InstallConstants(d
,swig_const_table
); 
4359         PyDict_SetItemString(d
,"CAL_SUNDAY_FIRST", SWIG_From_int((int)(wxCAL_SUNDAY_FIRST
)));  
4362         PyDict_SetItemString(d
,"CAL_MONDAY_FIRST", SWIG_From_int((int)(wxCAL_MONDAY_FIRST
)));  
4365         PyDict_SetItemString(d
,"CAL_SHOW_HOLIDAYS", SWIG_From_int((int)(wxCAL_SHOW_HOLIDAYS
)));  
4368         PyDict_SetItemString(d
,"CAL_NO_YEAR_CHANGE", SWIG_From_int((int)(wxCAL_NO_YEAR_CHANGE
)));  
4371         PyDict_SetItemString(d
,"CAL_NO_MONTH_CHANGE", SWIG_From_int((int)(wxCAL_NO_MONTH_CHANGE
)));  
4374         PyDict_SetItemString(d
,"CAL_SEQUENTIAL_MONTH_SELECTION", SWIG_From_int((int)(wxCAL_SEQUENTIAL_MONTH_SELECTION
)));  
4377         PyDict_SetItemString(d
,"CAL_SHOW_SURROUNDING_WEEKS", SWIG_From_int((int)(wxCAL_SHOW_SURROUNDING_WEEKS
)));  
4380         PyDict_SetItemString(d
,"CAL_HITTEST_NOWHERE", SWIG_From_int((int)(wxCAL_HITTEST_NOWHERE
)));  
4383         PyDict_SetItemString(d
,"CAL_HITTEST_HEADER", SWIG_From_int((int)(wxCAL_HITTEST_HEADER
)));  
4386         PyDict_SetItemString(d
,"CAL_HITTEST_DAY", SWIG_From_int((int)(wxCAL_HITTEST_DAY
)));  
4389         PyDict_SetItemString(d
,"CAL_HITTEST_INCMONTH", SWIG_From_int((int)(wxCAL_HITTEST_INCMONTH
)));  
4392         PyDict_SetItemString(d
,"CAL_HITTEST_DECMONTH", SWIG_From_int((int)(wxCAL_HITTEST_DECMONTH
)));  
4395         PyDict_SetItemString(d
,"CAL_HITTEST_SURROUNDING_WEEK", SWIG_From_int((int)(wxCAL_HITTEST_SURROUNDING_WEEK
)));  
4398         PyDict_SetItemString(d
,"CAL_BORDER_NONE", SWIG_From_int((int)(wxCAL_BORDER_NONE
)));  
4401         PyDict_SetItemString(d
,"CAL_BORDER_SQUARE", SWIG_From_int((int)(wxCAL_BORDER_SQUARE
)));  
4404         PyDict_SetItemString(d
,"CAL_BORDER_ROUND", SWIG_From_int((int)(wxCAL_BORDER_ROUND
)));  
4406     PyDict_SetItemString(d
, "wxEVT_CALENDAR_DOUBLECLICKED", PyInt_FromLong(wxEVT_CALENDAR_DOUBLECLICKED
)); 
4407     PyDict_SetItemString(d
, "wxEVT_CALENDAR_SEL_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_SEL_CHANGED
)); 
4408     PyDict_SetItemString(d
, "wxEVT_CALENDAR_DAY_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_DAY_CHANGED
)); 
4409     PyDict_SetItemString(d
, "wxEVT_CALENDAR_MONTH_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_MONTH_CHANGED
)); 
4410     PyDict_SetItemString(d
, "wxEVT_CALENDAR_YEAR_CHANGED", PyInt_FromLong(wxEVT_CALENDAR_YEAR_CHANGED
)); 
4411     PyDict_SetItemString(d
, "wxEVT_CALENDAR_WEEKDAY_CLICKED", PyInt_FromLong(wxEVT_CALENDAR_WEEKDAY_CLICKED
)); 
4412     PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
); 
4413     SWIG_addvarlink(SWIG_globals
,(char*)"CalendarNameStr",_wrap_CalendarNameStr_get
, _wrap_CalendarNameStr_set
);