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_wxMediaEvent swig_types[2]  
1345 #define  SWIGTYPE_p_wxWindow swig_types[3]  
1346 #define  SWIGTYPE_p_wxValidator swig_types[4]  
1347 #define  SWIGTYPE_p_wxCommandEvent swig_types[5]  
1348 #define  SWIGTYPE_p_unsigned_long swig_types[6]  
1349 #define  SWIGTYPE_p_unsigned_int swig_types[7]  
1350 #define  SWIGTYPE_unsigned_int swig_types[8]  
1351 #define  SWIGTYPE_p_form_ops_t swig_types[9]  
1352 #define  SWIGTYPE_p_wxDuplexMode swig_types[10]  
1353 #define  SWIGTYPE_p_char swig_types[11]  
1354 #define  SWIGTYPE_p_wxFileOffset swig_types[12]  
1355 #define  SWIGTYPE_p_wxEvtHandler swig_types[13]  
1356 #define  SWIGTYPE_std__ptrdiff_t swig_types[14]  
1357 #define  SWIGTYPE_ptrdiff_t swig_types[15]  
1358 #define  SWIGTYPE_p_wxNotifyEvent swig_types[16]  
1359 #define  SWIGTYPE_p_wxControl swig_types[17]  
1360 #define  SWIGTYPE_p_wxMediaCtrl swig_types[18]  
1361 #define  SWIGTYPE_p_wxEvent swig_types[19]  
1362 #define  SWIGTYPE_p_wxPaperSize swig_types[20]  
1363 #define  SWIGTYPE_p_int swig_types[21]  
1364 static swig_type_info 
*swig_types
[23]; 
1366 /* -------- TYPES TABLE (END) -------- */ 
1369 /*----------------------------------------------- 
1370               @(target):= _media.so 
1371   ------------------------------------------------*/ 
1372 #define SWIG_init    init_media 
1374 #define SWIG_name    "_media" 
1376 #include "wx/wxPython/wxPython.h" 
1377 #include "wx/wxPython/pyclasses.h" 
1379 #include <wx/mediactrl.h> 
1383 #if !wxUSE_MEDIACTRL 
1386     wxMEDIASTATE_STOPPED
=0, 
1387     wxMEDIASTATE_PAUSED
=0, 
1388     wxMEDIASTATE_PLAYING
=0 
1392 class wxMediaEvent 
: public wxNotifyEvent
 
1395     wxMediaEvent(wxEventType
, int )    { wxPyRaiseNotImplemented(); } 
1398 class wxMediaCtrl 
: public wxControl
 
1401     wxMediaCtrl()    { wxPyRaiseNotImplemented(); } 
1403     wxMediaCtrl(wxWindow
* , wxWindowID 
, 
1409                 const wxValidator
& , 
1410                 const wxString
& ) { wxPyRaiseNotImplemented(); } 
1412     bool Create(wxWindow
* , wxWindowID 
, 
1418                 const wxValidator
& , 
1419                 const wxString
& ) { return false; } 
1421     bool Play() { return false; } 
1422     bool Pause() { return false; } 
1423     bool Stop() { return false; } 
1425     bool Load(const wxString
& fileName
) { return false; } 
1426     bool Load(const wxURI
& location
) { return false; } 
1428     wxMediaState 
GetState() { return wxMEDIASTATE_STOPPED
; } 
1430     double GetPlaybackRate()  { return 0.0; } 
1431     bool SetPlaybackRate(double dRate
) { return false; } 
1433     wxFileOffset 
Seek(wxFileOffset where
, wxSeekMode mode 
= wxFromStart
) 
1436     wxFileOffset 
Tell()    { return 0; } 
1437     wxFileOffset 
Length()    { return 0; } 
1439     double GetVolume() { return 0.0; } 
1440     bool   SetVolume(double dVolume
) { return false; } 
1443 const wxEventType wxEVT_MEDIA_FINISHED 
= 0; 
1444 const wxEventType wxEVT_MEDIA_STOP 
= 0; 
1449   /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ 
1450 #define SWIG_From_int PyInt_FromLong 
1458   SWIG_CheckLongInRange(long value
, long min_value
, long max_value
, 
1461   if (value 
< min_value
) { 
1463       PyErr_Format(PyExc_OverflowError
,  
1464                    "value %ld is less than '%s' minimum %ld",  
1465                    value
, errmsg
, min_value
); 
1468   } else if (value 
> max_value
) { 
1470       PyErr_Format(PyExc_OverflowError
, 
1471                    "value %ld is greater than '%s' maximum %ld",  
1472                    value
, errmsg
, max_value
); 
1481 SWIG_AsVal_long(PyObject
* obj
, long* val
) 
1483     if (PyNumber_Check(obj
)) { 
1484         if (val
) *val 
= PyInt_AsLong(obj
); 
1488         SWIG_type_error("number", obj
); 
1494 #if INT_MAX != LONG_MAX 
1496   SWIG_AsVal_int(PyObject 
*obj
, int *val
) 
1498   const char* errmsg 
= val 
? "int" : (char*)0; 
1500   if (SWIG_AsVal_long(obj
, &v
)) { 
1501     if (SWIG_CheckLongInRange(v
, INT_MIN
,INT_MAX
, errmsg
)) { 
1502       if (val
) *val 
= (int)(v
); 
1511     SWIG_type_error(errmsg
, obj
); 
1517   SWIG_AsVal_int(PyObject 
*obj
, int *val
) 
1519   return SWIG_AsVal_long(obj
,(long*)val
); 
1525 SWIG_As_int(PyObject
* obj
) 
1528   if (!SWIG_AsVal_int(obj
, &v
)) { 
1530       this is needed to make valgrind/purify happier.  
1532     memset((void*)&v
, 0, sizeof(int)); 
1539 SWIG_Check_int(PyObject
* obj
) 
1541   return SWIG_AsVal_int(obj
, (int*)0); 
1544  static const wxString 
wxPyEmptyString(wxEmptyString
);  
1545  static const wxString 
wxPyMediaCtrlNameStr(wxT("mediaCtrl"));  
1547 SWIGINTERNSHORT 
long 
1548 SWIG_As_long(PyObject
* obj
) 
1551   if (!SWIG_AsVal_long(obj
, &v
)) { 
1553       this is needed to make valgrind/purify happier.  
1555     memset((void*)&v
, 0, sizeof(long)); 
1562 SWIG_Check_long(PyObject
* obj
) 
1564   return SWIG_AsVal_long(obj
, (long*)0); 
1568   /*@/opt/swig/share/swig/1.3.24/python/pymacros.swg,66,SWIG_define@*/ 
1569 #define SWIG_From_double PyFloat_FromDouble 
1574 SWIG_AsVal_double(PyObject 
*obj
, double* val
) 
1576     if (PyNumber_Check(obj
)) { 
1577         if (val
) *val 
= PyFloat_AsDouble(obj
); 
1581         SWIG_type_error("number", obj
); 
1587 SWIGINTERNSHORT 
double 
1588 SWIG_As_double(PyObject
* obj
) 
1591   if (!SWIG_AsVal_double(obj
, &v
)) { 
1593       this is needed to make valgrind/purify happier.  
1595     memset((void*)&v
, 0, sizeof(double)); 
1602 SWIG_Check_double(PyObject
* obj
) 
1604   return SWIG_AsVal_double(obj
, (double*)0); 
1607 static bool wxMediaCtrl_LoadFromURI(wxMediaCtrl 
*self
,wxString 
const &location
){ 
1608             return self
->Load(wxURI(location
)); 
1613 static PyObject 
*_wrap_new_MediaEvent(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1614     PyObject 
*resultobj
; 
1615     wxEventType arg1 
= (wxEventType
) wxEVT_NULL 
; 
1616     int arg2 
= (int) 0 ; 
1617     wxMediaEvent 
*result
; 
1618     PyObject 
* obj0 
= 0 ; 
1619     PyObject 
* obj1 
= 0 ; 
1621         (char *) "commandType",(char *) "id", NULL 
 
1624     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"|OO:new_MediaEvent",kwnames
,&obj0
,&obj1
)) goto fail
; 
1627             arg1 
= (wxEventType
)(SWIG_As_int(obj0
));  
1628             if (SWIG_arg_fail(1)) SWIG_fail
; 
1633             arg2 
= (int)(SWIG_As_int(obj1
));  
1634             if (SWIG_arg_fail(2)) SWIG_fail
; 
1638         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1639         result 
= (wxMediaEvent 
*)new wxMediaEvent(arg1
,arg2
); 
1641         wxPyEndAllowThreads(__tstate
); 
1642         if (PyErr_Occurred()) SWIG_fail
; 
1644     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxMediaEvent
, 1); 
1651 static PyObject 
* MediaEvent_swigregister(PyObject 
*, PyObject 
*args
) { 
1653     if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
; 
1654     SWIG_TypeClientData(SWIGTYPE_p_wxMediaEvent
, obj
); 
1656     return Py_BuildValue((char *)""); 
1658 static int _wrap_MediaCtrlNameStr_set(PyObject 
*) { 
1659     PyErr_SetString(PyExc_TypeError
,"Variable MediaCtrlNameStr is read-only."); 
1664 static PyObject 
*_wrap_MediaCtrlNameStr_get(void) { 
1669         pyobj 
= PyUnicode_FromWideChar((&wxPyMediaCtrlNameStr
)->c_str(), (&wxPyMediaCtrlNameStr
)->Len()); 
1671         pyobj 
= PyString_FromStringAndSize((&wxPyMediaCtrlNameStr
)->c_str(), (&wxPyMediaCtrlNameStr
)->Len()); 
1678 static PyObject 
*_wrap_new_MediaCtrl(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1679     PyObject 
*resultobj
; 
1680     wxWindow 
*arg1 
= (wxWindow 
*) 0 ; 
1681     int arg2 
= (int) -1 ; 
1682     wxString 
const &arg3_defvalue 
= wxPyEmptyString 
; 
1683     wxString 
*arg3 
= (wxString 
*) &arg3_defvalue 
; 
1684     wxPoint 
const &arg4_defvalue 
= wxDefaultPosition 
; 
1685     wxPoint 
*arg4 
= (wxPoint 
*) &arg4_defvalue 
; 
1686     wxSize 
const &arg5_defvalue 
= wxDefaultSize 
; 
1687     wxSize 
*arg5 
= (wxSize 
*) &arg5_defvalue 
; 
1688     long arg6 
= (long) 0 ; 
1689     wxString 
const &arg7_defvalue 
= wxPyEmptyString 
; 
1690     wxString 
*arg7 
= (wxString 
*) &arg7_defvalue 
; 
1691     wxValidator 
const &arg8_defvalue 
= wxDefaultValidator 
; 
1692     wxValidator 
*arg8 
= (wxValidator 
*) &arg8_defvalue 
; 
1693     wxString 
const &arg9_defvalue 
= wxPyMediaCtrlNameStr 
; 
1694     wxString 
*arg9 
= (wxString 
*) &arg9_defvalue 
; 
1695     wxMediaCtrl 
*result
; 
1696     bool temp3 
= false ; 
1699     bool temp7 
= false ; 
1700     bool temp9 
= false ; 
1701     PyObject 
* obj0 
= 0 ; 
1702     PyObject 
* obj1 
= 0 ; 
1703     PyObject 
* obj2 
= 0 ; 
1704     PyObject 
* obj3 
= 0 ; 
1705     PyObject 
* obj4 
= 0 ; 
1706     PyObject 
* obj5 
= 0 ; 
1707     PyObject 
* obj6 
= 0 ; 
1708     PyObject 
* obj7 
= 0 ; 
1709     PyObject 
* obj8 
= 0 ; 
1711         (char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL 
 
1714     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O|OOOOOOOO:new_MediaCtrl",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
,&obj8
)) goto fail
; 
1715     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION 
| 0); 
1716     if (SWIG_arg_fail(1)) SWIG_fail
; 
1719             arg2 
= (int)(SWIG_As_int(obj1
));  
1720             if (SWIG_arg_fail(2)) SWIG_fail
; 
1725             arg3 
= wxString_in_helper(obj2
); 
1726             if (arg3 
== NULL
) SWIG_fail
; 
1733             if ( ! wxPoint_helper(obj3
, &arg4
)) SWIG_fail
; 
1739             if ( ! wxSize_helper(obj4
, &arg5
)) SWIG_fail
; 
1744             arg6 
= (long)(SWIG_As_long(obj5
));  
1745             if (SWIG_arg_fail(6)) SWIG_fail
; 
1750             arg7 
= wxString_in_helper(obj6
); 
1751             if (arg7 
== NULL
) SWIG_fail
; 
1757             SWIG_Python_ConvertPtr(obj7
, (void **)&arg8
, SWIGTYPE_p_wxValidator
, SWIG_POINTER_EXCEPTION 
| 0); 
1758             if (SWIG_arg_fail(8)) SWIG_fail
; 
1760                 SWIG_null_ref("wxValidator"); 
1762             if (SWIG_arg_fail(8)) SWIG_fail
; 
1767             arg9 
= wxString_in_helper(obj8
); 
1768             if (arg9 
== NULL
) SWIG_fail
; 
1773         if (!wxPyCheckForApp()) SWIG_fail
; 
1774         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1775         result 
= (wxMediaCtrl 
*)new wxMediaCtrl(arg1
,arg2
,(wxString 
const &)*arg3
,(wxPoint 
const &)*arg4
,(wxSize 
const &)*arg5
,arg6
,(wxString 
const &)*arg7
,(wxValidator 
const &)*arg8
,(wxString 
const &)*arg9
); 
1777         wxPyEndAllowThreads(__tstate
); 
1778         if (PyErr_Occurred()) SWIG_fail
; 
1780     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxMediaCtrl
, 1); 
1811 static PyObject 
*_wrap_new_PreMediaCtrl(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1812     PyObject 
*resultobj
; 
1813     wxMediaCtrl 
*result
; 
1818     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)":new_PreMediaCtrl",kwnames
)) goto fail
; 
1820         if (!wxPyCheckForApp()) SWIG_fail
; 
1821         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1822         result 
= (wxMediaCtrl 
*)new wxMediaCtrl(); 
1824         wxPyEndAllowThreads(__tstate
); 
1825         if (PyErr_Occurred()) SWIG_fail
; 
1827     resultobj 
= SWIG_NewPointerObj((void*)(result
), SWIGTYPE_p_wxMediaCtrl
, 1); 
1834 static PyObject 
*_wrap_MediaCtrl_Create(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1835     PyObject 
*resultobj
; 
1836     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
1837     wxWindow 
*arg2 
= (wxWindow 
*) 0 ; 
1838     int arg3 
= (int) -1 ; 
1839     wxString 
const &arg4_defvalue 
= wxPyEmptyString 
; 
1840     wxString 
*arg4 
= (wxString 
*) &arg4_defvalue 
; 
1841     wxPoint 
const &arg5_defvalue 
= wxDefaultPosition 
; 
1842     wxPoint 
*arg5 
= (wxPoint 
*) &arg5_defvalue 
; 
1843     wxSize 
const &arg6_defvalue 
= wxDefaultSize 
; 
1844     wxSize 
*arg6 
= (wxSize 
*) &arg6_defvalue 
; 
1845     long arg7 
= (long) 0 ; 
1846     wxString 
const &arg8_defvalue 
= wxPyEmptyString 
; 
1847     wxString 
*arg8 
= (wxString 
*) &arg8_defvalue 
; 
1848     wxValidator 
const &arg9_defvalue 
= wxDefaultValidator 
; 
1849     wxValidator 
*arg9 
= (wxValidator 
*) &arg9_defvalue 
; 
1850     wxString 
const &arg10_defvalue 
= wxPyMediaCtrlNameStr 
; 
1851     wxString 
*arg10 
= (wxString 
*) &arg10_defvalue 
; 
1853     bool temp4 
= false ; 
1856     bool temp8 
= false ; 
1857     bool temp10 
= false ; 
1858     PyObject 
* obj0 
= 0 ; 
1859     PyObject 
* obj1 
= 0 ; 
1860     PyObject 
* obj2 
= 0 ; 
1861     PyObject 
* obj3 
= 0 ; 
1862     PyObject 
* obj4 
= 0 ; 
1863     PyObject 
* obj5 
= 0 ; 
1864     PyObject 
* obj6 
= 0 ; 
1865     PyObject 
* obj7 
= 0 ; 
1866     PyObject 
* obj8 
= 0 ; 
1867     PyObject 
* obj9 
= 0 ; 
1869         (char *) "self",(char *) "parent",(char *) "id",(char *) "fileName",(char *) "pos",(char *) "size",(char *) "style",(char *) "szBackend",(char *) "validator",(char *) "name", NULL 
 
1872     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|OOOOOOOO:MediaCtrl_Create",kwnames
,&obj0
,&obj1
,&obj2
,&obj3
,&obj4
,&obj5
,&obj6
,&obj7
,&obj8
,&obj9
)) goto fail
; 
1873     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
1874     if (SWIG_arg_fail(1)) SWIG_fail
; 
1875     SWIG_Python_ConvertPtr(obj1
, (void **)&arg2
, SWIGTYPE_p_wxWindow
, SWIG_POINTER_EXCEPTION 
| 0); 
1876     if (SWIG_arg_fail(2)) SWIG_fail
; 
1879             arg3 
= (int)(SWIG_As_int(obj2
));  
1880             if (SWIG_arg_fail(3)) SWIG_fail
; 
1885             arg4 
= wxString_in_helper(obj3
); 
1886             if (arg4 
== NULL
) SWIG_fail
; 
1893             if ( ! wxPoint_helper(obj4
, &arg5
)) SWIG_fail
; 
1899             if ( ! wxSize_helper(obj5
, &arg6
)) SWIG_fail
; 
1904             arg7 
= (long)(SWIG_As_long(obj6
));  
1905             if (SWIG_arg_fail(7)) SWIG_fail
; 
1910             arg8 
= wxString_in_helper(obj7
); 
1911             if (arg8 
== NULL
) SWIG_fail
; 
1917             SWIG_Python_ConvertPtr(obj8
, (void **)&arg9
, SWIGTYPE_p_wxValidator
, SWIG_POINTER_EXCEPTION 
| 0); 
1918             if (SWIG_arg_fail(9)) SWIG_fail
; 
1920                 SWIG_null_ref("wxValidator"); 
1922             if (SWIG_arg_fail(9)) SWIG_fail
; 
1927             arg10 
= wxString_in_helper(obj9
); 
1928             if (arg10 
== NULL
) SWIG_fail
; 
1933         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1934         result 
= (bool)(arg1
)->Create(arg2
,arg3
,(wxString 
const &)*arg4
,(wxPoint 
const &)*arg5
,(wxSize 
const &)*arg6
,arg7
,(wxString 
const &)*arg8
,(wxValidator 
const &)*arg9
,(wxString 
const &)*arg10
); 
1936         wxPyEndAllowThreads(__tstate
); 
1937         if (PyErr_Occurred()) SWIG_fail
; 
1940         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
1972 static PyObject 
*_wrap_MediaCtrl_Play(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
1973     PyObject 
*resultobj
; 
1974     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
1976     PyObject 
* obj0 
= 0 ; 
1978         (char *) "self", NULL 
 
1981     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:MediaCtrl_Play",kwnames
,&obj0
)) goto fail
; 
1982     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
1983     if (SWIG_arg_fail(1)) SWIG_fail
; 
1985         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
1986         result 
= (bool)(arg1
)->Play(); 
1988         wxPyEndAllowThreads(__tstate
); 
1989         if (PyErr_Occurred()) SWIG_fail
; 
1992         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2000 static PyObject 
*_wrap_MediaCtrl_Pause(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2001     PyObject 
*resultobj
; 
2002     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2004     PyObject 
* obj0 
= 0 ; 
2006         (char *) "self", NULL 
 
2009     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:MediaCtrl_Pause",kwnames
,&obj0
)) goto fail
; 
2010     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2011     if (SWIG_arg_fail(1)) SWIG_fail
; 
2013         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2014         result 
= (bool)(arg1
)->Pause(); 
2016         wxPyEndAllowThreads(__tstate
); 
2017         if (PyErr_Occurred()) SWIG_fail
; 
2020         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2028 static PyObject 
*_wrap_MediaCtrl_Stop(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2029     PyObject 
*resultobj
; 
2030     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2032     PyObject 
* obj0 
= 0 ; 
2034         (char *) "self", NULL 
 
2037     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:MediaCtrl_Stop",kwnames
,&obj0
)) goto fail
; 
2038     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2039     if (SWIG_arg_fail(1)) SWIG_fail
; 
2041         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2042         result 
= (bool)(arg1
)->Stop(); 
2044         wxPyEndAllowThreads(__tstate
); 
2045         if (PyErr_Occurred()) SWIG_fail
; 
2048         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2056 static PyObject 
*_wrap_MediaCtrl_GetVolume(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2057     PyObject 
*resultobj
; 
2058     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2060     PyObject 
* obj0 
= 0 ; 
2062         (char *) "self", NULL 
 
2065     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:MediaCtrl_GetVolume",kwnames
,&obj0
)) goto fail
; 
2066     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2067     if (SWIG_arg_fail(1)) SWIG_fail
; 
2069         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2070         result 
= (double)(arg1
)->GetVolume(); 
2072         wxPyEndAllowThreads(__tstate
); 
2073         if (PyErr_Occurred()) SWIG_fail
; 
2076         resultobj 
= SWIG_From_double((double)(result
));  
2084 static PyObject 
*_wrap_MediaCtrl_SetVolume(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2085     PyObject 
*resultobj
; 
2086     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2089     PyObject 
* obj0 
= 0 ; 
2090     PyObject 
* obj1 
= 0 ; 
2092         (char *) "self",(char *) "dVolume", NULL 
 
2095     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:MediaCtrl_SetVolume",kwnames
,&obj0
,&obj1
)) goto fail
; 
2096     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2097     if (SWIG_arg_fail(1)) SWIG_fail
; 
2099         arg2 
= (double)(SWIG_As_double(obj1
));  
2100         if (SWIG_arg_fail(2)) SWIG_fail
; 
2103         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2104         result 
= (bool)(arg1
)->SetVolume(arg2
); 
2106         wxPyEndAllowThreads(__tstate
); 
2107         if (PyErr_Occurred()) SWIG_fail
; 
2110         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2118 static PyObject 
*_wrap_MediaCtrl_Load(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2119     PyObject 
*resultobj
; 
2120     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2121     wxString 
*arg2 
= 0 ; 
2123     bool temp2 
= false ; 
2124     PyObject 
* obj0 
= 0 ; 
2125     PyObject 
* obj1 
= 0 ; 
2127         (char *) "self",(char *) "fileName", NULL 
 
2130     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:MediaCtrl_Load",kwnames
,&obj0
,&obj1
)) goto fail
; 
2131     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2132     if (SWIG_arg_fail(1)) SWIG_fail
; 
2134         arg2 
= wxString_in_helper(obj1
); 
2135         if (arg2 
== NULL
) SWIG_fail
; 
2139         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2140         result 
= (bool)(arg1
)->Load((wxString 
const &)*arg2
); 
2142         wxPyEndAllowThreads(__tstate
); 
2143         if (PyErr_Occurred()) SWIG_fail
; 
2146         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2162 static PyObject 
*_wrap_MediaCtrl_LoadFromURI(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2163     PyObject 
*resultobj
; 
2164     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2165     wxString 
*arg2 
= 0 ; 
2167     bool temp2 
= false ; 
2168     PyObject 
* obj0 
= 0 ; 
2169     PyObject 
* obj1 
= 0 ; 
2171         (char *) "self",(char *) "location", NULL 
 
2174     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:MediaCtrl_LoadFromURI",kwnames
,&obj0
,&obj1
)) goto fail
; 
2175     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2176     if (SWIG_arg_fail(1)) SWIG_fail
; 
2178         arg2 
= wxString_in_helper(obj1
); 
2179         if (arg2 
== NULL
) SWIG_fail
; 
2183         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2184         result 
= (bool)wxMediaCtrl_LoadFromURI(arg1
,(wxString 
const &)*arg2
); 
2186         wxPyEndAllowThreads(__tstate
); 
2187         if (PyErr_Occurred()) SWIG_fail
; 
2190         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2206 static PyObject 
*_wrap_MediaCtrl_GetState(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2207     PyObject 
*resultobj
; 
2208     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2209     wxMediaState result
; 
2210     PyObject 
* obj0 
= 0 ; 
2212         (char *) "self", NULL 
 
2215     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:MediaCtrl_GetState",kwnames
,&obj0
)) goto fail
; 
2216     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2217     if (SWIG_arg_fail(1)) SWIG_fail
; 
2219         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2220         result 
= (wxMediaState
)(arg1
)->GetState(); 
2222         wxPyEndAllowThreads(__tstate
); 
2223         if (PyErr_Occurred()) SWIG_fail
; 
2225     resultobj 
= SWIG_From_int((result
)); 
2232 static PyObject 
*_wrap_MediaCtrl_GetPlaybackRate(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2233     PyObject 
*resultobj
; 
2234     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2236     PyObject 
* obj0 
= 0 ; 
2238         (char *) "self", NULL 
 
2241     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:MediaCtrl_GetPlaybackRate",kwnames
,&obj0
)) goto fail
; 
2242     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2243     if (SWIG_arg_fail(1)) SWIG_fail
; 
2245         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2246         result 
= (double)(arg1
)->GetPlaybackRate(); 
2248         wxPyEndAllowThreads(__tstate
); 
2249         if (PyErr_Occurred()) SWIG_fail
; 
2252         resultobj 
= SWIG_From_double((double)(result
));  
2260 static PyObject 
*_wrap_MediaCtrl_SetPlaybackRate(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2261     PyObject 
*resultobj
; 
2262     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2265     PyObject 
* obj0 
= 0 ; 
2266     PyObject 
* obj1 
= 0 ; 
2268         (char *) "self",(char *) "dRate", NULL 
 
2271     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO:MediaCtrl_SetPlaybackRate",kwnames
,&obj0
,&obj1
)) goto fail
; 
2272     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2273     if (SWIG_arg_fail(1)) SWIG_fail
; 
2275         arg2 
= (double)(SWIG_As_double(obj1
));  
2276         if (SWIG_arg_fail(2)) SWIG_fail
; 
2279         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2280         result 
= (bool)(arg1
)->SetPlaybackRate(arg2
); 
2282         wxPyEndAllowThreads(__tstate
); 
2283         if (PyErr_Occurred()) SWIG_fail
; 
2286         resultobj 
= result 
? Py_True 
: Py_False
; Py_INCREF(resultobj
); 
2294 static PyObject 
*_wrap_MediaCtrl_Seek(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2295     PyObject 
*resultobj
; 
2296     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2298     wxSeekMode arg3 
= (wxSeekMode
) wxFromStart 
; 
2299     wxFileOffset result
; 
2300     PyObject 
* obj0 
= 0 ; 
2301     PyObject 
* obj1 
= 0 ; 
2302     PyObject 
* obj2 
= 0 ; 
2304         (char *) "self",(char *) "where",(char *) "mode", NULL 
 
2307     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"OO|O:MediaCtrl_Seek",kwnames
,&obj0
,&obj1
,&obj2
)) goto fail
; 
2308     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2309     if (SWIG_arg_fail(1)) SWIG_fail
; 
2311         if (sizeof(wxFileOffset
) > sizeof(long)) 
2312         arg2 
= PyLong_AsLongLong(obj1
); 
2314         arg2 
= PyInt_AsLong(obj1
); 
2318             arg3 
= (wxSeekMode
)(SWIG_As_int(obj2
));  
2319             if (SWIG_arg_fail(3)) SWIG_fail
; 
2323         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2324         result 
= (arg1
)->Seek(arg2
,(wxSeekMode 
)arg3
); 
2326         wxPyEndAllowThreads(__tstate
); 
2327         if (PyErr_Occurred()) SWIG_fail
; 
2330         if (sizeof(wxFileOffset
) > sizeof(long)) 
2331         resultobj 
= PyLong_FromLongLong(result
); 
2333         resultobj 
= PyInt_FromLong(result
); 
2341 static PyObject 
*_wrap_MediaCtrl_Tell(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2342     PyObject 
*resultobj
; 
2343     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2344     wxFileOffset result
; 
2345     PyObject 
* obj0 
= 0 ; 
2347         (char *) "self", NULL 
 
2350     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:MediaCtrl_Tell",kwnames
,&obj0
)) goto fail
; 
2351     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2352     if (SWIG_arg_fail(1)) SWIG_fail
; 
2354         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2355         result 
= (arg1
)->Tell(); 
2357         wxPyEndAllowThreads(__tstate
); 
2358         if (PyErr_Occurred()) SWIG_fail
; 
2361         if (sizeof(wxFileOffset
) > sizeof(long)) 
2362         resultobj 
= PyLong_FromLongLong(result
); 
2364         resultobj 
= PyInt_FromLong(result
); 
2372 static PyObject 
*_wrap_MediaCtrl_Length(PyObject 
*, PyObject 
*args
, PyObject 
*kwargs
) { 
2373     PyObject 
*resultobj
; 
2374     wxMediaCtrl 
*arg1 
= (wxMediaCtrl 
*) 0 ; 
2375     wxFileOffset result
; 
2376     PyObject 
* obj0 
= 0 ; 
2378         (char *) "self", NULL 
 
2381     if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,(char *)"O:MediaCtrl_Length",kwnames
,&obj0
)) goto fail
; 
2382     SWIG_Python_ConvertPtr(obj0
, (void **)&arg1
, SWIGTYPE_p_wxMediaCtrl
, SWIG_POINTER_EXCEPTION 
| 0); 
2383     if (SWIG_arg_fail(1)) SWIG_fail
; 
2385         PyThreadState
* __tstate 
= wxPyBeginAllowThreads(); 
2386         result 
= (arg1
)->Length(); 
2388         wxPyEndAllowThreads(__tstate
); 
2389         if (PyErr_Occurred()) SWIG_fail
; 
2392         if (sizeof(wxFileOffset
) > sizeof(long)) 
2393         resultobj 
= PyLong_FromLongLong(result
); 
2395         resultobj 
= PyInt_FromLong(result
); 
2403 static PyObject 
* MediaCtrl_swigregister(PyObject 
*, PyObject 
*args
) { 
2405     if (!PyArg_ParseTuple(args
,(char*)"O", &obj
)) return NULL
; 
2406     SWIG_TypeClientData(SWIGTYPE_p_wxMediaCtrl
, obj
); 
2408     return Py_BuildValue((char *)""); 
2410 static PyMethodDef SwigMethods
[] = { 
2411          { (char *)"new_MediaEvent", (PyCFunction
) _wrap_new_MediaEvent
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2412          { (char *)"MediaEvent_swigregister", MediaEvent_swigregister
, METH_VARARGS
, NULL
}, 
2413          { (char *)"new_MediaCtrl", (PyCFunction
) _wrap_new_MediaCtrl
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2414          { (char *)"new_PreMediaCtrl", (PyCFunction
) _wrap_new_PreMediaCtrl
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2415          { (char *)"MediaCtrl_Create", (PyCFunction
) _wrap_MediaCtrl_Create
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2416          { (char *)"MediaCtrl_Play", (PyCFunction
) _wrap_MediaCtrl_Play
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2417          { (char *)"MediaCtrl_Pause", (PyCFunction
) _wrap_MediaCtrl_Pause
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2418          { (char *)"MediaCtrl_Stop", (PyCFunction
) _wrap_MediaCtrl_Stop
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2419          { (char *)"MediaCtrl_GetVolume", (PyCFunction
) _wrap_MediaCtrl_GetVolume
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2420          { (char *)"MediaCtrl_SetVolume", (PyCFunction
) _wrap_MediaCtrl_SetVolume
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2421          { (char *)"MediaCtrl_Load", (PyCFunction
) _wrap_MediaCtrl_Load
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2422          { (char *)"MediaCtrl_LoadFromURI", (PyCFunction
) _wrap_MediaCtrl_LoadFromURI
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2423          { (char *)"MediaCtrl_GetState", (PyCFunction
) _wrap_MediaCtrl_GetState
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2424          { (char *)"MediaCtrl_GetPlaybackRate", (PyCFunction
) _wrap_MediaCtrl_GetPlaybackRate
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2425          { (char *)"MediaCtrl_SetPlaybackRate", (PyCFunction
) _wrap_MediaCtrl_SetPlaybackRate
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2426          { (char *)"MediaCtrl_Seek", (PyCFunction
) _wrap_MediaCtrl_Seek
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2427          { (char *)"MediaCtrl_Tell", (PyCFunction
) _wrap_MediaCtrl_Tell
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2428          { (char *)"MediaCtrl_Length", (PyCFunction
) _wrap_MediaCtrl_Length
, METH_VARARGS 
| METH_KEYWORDS
, NULL
}, 
2429          { (char *)"MediaCtrl_swigregister", MediaCtrl_swigregister
, METH_VARARGS
, NULL
}, 
2430          { NULL
, NULL
, 0, NULL 
} 
2434 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ 
2436 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x
) { 
2437     return (void *)((wxObject 
*)  ((wxLayoutConstraints 
*) x
)); 
2439 static void *_p_wxGBSizerItemTo_p_wxObject(void *x
) { 
2440     return (void *)((wxObject 
*) (wxSizerItem 
*) ((wxGBSizerItem 
*) x
)); 
2442 static void *_p_wxSizerItemTo_p_wxObject(void *x
) { 
2443     return (void *)((wxObject 
*)  ((wxSizerItem 
*) x
)); 
2445 static void *_p_wxScrollEventTo_p_wxObject(void *x
) { 
2446     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxScrollEvent 
*) x
)); 
2448 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x
) { 
2449     return (void *)((wxObject 
*)  ((wxIndividualLayoutConstraint 
*) x
)); 
2451 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x
) { 
2452     return (void *)((wxObject 
*) (wxSizer 
*)(wxBoxSizer 
*) ((wxStaticBoxSizer 
*) x
)); 
2454 static void *_p_wxBoxSizerTo_p_wxObject(void *x
) { 
2455     return (void *)((wxObject 
*) (wxSizer 
*) ((wxBoxSizer 
*) x
)); 
2457 static void *_p_wxSizerTo_p_wxObject(void *x
) { 
2458     return (void *)((wxObject 
*)  ((wxSizer 
*) x
)); 
2460 static void *_p_wxGridBagSizerTo_p_wxObject(void *x
) { 
2461     return (void *)((wxObject 
*) (wxSizer 
*)(wxGridSizer 
*)(wxFlexGridSizer 
*) ((wxGridBagSizer 
*) x
)); 
2463 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x
) { 
2464     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxUpdateUIEvent 
*) x
)); 
2466 static void *_p_wxEventTo_p_wxObject(void *x
) { 
2467     return (void *)((wxObject 
*)  ((wxEvent 
*) x
)); 
2469 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x
) { 
2470     return (void *)((wxObject 
*) (wxSizer 
*)(wxGridSizer 
*) ((wxFlexGridSizer 
*) x
)); 
2472 static void *_p_wxGridSizerTo_p_wxObject(void *x
) { 
2473     return (void *)((wxObject 
*) (wxSizer 
*) ((wxGridSizer 
*) x
)); 
2475 static void *_p_wxInitDialogEventTo_p_wxObject(void *x
) { 
2476     return (void *)((wxObject 
*) (wxEvent 
*) ((wxInitDialogEvent 
*) x
)); 
2478 static void *_p_wxPaintEventTo_p_wxObject(void *x
) { 
2479     return (void *)((wxObject 
*) (wxEvent 
*) ((wxPaintEvent 
*) x
)); 
2481 static void *_p_wxNcPaintEventTo_p_wxObject(void *x
) { 
2482     return (void *)((wxObject 
*) (wxEvent 
*) ((wxNcPaintEvent 
*) x
)); 
2484 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x
) { 
2485     return (void *)((wxObject 
*) (wxEvent 
*) ((wxPaletteChangedEvent 
*) x
)); 
2487 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x
) { 
2488     return (void *)((wxObject 
*) (wxEvent 
*) ((wxDisplayChangedEvent 
*) x
)); 
2490 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x
) { 
2491     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMouseCaptureChangedEvent 
*) x
)); 
2493 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x
) { 
2494     return (void *)((wxObject 
*) (wxEvent 
*) ((wxSysColourChangedEvent 
*) x
)); 
2496 static void *_p_wxMediaCtrlTo_p_wxObject(void *x
) { 
2497     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxWindow 
*)(wxControl 
*) ((wxMediaCtrl 
*) x
)); 
2499 static void *_p_wxControlTo_p_wxObject(void *x
) { 
2500     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxWindow 
*) ((wxControl 
*) x
)); 
2502 static void *_p_wxSetCursorEventTo_p_wxObject(void *x
) { 
2503     return (void *)((wxObject 
*) (wxEvent 
*) ((wxSetCursorEvent 
*) x
)); 
2505 static void *_p_wxFSFileTo_p_wxObject(void *x
) { 
2506     return (void *)((wxObject 
*)  ((wxFSFile 
*) x
)); 
2508 static void *_p_wxMediaEventTo_p_wxObject(void *x
) { 
2509     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*)(wxNotifyEvent 
*) ((wxMediaEvent 
*) x
)); 
2511 static void *_p_wxPySizerTo_p_wxObject(void *x
) { 
2512     return (void *)((wxObject 
*) (wxSizer 
*) ((wxPySizer 
*) x
)); 
2514 static void *_p_wxPyEventTo_p_wxObject(void *x
) { 
2515     return (void *)((wxObject 
*) (wxEvent 
*) ((wxPyEvent 
*) x
)); 
2517 static void *_p_wxNotifyEventTo_p_wxObject(void *x
) { 
2518     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxNotifyEvent 
*) x
)); 
2520 static void *_p_wxShowEventTo_p_wxObject(void *x
) { 
2521     return (void *)((wxObject 
*) (wxEvent 
*) ((wxShowEvent 
*) x
)); 
2523 static void *_p_wxMenuItemTo_p_wxObject(void *x
) { 
2524     return (void *)((wxObject 
*)  ((wxMenuItem 
*) x
)); 
2526 static void *_p_wxDateEventTo_p_wxObject(void *x
) { 
2527     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxDateEvent 
*) x
)); 
2529 static void *_p_wxIdleEventTo_p_wxObject(void *x
) { 
2530     return (void *)((wxObject 
*) (wxEvent 
*) ((wxIdleEvent 
*) x
)); 
2532 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x
) { 
2533     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxWindowCreateEvent 
*) x
)); 
2535 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x
) { 
2536     return (void *)((wxObject 
*) (wxEvent 
*) ((wxQueryNewPaletteEvent 
*) x
)); 
2538 static void *_p_wxMaximizeEventTo_p_wxObject(void *x
) { 
2539     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMaximizeEvent 
*) x
)); 
2541 static void *_p_wxIconizeEventTo_p_wxObject(void *x
) { 
2542     return (void *)((wxObject 
*) (wxEvent 
*) ((wxIconizeEvent 
*) x
)); 
2544 static void *_p_wxSizeEventTo_p_wxObject(void *x
) { 
2545     return (void *)((wxObject 
*) (wxEvent 
*) ((wxSizeEvent 
*) x
)); 
2547 static void *_p_wxMoveEventTo_p_wxObject(void *x
) { 
2548     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMoveEvent 
*) x
)); 
2550 static void *_p_wxActivateEventTo_p_wxObject(void *x
) { 
2551     return (void *)((wxObject 
*) (wxEvent 
*) ((wxActivateEvent 
*) x
)); 
2553 static void *_p_wxXPMHandlerTo_p_wxObject(void *x
) { 
2554     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxXPMHandler 
*) x
)); 
2556 static void *_p_wxPNMHandlerTo_p_wxObject(void *x
) { 
2557     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxPNMHandler 
*) x
)); 
2559 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x
) { 
2560     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxJPEGHandler 
*) x
)); 
2562 static void *_p_wxPCXHandlerTo_p_wxObject(void *x
) { 
2563     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxPCXHandler 
*) x
)); 
2565 static void *_p_wxGIFHandlerTo_p_wxObject(void *x
) { 
2566     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxGIFHandler 
*) x
)); 
2568 static void *_p_wxPNGHandlerTo_p_wxObject(void *x
) { 
2569     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxPNGHandler 
*) x
)); 
2571 static void *_p_wxANIHandlerTo_p_wxObject(void *x
) { 
2572     return (void *)((wxObject 
*) (wxImageHandler 
*)(wxBMPHandler 
*)(wxICOHandler 
*)(wxCURHandler 
*) ((wxANIHandler 
*) x
)); 
2574 static void *_p_wxCURHandlerTo_p_wxObject(void *x
) { 
2575     return (void *)((wxObject 
*) (wxImageHandler 
*)(wxBMPHandler 
*)(wxICOHandler 
*) ((wxCURHandler 
*) x
)); 
2577 static void *_p_wxICOHandlerTo_p_wxObject(void *x
) { 
2578     return (void *)((wxObject 
*) (wxImageHandler 
*)(wxBMPHandler 
*) ((wxICOHandler 
*) x
)); 
2580 static void *_p_wxBMPHandlerTo_p_wxObject(void *x
) { 
2581     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxBMPHandler 
*) x
)); 
2583 static void *_p_wxImageHandlerTo_p_wxObject(void *x
) { 
2584     return (void *)((wxObject 
*)  ((wxImageHandler 
*) x
)); 
2586 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x
) { 
2587     return (void *)((wxObject 
*) (wxImageHandler 
*) ((wxTIFFHandler 
*) x
)); 
2589 static void *_p_wxEvtHandlerTo_p_wxObject(void *x
) { 
2590     return (void *)((wxObject 
*)  ((wxEvtHandler 
*) x
)); 
2592 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x
) { 
2593     return (void *)((wxObject 
*) (wxSizer 
*)(wxBoxSizer 
*) ((wxStdDialogButtonSizer 
*) x
)); 
2595 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x
) { 
2596     return (void *)((wxObject 
*)  ((wxAcceleratorTable 
*) x
)); 
2598 static void *_p_wxImageTo_p_wxObject(void *x
) { 
2599     return (void *)((wxObject 
*)  ((wxImage 
*) x
)); 
2601 static void *_p_wxScrollWinEventTo_p_wxObject(void *x
) { 
2602     return (void *)((wxObject 
*) (wxEvent 
*) ((wxScrollWinEvent 
*) x
)); 
2604 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x
) { 
2605     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxWindowDestroyEvent 
*) x
)); 
2607 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x
) { 
2608     return (void *)((wxObject 
*) (wxEvent 
*) ((wxNavigationKeyEvent 
*) x
)); 
2610 static void *_p_wxKeyEventTo_p_wxObject(void *x
) { 
2611     return (void *)((wxObject 
*) (wxEvent 
*) ((wxKeyEvent 
*) x
)); 
2613 static void *_p_wxWindowTo_p_wxObject(void *x
) { 
2614     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxWindow 
*) x
)); 
2616 static void *_p_wxMenuTo_p_wxObject(void *x
) { 
2617     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxMenu 
*) x
)); 
2619 static void *_p_wxMenuBarTo_p_wxObject(void *x
) { 
2620     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxWindow 
*) ((wxMenuBar 
*) x
)); 
2622 static void *_p_wxFileSystemTo_p_wxObject(void *x
) { 
2623     return (void *)((wxObject 
*)  ((wxFileSystem 
*) x
)); 
2625 static void *_p_wxContextMenuEventTo_p_wxObject(void *x
) { 
2626     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxContextMenuEvent 
*) x
)); 
2628 static void *_p_wxMenuEventTo_p_wxObject(void *x
) { 
2629     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMenuEvent 
*) x
)); 
2631 static void *_p_wxPyAppTo_p_wxObject(void *x
) { 
2632     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxPyApp 
*) x
)); 
2634 static void *_p_wxCloseEventTo_p_wxObject(void *x
) { 
2635     return (void *)((wxObject 
*) (wxEvent 
*) ((wxCloseEvent 
*) x
)); 
2637 static void *_p_wxMouseEventTo_p_wxObject(void *x
) { 
2638     return (void *)((wxObject 
*) (wxEvent 
*) ((wxMouseEvent 
*) x
)); 
2640 static void *_p_wxEraseEventTo_p_wxObject(void *x
) { 
2641     return (void *)((wxObject 
*) (wxEvent 
*) ((wxEraseEvent 
*) x
)); 
2643 static void *_p_wxPyCommandEventTo_p_wxObject(void *x
) { 
2644     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxPyCommandEvent 
*) x
)); 
2646 static void *_p_wxCommandEventTo_p_wxObject(void *x
) { 
2647     return (void *)((wxObject 
*) (wxEvent 
*) ((wxCommandEvent 
*) x
)); 
2649 static void *_p_wxDropFilesEventTo_p_wxObject(void *x
) { 
2650     return (void *)((wxObject 
*) (wxEvent 
*) ((wxDropFilesEvent 
*) x
)); 
2652 static void *_p_wxFocusEventTo_p_wxObject(void *x
) { 
2653     return (void *)((wxObject 
*) (wxEvent 
*) ((wxFocusEvent 
*) x
)); 
2655 static void *_p_wxChildFocusEventTo_p_wxObject(void *x
) { 
2656     return (void *)((wxObject 
*) (wxEvent 
*)(wxCommandEvent 
*) ((wxChildFocusEvent 
*) x
)); 
2658 static void *_p_wxControlWithItemsTo_p_wxObject(void *x
) { 
2659     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxWindow 
*)(wxControl 
*) ((wxControlWithItems 
*) x
)); 
2661 static void *_p_wxPyValidatorTo_p_wxObject(void *x
) { 
2662     return (void *)((wxObject 
*) (wxEvtHandler 
*)(wxValidator 
*) ((wxPyValidator 
*) x
)); 
2664 static void *_p_wxValidatorTo_p_wxObject(void *x
) { 
2665     return (void *)((wxObject 
*) (wxEvtHandler 
*) ((wxValidator 
*) x
)); 
2667 static void *_p_wxControlTo_p_wxWindow(void *x
) { 
2668     return (void *)((wxWindow 
*)  ((wxControl 
*) x
)); 
2670 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x
) { 
2671     return (void *)((wxWindow 
*) (wxControl 
*) ((wxControlWithItems 
*) x
)); 
2673 static void *_p_wxMediaCtrlTo_p_wxWindow(void *x
) { 
2674     return (void *)((wxWindow 
*) (wxControl 
*) ((wxMediaCtrl 
*) x
)); 
2676 static void *_p_wxMenuBarTo_p_wxWindow(void *x
) { 
2677     return (void *)((wxWindow 
*)  ((wxMenuBar 
*) x
)); 
2679 static void *_p_wxPyValidatorTo_p_wxValidator(void *x
) { 
2680     return (void *)((wxValidator 
*)  ((wxPyValidator 
*) x
)); 
2682 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x
) { 
2683     return (void *)((wxCommandEvent 
*)  ((wxChildFocusEvent 
*) x
)); 
2685 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x
) { 
2686     return (void *)((wxCommandEvent 
*)  ((wxScrollEvent 
*) x
)); 
2688 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x
) { 
2689     return (void *)((wxCommandEvent 
*)  ((wxWindowCreateEvent 
*) x
)); 
2691 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x
) { 
2692     return (void *)((wxCommandEvent 
*)  ((wxDateEvent 
*) x
)); 
2694 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x
) { 
2695     return (void *)((wxCommandEvent 
*)  ((wxUpdateUIEvent 
*) x
)); 
2697 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x
) { 
2698     return (void *)((wxCommandEvent 
*)  ((wxWindowDestroyEvent 
*) x
)); 
2700 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x
) { 
2701     return (void *)((wxCommandEvent 
*)  ((wxContextMenuEvent 
*) x
)); 
2703 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x
) { 
2704     return (void *)((wxCommandEvent 
*)  ((wxNotifyEvent 
*) x
)); 
2706 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x
) { 
2707     return (void *)((wxCommandEvent 
*)  ((wxPyCommandEvent 
*) x
)); 
2709 static void *_p_wxMediaEventTo_p_wxCommandEvent(void *x
) { 
2710     return (void *)((wxCommandEvent 
*) (wxNotifyEvent 
*) ((wxMediaEvent 
*) x
)); 
2712 static void *_p_wxControlTo_p_wxEvtHandler(void *x
) { 
2713     return (void *)((wxEvtHandler 
*) (wxWindow 
*) ((wxControl 
*) x
)); 
2715 static void *_p_wxWindowTo_p_wxEvtHandler(void *x
) { 
2716     return (void *)((wxEvtHandler 
*)  ((wxWindow 
*) x
)); 
2718 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x
) { 
2719     return (void *)((wxEvtHandler 
*) (wxWindow 
*)(wxControl 
*) ((wxControlWithItems 
*) x
)); 
2721 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x
) { 
2722     return (void *)((wxEvtHandler 
*)  ((wxPyApp 
*) x
)); 
2724 static void *_p_wxMediaCtrlTo_p_wxEvtHandler(void *x
) { 
2725     return (void *)((wxEvtHandler 
*) (wxWindow 
*)(wxControl 
*) ((wxMediaCtrl 
*) x
)); 
2727 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x
) { 
2728     return (void *)((wxEvtHandler 
*)  ((wxValidator 
*) x
)); 
2730 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x
) { 
2731     return (void *)((wxEvtHandler 
*) (wxValidator 
*) ((wxPyValidator 
*) x
)); 
2733 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x
) { 
2734     return (void *)((wxEvtHandler 
*) (wxWindow 
*) ((wxMenuBar 
*) x
)); 
2736 static void *_p_wxMenuTo_p_wxEvtHandler(void *x
) { 
2737     return (void *)((wxEvtHandler 
*)  ((wxMenu 
*) x
)); 
2739 static void *_p_wxMediaEventTo_p_wxNotifyEvent(void *x
) { 
2740     return (void *)((wxNotifyEvent 
*)  ((wxMediaEvent 
*) x
)); 
2742 static void *_p_wxControlWithItemsTo_p_wxControl(void *x
) { 
2743     return (void *)((wxControl 
*)  ((wxControlWithItems 
*) x
)); 
2745 static void *_p_wxMediaCtrlTo_p_wxControl(void *x
) { 
2746     return (void *)((wxControl 
*)  ((wxMediaCtrl 
*) x
)); 
2748 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x
) { 
2749     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxContextMenuEvent 
*) x
)); 
2751 static void *_p_wxMenuEventTo_p_wxEvent(void *x
) { 
2752     return (void *)((wxEvent 
*)  ((wxMenuEvent 
*) x
)); 
2754 static void *_p_wxCloseEventTo_p_wxEvent(void *x
) { 
2755     return (void *)((wxEvent 
*)  ((wxCloseEvent 
*) x
)); 
2757 static void *_p_wxMouseEventTo_p_wxEvent(void *x
) { 
2758     return (void *)((wxEvent 
*)  ((wxMouseEvent 
*) x
)); 
2760 static void *_p_wxEraseEventTo_p_wxEvent(void *x
) { 
2761     return (void *)((wxEvent 
*)  ((wxEraseEvent 
*) x
)); 
2763 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x
) { 
2764     return (void *)((wxEvent 
*)  ((wxSetCursorEvent 
*) x
)); 
2766 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x
) { 
2767     return (void *)((wxEvent 
*)  ((wxInitDialogEvent 
*) x
)); 
2769 static void *_p_wxScrollEventTo_p_wxEvent(void *x
) { 
2770     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxScrollEvent 
*) x
)); 
2772 static void *_p_wxPyEventTo_p_wxEvent(void *x
) { 
2773     return (void *)((wxEvent 
*)  ((wxPyEvent 
*) x
)); 
2775 static void *_p_wxNotifyEventTo_p_wxEvent(void *x
) { 
2776     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxNotifyEvent 
*) x
)); 
2778 static void *_p_wxIdleEventTo_p_wxEvent(void *x
) { 
2779     return (void *)((wxEvent 
*)  ((wxIdleEvent 
*) x
)); 
2781 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x
) { 
2782     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxWindowCreateEvent 
*) x
)); 
2784 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x
) { 
2785     return (void *)((wxEvent 
*)  ((wxQueryNewPaletteEvent 
*) x
)); 
2787 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x
) { 
2788     return (void *)((wxEvent 
*)  ((wxMaximizeEvent 
*) x
)); 
2790 static void *_p_wxIconizeEventTo_p_wxEvent(void *x
) { 
2791     return (void *)((wxEvent 
*)  ((wxIconizeEvent 
*) x
)); 
2793 static void *_p_wxActivateEventTo_p_wxEvent(void *x
) { 
2794     return (void *)((wxEvent 
*)  ((wxActivateEvent 
*) x
)); 
2796 static void *_p_wxSizeEventTo_p_wxEvent(void *x
) { 
2797     return (void *)((wxEvent 
*)  ((wxSizeEvent 
*) x
)); 
2799 static void *_p_wxMoveEventTo_p_wxEvent(void *x
) { 
2800     return (void *)((wxEvent 
*)  ((wxMoveEvent 
*) x
)); 
2802 static void *_p_wxDateEventTo_p_wxEvent(void *x
) { 
2803     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxDateEvent 
*) x
)); 
2805 static void *_p_wxPaintEventTo_p_wxEvent(void *x
) { 
2806     return (void *)((wxEvent 
*)  ((wxPaintEvent 
*) x
)); 
2808 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x
) { 
2809     return (void *)((wxEvent 
*)  ((wxNcPaintEvent 
*) x
)); 
2811 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x
) { 
2812     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxUpdateUIEvent 
*) x
)); 
2814 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x
) { 
2815     return (void *)((wxEvent 
*)  ((wxPaletteChangedEvent 
*) x
)); 
2817 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x
) { 
2818     return (void *)((wxEvent 
*)  ((wxDisplayChangedEvent 
*) x
)); 
2820 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x
) { 
2821     return (void *)((wxEvent 
*)  ((wxMouseCaptureChangedEvent 
*) x
)); 
2823 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x
) { 
2824     return (void *)((wxEvent 
*)  ((wxSysColourChangedEvent 
*) x
)); 
2826 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x
) { 
2827     return (void *)((wxEvent 
*)  ((wxDropFilesEvent 
*) x
)); 
2829 static void *_p_wxFocusEventTo_p_wxEvent(void *x
) { 
2830     return (void *)((wxEvent 
*)  ((wxFocusEvent 
*) x
)); 
2832 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x
) { 
2833     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxChildFocusEvent 
*) x
)); 
2835 static void *_p_wxShowEventTo_p_wxEvent(void *x
) { 
2836     return (void *)((wxEvent 
*)  ((wxShowEvent 
*) x
)); 
2838 static void *_p_wxCommandEventTo_p_wxEvent(void *x
) { 
2839     return (void *)((wxEvent 
*)  ((wxCommandEvent 
*) x
)); 
2841 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x
) { 
2842     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxPyCommandEvent 
*) x
)); 
2844 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x
) { 
2845     return (void *)((wxEvent 
*) (wxCommandEvent 
*) ((wxWindowDestroyEvent 
*) x
)); 
2847 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x
) { 
2848     return (void *)((wxEvent 
*)  ((wxNavigationKeyEvent 
*) x
)); 
2850 static void *_p_wxKeyEventTo_p_wxEvent(void *x
) { 
2851     return (void *)((wxEvent 
*)  ((wxKeyEvent 
*) x
)); 
2853 static void *_p_wxMediaEventTo_p_wxEvent(void *x
) { 
2854     return (void *)((wxEvent 
*) (wxCommandEvent 
*)(wxNotifyEvent 
*) ((wxMediaEvent 
*) x
)); 
2856 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x
) { 
2857     return (void *)((wxEvent 
*)  ((wxScrollWinEvent 
*) x
)); 
2859 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_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_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_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_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_wxMediaCtrl", _p_wxMediaCtrlTo_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_wxMediaEvent", _p_wxMediaEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_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_wxMenuItem", _p_wxMenuItemTo_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_wxIdleEvent", _p_wxIdleEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_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_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_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_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_wxCommandEvent", _p_wxCommandEventTo_p_wxObject
, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_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_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},{0, 0, 0, 0, 0, 0, 0}}; 
2860 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}}; 
2861 static swig_type_info _swigt__p_wxMediaEvent
[] = {{"_p_wxMediaEvent", 0, "wxMediaEvent *", 0, 0, 0, 0},{"_p_wxMediaEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; 
2862 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_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxWindow
, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; 
2863 static swig_type_info _swigt__p_wxValidator
[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; 
2864 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_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_wxMediaEvent", _p_wxMediaEventTo_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}}; 
2865 static swig_type_info _swigt__p_unsigned_long
[] = {{"_p_unsigned_long", 0, "unsigned long *|wxUIntPtr *", 0, 0, 0, 0},{"_p_unsigned_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; 
2866 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}}; 
2867 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}}; 
2868 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}}; 
2869 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}}; 
2870 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}}; 
2871 static swig_type_info _swigt__p_wxFileOffset
[] = {{"_p_wxFileOffset", 0, "wxFileOffset *", 0, 0, 0, 0},{"_p_wxFileOffset", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; 
2872 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_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxEvtHandler
, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_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},{0, 0, 0, 0, 0, 0, 0}}; 
2873 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}}; 
2874 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}}; 
2875 static swig_type_info _swigt__p_wxNotifyEvent
[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{"_p_wxMediaEvent", _p_wxMediaEventTo_p_wxNotifyEvent
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; 
2876 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_wxMediaCtrl", _p_wxMediaCtrlTo_p_wxControl
, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; 
2877 static swig_type_info _swigt__p_wxMediaCtrl
[] = {{"_p_wxMediaCtrl", 0, "wxMediaCtrl *", 0, 0, 0, 0},{"_p_wxMediaCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; 
2878 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_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_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_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_wxDateEvent", _p_wxDateEventTo_p_wxEvent
, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_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_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_wxMediaEvent", _p_wxMediaEventTo_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}}; 
2879 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}}; 
2880 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}}; 
2882 static swig_type_info 
*swig_types_initial
[] = { 
2884 _swigt__p_unsigned_char
,  
2885 _swigt__p_wxMediaEvent
,  
2887 _swigt__p_wxValidator
,  
2888 _swigt__p_wxCommandEvent
,  
2889 _swigt__p_unsigned_long
,  
2890 _swigt__p_unsigned_int
,  
2891 _swigt__unsigned_int
,  
2892 _swigt__p_form_ops_t
,  
2893 _swigt__p_wxDuplexMode
,  
2895 _swigt__p_wxFileOffset
,  
2896 _swigt__p_wxEvtHandler
,  
2897 _swigt__std__ptrdiff_t
,  
2899 _swigt__p_wxNotifyEvent
,  
2900 _swigt__p_wxControl
,  
2901 _swigt__p_wxMediaCtrl
,  
2903 _swigt__p_wxPaperSize
,  
2909 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ 
2911 static swig_const_info swig_const_table
[] = { 
2912 {0, 0, 0, 0.0, 0, 0}}; 
2923     /* Python-specific SWIG API */ 
2924 #define SWIG_newvarlink()                             SWIG_Python_newvarlink() 
2925 #define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr) 
2926 #define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants) 
2928     /* ----------------------------------------------------------------------------- 
2929      * global variable support code. 
2930      * ----------------------------------------------------------------------------- */ 
2932     typedef struct swig_globalvar 
{ 
2933         char       *name
;                  /* Name of global variable */ 
2934         PyObject 
*(*get_attr
)();           /* Return the current value */ 
2935         int       (*set_attr
)(PyObject 
*); /* Set the value */ 
2936         struct swig_globalvar 
*next
; 
2939     typedef struct swig_varlinkobject 
{ 
2941         swig_globalvar 
*vars
; 
2942     } swig_varlinkobject
; 
2945     swig_varlink_repr(swig_varlinkobject 
*v
) { 
2947         return PyString_FromString("<Swig global variables>"); 
2951     swig_varlink_print(swig_varlinkobject 
*v
, FILE *fp
, int flags
) { 
2952         swig_globalvar  
*var
; 
2954         fprintf(fp
,"Swig global variables { "); 
2955         for (var 
= v
->vars
; var
; var
=var
->next
) { 
2956             fprintf(fp
,"%s", var
->name
); 
2957             if (var
->next
) fprintf(fp
,", "); 
2964     swig_varlink_getattr(swig_varlinkobject 
*v
, char *n
) { 
2965         swig_globalvar 
*var 
= v
->vars
; 
2967             if (strcmp(var
->name
,n
) == 0) { 
2968                 return (*var
->get_attr
)(); 
2972         PyErr_SetString(PyExc_NameError
,"Unknown C global variable"); 
2977     swig_varlink_setattr(swig_varlinkobject 
*v
, char *n
, PyObject 
*p
) { 
2978         swig_globalvar 
*var 
= v
->vars
; 
2980             if (strcmp(var
->name
,n
) == 0) { 
2981                 return (*var
->set_attr
)(p
); 
2985         PyErr_SetString(PyExc_NameError
,"Unknown C global variable"); 
2989     static PyTypeObject varlinktype 
= { 
2990         PyObject_HEAD_INIT(0)               
2991         0,                                  /* Number of items in variable part (ob_size) */ 
2992         (char *)"swigvarlink",              /* Type name (tp_name) */ 
2993         sizeof(swig_varlinkobject
),         /* Basic size (tp_basicsize) */ 
2994         0,                                  /* Itemsize (tp_itemsize) */ 
2995         0,                                  /* Deallocator (tp_dealloc) */  
2996         (printfunc
) swig_varlink_print
,     /* Print (tp_print) */ 
2997         (getattrfunc
) swig_varlink_getattr
, /* get attr (tp_getattr) */ 
2998         (setattrfunc
) swig_varlink_setattr
, /* Set attr (tp_setattr) */ 
3000         (reprfunc
) swig_varlink_repr
,       /* tp_repr */ 
3001         0,                                  /* tp_as_number */ 
3002         0,                                  /* tp_as_sequence */ 
3003         0,                                  /* tp_as_mapping */ 
3007         0,                                  /* tp_getattro */ 
3008         0,                                  /* tp_setattro */ 
3009         0,                                  /* tp_as_buffer */ 
3012 #if PY_VERSION_HEX >= 0x02000000 
3013         0,                                  /* tp_traverse */ 
3016 #if PY_VERSION_HEX >= 0x02010000 
3017         0,                                  /* tp_richcompare */ 
3018         0,                                  /* tp_weaklistoffset */ 
3020 #if PY_VERSION_HEX >= 0x02020000 
3021         0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ 
3023 #if PY_VERSION_HEX >= 0x02030000 
3027         0,0,0,0                             /* tp_alloc -> tp_next */ 
3031     /* Create a variable linking object for use later */ 
3033     SWIG_Python_newvarlink(void) { 
3034         swig_varlinkobject 
*result 
= 0; 
3035         result 
= PyMem_NEW(swig_varlinkobject
,1); 
3036         varlinktype
.ob_type 
= &PyType_Type
;    /* Patch varlinktype into a PyType */ 
3037         result
->ob_type 
= &varlinktype
; 
3039         result
->ob_refcnt 
= 0; 
3040         Py_XINCREF((PyObject 
*) result
); 
3041         return ((PyObject
*) result
); 
3045     SWIG_Python_addvarlink(PyObject 
*p
, char *name
, PyObject 
*(*get_attr
)(void), int (*set_attr
)(PyObject 
*p
)) { 
3046         swig_varlinkobject 
*v
; 
3048         v
= (swig_varlinkobject 
*) p
; 
3049         gv 
= (swig_globalvar 
*) malloc(sizeof(swig_globalvar
)); 
3050         gv
->name 
= (char *) malloc(strlen(name
)+1); 
3051         strcpy(gv
->name
,name
); 
3052         gv
->get_attr 
= get_attr
; 
3053         gv
->set_attr 
= set_attr
; 
3058     /* ----------------------------------------------------------------------------- 
3059      * constants/methods manipulation 
3060      * ----------------------------------------------------------------------------- */ 
3062     /* Install Constants */ 
3064     SWIG_Python_InstallConstants(PyObject 
*d
, swig_const_info constants
[]) { 
3067         for (i 
= 0; constants
[i
].type
; i
++) { 
3068             switch(constants
[i
].type
) { 
3070                 obj 
= PyInt_FromLong(constants
[i
].lvalue
); 
3073                 obj 
= PyFloat_FromDouble(constants
[i
].dvalue
); 
3075                 case SWIG_PY_STRING
: 
3076                 if (constants
[i
].pvalue
) { 
3077                     obj 
= PyString_FromString((char *) constants
[i
].pvalue
); 
3083                 case SWIG_PY_POINTER
: 
3084                 obj 
= SWIG_NewPointerObj(constants
[i
].pvalue
, *(constants
[i
]).ptype
,0); 
3086                 case SWIG_PY_BINARY
: 
3087                 obj 
= SWIG_NewPackedObj(constants
[i
].pvalue
, constants
[i
].lvalue
, *(constants
[i
].ptype
)); 
3094                 PyDict_SetItemString(d
,constants
[i
].name
,obj
); 
3100     /* -----------------------------------------------------------------------------*/ 
3101     /* Fix SwigMethods to carry the callback ptrs when needed */ 
3102     /* -----------------------------------------------------------------------------*/ 
3105     SWIG_Python_FixMethods(PyMethodDef 
*methods
, 
3106     swig_const_info 
*const_table
, 
3107     swig_type_info 
**types
, 
3108     swig_type_info 
**types_initial
) { 
3110         for (i 
= 0; methods
[i
].ml_name
; ++i
) { 
3111             char *c 
= methods
[i
].ml_doc
; 
3112             if (c 
&& (c 
= strstr(c
, "swig_ptr: "))) { 
3114                 swig_const_info 
*ci 
= 0; 
3115                 char *name 
= c 
+ 10; 
3116                 for (j 
= 0; const_table
[j
].type
; j
++) { 
3117                     if (strncmp(const_table
[j
].name
, name
,  
3118                     strlen(const_table
[j
].name
)) == 0) { 
3119                         ci 
= &(const_table
[j
]); 
3124                     size_t shift 
= (ci
->ptype
) - types
; 
3125                     swig_type_info 
*ty 
= types_initial
[shift
]; 
3126                     size_t ldoc 
= (c 
- methods
[i
].ml_doc
); 
3127                     size_t lptr 
= strlen(ty
->name
)+2*sizeof(void*)+2; 
3128                     char *ndoc 
= (char*)malloc(ldoc 
+ lptr 
+ 10); 
3130                     void *ptr 
= (ci
->type 
== SWIG_PY_POINTER
) ? ci
->pvalue
: (void *)(ci
->lvalue
); 
3131                     strncpy(buff
, methods
[i
].ml_doc
, ldoc
); 
3133                     strncpy(buff
, "swig_ptr: ", 10); 
3135                     SWIG_PackVoidPtr(buff
, ptr
, ty
->name
, lptr
); 
3136                     methods
[i
].ml_doc 
= ndoc
; 
3142     /* -----------------------------------------------------------------------------* 
3143      *  Initialize type list 
3144      * -----------------------------------------------------------------------------*/ 
3146 #if PY_MAJOR_VERSION < 2 
3147     /* PyModule_AddObject function was introduced in Python 2.0.  The following function 
3148     is copied out of Python/modsupport.c in python version 2.3.4 */ 
3150     PyModule_AddObject(PyObject 
*m
, char *name
, PyObject 
*o
) 
3153         if (!PyModule_Check(m
)) { 
3154             PyErr_SetString(PyExc_TypeError
, 
3155             "PyModule_AddObject() needs module as first arg"); 
3159             PyErr_SetString(PyExc_TypeError
, 
3160             "PyModule_AddObject() needs non-NULL value"); 
3164         dict 
= PyModule_GetDict(m
); 
3166             /* Internal error -- modules must have a dict! */ 
3167             PyErr_Format(PyExc_SystemError
, "module '%s' has no __dict__", 
3168             PyModule_GetName(m
)); 
3171         if (PyDict_SetItemString(dict
, name
, o
)) 
3178     static swig_type_info 
** 
3179     SWIG_Python_SetTypeListHandle(swig_type_info 
**type_list_handle
) { 
3180         static PyMethodDef swig_empty_runtime_method_table
[] = { 
3186         PyObject 
*module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION
, 
3187         swig_empty_runtime_method_table
); 
3188         PyObject 
*pointer 
= PyCObject_FromVoidPtr((void *) type_list_handle
, NULL
); 
3189         if (pointer 
&& module) { 
3190             PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME
, pointer
); 
3192         return type_list_handle
; 
3195     static swig_type_info 
** 
3196     SWIG_Python_LookupTypePointer(swig_type_info 
**type_list_handle
) { 
3197         swig_type_info 
**type_pointer
; 
3199         /* first check if module already created */ 
3200         type_pointer 
= SWIG_Python_GetTypeListHandle(); 
3202             return type_pointer
; 
3204             /* create a new module and variable */ 
3205             return SWIG_Python_SetTypeListHandle(type_list_handle
); 
3213 /* -----------------------------------------------------------------------------* 
3214  *  Partial Init method 
3215  * -----------------------------------------------------------------------------*/ 
3217 #ifdef SWIG_LINK_RUNTIME 
3221 SWIGEXPORT(void *) SWIG_ReturnGlobalTypeList(void *); 
3227 SWIGEXPORT(void) SWIG_init(void) { 
3228     static PyObject 
*SWIG_globals 
= 0;  
3229     static int       typeinit 
= 0; 
3232     if (!SWIG_globals
) SWIG_globals 
= SWIG_newvarlink(); 
3234     /* Fix SwigMethods to carry the callback ptrs when needed */ 
3235     SWIG_Python_FixMethods(SwigMethods
, swig_const_table
, swig_types
, swig_types_initial
); 
3237     m 
= Py_InitModule((char *) SWIG_name
, SwigMethods
); 
3238     d 
= PyModule_GetDict(m
); 
3241 #ifdef SWIG_LINK_RUNTIME 
3242         swig_type_list_handle 
= (swig_type_info 
**) SWIG_ReturnGlobalTypeList(swig_type_list_handle
); 
3244 #  ifndef SWIG_STATIC_RUNTIME 
3245         swig_type_list_handle 
= SWIG_Python_LookupTypePointer(swig_type_list_handle
); 
3248         for (i 
= 0; swig_types_initial
[i
]; i
++) { 
3249             swig_types
[i
] = SWIG_TypeRegister(swig_types_initial
[i
]); 
3253     SWIG_InstallConstants(d
,swig_const_table
); 
3256         PyDict_SetItemString(d
,"MEDIASTATE_STOPPED", SWIG_From_int((int)(wxMEDIASTATE_STOPPED
)));  
3259         PyDict_SetItemString(d
,"MEDIASTATE_PAUSED", SWIG_From_int((int)(wxMEDIASTATE_PAUSED
)));  
3262         PyDict_SetItemString(d
,"MEDIASTATE_PLAYING", SWIG_From_int((int)(wxMEDIASTATE_PLAYING
)));  
3264     PyDict_SetItemString(d
,(char*)"cvar", SWIG_globals
); 
3265     SWIG_addvarlink(SWIG_globals
,(char*)"MediaCtrlNameStr",_wrap_MediaCtrlNameStr_get
, _wrap_MediaCtrlNameStr_set
); 
3266     PyDict_SetItemString(d
, "wxEVT_MEDIA_FINISHED", PyInt_FromLong(wxEVT_MEDIA_FINISHED
)); 
3267     PyDict_SetItemString(d
, "wxEVT_MEDIA_STOP", PyInt_FromLong(wxEVT_MEDIA_STOP
));