]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/grid_wrap.cpp
docstring patch has been submitted to SF
[wxWidgets.git] / wxPython / src / gtk / grid_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
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 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124
125 #endif
126
127
128 /***********************************************************************
129 * pyrun.swg for wxPython
130 *
131 * Include only the function prototypes and such from SWIG's pyrun.swg,
132 * but not the runtime functions themselves. This helps keep the
133 * wrapper files clean of unnecessary stuff that is in the libpy.c file
134 * anyway.
135 *
136 ************************************************************************/
137
138 #include "Python.h"
139
140 #include <limits.h>
141 #include <float.h>
142
143 #ifdef __cplusplus
144 #define SWIG_STATIC_INLINE static inline
145 #else
146 #define SWIG_STATIC_INLINE static
147 #endif
148
149 SWIG_STATIC_INLINE long
150 SPyObj_AsLong(PyObject * obj)
151 {
152 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
153 }
154
155 SWIG_STATIC_INLINE unsigned long
156 SPyObj_AsUnsignedLong(PyObject * obj)
157 {
158 if (PyLong_Check(obj)) {
159 return PyLong_AsUnsignedLong(obj);
160 } else {
161 long i = PyInt_AsLong(obj);
162 if ( !PyErr_Occurred() && (i < 0)) {
163 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
164 }
165 return i;
166 }
167 }
168
169 #if !defined(_MSC_VER)
170 SWIG_STATIC_INLINE PyObject*
171 SPyObj_FromLongLong(long long value)
172 {
173 return (value > (long)(LONG_MAX)) ?
174 PyLong_FromLongLong(value) : PyInt_FromLong((long)value);
175 }
176 #endif
177
178 SWIG_STATIC_INLINE PyObject*
179 SPyObj_FromUnsignedLong(unsigned long value)
180 {
181 return (value > (unsigned long)(LONG_MAX)) ?
182 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
183 }
184
185 #if !defined(_MSC_VER)
186 SWIG_STATIC_INLINE PyObject*
187 SPyObj_FromUnsignedLongLong(unsigned long long value)
188 {
189 return (value > (unsigned long long)(LONG_MAX)) ?
190 PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)value);
191 }
192 #endif
193
194 SWIG_STATIC_INLINE long
195 SPyObj_AsLongInRange(PyObject * obj, long min_value, long max_value)
196 {
197 long value = SPyObj_AsLong(obj);
198 if (!PyErr_Occurred()) {
199 if (value < min_value) {
200 PyErr_SetString(PyExc_OverflowError,"value is smaller than type minimum");
201 } else if (value > max_value) {
202 PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum");
203 }
204 }
205 return value;
206 }
207
208 SWIG_STATIC_INLINE unsigned long
209 SPyObj_AsUnsignedLongInRange(PyObject *obj, unsigned long max_value)
210 {
211 unsigned long value = SPyObj_AsUnsignedLong(obj);
212 if (!PyErr_Occurred()) {
213 if (value > max_value) {
214 PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum");
215 }
216 }
217 return value;
218 }
219
220 SWIG_STATIC_INLINE signed char
221 SPyObj_AsSignedChar(PyObject *obj) {
222 return (signed char)SPyObj_AsLongInRange(obj, SCHAR_MIN, SCHAR_MAX);
223 }
224
225 SWIG_STATIC_INLINE short
226 SPyObj_AsShort(PyObject *obj) {
227 return (short)SPyObj_AsLongInRange(obj, SHRT_MIN, SHRT_MAX);
228 }
229
230 SWIG_STATIC_INLINE int
231 SPyObj_AsInt(PyObject *obj) {
232 return SPyObj_AsLongInRange(obj, INT_MIN, INT_MAX);
233 }
234
235 SWIG_STATIC_INLINE unsigned char
236 SPyObj_AsUnsignedChar(PyObject *obj) {
237 return (unsigned char)SPyObj_AsUnsignedLongInRange(obj, UCHAR_MAX);
238 }
239
240 SWIG_STATIC_INLINE unsigned short
241 SPyObj_AsUnsignedShort(PyObject *obj) {
242 return (unsigned short)SPyObj_AsUnsignedLongInRange(obj, USHRT_MAX);
243 }
244
245 SWIG_STATIC_INLINE unsigned int
246 SPyObj_AsUnsignedInt(PyObject *obj) {
247 return SPyObj_AsUnsignedLongInRange(obj, UINT_MAX);
248 }
249
250 #if !defined(_MSC_VER)
251 SWIG_STATIC_INLINE long long
252 SPyObj_AsLongLong(PyObject *obj) {
253 return PyInt_Check(obj) ?
254 PyInt_AsLong(obj) : PyLong_AsLongLong(obj);
255 }
256
257 SWIG_STATIC_INLINE unsigned long long
258 SPyObj_AsUnsignedLongLong(PyObject *obj) {
259 return PyLong_Check(obj) ?
260 PyLong_AsUnsignedLongLong(obj) : SPyObj_AsUnsignedLong(obj);
261 }
262 #endif
263
264 SWIG_STATIC_INLINE double
265 SPyObj_AsDouble(PyObject *obj) {
266 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
267 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
268 }
269
270 SWIG_STATIC_INLINE float
271 SPyObj_AsFloat(PyObject *obj) {
272 double value = SPyObj_AsDouble(obj);
273 if (!PyErr_Occurred()) {
274 if (value < FLT_MIN) {
275 PyErr_SetString(PyExc_OverflowError,"float is smaller than flt_min");
276 } else if (value > FLT_MAX) {
277 PyErr_SetString(PyExc_OverflowError,"float is greater than flt_max");
278 }
279 }
280 return (float) value;
281 }
282
283 SWIG_STATIC_INLINE char
284 SPyObj_AsChar(PyObject *obj) {
285 char c = (PyString_Check(obj) && PyString_Size(obj) == 1) ?
286 PyString_AsString(obj)[0]
287 : (char) SPyObj_AsLongInRange(obj, CHAR_MIN, CHAR_MAX);
288 if (PyErr_Occurred()) {
289 PyErr_Clear();
290 PyErr_SetString(PyExc_TypeError, "a char is required");
291 }
292 return c;
293 }
294
295 SWIG_STATIC_INLINE PyObject *
296 SPyObj_FromChar(char c) {
297 return PyString_FromStringAndSize(&c,1);
298 }
299
300 SWIG_STATIC_INLINE PyObject *
301 SPyObj_FromCharPtr(const char* cptr) {
302 return cptr ? PyString_FromString(cptr) : Py_BuildValue((char*)"");
303 }
304
305 SWIG_STATIC_INLINE int
306 SPyObj_AsBool(PyObject *obj) {
307 return SPyObj_AsLong/*Long*/(obj) ? 1 : 0;
308 }
309
310
311
312 #ifdef __cplusplus
313 extern "C" {
314 #endif
315
316 #define SWIG_PY_INT 1
317 #define SWIG_PY_FLOAT 2
318 #define SWIG_PY_STRING 3
319 #define SWIG_PY_POINTER 4
320 #define SWIG_PY_BINARY 5
321
322 /* Flags for pointer conversion */
323
324 #define SWIG_POINTER_EXCEPTION 0x1
325 #define SWIG_POINTER_DISOWN 0x2
326
327 /* Exception handling in wrappers */
328 #define SWIG_fail goto fail
329
330 /* Constant information structure */
331 typedef struct swig_const_info {
332 int type;
333 char *name;
334 long lvalue;
335 double dvalue;
336 void *pvalue;
337 swig_type_info **ptype;
338 } swig_const_info;
339
340 /* Common SWIG API */
341 #define SWIG_ConvertPtr(obj, pp, type, flags) \
342 SWIG_Python_ConvertPtr(obj, pp, type, flags)
343 #define SWIG_NewPointerObj(p, type, flags) \
344 SWIG_Python_NewPointerObj(p, type, flags)
345 #define SWIG_MustGetPtr(p, type, argnum, flags) \
346 SWIG_Python_MustGetPtr(p, type, argnum, flags)
347
348 /* Python-specific SWIG API */
349 #define SWIG_newvarlink() \
350 SWIG_Python_newvarlink()
351 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
352 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
353 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
354 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
355 #define SWIG_NewPackedObj(ptr, sz, type) \
356 SWIG_Python_NewPackedObj(ptr, sz, type)
357 #define SWIG_InstallConstants(d, constants) \
358 SWIG_Python_InstallConstants(d, constants)
359
360
361 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
362 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
363 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
364 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
365 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
366 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
367 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
368 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
369
370
371
372 /* Contract support */
373
374 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
375
376 #ifdef __cplusplus
377 }
378 #endif
379
380
381
382 /* -------- TYPES TABLE (BEGIN) -------- */
383
384 #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0]
385 #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1]
386 #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2]
387 #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3]
388 #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4]
389 #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5]
390 #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6]
391 #define SWIGTYPE_p_wxGridCellRenderer swig_types[7]
392 #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8]
393 #define SWIGTYPE_p_wxGridCellAttr swig_types[9]
394 #define SWIGTYPE_p_wxColour swig_types[10]
395 #define SWIGTYPE_p_wxDC swig_types[11]
396 #define SWIGTYPE_p_wxGridTableMessage swig_types[12]
397 #define SWIGTYPE_p_wxGrid swig_types[13]
398 #define SWIGTYPE_p_wxPanel swig_types[14]
399 #define SWIGTYPE_p_wxNotifyEvent swig_types[15]
400 #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[16]
401 #define SWIGTYPE_p_wxSize swig_types[17]
402 #define SWIGTYPE_p_wxGridCellCoords swig_types[18]
403 #define SWIGTYPE_p_wxScrolledWindow swig_types[19]
404 #define SWIGTYPE_p_wxWindow swig_types[20]
405 #define SWIGTYPE_p_wxFont swig_types[21]
406 #define SWIGTYPE_p_wxControl swig_types[22]
407 #define SWIGTYPE_p_wxEvent swig_types[23]
408 #define SWIGTYPE_p_wxObject swig_types[24]
409 #define SWIGTYPE_p_wxGridSizeEvent swig_types[25]
410 #define SWIGTYPE_p_wxRect swig_types[26]
411 #define SWIGTYPE_p_long swig_types[27]
412 #define SWIGTYPE_p_wxString swig_types[28]
413 #define SWIGTYPE_p_wxEvtHandler swig_types[29]
414 #define SWIGTYPE_p_wxPoint swig_types[30]
415 #define SWIGTYPE_p_wxGridEvent swig_types[31]
416 #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[32]
417 #define SWIGTYPE_p_wxGridTableBase swig_types[33]
418 #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[34]
419 #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[35]
420 #define SWIGTYPE_p_wxPyGridCellEditor swig_types[36]
421 #define SWIGTYPE_p_wxGridCellEditor swig_types[37]
422 #define SWIGTYPE_p_wxGridCellTextEditor swig_types[38]
423 #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[39]
424 #define SWIGTYPE_p_wxPyGridTableBase swig_types[40]
425 #define SWIGTYPE_p_wxGridStringTable swig_types[41]
426 #define SWIGTYPE_p_wxArrayString swig_types[42]
427 #define SWIGTYPE_p_wxCommandEvent swig_types[43]
428 #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[44]
429 #define SWIGTYPE_p_wxKeyEvent swig_types[45]
430 #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[46]
431 #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[47]
432 #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[48]
433 #define SWIGTYPE_p_int swig_types[49]
434 #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[50]
435 static swig_type_info *swig_types[52];
436
437 /* -------- TYPES TABLE (END) -------- */
438
439
440 /*-----------------------------------------------
441 @(target):= _grid.so
442 ------------------------------------------------*/
443 #define SWIG_init init_grid
444
445 #define SWIG_name "_grid"
446
447 #include "wx/wxPython/wxPython.h"
448 #include "wx/wxPython/pyclasses.h"
449 #include "wx/wxPython/printfw.h"
450
451 #include <wx/grid.h>
452 #include <wx/generic/gridctrl.h>
453
454
455 static const wxString wxPyEmptyString(wxEmptyString);
456 static const wxString wxPyPanelNameStr(wxPanelNameStr);
457 static const wxString wxPyDateTimeFormatStr(wxT("%c"));
458
459
460 #define wxPyMake_TEMPLATE(TYPE) \
461 PyObject* wxPyMake_##TYPE(TYPE* source) { \
462 PyObject* target = NULL; \
463 if (source) { \
464 /* Check if there is already a pointer to a Python object in the \
465 OOR data that we can use. */ \
466 wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \
467 if (data) { \
468 target = data->m_obj; \
469 Py_INCREF(target); \
470 } \
471 /* Otherwise make a new wrapper for it the old fashioned way and \
472 give it the OOR treatment */ \
473 if (! target) { \
474 target = wxPyConstructObject(source, wxT(#TYPE), False); \
475 if (target) \
476 source->SetClientObject(new wxPyOORClientData(target)); \
477 } \
478 } else { /* source was NULL so return None. */ \
479 Py_INCREF(Py_None); target = Py_None; \
480 } \
481 return target; \
482 } \
483
484
485 wxPyMake_TEMPLATE(wxGridCellRenderer)
486 wxPyMake_TEMPLATE(wxGridCellEditor)
487 wxPyMake_TEMPLATE(wxGridCellAttr)
488 wxPyMake_TEMPLATE(wxGridCellAttrProvider)
489 wxPyMake_TEMPLATE(wxGridTableBase)
490
491
492
493 #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \
494 wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
495 wxGridCellAttr* rval = NULL; \
496 bool found; \
497 wxPyBeginBlockThreads(); \
498 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
499 PyObject* ro; \
500 wxGridCellAttr* ptr; \
501 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \
502 if (ro) { \
503 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \
504 rval = ptr; \
505 Py_DECREF(ro); \
506 } \
507 } \
508 wxPyEndBlockThreads(); \
509 if (! found) \
510 rval = PCLASS::CBNAME(a, b, c); \
511 return rval; \
512 } \
513 wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
514 return PCLASS::CBNAME(a, b, c); \
515 }
516
517
518
519 #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \
520 void CBNAME(wxGridCellAttr *attr, int a, int b) { \
521 wxPyBeginBlockThreads(); \
522 bool found; \
523 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
524 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
525 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \
526 Py_DECREF(obj); \
527 } \
528 wxPyEndBlockThreads(); \
529 if (! found) \
530 PCLASS::CBNAME(attr, a, b); \
531 } \
532 void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \
533 PCLASS::CBNAME(attr, a, b); \
534 }
535
536
537
538 #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \
539 void CBNAME(wxGridCellAttr *attr, int val) { \
540 wxPyBeginBlockThreads(); \
541 bool found; \
542 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
543 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
544 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \
545 Py_DECREF(obj); \
546 } \
547 wxPyEndBlockThreads(); \
548 if (! found) \
549 PCLASS::CBNAME(attr, val); \
550 } \
551 void base_##CBNAME(wxGridCellAttr *attr, int val) { \
552 PCLASS::CBNAME(attr, val); \
553 }
554
555
556
557 #define PYCALLBACK_INT__pure(CBNAME) \
558 int CBNAME() { \
559 wxPyBeginBlockThreads(); \
560 int rval = 0; \
561 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
562 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
563 wxPyEndBlockThreads(); \
564 return rval; \
565 }
566
567
568
569 #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \
570 bool CBNAME(int a, int b) { \
571 wxPyBeginBlockThreads(); \
572 bool rval = 0; \
573 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
574 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \
575 wxPyEndBlockThreads(); \
576 return rval; \
577 }
578
579
580 #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \
581 wxString CBNAME(int a, int b) { \
582 wxPyBeginBlockThreads(); \
583 wxString rval; \
584 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
585 PyObject* ro; \
586 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
587 if (ro) { \
588 rval = Py2wxString(ro); \
589 Py_DECREF(ro); \
590 } \
591 } \
592 wxPyEndBlockThreads(); \
593 return rval; \
594 }
595
596
597 #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \
598 void CBNAME(int a, int b, const wxString& c) { \
599 wxPyBeginBlockThreads(); \
600 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
601 PyObject* s = wx2PyString(c); \
602 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
603 Py_DECREF(s); \
604 } \
605 wxPyEndBlockThreads(); \
606 }
607
608
609 #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \
610 wxString CBNAME(int a, int b) { \
611 bool found; \
612 wxPyBeginBlockThreads(); \
613 wxString rval; \
614 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
615 PyObject* ro; \
616 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
617 if (ro) { \
618 rval = Py2wxString(ro); \
619 Py_DECREF(ro); \
620 } \
621 } \
622 wxPyEndBlockThreads(); \
623 if (! found) \
624 rval = PCLASS::CBNAME(a, b); \
625 return rval; \
626 } \
627 wxString base_##CBNAME(int a, int b) { \
628 return PCLASS::CBNAME(a, b); \
629 }
630
631
632 #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \
633 bool CBNAME(int a, int b, const wxString& c) { \
634 bool rval = 0; \
635 bool found; \
636 wxPyBeginBlockThreads(); \
637 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
638 PyObject* s = wx2PyString(c); \
639 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
640 Py_DECREF(s); \
641 } \
642 wxPyEndBlockThreads(); \
643 if (! found) \
644 rval = PCLASS::CBNAME(a,b,c); \
645 return rval; \
646 } \
647 bool base_##CBNAME(int a, int b, const wxString& c) { \
648 return PCLASS::CBNAME(a,b,c); \
649 }
650
651
652
653
654 #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \
655 long CBNAME(int a, int b) { \
656 long rval; \
657 bool found; \
658 wxPyBeginBlockThreads(); \
659 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
660 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
661 wxPyEndBlockThreads(); \
662 if (! found) \
663 rval = PCLASS::CBNAME(a,b); \
664 return rval; \
665 } \
666 long base_##CBNAME(int a, int b) { \
667 return PCLASS::CBNAME(a,b); \
668 }
669
670
671
672 #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \
673 bool CBNAME(int a, int b) { \
674 bool rval = 0; \
675 bool found; \
676 wxPyBeginBlockThreads(); \
677 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
678 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
679 wxPyEndBlockThreads(); \
680 if (! found) \
681 rval = PCLASS::CBNAME(a,b); \
682 return rval; \
683 } \
684 bool base_##CBNAME(int a, int b) { \
685 return PCLASS::CBNAME(a,b); \
686 }
687
688
689
690 #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \
691 double CBNAME(int a, int b) { \
692 bool found; \
693 wxPyBeginBlockThreads(); \
694 double rval; \
695 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
696 PyObject* ro; \
697 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
698 if (ro) { \
699 PyObject* str = PyObject_Str(ro); \
700 rval = PyFloat_AsDouble(str); \
701 Py_DECREF(ro); Py_DECREF(str); \
702 } \
703 } \
704 wxPyEndBlockThreads(); \
705 if (! found) \
706 rval = PCLASS::CBNAME(a, b); \
707 return rval; \
708 } \
709 double base_##CBNAME(int a, int b) { \
710 return PCLASS::CBNAME(a, b); \
711 }
712
713
714
715 #define PYCALLBACK__(PCLASS, CBNAME) \
716 void CBNAME() { \
717 bool found; \
718 wxPyBeginBlockThreads(); \
719 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
720 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
721 wxPyEndBlockThreads(); \
722 if (! found) \
723 PCLASS::CBNAME(); \
724 } \
725 void base_##CBNAME() { \
726 PCLASS::CBNAME(); \
727 }
728
729
730
731
732 #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \
733 bool CBNAME(size_t a, size_t b) { \
734 bool rval = 0; \
735 bool found; \
736 wxPyBeginBlockThreads(); \
737 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
738 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
739 wxPyEndBlockThreads(); \
740 if (! found) \
741 rval = PCLASS::CBNAME(a,b); \
742 return rval; \
743 } \
744 bool base_##CBNAME(size_t a, size_t b) { \
745 return PCLASS::CBNAME(a,b); \
746 }
747
748
749
750 #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \
751 bool CBNAME(size_t a) { \
752 bool rval = 0; \
753 bool found; \
754 wxPyBeginBlockThreads(); \
755 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
756 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \
757 wxPyEndBlockThreads(); \
758 if (! found) \
759 rval = PCLASS::CBNAME(a); \
760 return rval; \
761 } \
762 bool base_##CBNAME(size_t a) { \
763 return PCLASS::CBNAME(a); \
764 }
765
766
767 #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \
768 wxString CBNAME(int a) { \
769 bool found; \
770 wxPyBeginBlockThreads(); \
771 wxString rval; \
772 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
773 PyObject* ro; \
774 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \
775 if (ro) { \
776 rval = Py2wxString(ro); \
777 Py_DECREF(ro); \
778 } \
779 } \
780 wxPyEndBlockThreads(); \
781 if (! found) \
782 rval = PCLASS::CBNAME(a); \
783 return rval; \
784 } \
785 wxString base_##CBNAME(int a) { \
786 return PCLASS::CBNAME(a); \
787 }
788
789
790 #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \
791 void CBNAME(int a, const wxString& c) { \
792 bool found; \
793 wxPyBeginBlockThreads(); \
794 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
795 PyObject* s = wx2PyString(c); \
796 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \
797 Py_DECREF(s); \
798 } \
799 wxPyEndBlockThreads(); \
800 if (! found) \
801 PCLASS::CBNAME(a,c); \
802 } \
803 void base_##CBNAME(int a, const wxString& c) { \
804 PCLASS::CBNAME(a,c); \
805 }
806
807
808
809
810 #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \
811 bool CBNAME() { \
812 bool rval = 0; \
813 bool found; \
814 wxPyBeginBlockThreads(); \
815 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
816 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
817 wxPyEndBlockThreads(); \
818 if (! found) \
819 rval = PCLASS::CBNAME(); \
820 return rval; \
821 } \
822 bool base_##CBNAME() { \
823 return PCLASS::CBNAME(); \
824 }
825
826
827
828 #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \
829 void CBNAME(size_t a, int b) { \
830 bool found; \
831 wxPyBeginBlockThreads(); \
832 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
833 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
834 wxPyEndBlockThreads(); \
835 if (! found) \
836 PCLASS::CBNAME(a,b); \
837 } \
838 void base_##CBNAME(size_t a, int b) { \
839 PCLASS::CBNAME(a,b); \
840 }
841
842
843
844
845 #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \
846 void CBNAME(int a, int b, long c) { \
847 bool found; \
848 wxPyBeginBlockThreads(); \
849 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
850 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
851 wxPyEndBlockThreads(); \
852 if (! found) \
853 PCLASS::CBNAME(a,b,c); \
854 } \
855 void base_##CBNAME(int a, int b, long c) { \
856 PCLASS::CBNAME(a,b,c); \
857 }
858
859
860
861
862 #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \
863 void CBNAME(int a, int b, double c) { \
864 bool found; \
865 wxPyBeginBlockThreads(); \
866 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
867 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \
868 wxPyEndBlockThreads(); \
869 if (! found) \
870 PCLASS::CBNAME(a,b,c); \
871 } \
872 void base_##CBNAME(int a, int b, double c) { \
873 PCLASS::CBNAME(a,b,c); \
874 }
875
876
877
878 #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \
879 void CBNAME(int a, int b, bool c) { \
880 bool found; \
881 wxPyBeginBlockThreads(); \
882 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
883 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
884 wxPyEndBlockThreads(); \
885 if (! found) \
886 PCLASS::CBNAME(a,b,c); \
887 } \
888 void base_##CBNAME(int a, int b, bool c) { \
889 PCLASS::CBNAME(a,b,c); \
890 }
891
892
893
894
895
896 void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){
897 self->SetClientObject(new wxPyOORClientData(_self));
898 }
899
900 class wxPyGridCellRenderer : public wxGridCellRenderer
901 {
902 public:
903 wxPyGridCellRenderer() : wxGridCellRenderer() {};
904
905 // Implement Python callback aware virtual methods
906 void Draw(wxGrid& grid, wxGridCellAttr& attr,
907 wxDC& dc, const wxRect& rect,
908 int row, int col, bool isSelected) {
909 wxPyBeginBlockThreads();
910 if (wxPyCBH_findCallback(m_myInst, "Draw")) {
911 PyObject* go = wxPyMake_wxObject(&grid);
912 PyObject* dco = wxPyMake_wxObject(&dc);
913 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
914 PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0);
915
916 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro,
917 row, col, isSelected));
918 Py_DECREF(go);
919 Py_DECREF(ao);
920 Py_DECREF(dco);
921 Py_DECREF(ro);
922 }
923 wxPyEndBlockThreads();
924 }
925
926 wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
927 int row, int col) {
928 wxSize rval;
929 wxPyBeginBlockThreads();
930 if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) {
931 PyObject* ro;
932 wxSize* ptr;
933 PyObject* go = wxPyMake_wxObject(&grid);
934 PyObject* dco = wxPyMake_wxObject(&dc);
935 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
936
937 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)",
938 go, ao, dco,
939 row, col));
940 Py_DECREF(go);
941 Py_DECREF(ao);
942 Py_DECREF(dco);
943
944 if (ro) {
945 const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object.";
946 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) {
947 rval = *ptr;
948 }
949 else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) {
950 PyObject* o1 = PySequence_GetItem(ro, 0);
951 PyObject* o2 = PySequence_GetItem(ro, 1);
952 if (PyNumber_Check(o1) && PyNumber_Check(o2))
953 rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2));
954 else
955 PyErr_SetString(PyExc_TypeError, errmsg);
956 Py_DECREF(o1);
957 Py_DECREF(o2);
958 }
959 else {
960 PyErr_SetString(PyExc_TypeError, errmsg);
961 }
962 Py_DECREF(ro);
963 }
964 }
965 wxPyEndBlockThreads();
966 return rval;
967 }
968
969
970 wxGridCellRenderer *Clone() const {
971 wxGridCellRenderer* rval = NULL;
972 wxPyBeginBlockThreads();
973 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
974 PyObject* ro;
975 wxGridCellRenderer* ptr;
976 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
977 if (ro) {
978 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer")))
979 rval = ptr;
980 Py_DECREF(ro);
981 }
982 }
983 wxPyEndBlockThreads();
984 return rval;
985 }
986
987 DEC_PYCALLBACK__STRING(SetParameters);
988
989 PYPRIVATE;
990 };
991
992 IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters);
993
994
995 void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){
996 self->SetClientObject(new wxPyOORClientData(_self));
997 }
998
999 class wxPyGridCellEditor : public wxGridCellEditor
1000 {
1001 public:
1002 wxPyGridCellEditor() : wxGridCellEditor() {}
1003
1004 void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) {
1005 wxPyBeginBlockThreads();
1006 if (wxPyCBH_findCallback(m_myInst, "Create")) {
1007 PyObject* po = wxPyMake_wxObject(parent);
1008 PyObject* eo = wxPyMake_wxObject(evtHandler);
1009
1010 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo));
1011 Py_DECREF(po);
1012 Py_DECREF(eo);
1013 }
1014 wxPyEndBlockThreads();
1015 }
1016
1017
1018 void BeginEdit(int row, int col, wxGrid* grid) {
1019 wxPyBeginBlockThreads();
1020 if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) {
1021 PyObject* go = wxPyMake_wxObject(grid);
1022 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
1023 Py_DECREF(go);
1024 }
1025 wxPyEndBlockThreads();
1026 }
1027
1028
1029 bool EndEdit(int row, int col, wxGrid* grid) {
1030 bool rv = False;
1031 wxPyBeginBlockThreads();
1032 if (wxPyCBH_findCallback(m_myInst, "EndEdit")) {
1033 PyObject* go = wxPyMake_wxObject(grid);
1034 rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
1035 Py_DECREF(go);
1036 }
1037 wxPyEndBlockThreads();
1038 return rv;
1039 }
1040
1041
1042 wxGridCellEditor* Clone() const {
1043 wxGridCellEditor* rval = NULL;
1044 wxPyBeginBlockThreads();
1045 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
1046 PyObject* ro;
1047 wxGridCellEditor* ptr;
1048 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1049 if (ro) {
1050 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor")))
1051 rval = ptr;
1052 Py_DECREF(ro);
1053 }
1054 }
1055 wxPyEndBlockThreads();
1056 return rval;
1057 }
1058
1059
1060 void Show(bool show, wxGridCellAttr *attr) {
1061 bool found;
1062 wxPyBeginBlockThreads();
1063 if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) {
1064 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
1065 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao));
1066 Py_DECREF(ao);
1067 }
1068 wxPyEndBlockThreads();
1069 if (! found)
1070 wxGridCellEditor::Show(show, attr);
1071 }
1072 void base_Show(bool show, wxGridCellAttr *attr) {
1073 wxGridCellEditor::Show(show, attr);
1074 }
1075
1076
1077 void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
1078 bool found;
1079 wxPyBeginBlockThreads();
1080 if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) {
1081 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
1082 PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0);
1083
1084 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao));
1085
1086 Py_DECREF(ro);
1087 Py_DECREF(ao);
1088 }
1089 wxPyEndBlockThreads();
1090 if (! found)
1091 wxGridCellEditor::PaintBackground(rectCell, attr);
1092 }
1093 void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
1094 wxGridCellEditor::PaintBackground(rectCell, attr);
1095 }
1096
1097
1098 DEC_PYCALLBACK___pure(Reset);
1099 DEC_PYCALLBACK__constany(SetSize, wxRect);
1100 DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent);
1101 DEC_PYCALLBACK__any(StartingKey, wxKeyEvent);
1102 DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent);
1103 DEC_PYCALLBACK__(StartingClick);
1104 DEC_PYCALLBACK__(Destroy);
1105 DEC_PYCALLBACK__STRING(SetParameters);
1106 DEC_PYCALLBACK_STRING__constpure(GetValue);
1107
1108 PYPRIVATE;
1109 };
1110
1111
1112 IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters);
1113 IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset);
1114 IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect);
1115 IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent);
1116 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent);
1117 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
1118 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
1119 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy);
1120 IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue);
1121
1122
1123 void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){
1124 self->SetClientObject(new wxPyOORClientData(_self));
1125 }
1126
1127 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
1128 PyObject* o2;
1129 PyObject* o3;
1130
1131 if (!target) {
1132 target = o;
1133 } else if (target == Py_None) {
1134 Py_DECREF(Py_None);
1135 target = o;
1136 } else {
1137 if (!PyTuple_Check(target)) {
1138 o2 = target;
1139 target = PyTuple_New(1);
1140 PyTuple_SetItem(target, 0, o2);
1141 }
1142 o3 = PyTuple_New(1);
1143 PyTuple_SetItem(o3, 0, o);
1144
1145 o2 = target;
1146 target = PySequence_Concat(o2, o3);
1147 Py_DECREF(o2);
1148 Py_DECREF(o3);
1149 }
1150 return target;
1151 }
1152
1153 void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){
1154 self->SetClientObject(new wxPyOORClientData(_self));
1155 }
1156
1157 class wxPyGridCellAttrProvider : public wxGridCellAttrProvider
1158 {
1159 public:
1160 wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {};
1161
1162 PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr);
1163 PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr);
1164 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr);
1165 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr);
1166
1167 PYPRIVATE;
1168 };
1169
1170 void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){
1171 self->SetClientObject(new wxPyOORClientData(_self));
1172 }
1173
1174 class wxPyGridTableBase : public wxGridTableBase
1175 {
1176 public:
1177 wxPyGridTableBase() : wxGridTableBase() {}
1178
1179 PYCALLBACK_INT__pure(GetNumberRows);
1180 PYCALLBACK_INT__pure(GetNumberCols);
1181 PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell);
1182 PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName);
1183 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs);
1184 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs);
1185 PYCALLBACK__(wxGridTableBase, Clear);
1186 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows);
1187 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows);
1188 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols);
1189 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols);
1190 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows);
1191 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols);
1192 PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue);
1193 PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue);
1194 PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue);
1195 PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue);
1196 PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes);
1197 PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr);
1198 PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr);
1199 PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr);
1200 PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr);
1201
1202
1203 wxString GetValue(int row, int col) {
1204 wxPyBeginBlockThreads();
1205 wxString rval;
1206 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1207 PyObject* ro;
1208 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col));
1209 if (ro) {
1210 rval = Py2wxString(ro);
1211 Py_DECREF(ro);
1212 }
1213 }
1214 wxPyEndBlockThreads();
1215 return rval;
1216 }
1217
1218 void SetValue(int row, int col, const wxString& val) {
1219 wxPyBeginBlockThreads();
1220 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1221 PyObject* s = wx2PyString(val);
1222 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s));
1223 Py_DECREF(s);
1224 }
1225 wxPyEndBlockThreads();
1226 }
1227
1228
1229 // Map the Get/Set methods for the standard non-string types to
1230 // the GetValue and SetValue python methods.
1231 long GetValueAsLong( int row, int col ) {
1232 long rval = 0;
1233 wxPyBeginBlockThreads();
1234 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1235 PyObject* ro;
1236 PyObject* num;
1237 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1238 if (ro && PyNumber_Check(ro)) {
1239 num = PyNumber_Int(ro);
1240 if (num) {
1241 rval = PyInt_AsLong(num);
1242 Py_DECREF(num);
1243 }
1244 Py_DECREF(ro);
1245 }
1246 }
1247 wxPyEndBlockThreads();
1248 return rval;
1249 }
1250
1251 double GetValueAsDouble( int row, int col ) {
1252 double rval = 0.0;
1253 wxPyBeginBlockThreads();
1254 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1255 PyObject* ro;
1256 PyObject* num;
1257 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1258 if (ro && PyNumber_Check(ro)) {
1259 num = PyNumber_Float(ro);
1260 if (num) {
1261 rval = PyFloat_AsDouble(num);
1262 Py_DECREF(num);
1263 }
1264 Py_DECREF(ro);
1265 }
1266 }
1267 wxPyEndBlockThreads();
1268 return rval;
1269 }
1270
1271 bool GetValueAsBool( int row, int col ) {
1272 return (bool)GetValueAsLong(row, col);
1273 }
1274
1275 void SetValueAsLong( int row, int col, long value ) {
1276 wxPyBeginBlockThreads();
1277 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1278 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value));
1279 }
1280 wxPyEndBlockThreads();
1281 }
1282
1283 void SetValueAsDouble( int row, int col, double value ) {
1284 wxPyBeginBlockThreads();
1285 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1286 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value));
1287 }
1288 wxPyEndBlockThreads();
1289 }
1290
1291 void SetValueAsBool( int row, int col, bool value ) {
1292 SetValueAsLong( row, col, (long)value );
1293 }
1294
1295
1296 PYPRIVATE;
1297 };
1298
1299 void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; }
1300 PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){
1301 PyObject* tup = PyTuple_New(2);
1302 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1303 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1304 return tup;
1305 }
1306
1307 bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) {
1308
1309 // If source is an object instance then it may already be the right type
1310 if (wxPySwigInstance_Check(source)) {
1311 wxGridCellCoords* ptr;
1312 if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1313 goto error;
1314 *obj = ptr;
1315 return True;
1316 }
1317 // otherwise a 2-tuple of integers is expected
1318 else if (PySequence_Check(source) && PyObject_Length(source) == 2) {
1319 PyObject* o1 = PySequence_GetItem(source, 0);
1320 PyObject* o2 = PySequence_GetItem(source, 1);
1321 if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) {
1322 Py_DECREF(o1);
1323 Py_DECREF(o2);
1324 goto error;
1325 }
1326 **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2));
1327 Py_DECREF(o1);
1328 Py_DECREF(o2);
1329 return True;
1330 }
1331
1332 error:
1333 PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object.");
1334 return False;
1335 }
1336
1337
1338 bool wxGridCellCoords_typecheck(PyObject* source) {
1339 void* ptr;
1340
1341 if (wxPySwigInstance_Check(source) &&
1342 wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1343 return True;
1344
1345 PyErr_Clear();
1346 if (PySequence_Check(source) && PySequence_Length(source) == 2)
1347 return True;
1348
1349 return False;
1350 }
1351
1352
1353 PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source)
1354 {
1355 PyObject* list = PyList_New(0);
1356 size_t idx;
1357 for (idx = 0; idx < source.GetCount(); idx += 1) {
1358 wxGridCellCoords& coord = source.Item(idx);
1359 PyObject* tup = PyTuple_New(2);
1360 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow()));
1361 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol()));
1362 PyList_Append(list, tup);
1363 Py_DECREF(tup);
1364 }
1365 return list;
1366 }
1367
1368
1369 typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES;
1370
1371 wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){
1372 wxGridCellCoords rv;
1373 self->XYToCell(x, y, rv);
1374 return rv;
1375 }
1376 #ifdef __cplusplus
1377 extern "C" {
1378 #endif
1379 static int _wrap_DateTimeFormatStr_set(PyObject *_val) {
1380 PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only.");
1381 return 1;
1382 }
1383
1384
1385 static PyObject *_wrap_DateTimeFormatStr_get() {
1386 PyObject *pyobj;
1387
1388 {
1389 #if wxUSE_UNICODE
1390 pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len());
1391 #else
1392 pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len());
1393 #endif
1394 }
1395 return pyobj;
1396 }
1397
1398
1399 static int _wrap_GridNoCellCoords_set(PyObject *_val) {
1400 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only.");
1401 return 1;
1402 }
1403
1404
1405 static PyObject *_wrap_GridNoCellCoords_get() {
1406 PyObject *pyobj;
1407
1408 pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellCoords, SWIGTYPE_p_wxGridCellCoords, 0);
1409 return pyobj;
1410 }
1411
1412
1413 static int _wrap_GridNoCellRect_set(PyObject *_val) {
1414 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only.");
1415 return 1;
1416 }
1417
1418
1419 static PyObject *_wrap_GridNoCellRect_get() {
1420 PyObject *pyobj;
1421
1422 pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellRect, SWIGTYPE_p_wxRect, 0);
1423 return pyobj;
1424 }
1425
1426
1427 static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1428 PyObject *resultobj;
1429 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1430 PyObject *arg2 = (PyObject *) 0 ;
1431 PyObject * obj0 = 0 ;
1432 PyObject * obj1 = 0 ;
1433 char *kwnames[] = {
1434 (char *) "self",(char *) "_self", NULL
1435 };
1436
1437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
1438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1439 arg2 = obj1;
1440 {
1441 PyThreadState* __tstate = wxPyBeginAllowThreads();
1442 wxGridCellRenderer__setOORInfo(arg1,arg2);
1443
1444 wxPyEndAllowThreads(__tstate);
1445 if (PyErr_Occurred()) SWIG_fail;
1446 }
1447 Py_INCREF(Py_None); resultobj = Py_None;
1448 return resultobj;
1449 fail:
1450 return NULL;
1451 }
1452
1453
1454 static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1455 PyObject *resultobj;
1456 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1457 wxString *arg2 = 0 ;
1458 bool temp2 = False ;
1459 PyObject * obj0 = 0 ;
1460 PyObject * obj1 = 0 ;
1461 char *kwnames[] = {
1462 (char *) "self",(char *) "params", NULL
1463 };
1464
1465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1467 {
1468 arg2 = wxString_in_helper(obj1);
1469 if (arg2 == NULL) SWIG_fail;
1470 temp2 = True;
1471 }
1472 {
1473 PyThreadState* __tstate = wxPyBeginAllowThreads();
1474 (arg1)->SetParameters((wxString const &)*arg2);
1475
1476 wxPyEndAllowThreads(__tstate);
1477 if (PyErr_Occurred()) SWIG_fail;
1478 }
1479 Py_INCREF(Py_None); resultobj = Py_None;
1480 {
1481 if (temp2)
1482 delete arg2;
1483 }
1484 return resultobj;
1485 fail:
1486 {
1487 if (temp2)
1488 delete arg2;
1489 }
1490 return NULL;
1491 }
1492
1493
1494 static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1495 PyObject *resultobj;
1496 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1497 PyObject * obj0 = 0 ;
1498 char *kwnames[] = {
1499 (char *) "self", NULL
1500 };
1501
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail;
1503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1504 {
1505 PyThreadState* __tstate = wxPyBeginAllowThreads();
1506 (arg1)->IncRef();
1507
1508 wxPyEndAllowThreads(__tstate);
1509 if (PyErr_Occurred()) SWIG_fail;
1510 }
1511 Py_INCREF(Py_None); resultobj = Py_None;
1512 return resultobj;
1513 fail:
1514 return NULL;
1515 }
1516
1517
1518 static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1519 PyObject *resultobj;
1520 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1521 PyObject * obj0 = 0 ;
1522 char *kwnames[] = {
1523 (char *) "self", NULL
1524 };
1525
1526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail;
1527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1528 {
1529 PyThreadState* __tstate = wxPyBeginAllowThreads();
1530 (arg1)->DecRef();
1531
1532 wxPyEndAllowThreads(__tstate);
1533 if (PyErr_Occurred()) SWIG_fail;
1534 }
1535 Py_INCREF(Py_None); resultobj = Py_None;
1536 return resultobj;
1537 fail:
1538 return NULL;
1539 }
1540
1541
1542 static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
1543 PyObject *resultobj;
1544 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1545 wxGrid *arg2 = 0 ;
1546 wxGridCellAttr *arg3 = 0 ;
1547 wxDC *arg4 = 0 ;
1548 wxRect *arg5 = 0 ;
1549 int arg6 ;
1550 int arg7 ;
1551 bool arg8 ;
1552 wxRect temp5 ;
1553 PyObject * obj0 = 0 ;
1554 PyObject * obj1 = 0 ;
1555 PyObject * obj2 = 0 ;
1556 PyObject * obj3 = 0 ;
1557 PyObject * obj4 = 0 ;
1558 PyObject * obj7 = 0 ;
1559 char *kwnames[] = {
1560 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL
1561 };
1562
1563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOiiO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7)) goto fail;
1564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1565 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1566 if (arg2 == NULL) {
1567 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1568 }
1569 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1570 if (arg3 == NULL) {
1571 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1572 }
1573 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1574 if (arg4 == NULL) {
1575 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1576 }
1577 {
1578 arg5 = &temp5;
1579 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
1580 }
1581 {
1582 arg8 = (bool) SPyObj_AsBool(obj7);
1583 if (PyErr_Occurred()) SWIG_fail;
1584 }
1585 {
1586 PyThreadState* __tstate = wxPyBeginAllowThreads();
1587 (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8);
1588
1589 wxPyEndAllowThreads(__tstate);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 }
1592 Py_INCREF(Py_None); resultobj = Py_None;
1593 return resultobj;
1594 fail:
1595 return NULL;
1596 }
1597
1598
1599 static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1600 PyObject *resultobj;
1601 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1602 wxGrid *arg2 = 0 ;
1603 wxGridCellAttr *arg3 = 0 ;
1604 wxDC *arg4 = 0 ;
1605 int arg5 ;
1606 int arg6 ;
1607 wxSize result;
1608 PyObject * obj0 = 0 ;
1609 PyObject * obj1 = 0 ;
1610 PyObject * obj2 = 0 ;
1611 PyObject * obj3 = 0 ;
1612 char *kwnames[] = {
1613 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL
1614 };
1615
1616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOii:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
1617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1618 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1619 if (arg2 == NULL) {
1620 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1621 }
1622 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1623 if (arg3 == NULL) {
1624 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1625 }
1626 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1627 if (arg4 == NULL) {
1628 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1629 }
1630 {
1631 PyThreadState* __tstate = wxPyBeginAllowThreads();
1632 result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6);
1633
1634 wxPyEndAllowThreads(__tstate);
1635 if (PyErr_Occurred()) SWIG_fail;
1636 }
1637 {
1638 wxSize * resultptr;
1639 resultptr = new wxSize((wxSize &) result);
1640 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1641 }
1642 return resultobj;
1643 fail:
1644 return NULL;
1645 }
1646
1647
1648 static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
1649 PyObject *resultobj;
1650 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1651 wxGridCellRenderer *result;
1652 PyObject * obj0 = 0 ;
1653 char *kwnames[] = {
1654 (char *) "self", NULL
1655 };
1656
1657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail;
1658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1659 {
1660 PyThreadState* __tstate = wxPyBeginAllowThreads();
1661 result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone();
1662
1663 wxPyEndAllowThreads(__tstate);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 }
1666 {
1667 resultobj = wxPyMake_wxGridCellRenderer(result);
1668 }
1669 return resultobj;
1670 fail:
1671 return NULL;
1672 }
1673
1674
1675 static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1676 PyObject *obj;
1677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1678 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj);
1679 Py_INCREF(obj);
1680 return Py_BuildValue((char *)"");
1681 }
1682 static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1683 PyObject *resultobj;
1684 wxPyGridCellRenderer *result;
1685 char *kwnames[] = {
1686 NULL
1687 };
1688
1689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail;
1690 {
1691 PyThreadState* __tstate = wxPyBeginAllowThreads();
1692 result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer();
1693
1694 wxPyEndAllowThreads(__tstate);
1695 if (PyErr_Occurred()) SWIG_fail;
1696 }
1697 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellRenderer, 1);
1698 return resultobj;
1699 fail:
1700 return NULL;
1701 }
1702
1703
1704 static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1705 PyObject *resultobj;
1706 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1707 PyObject *arg2 = (PyObject *) 0 ;
1708 PyObject *arg3 = (PyObject *) 0 ;
1709 PyObject * obj0 = 0 ;
1710 PyObject * obj1 = 0 ;
1711 PyObject * obj2 = 0 ;
1712 char *kwnames[] = {
1713 (char *) "self",(char *) "self",(char *) "_class", NULL
1714 };
1715
1716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
1717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1718 arg2 = obj1;
1719 arg3 = obj2;
1720 {
1721 PyThreadState* __tstate = wxPyBeginAllowThreads();
1722 (arg1)->_setCallbackInfo(arg2,arg3);
1723
1724 wxPyEndAllowThreads(__tstate);
1725 if (PyErr_Occurred()) SWIG_fail;
1726 }
1727 Py_INCREF(Py_None); resultobj = Py_None;
1728 return resultobj;
1729 fail:
1730 return NULL;
1731 }
1732
1733
1734 static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1735 PyObject *resultobj;
1736 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1737 wxString *arg2 = 0 ;
1738 bool temp2 = False ;
1739 PyObject * obj0 = 0 ;
1740 PyObject * obj1 = 0 ;
1741 char *kwnames[] = {
1742 (char *) "self",(char *) "params", NULL
1743 };
1744
1745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1747 {
1748 arg2 = wxString_in_helper(obj1);
1749 if (arg2 == NULL) SWIG_fail;
1750 temp2 = True;
1751 }
1752 {
1753 PyThreadState* __tstate = wxPyBeginAllowThreads();
1754 (arg1)->base_SetParameters((wxString const &)*arg2);
1755
1756 wxPyEndAllowThreads(__tstate);
1757 if (PyErr_Occurred()) SWIG_fail;
1758 }
1759 Py_INCREF(Py_None); resultobj = Py_None;
1760 {
1761 if (temp2)
1762 delete arg2;
1763 }
1764 return resultobj;
1765 fail:
1766 {
1767 if (temp2)
1768 delete arg2;
1769 }
1770 return NULL;
1771 }
1772
1773
1774 static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1775 PyObject *obj;
1776 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1777 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj);
1778 Py_INCREF(obj);
1779 return Py_BuildValue((char *)"");
1780 }
1781 static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1782 PyObject *resultobj;
1783 wxGridCellStringRenderer *result;
1784 char *kwnames[] = {
1785 NULL
1786 };
1787
1788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail;
1789 {
1790 PyThreadState* __tstate = wxPyBeginAllowThreads();
1791 result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer();
1792
1793 wxPyEndAllowThreads(__tstate);
1794 if (PyErr_Occurred()) SWIG_fail;
1795 }
1796 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellStringRenderer, 1);
1797 return resultobj;
1798 fail:
1799 return NULL;
1800 }
1801
1802
1803 static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) {
1804 PyObject *obj;
1805 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1806 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj);
1807 Py_INCREF(obj);
1808 return Py_BuildValue((char *)"");
1809 }
1810 static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1811 PyObject *resultobj;
1812 wxGridCellNumberRenderer *result;
1813 char *kwnames[] = {
1814 NULL
1815 };
1816
1817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail;
1818 {
1819 PyThreadState* __tstate = wxPyBeginAllowThreads();
1820 result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer();
1821
1822 wxPyEndAllowThreads(__tstate);
1823 if (PyErr_Occurred()) SWIG_fail;
1824 }
1825 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberRenderer, 1);
1826 return resultobj;
1827 fail:
1828 return NULL;
1829 }
1830
1831
1832 static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) {
1833 PyObject *obj;
1834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1835 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj);
1836 Py_INCREF(obj);
1837 return Py_BuildValue((char *)"");
1838 }
1839 static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1840 PyObject *resultobj;
1841 int arg1 = (int) -1 ;
1842 int arg2 = (int) -1 ;
1843 wxGridCellFloatRenderer *result;
1844 char *kwnames[] = {
1845 (char *) "width",(char *) "precision", NULL
1846 };
1847
1848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellFloatRenderer",kwnames,&arg1,&arg2)) goto fail;
1849 {
1850 PyThreadState* __tstate = wxPyBeginAllowThreads();
1851 result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2);
1852
1853 wxPyEndAllowThreads(__tstate);
1854 if (PyErr_Occurred()) SWIG_fail;
1855 }
1856 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatRenderer, 1);
1857 return resultobj;
1858 fail:
1859 return NULL;
1860 }
1861
1862
1863 static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1864 PyObject *resultobj;
1865 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1866 int result;
1867 PyObject * obj0 = 0 ;
1868 char *kwnames[] = {
1869 (char *) "self", NULL
1870 };
1871
1872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail;
1873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1874 {
1875 PyThreadState* __tstate = wxPyBeginAllowThreads();
1876 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth();
1877
1878 wxPyEndAllowThreads(__tstate);
1879 if (PyErr_Occurred()) SWIG_fail;
1880 }
1881 resultobj = PyInt_FromLong((long)result);
1882 return resultobj;
1883 fail:
1884 return NULL;
1885 }
1886
1887
1888 static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1889 PyObject *resultobj;
1890 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1891 int arg2 ;
1892 PyObject * obj0 = 0 ;
1893 char *kwnames[] = {
1894 (char *) "self",(char *) "width", NULL
1895 };
1896
1897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1899 {
1900 PyThreadState* __tstate = wxPyBeginAllowThreads();
1901 (arg1)->SetWidth(arg2);
1902
1903 wxPyEndAllowThreads(__tstate);
1904 if (PyErr_Occurred()) SWIG_fail;
1905 }
1906 Py_INCREF(Py_None); resultobj = Py_None;
1907 return resultobj;
1908 fail:
1909 return NULL;
1910 }
1911
1912
1913 static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
1914 PyObject *resultobj;
1915 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1916 int result;
1917 PyObject * obj0 = 0 ;
1918 char *kwnames[] = {
1919 (char *) "self", NULL
1920 };
1921
1922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail;
1923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision();
1927
1928 wxPyEndAllowThreads(__tstate);
1929 if (PyErr_Occurred()) SWIG_fail;
1930 }
1931 resultobj = PyInt_FromLong((long)result);
1932 return resultobj;
1933 fail:
1934 return NULL;
1935 }
1936
1937
1938 static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
1939 PyObject *resultobj;
1940 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1941 int arg2 ;
1942 PyObject * obj0 = 0 ;
1943 char *kwnames[] = {
1944 (char *) "self",(char *) "precision", NULL
1945 };
1946
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&arg2)) goto fail;
1948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1949 {
1950 PyThreadState* __tstate = wxPyBeginAllowThreads();
1951 (arg1)->SetPrecision(arg2);
1952
1953 wxPyEndAllowThreads(__tstate);
1954 if (PyErr_Occurred()) SWIG_fail;
1955 }
1956 Py_INCREF(Py_None); resultobj = Py_None;
1957 return resultobj;
1958 fail:
1959 return NULL;
1960 }
1961
1962
1963 static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) {
1964 PyObject *obj;
1965 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1966 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj);
1967 Py_INCREF(obj);
1968 return Py_BuildValue((char *)"");
1969 }
1970 static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1971 PyObject *resultobj;
1972 wxGridCellBoolRenderer *result;
1973 char *kwnames[] = {
1974 NULL
1975 };
1976
1977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail;
1978 {
1979 PyThreadState* __tstate = wxPyBeginAllowThreads();
1980 result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer();
1981
1982 wxPyEndAllowThreads(__tstate);
1983 if (PyErr_Occurred()) SWIG_fail;
1984 }
1985 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolRenderer, 1);
1986 return resultobj;
1987 fail:
1988 return NULL;
1989 }
1990
1991
1992 static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) {
1993 PyObject *obj;
1994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1995 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj);
1996 Py_INCREF(obj);
1997 return Py_BuildValue((char *)"");
1998 }
1999 static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2000 PyObject *resultobj;
2001 wxString arg1 = (wxString) wxPyDateTimeFormatStr ;
2002 wxString arg2 = (wxString) wxPyDateTimeFormatStr ;
2003 wxGridCellDateTimeRenderer *result;
2004 PyObject * obj0 = 0 ;
2005 PyObject * obj1 = 0 ;
2006 char *kwnames[] = {
2007 (char *) "outformat",(char *) "informat", NULL
2008 };
2009
2010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail;
2011 if (obj0) {
2012 {
2013 wxString* sptr = wxString_in_helper(obj0);
2014 if (sptr == NULL) SWIG_fail;
2015 arg1 = *sptr;
2016 delete sptr;
2017 }
2018 }
2019 if (obj1) {
2020 {
2021 wxString* sptr = wxString_in_helper(obj1);
2022 if (sptr == NULL) SWIG_fail;
2023 arg2 = *sptr;
2024 delete sptr;
2025 }
2026 }
2027 {
2028 PyThreadState* __tstate = wxPyBeginAllowThreads();
2029 result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2);
2030
2031 wxPyEndAllowThreads(__tstate);
2032 if (PyErr_Occurred()) SWIG_fail;
2033 }
2034 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellDateTimeRenderer, 1);
2035 return resultobj;
2036 fail:
2037 return NULL;
2038 }
2039
2040
2041 static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) {
2042 PyObject *obj;
2043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2044 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj);
2045 Py_INCREF(obj);
2046 return Py_BuildValue((char *)"");
2047 }
2048 static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2049 PyObject *resultobj;
2050 wxString const &arg1_defvalue = wxPyEmptyString ;
2051 wxString *arg1 = (wxString *) &arg1_defvalue ;
2052 wxGridCellEnumRenderer *result;
2053 bool temp1 = False ;
2054 PyObject * obj0 = 0 ;
2055 char *kwnames[] = {
2056 (char *) "choices", NULL
2057 };
2058
2059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail;
2060 if (obj0) {
2061 {
2062 arg1 = wxString_in_helper(obj0);
2063 if (arg1 == NULL) SWIG_fail;
2064 temp1 = True;
2065 }
2066 }
2067 {
2068 PyThreadState* __tstate = wxPyBeginAllowThreads();
2069 result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1);
2070
2071 wxPyEndAllowThreads(__tstate);
2072 if (PyErr_Occurred()) SWIG_fail;
2073 }
2074 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumRenderer, 1);
2075 {
2076 if (temp1)
2077 delete arg1;
2078 }
2079 return resultobj;
2080 fail:
2081 {
2082 if (temp1)
2083 delete arg1;
2084 }
2085 return NULL;
2086 }
2087
2088
2089 static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) {
2090 PyObject *obj;
2091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2092 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj);
2093 Py_INCREF(obj);
2094 return Py_BuildValue((char *)"");
2095 }
2096 static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2097 PyObject *resultobj;
2098 wxGridCellAutoWrapStringRenderer *result;
2099 char *kwnames[] = {
2100 NULL
2101 };
2102
2103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail;
2104 {
2105 PyThreadState* __tstate = wxPyBeginAllowThreads();
2106 result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer();
2107
2108 wxPyEndAllowThreads(__tstate);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 }
2111 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1);
2112 return resultobj;
2113 fail:
2114 return NULL;
2115 }
2116
2117
2118 static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) {
2119 PyObject *obj;
2120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2121 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj);
2122 Py_INCREF(obj);
2123 return Py_BuildValue((char *)"");
2124 }
2125 static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2126 PyObject *resultobj;
2127 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2128 PyObject *arg2 = (PyObject *) 0 ;
2129 PyObject * obj0 = 0 ;
2130 PyObject * obj1 = 0 ;
2131 char *kwnames[] = {
2132 (char *) "self",(char *) "_self", NULL
2133 };
2134
2135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
2136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2137 arg2 = obj1;
2138 {
2139 PyThreadState* __tstate = wxPyBeginAllowThreads();
2140 wxGridCellEditor__setOORInfo(arg1,arg2);
2141
2142 wxPyEndAllowThreads(__tstate);
2143 if (PyErr_Occurred()) SWIG_fail;
2144 }
2145 Py_INCREF(Py_None); resultobj = Py_None;
2146 return resultobj;
2147 fail:
2148 return NULL;
2149 }
2150
2151
2152 static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) {
2153 PyObject *resultobj;
2154 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2155 bool result;
2156 PyObject * obj0 = 0 ;
2157 char *kwnames[] = {
2158 (char *) "self", NULL
2159 };
2160
2161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail;
2162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2163 {
2164 PyThreadState* __tstate = wxPyBeginAllowThreads();
2165 result = (bool)(arg1)->IsCreated();
2166
2167 wxPyEndAllowThreads(__tstate);
2168 if (PyErr_Occurred()) SWIG_fail;
2169 }
2170 resultobj = PyInt_FromLong((long)result);
2171 return resultobj;
2172 fail:
2173 return NULL;
2174 }
2175
2176
2177 static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2178 PyObject *resultobj;
2179 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2180 wxControl *result;
2181 PyObject * obj0 = 0 ;
2182 char *kwnames[] = {
2183 (char *) "self", NULL
2184 };
2185
2186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail;
2187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2188 {
2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
2190 result = (wxControl *)(arg1)->GetControl();
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 }
2195 {
2196 resultobj = wxPyMake_wxObject(result);
2197 }
2198 return resultobj;
2199 fail:
2200 return NULL;
2201 }
2202
2203
2204 static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2205 PyObject *resultobj;
2206 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2207 wxControl *arg2 = (wxControl *) 0 ;
2208 PyObject * obj0 = 0 ;
2209 PyObject * obj1 = 0 ;
2210 char *kwnames[] = {
2211 (char *) "self",(char *) "control", NULL
2212 };
2213
2214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail;
2215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2216 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2217 {
2218 PyThreadState* __tstate = wxPyBeginAllowThreads();
2219 (arg1)->SetControl(arg2);
2220
2221 wxPyEndAllowThreads(__tstate);
2222 if (PyErr_Occurred()) SWIG_fail;
2223 }
2224 Py_INCREF(Py_None); resultobj = Py_None;
2225 return resultobj;
2226 fail:
2227 return NULL;
2228 }
2229
2230
2231 static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2232 PyObject *resultobj;
2233 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2234 wxGridCellAttr *result;
2235 PyObject * obj0 = 0 ;
2236 char *kwnames[] = {
2237 (char *) "self", NULL
2238 };
2239
2240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail;
2241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2242 {
2243 PyThreadState* __tstate = wxPyBeginAllowThreads();
2244 result = (wxGridCellAttr *)(arg1)->GetCellAttr();
2245
2246 wxPyEndAllowThreads(__tstate);
2247 if (PyErr_Occurred()) SWIG_fail;
2248 }
2249 {
2250 resultobj = wxPyMake_wxGridCellAttr(result);
2251 }
2252 return resultobj;
2253 fail:
2254 return NULL;
2255 }
2256
2257
2258 static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2259 PyObject *resultobj;
2260 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2261 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
2262 PyObject * obj0 = 0 ;
2263 PyObject * obj1 = 0 ;
2264 char *kwnames[] = {
2265 (char *) "self",(char *) "attr", NULL
2266 };
2267
2268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail;
2269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2270 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2271 {
2272 PyThreadState* __tstate = wxPyBeginAllowThreads();
2273 (arg1)->SetCellAttr(arg2);
2274
2275 wxPyEndAllowThreads(__tstate);
2276 if (PyErr_Occurred()) SWIG_fail;
2277 }
2278 Py_INCREF(Py_None); resultobj = Py_None;
2279 return resultobj;
2280 fail:
2281 return NULL;
2282 }
2283
2284
2285 static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
2286 PyObject *resultobj;
2287 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2288 wxString *arg2 = 0 ;
2289 bool temp2 = False ;
2290 PyObject * obj0 = 0 ;
2291 PyObject * obj1 = 0 ;
2292 char *kwnames[] = {
2293 (char *) "self",(char *) "params", NULL
2294 };
2295
2296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail;
2297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2298 {
2299 arg2 = wxString_in_helper(obj1);
2300 if (arg2 == NULL) SWIG_fail;
2301 temp2 = True;
2302 }
2303 {
2304 PyThreadState* __tstate = wxPyBeginAllowThreads();
2305 (arg1)->SetParameters((wxString const &)*arg2);
2306
2307 wxPyEndAllowThreads(__tstate);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2310 Py_INCREF(Py_None); resultobj = Py_None;
2311 {
2312 if (temp2)
2313 delete arg2;
2314 }
2315 return resultobj;
2316 fail:
2317 {
2318 if (temp2)
2319 delete arg2;
2320 }
2321 return NULL;
2322 }
2323
2324
2325 static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2326 PyObject *resultobj;
2327 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2328 PyObject * obj0 = 0 ;
2329 char *kwnames[] = {
2330 (char *) "self", NULL
2331 };
2332
2333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail;
2334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2335 {
2336 PyThreadState* __tstate = wxPyBeginAllowThreads();
2337 (arg1)->IncRef();
2338
2339 wxPyEndAllowThreads(__tstate);
2340 if (PyErr_Occurred()) SWIG_fail;
2341 }
2342 Py_INCREF(Py_None); resultobj = Py_None;
2343 return resultobj;
2344 fail:
2345 return NULL;
2346 }
2347
2348
2349 static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2350 PyObject *resultobj;
2351 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2352 PyObject * obj0 = 0 ;
2353 char *kwnames[] = {
2354 (char *) "self", NULL
2355 };
2356
2357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail;
2358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2359 {
2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2361 (arg1)->DecRef();
2362
2363 wxPyEndAllowThreads(__tstate);
2364 if (PyErr_Occurred()) SWIG_fail;
2365 }
2366 Py_INCREF(Py_None); resultobj = Py_None;
2367 return resultobj;
2368 fail:
2369 return NULL;
2370 }
2371
2372
2373 static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2374 PyObject *resultobj;
2375 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2376 wxWindow *arg2 = (wxWindow *) 0 ;
2377 int arg3 ;
2378 wxEvtHandler *arg4 = (wxEvtHandler *) 0 ;
2379 PyObject * obj0 = 0 ;
2380 PyObject * obj1 = 0 ;
2381 PyObject * obj3 = 0 ;
2382 char *kwnames[] = {
2383 (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL
2384 };
2385
2386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO:GridCellEditor_Create",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2388 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2389 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 (arg1)->Create(arg2,arg3,arg4);
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) SWIG_fail;
2396 }
2397 Py_INCREF(Py_None); resultobj = Py_None;
2398 return resultobj;
2399 fail:
2400 return NULL;
2401 }
2402
2403
2404 static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2405 PyObject *resultobj;
2406 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2407 int arg2 ;
2408 int arg3 ;
2409 wxGrid *arg4 = (wxGrid *) 0 ;
2410 PyObject * obj0 = 0 ;
2411 PyObject * obj3 = 0 ;
2412 char *kwnames[] = {
2413 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2414 };
2415
2416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridCellEditor_BeginEdit",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
2417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2418 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2419 {
2420 PyThreadState* __tstate = wxPyBeginAllowThreads();
2421 (arg1)->BeginEdit(arg2,arg3,arg4);
2422
2423 wxPyEndAllowThreads(__tstate);
2424 if (PyErr_Occurred()) SWIG_fail;
2425 }
2426 Py_INCREF(Py_None); resultobj = Py_None;
2427 return resultobj;
2428 fail:
2429 return NULL;
2430 }
2431
2432
2433 static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2434 PyObject *resultobj;
2435 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2436 int arg2 ;
2437 int arg3 ;
2438 wxGrid *arg4 = (wxGrid *) 0 ;
2439 bool result;
2440 PyObject * obj0 = 0 ;
2441 PyObject * obj3 = 0 ;
2442 char *kwnames[] = {
2443 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2444 };
2445
2446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridCellEditor_EndEdit",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
2447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2448 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2449 {
2450 PyThreadState* __tstate = wxPyBeginAllowThreads();
2451 result = (bool)(arg1)->EndEdit(arg2,arg3,arg4);
2452
2453 wxPyEndAllowThreads(__tstate);
2454 if (PyErr_Occurred()) SWIG_fail;
2455 }
2456 resultobj = PyInt_FromLong((long)result);
2457 return resultobj;
2458 fail:
2459 return NULL;
2460 }
2461
2462
2463 static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
2464 PyObject *resultobj;
2465 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2466 PyObject * obj0 = 0 ;
2467 char *kwnames[] = {
2468 (char *) "self", NULL
2469 };
2470
2471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail;
2472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2473 {
2474 PyThreadState* __tstate = wxPyBeginAllowThreads();
2475 (arg1)->Reset();
2476
2477 wxPyEndAllowThreads(__tstate);
2478 if (PyErr_Occurred()) SWIG_fail;
2479 }
2480 Py_INCREF(Py_None); resultobj = Py_None;
2481 return resultobj;
2482 fail:
2483 return NULL;
2484 }
2485
2486
2487 static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
2488 PyObject *resultobj;
2489 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2490 wxGridCellEditor *result;
2491 PyObject * obj0 = 0 ;
2492 char *kwnames[] = {
2493 (char *) "self", NULL
2494 };
2495
2496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail;
2497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2498 {
2499 PyThreadState* __tstate = wxPyBeginAllowThreads();
2500 result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone();
2501
2502 wxPyEndAllowThreads(__tstate);
2503 if (PyErr_Occurred()) SWIG_fail;
2504 }
2505 {
2506 resultobj = wxPyMake_wxGridCellEditor(result);
2507 }
2508 return resultobj;
2509 fail:
2510 return NULL;
2511 }
2512
2513
2514 static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2515 PyObject *resultobj;
2516 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2517 wxRect *arg2 = 0 ;
2518 wxRect temp2 ;
2519 PyObject * obj0 = 0 ;
2520 PyObject * obj1 = 0 ;
2521 char *kwnames[] = {
2522 (char *) "self",(char *) "rect", NULL
2523 };
2524
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail;
2526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2527 {
2528 arg2 = &temp2;
2529 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2530 }
2531 {
2532 PyThreadState* __tstate = wxPyBeginAllowThreads();
2533 (arg1)->SetSize((wxRect const &)*arg2);
2534
2535 wxPyEndAllowThreads(__tstate);
2536 if (PyErr_Occurred()) SWIG_fail;
2537 }
2538 Py_INCREF(Py_None); resultobj = Py_None;
2539 return resultobj;
2540 fail:
2541 return NULL;
2542 }
2543
2544
2545 static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2546 PyObject *resultobj;
2547 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2548 bool arg2 ;
2549 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2550 PyObject * obj0 = 0 ;
2551 PyObject * obj1 = 0 ;
2552 PyObject * obj2 = 0 ;
2553 char *kwnames[] = {
2554 (char *) "self",(char *) "show",(char *) "attr", NULL
2555 };
2556
2557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2559 {
2560 arg2 = (bool) SPyObj_AsBool(obj1);
2561 if (PyErr_Occurred()) SWIG_fail;
2562 }
2563 if (obj2) {
2564 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2565 }
2566 {
2567 PyThreadState* __tstate = wxPyBeginAllowThreads();
2568 (arg1)->Show(arg2,arg3);
2569
2570 wxPyEndAllowThreads(__tstate);
2571 if (PyErr_Occurred()) SWIG_fail;
2572 }
2573 Py_INCREF(Py_None); resultobj = Py_None;
2574 return resultobj;
2575 fail:
2576 return NULL;
2577 }
2578
2579
2580 static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2581 PyObject *resultobj;
2582 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2583 wxRect *arg2 = 0 ;
2584 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2585 wxRect temp2 ;
2586 PyObject * obj0 = 0 ;
2587 PyObject * obj1 = 0 ;
2588 PyObject * obj2 = 0 ;
2589 char *kwnames[] = {
2590 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2591 };
2592
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2595 {
2596 arg2 = &temp2;
2597 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2598 }
2599 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2600 {
2601 PyThreadState* __tstate = wxPyBeginAllowThreads();
2602 (arg1)->PaintBackground((wxRect const &)*arg2,arg3);
2603
2604 wxPyEndAllowThreads(__tstate);
2605 if (PyErr_Occurred()) SWIG_fail;
2606 }
2607 Py_INCREF(Py_None); resultobj = Py_None;
2608 return resultobj;
2609 fail:
2610 return NULL;
2611 }
2612
2613
2614 static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2617 wxKeyEvent *arg2 = 0 ;
2618 bool result;
2619 PyObject * obj0 = 0 ;
2620 PyObject * obj1 = 0 ;
2621 char *kwnames[] = {
2622 (char *) "self",(char *) "event", NULL
2623 };
2624
2625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2627 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2628 if (arg2 == NULL) {
2629 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2630 }
2631 {
2632 PyThreadState* __tstate = wxPyBeginAllowThreads();
2633 result = (bool)(arg1)->IsAcceptedKey(*arg2);
2634
2635 wxPyEndAllowThreads(__tstate);
2636 if (PyErr_Occurred()) SWIG_fail;
2637 }
2638 resultobj = PyInt_FromLong((long)result);
2639 return resultobj;
2640 fail:
2641 return NULL;
2642 }
2643
2644
2645 static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2646 PyObject *resultobj;
2647 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2648 wxKeyEvent *arg2 = 0 ;
2649 PyObject * obj0 = 0 ;
2650 PyObject * obj1 = 0 ;
2651 char *kwnames[] = {
2652 (char *) "self",(char *) "event", NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2657 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2658 if (arg2 == NULL) {
2659 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2660 }
2661 {
2662 PyThreadState* __tstate = wxPyBeginAllowThreads();
2663 (arg1)->StartingKey(*arg2);
2664
2665 wxPyEndAllowThreads(__tstate);
2666 if (PyErr_Occurred()) SWIG_fail;
2667 }
2668 Py_INCREF(Py_None); resultobj = Py_None;
2669 return resultobj;
2670 fail:
2671 return NULL;
2672 }
2673
2674
2675 static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2676 PyObject *resultobj;
2677 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2678 PyObject * obj0 = 0 ;
2679 char *kwnames[] = {
2680 (char *) "self", NULL
2681 };
2682
2683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail;
2684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2685 {
2686 PyThreadState* __tstate = wxPyBeginAllowThreads();
2687 (arg1)->StartingClick();
2688
2689 wxPyEndAllowThreads(__tstate);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 Py_INCREF(Py_None); resultobj = Py_None;
2693 return resultobj;
2694 fail:
2695 return NULL;
2696 }
2697
2698
2699 static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2700 PyObject *resultobj;
2701 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2702 wxKeyEvent *arg2 = 0 ;
2703 PyObject * obj0 = 0 ;
2704 PyObject * obj1 = 0 ;
2705 char *kwnames[] = {
2706 (char *) "self",(char *) "event", NULL
2707 };
2708
2709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
2710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2711 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2712 if (arg2 == NULL) {
2713 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2714 }
2715 {
2716 PyThreadState* __tstate = wxPyBeginAllowThreads();
2717 (arg1)->HandleReturn(*arg2);
2718
2719 wxPyEndAllowThreads(__tstate);
2720 if (PyErr_Occurred()) SWIG_fail;
2721 }
2722 Py_INCREF(Py_None); resultobj = Py_None;
2723 return resultobj;
2724 fail:
2725 return NULL;
2726 }
2727
2728
2729 static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2730 PyObject *resultobj;
2731 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2732 PyObject * obj0 = 0 ;
2733 char *kwnames[] = {
2734 (char *) "self", NULL
2735 };
2736
2737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail;
2738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2739 {
2740 PyThreadState* __tstate = wxPyBeginAllowThreads();
2741 (arg1)->Destroy();
2742
2743 wxPyEndAllowThreads(__tstate);
2744 if (PyErr_Occurred()) SWIG_fail;
2745 }
2746 Py_INCREF(Py_None); resultobj = Py_None;
2747 return resultobj;
2748 fail:
2749 return NULL;
2750 }
2751
2752
2753 static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) {
2754 PyObject *obj;
2755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2756 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj);
2757 Py_INCREF(obj);
2758 return Py_BuildValue((char *)"");
2759 }
2760 static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2761 PyObject *resultobj;
2762 wxPyGridCellEditor *result;
2763 char *kwnames[] = {
2764 NULL
2765 };
2766
2767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail;
2768 {
2769 PyThreadState* __tstate = wxPyBeginAllowThreads();
2770 result = (wxPyGridCellEditor *)new wxPyGridCellEditor();
2771
2772 wxPyEndAllowThreads(__tstate);
2773 if (PyErr_Occurred()) SWIG_fail;
2774 }
2775 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellEditor, 1);
2776 return resultobj;
2777 fail:
2778 return NULL;
2779 }
2780
2781
2782 static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2783 PyObject *resultobj;
2784 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2785 PyObject *arg2 = (PyObject *) 0 ;
2786 PyObject *arg3 = (PyObject *) 0 ;
2787 PyObject * obj0 = 0 ;
2788 PyObject * obj1 = 0 ;
2789 PyObject * obj2 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "self",(char *) "self",(char *) "_class", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
2795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2796 arg2 = obj1;
2797 arg3 = obj2;
2798 {
2799 PyThreadState* __tstate = wxPyBeginAllowThreads();
2800 (arg1)->_setCallbackInfo(arg2,arg3);
2801
2802 wxPyEndAllowThreads(__tstate);
2803 if (PyErr_Occurred()) SWIG_fail;
2804 }
2805 Py_INCREF(Py_None); resultobj = Py_None;
2806 return resultobj;
2807 fail:
2808 return NULL;
2809 }
2810
2811
2812 static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2813 PyObject *resultobj;
2814 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2815 wxRect *arg2 = 0 ;
2816 wxRect temp2 ;
2817 PyObject * obj0 = 0 ;
2818 PyObject * obj1 = 0 ;
2819 char *kwnames[] = {
2820 (char *) "self",(char *) "rect", NULL
2821 };
2822
2823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail;
2824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2825 {
2826 arg2 = &temp2;
2827 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2828 }
2829 {
2830 PyThreadState* __tstate = wxPyBeginAllowThreads();
2831 (arg1)->base_SetSize((wxRect const &)*arg2);
2832
2833 wxPyEndAllowThreads(__tstate);
2834 if (PyErr_Occurred()) SWIG_fail;
2835 }
2836 Py_INCREF(Py_None); resultobj = Py_None;
2837 return resultobj;
2838 fail:
2839 return NULL;
2840 }
2841
2842
2843 static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2844 PyObject *resultobj;
2845 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2846 bool arg2 ;
2847 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2848 PyObject * obj0 = 0 ;
2849 PyObject * obj1 = 0 ;
2850 PyObject * obj2 = 0 ;
2851 char *kwnames[] = {
2852 (char *) "self",(char *) "show",(char *) "attr", NULL
2853 };
2854
2855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2857 {
2858 arg2 = (bool) SPyObj_AsBool(obj1);
2859 if (PyErr_Occurred()) SWIG_fail;
2860 }
2861 if (obj2) {
2862 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2863 }
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 (arg1)->base_Show(arg2,arg3);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 Py_INCREF(Py_None); resultobj = Py_None;
2872 return resultobj;
2873 fail:
2874 return NULL;
2875 }
2876
2877
2878 static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2879 PyObject *resultobj;
2880 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2881 wxRect *arg2 = 0 ;
2882 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2883 wxRect temp2 ;
2884 PyObject * obj0 = 0 ;
2885 PyObject * obj1 = 0 ;
2886 PyObject * obj2 = 0 ;
2887 char *kwnames[] = {
2888 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2889 };
2890
2891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2893 {
2894 arg2 = &temp2;
2895 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2896 }
2897 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2898 {
2899 PyThreadState* __tstate = wxPyBeginAllowThreads();
2900 (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3);
2901
2902 wxPyEndAllowThreads(__tstate);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2905 Py_INCREF(Py_None); resultobj = Py_None;
2906 return resultobj;
2907 fail:
2908 return NULL;
2909 }
2910
2911
2912 static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2913 PyObject *resultobj;
2914 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2915 wxKeyEvent *arg2 = 0 ;
2916 bool result;
2917 PyObject * obj0 = 0 ;
2918 PyObject * obj1 = 0 ;
2919 char *kwnames[] = {
2920 (char *) "self",(char *) "event", NULL
2921 };
2922
2923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2925 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2926 if (arg2 == NULL) {
2927 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2928 }
2929 {
2930 PyThreadState* __tstate = wxPyBeginAllowThreads();
2931 result = (bool)(arg1)->base_IsAcceptedKey(*arg2);
2932
2933 wxPyEndAllowThreads(__tstate);
2934 if (PyErr_Occurred()) SWIG_fail;
2935 }
2936 resultobj = PyInt_FromLong((long)result);
2937 return resultobj;
2938 fail:
2939 return NULL;
2940 }
2941
2942
2943 static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2944 PyObject *resultobj;
2945 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2946 wxKeyEvent *arg2 = 0 ;
2947 PyObject * obj0 = 0 ;
2948 PyObject * obj1 = 0 ;
2949 char *kwnames[] = {
2950 (char *) "self",(char *) "event", NULL
2951 };
2952
2953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2955 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2956 if (arg2 == NULL) {
2957 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2958 }
2959 {
2960 PyThreadState* __tstate = wxPyBeginAllowThreads();
2961 (arg1)->base_StartingKey(*arg2);
2962
2963 wxPyEndAllowThreads(__tstate);
2964 if (PyErr_Occurred()) SWIG_fail;
2965 }
2966 Py_INCREF(Py_None); resultobj = Py_None;
2967 return resultobj;
2968 fail:
2969 return NULL;
2970 }
2971
2972
2973 static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2974 PyObject *resultobj;
2975 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2976 PyObject * obj0 = 0 ;
2977 char *kwnames[] = {
2978 (char *) "self", NULL
2979 };
2980
2981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail;
2982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2983 {
2984 PyThreadState* __tstate = wxPyBeginAllowThreads();
2985 (arg1)->base_StartingClick();
2986
2987 wxPyEndAllowThreads(__tstate);
2988 if (PyErr_Occurred()) SWIG_fail;
2989 }
2990 Py_INCREF(Py_None); resultobj = Py_None;
2991 return resultobj;
2992 fail:
2993 return NULL;
2994 }
2995
2996
2997 static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2998 PyObject *resultobj;
2999 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3000 wxKeyEvent *arg2 = 0 ;
3001 PyObject * obj0 = 0 ;
3002 PyObject * obj1 = 0 ;
3003 char *kwnames[] = {
3004 (char *) "self",(char *) "event", NULL
3005 };
3006
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
3008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3009 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3010 if (arg2 == NULL) {
3011 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3012 }
3013 {
3014 PyThreadState* __tstate = wxPyBeginAllowThreads();
3015 (arg1)->base_HandleReturn(*arg2);
3016
3017 wxPyEndAllowThreads(__tstate);
3018 if (PyErr_Occurred()) SWIG_fail;
3019 }
3020 Py_INCREF(Py_None); resultobj = Py_None;
3021 return resultobj;
3022 fail:
3023 return NULL;
3024 }
3025
3026
3027 static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
3028 PyObject *resultobj;
3029 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3030 PyObject * obj0 = 0 ;
3031 char *kwnames[] = {
3032 (char *) "self", NULL
3033 };
3034
3035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail;
3036 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3037 {
3038 PyThreadState* __tstate = wxPyBeginAllowThreads();
3039 (arg1)->base_Destroy();
3040
3041 wxPyEndAllowThreads(__tstate);
3042 if (PyErr_Occurred()) SWIG_fail;
3043 }
3044 Py_INCREF(Py_None); resultobj = Py_None;
3045 return resultobj;
3046 fail:
3047 return NULL;
3048 }
3049
3050
3051 static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
3052 PyObject *resultobj;
3053 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3054 wxString *arg2 = 0 ;
3055 bool temp2 = False ;
3056 PyObject * obj0 = 0 ;
3057 PyObject * obj1 = 0 ;
3058 char *kwnames[] = {
3059 (char *) "self",(char *) "params", NULL
3060 };
3061
3062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
3063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3064 {
3065 arg2 = wxString_in_helper(obj1);
3066 if (arg2 == NULL) SWIG_fail;
3067 temp2 = True;
3068 }
3069 {
3070 PyThreadState* __tstate = wxPyBeginAllowThreads();
3071 (arg1)->base_SetParameters((wxString const &)*arg2);
3072
3073 wxPyEndAllowThreads(__tstate);
3074 if (PyErr_Occurred()) SWIG_fail;
3075 }
3076 Py_INCREF(Py_None); resultobj = Py_None;
3077 {
3078 if (temp2)
3079 delete arg2;
3080 }
3081 return resultobj;
3082 fail:
3083 {
3084 if (temp2)
3085 delete arg2;
3086 }
3087 return NULL;
3088 }
3089
3090
3091 static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) {
3092 PyObject *obj;
3093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3094 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj);
3095 Py_INCREF(obj);
3096 return Py_BuildValue((char *)"");
3097 }
3098 static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3099 PyObject *resultobj;
3100 wxGridCellTextEditor *result;
3101 char *kwnames[] = {
3102 NULL
3103 };
3104
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail;
3106 {
3107 PyThreadState* __tstate = wxPyBeginAllowThreads();
3108 result = (wxGridCellTextEditor *)new wxGridCellTextEditor();
3109
3110 wxPyEndAllowThreads(__tstate);
3111 if (PyErr_Occurred()) SWIG_fail;
3112 }
3113 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellTextEditor, 1);
3114 return resultobj;
3115 fail:
3116 return NULL;
3117 }
3118
3119
3120 static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3121 PyObject *resultobj;
3122 wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ;
3123 wxString result;
3124 PyObject * obj0 = 0 ;
3125 char *kwnames[] = {
3126 (char *) "self", NULL
3127 };
3128
3129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail;
3130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellTextEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3131 {
3132 PyThreadState* __tstate = wxPyBeginAllowThreads();
3133 result = (arg1)->GetValue();
3134
3135 wxPyEndAllowThreads(__tstate);
3136 if (PyErr_Occurred()) SWIG_fail;
3137 }
3138 {
3139 #if wxUSE_UNICODE
3140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3141 #else
3142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3143 #endif
3144 }
3145 return resultobj;
3146 fail:
3147 return NULL;
3148 }
3149
3150
3151 static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) {
3152 PyObject *obj;
3153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3154 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj);
3155 Py_INCREF(obj);
3156 return Py_BuildValue((char *)"");
3157 }
3158 static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3159 PyObject *resultobj;
3160 int arg1 = (int) -1 ;
3161 int arg2 = (int) -1 ;
3162 wxGridCellNumberEditor *result;
3163 char *kwnames[] = {
3164 (char *) "min",(char *) "max", NULL
3165 };
3166
3167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellNumberEditor",kwnames,&arg1,&arg2)) goto fail;
3168 {
3169 PyThreadState* __tstate = wxPyBeginAllowThreads();
3170 result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2);
3171
3172 wxPyEndAllowThreads(__tstate);
3173 if (PyErr_Occurred()) SWIG_fail;
3174 }
3175 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberEditor, 1);
3176 return resultobj;
3177 fail:
3178 return NULL;
3179 }
3180
3181
3182 static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3183 PyObject *resultobj;
3184 wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ;
3185 wxString result;
3186 PyObject * obj0 = 0 ;
3187 char *kwnames[] = {
3188 (char *) "self", NULL
3189 };
3190
3191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail;
3192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellNumberEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3193 {
3194 PyThreadState* __tstate = wxPyBeginAllowThreads();
3195 result = (arg1)->GetValue();
3196
3197 wxPyEndAllowThreads(__tstate);
3198 if (PyErr_Occurred()) SWIG_fail;
3199 }
3200 {
3201 #if wxUSE_UNICODE
3202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3203 #else
3204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3205 #endif
3206 }
3207 return resultobj;
3208 fail:
3209 return NULL;
3210 }
3211
3212
3213 static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) {
3214 PyObject *obj;
3215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3216 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj);
3217 Py_INCREF(obj);
3218 return Py_BuildValue((char *)"");
3219 }
3220 static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3221 PyObject *resultobj;
3222 wxGridCellFloatEditor *result;
3223 char *kwnames[] = {
3224 NULL
3225 };
3226
3227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail;
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor();
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
3235 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatEditor, 1);
3236 return resultobj;
3237 fail:
3238 return NULL;
3239 }
3240
3241
3242 static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3243 PyObject *resultobj;
3244 wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ;
3245 wxString result;
3246 PyObject * obj0 = 0 ;
3247 char *kwnames[] = {
3248 (char *) "self", NULL
3249 };
3250
3251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail;
3252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3253 {
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 result = (arg1)->GetValue();
3256
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 {
3261 #if wxUSE_UNICODE
3262 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3263 #else
3264 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3265 #endif
3266 }
3267 return resultobj;
3268 fail:
3269 return NULL;
3270 }
3271
3272
3273 static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) {
3274 PyObject *obj;
3275 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3276 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj);
3277 Py_INCREF(obj);
3278 return Py_BuildValue((char *)"");
3279 }
3280 static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3281 PyObject *resultobj;
3282 wxGridCellBoolEditor *result;
3283 char *kwnames[] = {
3284 NULL
3285 };
3286
3287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail;
3288 {
3289 PyThreadState* __tstate = wxPyBeginAllowThreads();
3290 result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor();
3291
3292 wxPyEndAllowThreads(__tstate);
3293 if (PyErr_Occurred()) SWIG_fail;
3294 }
3295 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolEditor, 1);
3296 return resultobj;
3297 fail:
3298 return NULL;
3299 }
3300
3301
3302 static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3303 PyObject *resultobj;
3304 wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ;
3305 wxString result;
3306 PyObject * obj0 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail;
3312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellBoolEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3313 {
3314 PyThreadState* __tstate = wxPyBeginAllowThreads();
3315 result = (arg1)->GetValue();
3316
3317 wxPyEndAllowThreads(__tstate);
3318 if (PyErr_Occurred()) SWIG_fail;
3319 }
3320 {
3321 #if wxUSE_UNICODE
3322 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3323 #else
3324 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3325 #endif
3326 }
3327 return resultobj;
3328 fail:
3329 return NULL;
3330 }
3331
3332
3333 static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) {
3334 PyObject *obj;
3335 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3336 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj);
3337 Py_INCREF(obj);
3338 return Py_BuildValue((char *)"");
3339 }
3340 static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3341 PyObject *resultobj;
3342 int arg1 = (int) 0 ;
3343 wxString *arg2 = (wxString *) NULL ;
3344 bool arg3 = (bool) False ;
3345 wxGridCellChoiceEditor *result;
3346 PyObject * obj0 = 0 ;
3347 PyObject * obj1 = 0 ;
3348 char *kwnames[] = {
3349 (char *) "choices",(char *) "allowOthers", NULL
3350 };
3351
3352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail;
3353 if (obj0) {
3354 {
3355 arg1 = PyList_Size(obj0);
3356 arg2 = wxString_LIST_helper(obj0);
3357 if (arg2 == NULL) SWIG_fail;
3358 }
3359 }
3360 if (obj1) {
3361 {
3362 arg3 = (bool) SPyObj_AsBool(obj1);
3363 if (PyErr_Occurred()) SWIG_fail;
3364 }
3365 }
3366 {
3367 PyThreadState* __tstate = wxPyBeginAllowThreads();
3368 result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3);
3369
3370 wxPyEndAllowThreads(__tstate);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 }
3373 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellChoiceEditor, 1);
3374 {
3375 if (arg2) delete [] arg2;
3376 }
3377 return resultobj;
3378 fail:
3379 {
3380 if (arg2) delete [] arg2;
3381 }
3382 return NULL;
3383 }
3384
3385
3386 static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3387 PyObject *resultobj;
3388 wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ;
3389 wxString result;
3390 PyObject * obj0 = 0 ;
3391 char *kwnames[] = {
3392 (char *) "self", NULL
3393 };
3394
3395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail;
3396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellChoiceEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3397 {
3398 PyThreadState* __tstate = wxPyBeginAllowThreads();
3399 result = (arg1)->GetValue();
3400
3401 wxPyEndAllowThreads(__tstate);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 {
3405 #if wxUSE_UNICODE
3406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3407 #else
3408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3409 #endif
3410 }
3411 return resultobj;
3412 fail:
3413 return NULL;
3414 }
3415
3416
3417 static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) {
3418 PyObject *obj;
3419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3420 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj);
3421 Py_INCREF(obj);
3422 return Py_BuildValue((char *)"");
3423 }
3424 static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3425 PyObject *resultobj;
3426 wxString const &arg1_defvalue = wxPyEmptyString ;
3427 wxString *arg1 = (wxString *) &arg1_defvalue ;
3428 wxGridCellEnumEditor *result;
3429 bool temp1 = False ;
3430 PyObject * obj0 = 0 ;
3431 char *kwnames[] = {
3432 (char *) "choices", NULL
3433 };
3434
3435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail;
3436 if (obj0) {
3437 {
3438 arg1 = wxString_in_helper(obj0);
3439 if (arg1 == NULL) SWIG_fail;
3440 temp1 = True;
3441 }
3442 }
3443 {
3444 PyThreadState* __tstate = wxPyBeginAllowThreads();
3445 result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1);
3446
3447 wxPyEndAllowThreads(__tstate);
3448 if (PyErr_Occurred()) SWIG_fail;
3449 }
3450 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumEditor, 1);
3451 {
3452 if (temp1)
3453 delete arg1;
3454 }
3455 return resultobj;
3456 fail:
3457 {
3458 if (temp1)
3459 delete arg1;
3460 }
3461 return NULL;
3462 }
3463
3464
3465 static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3466 PyObject *resultobj;
3467 wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ;
3468 wxString result;
3469 PyObject * obj0 = 0 ;
3470 char *kwnames[] = {
3471 (char *) "self", NULL
3472 };
3473
3474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail;
3475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEnumEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3476 {
3477 PyThreadState* __tstate = wxPyBeginAllowThreads();
3478 result = (arg1)->GetValue();
3479
3480 wxPyEndAllowThreads(__tstate);
3481 if (PyErr_Occurred()) SWIG_fail;
3482 }
3483 {
3484 #if wxUSE_UNICODE
3485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3486 #else
3487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3488 #endif
3489 }
3490 return resultobj;
3491 fail:
3492 return NULL;
3493 }
3494
3495
3496 static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) {
3497 PyObject *obj;
3498 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3499 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj);
3500 Py_INCREF(obj);
3501 return Py_BuildValue((char *)"");
3502 }
3503 static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3504 PyObject *resultobj;
3505 wxGridCellAutoWrapStringEditor *result;
3506 char *kwnames[] = {
3507 NULL
3508 };
3509
3510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail;
3511 {
3512 PyThreadState* __tstate = wxPyBeginAllowThreads();
3513 result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor();
3514
3515 wxPyEndAllowThreads(__tstate);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 }
3518 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1);
3519 return resultobj;
3520 fail:
3521 return NULL;
3522 }
3523
3524
3525 static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3526 PyObject *resultobj;
3527 wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ;
3528 wxString result;
3529 PyObject * obj0 = 0 ;
3530 char *kwnames[] = {
3531 (char *) "self", NULL
3532 };
3533
3534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail;
3535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAutoWrapStringEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3536 {
3537 PyThreadState* __tstate = wxPyBeginAllowThreads();
3538 result = (arg1)->GetValue();
3539
3540 wxPyEndAllowThreads(__tstate);
3541 if (PyErr_Occurred()) SWIG_fail;
3542 }
3543 {
3544 #if wxUSE_UNICODE
3545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3546 #else
3547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3548 #endif
3549 }
3550 return resultobj;
3551 fail:
3552 return NULL;
3553 }
3554
3555
3556 static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) {
3557 PyObject *obj;
3558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3559 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj);
3560 Py_INCREF(obj);
3561 return Py_BuildValue((char *)"");
3562 }
3563 static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3564 PyObject *resultobj;
3565 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3566 PyObject *arg2 = (PyObject *) 0 ;
3567 PyObject * obj0 = 0 ;
3568 PyObject * obj1 = 0 ;
3569 char *kwnames[] = {
3570 (char *) "self",(char *) "_self", NULL
3571 };
3572
3573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
3574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3575 arg2 = obj1;
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
3578 wxGridCellAttr__setOORInfo(arg1,arg2);
3579
3580 wxPyEndAllowThreads(__tstate);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
3583 Py_INCREF(Py_None); resultobj = Py_None;
3584 return resultobj;
3585 fail:
3586 return NULL;
3587 }
3588
3589
3590 static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
3591 PyObject *resultobj;
3592 wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ;
3593 wxGridCellAttr *result;
3594 PyObject * obj0 = 0 ;
3595 char *kwnames[] = {
3596 (char *) "attrDefault", NULL
3597 };
3598
3599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail;
3600 if (obj0) {
3601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3602 }
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 result = (wxGridCellAttr *)new wxGridCellAttr(arg1);
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 {
3611 resultobj = wxPyMake_wxGridCellAttr(result);
3612 }
3613 return resultobj;
3614 fail:
3615 return NULL;
3616 }
3617
3618
3619 static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
3620 PyObject *resultobj;
3621 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3622 wxGridCellAttr *result;
3623 PyObject * obj0 = 0 ;
3624 char *kwnames[] = {
3625 (char *) "self", NULL
3626 };
3627
3628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail;
3629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3630 {
3631 PyThreadState* __tstate = wxPyBeginAllowThreads();
3632 result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone();
3633
3634 wxPyEndAllowThreads(__tstate);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 }
3637 {
3638 resultobj = wxPyMake_wxGridCellAttr(result);
3639 }
3640 return resultobj;
3641 fail:
3642 return NULL;
3643 }
3644
3645
3646 static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) {
3647 PyObject *resultobj;
3648 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3649 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
3650 PyObject * obj0 = 0 ;
3651 PyObject * obj1 = 0 ;
3652 char *kwnames[] = {
3653 (char *) "self",(char *) "mergefrom", NULL
3654 };
3655
3656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail;
3657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3658 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3659 {
3660 PyThreadState* __tstate = wxPyBeginAllowThreads();
3661 (arg1)->MergeWith(arg2);
3662
3663 wxPyEndAllowThreads(__tstate);
3664 if (PyErr_Occurred()) SWIG_fail;
3665 }
3666 Py_INCREF(Py_None); resultobj = Py_None;
3667 return resultobj;
3668 fail:
3669 return NULL;
3670 }
3671
3672
3673 static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3674 PyObject *resultobj;
3675 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3676 PyObject * obj0 = 0 ;
3677 char *kwnames[] = {
3678 (char *) "self", NULL
3679 };
3680
3681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail;
3682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3683 {
3684 PyThreadState* __tstate = wxPyBeginAllowThreads();
3685 (arg1)->IncRef();
3686
3687 wxPyEndAllowThreads(__tstate);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
3690 Py_INCREF(Py_None); resultobj = Py_None;
3691 return resultobj;
3692 fail:
3693 return NULL;
3694 }
3695
3696
3697 static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj;
3699 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3700 PyObject * obj0 = 0 ;
3701 char *kwnames[] = {
3702 (char *) "self", NULL
3703 };
3704
3705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail;
3706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 (arg1)->DecRef();
3710
3711 wxPyEndAllowThreads(__tstate);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 }
3714 Py_INCREF(Py_None); resultobj = Py_None;
3715 return resultobj;
3716 fail:
3717 return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3722 PyObject *resultobj;
3723 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3724 wxColour *arg2 = 0 ;
3725 wxColour temp2 ;
3726 PyObject * obj0 = 0 ;
3727 PyObject * obj1 = 0 ;
3728 char *kwnames[] = {
3729 (char *) "self",(char *) "colText", NULL
3730 };
3731
3732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
3733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3734 {
3735 arg2 = &temp2;
3736 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3737 }
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 (arg1)->SetTextColour((wxColour const &)*arg2);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 Py_INCREF(Py_None); resultobj = Py_None;
3746 return resultobj;
3747 fail:
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3755 wxColour *arg2 = 0 ;
3756 wxColour temp2 ;
3757 PyObject * obj0 = 0 ;
3758 PyObject * obj1 = 0 ;
3759 char *kwnames[] = {
3760 (char *) "self",(char *) "colBack", NULL
3761 };
3762
3763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
3764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3765 {
3766 arg2 = &temp2;
3767 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3768 }
3769 {
3770 PyThreadState* __tstate = wxPyBeginAllowThreads();
3771 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3772
3773 wxPyEndAllowThreads(__tstate);
3774 if (PyErr_Occurred()) SWIG_fail;
3775 }
3776 Py_INCREF(Py_None); resultobj = Py_None;
3777 return resultobj;
3778 fail:
3779 return NULL;
3780 }
3781
3782
3783 static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3786 wxFont *arg2 = 0 ;
3787 PyObject * obj0 = 0 ;
3788 PyObject * obj1 = 0 ;
3789 char *kwnames[] = {
3790 (char *) "self",(char *) "font", NULL
3791 };
3792
3793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
3794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3795 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3796 if (arg2 == NULL) {
3797 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3798 }
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 (arg1)->SetFont((wxFont const &)*arg2);
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 Py_INCREF(Py_None); resultobj = Py_None;
3807 return resultobj;
3808 fail:
3809 return NULL;
3810 }
3811
3812
3813 static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj;
3815 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3816 int arg2 ;
3817 int arg3 ;
3818 PyObject * obj0 = 0 ;
3819 char *kwnames[] = {
3820 (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL
3821 };
3822
3823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellAttr_SetAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
3824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3825 {
3826 PyThreadState* __tstate = wxPyBeginAllowThreads();
3827 (arg1)->SetAlignment(arg2,arg3);
3828
3829 wxPyEndAllowThreads(__tstate);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 }
3832 Py_INCREF(Py_None); resultobj = Py_None;
3833 return resultobj;
3834 fail:
3835 return NULL;
3836 }
3837
3838
3839 static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3840 PyObject *resultobj;
3841 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3842 int arg2 ;
3843 int arg3 ;
3844 PyObject * obj0 = 0 ;
3845 char *kwnames[] = {
3846 (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL
3847 };
3848
3849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellAttr_SetSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
3850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 (arg1)->SetSize(arg2,arg3);
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 Py_INCREF(Py_None); resultobj = Py_None;
3859 return resultobj;
3860 fail:
3861 return NULL;
3862 }
3863
3864
3865 static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject *resultobj;
3867 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3868 bool arg2 = (bool) True ;
3869 PyObject * obj0 = 0 ;
3870 PyObject * obj1 = 0 ;
3871 char *kwnames[] = {
3872 (char *) "self",(char *) "allow", NULL
3873 };
3874
3875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail;
3876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3877 if (obj1) {
3878 {
3879 arg2 = (bool) SPyObj_AsBool(obj1);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 }
3882 }
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 (arg1)->SetOverflow(arg2);
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 Py_INCREF(Py_None); resultobj = Py_None;
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3900 bool arg2 = (bool) True ;
3901 PyObject * obj0 = 0 ;
3902 PyObject * obj1 = 0 ;
3903 char *kwnames[] = {
3904 (char *) "self",(char *) "isReadOnly", NULL
3905 };
3906
3907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail;
3908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3909 if (obj1) {
3910 {
3911 arg2 = (bool) SPyObj_AsBool(obj1);
3912 if (PyErr_Occurred()) SWIG_fail;
3913 }
3914 }
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 (arg1)->SetReadOnly(arg2);
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 Py_INCREF(Py_None); resultobj = Py_None;
3923 return resultobj;
3924 fail:
3925 return NULL;
3926 }
3927
3928
3929 static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
3930 PyObject *resultobj;
3931 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3932 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
3933 PyObject * obj0 = 0 ;
3934 PyObject * obj1 = 0 ;
3935 char *kwnames[] = {
3936 (char *) "self",(char *) "renderer", NULL
3937 };
3938
3939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail;
3940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3941 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3942 {
3943 PyThreadState* __tstate = wxPyBeginAllowThreads();
3944 (arg1)->SetRenderer(arg2);
3945
3946 wxPyEndAllowThreads(__tstate);
3947 if (PyErr_Occurred()) SWIG_fail;
3948 }
3949 Py_INCREF(Py_None); resultobj = Py_None;
3950 return resultobj;
3951 fail:
3952 return NULL;
3953 }
3954
3955
3956 static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3957 PyObject *resultobj;
3958 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3959 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
3960 PyObject * obj0 = 0 ;
3961 PyObject * obj1 = 0 ;
3962 char *kwnames[] = {
3963 (char *) "self",(char *) "editor", NULL
3964 };
3965
3966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail;
3967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3968 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3969 {
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 (arg1)->SetEditor(arg2);
3972
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 Py_INCREF(Py_None); resultobj = Py_None;
3977 return resultobj;
3978 fail:
3979 return NULL;
3980 }
3981
3982
3983 static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3986 int arg2 ;
3987 PyObject * obj0 = 0 ;
3988 char *kwnames[] = {
3989 (char *) "self",(char *) "kind", NULL
3990 };
3991
3992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellAttr_SetKind",kwnames,&obj0,&arg2)) goto fail;
3993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3994 {
3995 PyThreadState* __tstate = wxPyBeginAllowThreads();
3996 (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2);
3997
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 Py_INCREF(Py_None); resultobj = Py_None;
4002 return resultobj;
4003 fail:
4004 return NULL;
4005 }
4006
4007
4008 static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj;
4010 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4011 bool result;
4012 PyObject * obj0 = 0 ;
4013 char *kwnames[] = {
4014 (char *) "self", NULL
4015 };
4016
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail;
4018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4019 {
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour();
4022
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 resultobj = PyInt_FromLong((long)result);
4027 return resultobj;
4028 fail:
4029 return NULL;
4030 }
4031
4032
4033 static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4034 PyObject *resultobj;
4035 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4036 bool result;
4037 PyObject * obj0 = 0 ;
4038 char *kwnames[] = {
4039 (char *) "self", NULL
4040 };
4041
4042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
4043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4044 {
4045 PyThreadState* __tstate = wxPyBeginAllowThreads();
4046 result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour();
4047
4048 wxPyEndAllowThreads(__tstate);
4049 if (PyErr_Occurred()) SWIG_fail;
4050 }
4051 resultobj = PyInt_FromLong((long)result);
4052 return resultobj;
4053 fail:
4054 return NULL;
4055 }
4056
4057
4058 static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4059 PyObject *resultobj;
4060 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4061 bool result;
4062 PyObject * obj0 = 0 ;
4063 char *kwnames[] = {
4064 (char *) "self", NULL
4065 };
4066
4067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail;
4068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 result = (bool)((wxGridCellAttr const *)arg1)->HasFont();
4072
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 resultobj = PyInt_FromLong((long)result);
4077 return resultobj;
4078 fail:
4079 return NULL;
4080 }
4081
4082
4083 static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4084 PyObject *resultobj;
4085 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4086 bool result;
4087 PyObject * obj0 = 0 ;
4088 char *kwnames[] = {
4089 (char *) "self", NULL
4090 };
4091
4092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail;
4093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4094 {
4095 PyThreadState* __tstate = wxPyBeginAllowThreads();
4096 result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment();
4097
4098 wxPyEndAllowThreads(__tstate);
4099 if (PyErr_Occurred()) SWIG_fail;
4100 }
4101 resultobj = PyInt_FromLong((long)result);
4102 return resultobj;
4103 fail:
4104 return NULL;
4105 }
4106
4107
4108 static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4109 PyObject *resultobj;
4110 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4111 bool result;
4112 PyObject * obj0 = 0 ;
4113 char *kwnames[] = {
4114 (char *) "self", NULL
4115 };
4116
4117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail;
4118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4119 {
4120 PyThreadState* __tstate = wxPyBeginAllowThreads();
4121 result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer();
4122
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 resultobj = PyInt_FromLong((long)result);
4127 return resultobj;
4128 fail:
4129 return NULL;
4130 }
4131
4132
4133 static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj;
4135 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4136 bool result;
4137 PyObject * obj0 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "self", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail;
4143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 result = (bool)((wxGridCellAttr const *)arg1)->HasEditor();
4147
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 resultobj = PyInt_FromLong((long)result);
4152 return resultobj;
4153 fail:
4154 return NULL;
4155 }
4156
4157
4158 static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) {
4159 PyObject *resultobj;
4160 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4161 bool result;
4162 PyObject * obj0 = 0 ;
4163 char *kwnames[] = {
4164 (char *) "self", NULL
4165 };
4166
4167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail;
4168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4169 {
4170 PyThreadState* __tstate = wxPyBeginAllowThreads();
4171 result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode();
4172
4173 wxPyEndAllowThreads(__tstate);
4174 if (PyErr_Occurred()) SWIG_fail;
4175 }
4176 resultobj = PyInt_FromLong((long)result);
4177 return resultobj;
4178 fail:
4179 return NULL;
4180 }
4181
4182
4183 static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
4184 PyObject *resultobj;
4185 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4186 bool result;
4187 PyObject * obj0 = 0 ;
4188 char *kwnames[] = {
4189 (char *) "self", NULL
4190 };
4191
4192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail;
4193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4194 {
4195 PyThreadState* __tstate = wxPyBeginAllowThreads();
4196 result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode();
4197
4198 wxPyEndAllowThreads(__tstate);
4199 if (PyErr_Occurred()) SWIG_fail;
4200 }
4201 resultobj = PyInt_FromLong((long)result);
4202 return resultobj;
4203 fail:
4204 return NULL;
4205 }
4206
4207
4208 static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4209 PyObject *resultobj;
4210 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4211 wxColour result;
4212 PyObject * obj0 = 0 ;
4213 char *kwnames[] = {
4214 (char *) "self", NULL
4215 };
4216
4217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail;
4218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 result = ((wxGridCellAttr const *)arg1)->GetTextColour();
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 {
4227 wxColour * resultptr;
4228 resultptr = new wxColour((wxColour &) result);
4229 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
4230 }
4231 return resultobj;
4232 fail:
4233 return NULL;
4234 }
4235
4236
4237 static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4238 PyObject *resultobj;
4239 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4240 wxColour result;
4241 PyObject * obj0 = 0 ;
4242 char *kwnames[] = {
4243 (char *) "self", NULL
4244 };
4245
4246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
4247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4248 {
4249 PyThreadState* __tstate = wxPyBeginAllowThreads();
4250 result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour();
4251
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 {
4256 wxColour * resultptr;
4257 resultptr = new wxColour((wxColour &) result);
4258 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
4259 }
4260 return resultobj;
4261 fail:
4262 return NULL;
4263 }
4264
4265
4266 static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4267 PyObject *resultobj;
4268 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4269 wxFont result;
4270 PyObject * obj0 = 0 ;
4271 char *kwnames[] = {
4272 (char *) "self", NULL
4273 };
4274
4275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail;
4276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4277 {
4278 PyThreadState* __tstate = wxPyBeginAllowThreads();
4279 result = ((wxGridCellAttr const *)arg1)->GetFont();
4280
4281 wxPyEndAllowThreads(__tstate);
4282 if (PyErr_Occurred()) SWIG_fail;
4283 }
4284 {
4285 wxFont * resultptr;
4286 resultptr = new wxFont((wxFont &) result);
4287 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
4288 }
4289 return resultobj;
4290 fail:
4291 return NULL;
4292 }
4293
4294
4295 static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4296 PyObject *resultobj;
4297 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4298 int *arg2 = (int *) 0 ;
4299 int *arg3 = (int *) 0 ;
4300 int temp2 ;
4301 int temp3 ;
4302 PyObject * obj0 = 0 ;
4303 char *kwnames[] = {
4304 (char *) "self", NULL
4305 };
4306
4307 arg2 = &temp2;
4308 arg3 = &temp3;
4309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail;
4310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4311 {
4312 PyThreadState* __tstate = wxPyBeginAllowThreads();
4313 ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3);
4314
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 Py_INCREF(Py_None); resultobj = Py_None;
4319 {
4320 PyObject *o = PyInt_FromLong((long) (*arg2));
4321 resultobj = t_output_helper(resultobj,o);
4322 }
4323 {
4324 PyObject *o = PyInt_FromLong((long) (*arg3));
4325 resultobj = t_output_helper(resultobj,o);
4326 }
4327 return resultobj;
4328 fail:
4329 return NULL;
4330 }
4331
4332
4333 static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4334 PyObject *resultobj;
4335 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4336 int *arg2 = (int *) 0 ;
4337 int *arg3 = (int *) 0 ;
4338 int temp2 ;
4339 int temp3 ;
4340 PyObject * obj0 = 0 ;
4341 char *kwnames[] = {
4342 (char *) "self", NULL
4343 };
4344
4345 arg2 = &temp2;
4346 arg3 = &temp3;
4347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail;
4348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4349 {
4350 PyThreadState* __tstate = wxPyBeginAllowThreads();
4351 ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3);
4352
4353 wxPyEndAllowThreads(__tstate);
4354 if (PyErr_Occurred()) SWIG_fail;
4355 }
4356 Py_INCREF(Py_None); resultobj = Py_None;
4357 {
4358 PyObject *o = PyInt_FromLong((long) (*arg2));
4359 resultobj = t_output_helper(resultobj,o);
4360 }
4361 {
4362 PyObject *o = PyInt_FromLong((long) (*arg3));
4363 resultobj = t_output_helper(resultobj,o);
4364 }
4365 return resultobj;
4366 fail:
4367 return NULL;
4368 }
4369
4370
4371 static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
4372 PyObject *resultobj;
4373 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4374 bool result;
4375 PyObject * obj0 = 0 ;
4376 char *kwnames[] = {
4377 (char *) "self", NULL
4378 };
4379
4380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail;
4381 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow();
4385
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 resultobj = PyInt_FromLong((long)result);
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4397 PyObject *resultobj;
4398 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4399 wxGrid *arg2 = (wxGrid *) 0 ;
4400 int arg3 ;
4401 int arg4 ;
4402 wxGridCellRenderer *result;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 char *kwnames[] = {
4406 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4407 };
4408
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4411 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4412 {
4413 PyThreadState* __tstate = wxPyBeginAllowThreads();
4414 result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4);
4415
4416 wxPyEndAllowThreads(__tstate);
4417 if (PyErr_Occurred()) SWIG_fail;
4418 }
4419 {
4420 resultobj = wxPyMake_wxGridCellRenderer(result);
4421 }
4422 return resultobj;
4423 fail:
4424 return NULL;
4425 }
4426
4427
4428 static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4429 PyObject *resultobj;
4430 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4431 wxGrid *arg2 = (wxGrid *) 0 ;
4432 int arg3 ;
4433 int arg4 ;
4434 wxGridCellEditor *result;
4435 PyObject * obj0 = 0 ;
4436 PyObject * obj1 = 0 ;
4437 char *kwnames[] = {
4438 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4439 };
4440
4441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4443 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 {
4452 resultobj = wxPyMake_wxGridCellEditor(result);
4453 }
4454 return resultobj;
4455 fail:
4456 return NULL;
4457 }
4458
4459
4460 static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
4461 PyObject *resultobj;
4462 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4463 bool result;
4464 PyObject * obj0 = 0 ;
4465 char *kwnames[] = {
4466 (char *) "self", NULL
4467 };
4468
4469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail;
4470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4471 {
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly();
4474
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = PyInt_FromLong((long)result);
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4486 PyObject *resultobj;
4487 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4488 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4489 PyObject * obj0 = 0 ;
4490 PyObject * obj1 = 0 ;
4491 char *kwnames[] = {
4492 (char *) "self",(char *) "defAttr", NULL
4493 };
4494
4495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail;
4496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4497 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4498 {
4499 PyThreadState* __tstate = wxPyBeginAllowThreads();
4500 (arg1)->SetDefAttr(arg2);
4501
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 Py_INCREF(Py_None); resultobj = Py_None;
4506 return resultobj;
4507 fail:
4508 return NULL;
4509 }
4510
4511
4512 static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) {
4513 PyObject *obj;
4514 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4515 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj);
4516 Py_INCREF(obj);
4517 return Py_BuildValue((char *)"");
4518 }
4519 static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4520 PyObject *resultobj;
4521 wxGridCellAttrProvider *result;
4522 char *kwnames[] = {
4523 NULL
4524 };
4525
4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail;
4527 {
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider();
4530
4531 wxPyEndAllowThreads(__tstate);
4532 if (PyErr_Occurred()) SWIG_fail;
4533 }
4534 {
4535 resultobj = wxPyMake_wxGridCellAttrProvider(result);
4536 }
4537 return resultobj;
4538 fail:
4539 return NULL;
4540 }
4541
4542
4543 static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4544 PyObject *resultobj;
4545 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4546 PyObject *arg2 = (PyObject *) 0 ;
4547 PyObject * obj0 = 0 ;
4548 PyObject * obj1 = 0 ;
4549 char *kwnames[] = {
4550 (char *) "self",(char *) "_self", NULL
4551 };
4552
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4555 arg2 = obj1;
4556 {
4557 PyThreadState* __tstate = wxPyBeginAllowThreads();
4558 wxGridCellAttrProvider__setOORInfo(arg1,arg2);
4559
4560 wxPyEndAllowThreads(__tstate);
4561 if (PyErr_Occurred()) SWIG_fail;
4562 }
4563 Py_INCREF(Py_None); resultobj = Py_None;
4564 return resultobj;
4565 fail:
4566 return NULL;
4567 }
4568
4569
4570 static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4571 PyObject *resultobj;
4572 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4573 int arg2 ;
4574 int arg3 ;
4575 int arg4 ;
4576 wxGridCellAttr *result;
4577 PyObject * obj0 = 0 ;
4578 char *kwnames[] = {
4579 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4580 };
4581
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:GridCellAttrProvider_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
4583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4587
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 {
4592 resultobj = wxPyMake_wxGridCellAttr(result);
4593 }
4594 return resultobj;
4595 fail:
4596 return NULL;
4597 }
4598
4599
4600 static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject *resultobj;
4602 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4603 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4604 int arg3 ;
4605 int arg4 ;
4606 PyObject * obj0 = 0 ;
4607 PyObject * obj1 = 0 ;
4608 char *kwnames[] = {
4609 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4610 };
4611
4612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4614 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4615 {
4616 PyThreadState* __tstate = wxPyBeginAllowThreads();
4617 (arg1)->SetAttr(arg2,arg3,arg4);
4618
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 Py_INCREF(Py_None); resultobj = Py_None;
4623 return resultobj;
4624 fail:
4625 return NULL;
4626 }
4627
4628
4629 static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj;
4631 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4632 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4633 int arg3 ;
4634 PyObject * obj0 = 0 ;
4635 PyObject * obj1 = 0 ;
4636 char *kwnames[] = {
4637 (char *) "self",(char *) "attr",(char *) "row", NULL
4638 };
4639
4640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4642 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4643 {
4644 PyThreadState* __tstate = wxPyBeginAllowThreads();
4645 (arg1)->SetRowAttr(arg2,arg3);
4646
4647 wxPyEndAllowThreads(__tstate);
4648 if (PyErr_Occurred()) SWIG_fail;
4649 }
4650 Py_INCREF(Py_None); resultobj = Py_None;
4651 return resultobj;
4652 fail:
4653 return NULL;
4654 }
4655
4656
4657 static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4658 PyObject *resultobj;
4659 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4660 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4661 int arg3 ;
4662 PyObject * obj0 = 0 ;
4663 PyObject * obj1 = 0 ;
4664 char *kwnames[] = {
4665 (char *) "self",(char *) "attr",(char *) "col", NULL
4666 };
4667
4668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4670 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4671 {
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 (arg1)->SetColAttr(arg2,arg3);
4674
4675 wxPyEndAllowThreads(__tstate);
4676 if (PyErr_Occurred()) SWIG_fail;
4677 }
4678 Py_INCREF(Py_None); resultobj = Py_None;
4679 return resultobj;
4680 fail:
4681 return NULL;
4682 }
4683
4684
4685 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) {
4686 PyObject *resultobj;
4687 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4688 size_t arg2 ;
4689 int arg3 ;
4690 PyObject * obj0 = 0 ;
4691 PyObject * obj1 = 0 ;
4692 char *kwnames[] = {
4693 (char *) "self",(char *) "pos",(char *) "numRows", NULL
4694 };
4695
4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&arg3)) goto fail;
4697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4698 {
4699 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
4700 if (PyErr_Occurred()) SWIG_fail;
4701 }
4702 {
4703 PyThreadState* __tstate = wxPyBeginAllowThreads();
4704 (arg1)->UpdateAttrRows(arg2,arg3);
4705
4706 wxPyEndAllowThreads(__tstate);
4707 if (PyErr_Occurred()) SWIG_fail;
4708 }
4709 Py_INCREF(Py_None); resultobj = Py_None;
4710 return resultobj;
4711 fail:
4712 return NULL;
4713 }
4714
4715
4716 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) {
4717 PyObject *resultobj;
4718 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4719 size_t arg2 ;
4720 int arg3 ;
4721 PyObject * obj0 = 0 ;
4722 PyObject * obj1 = 0 ;
4723 char *kwnames[] = {
4724 (char *) "self",(char *) "pos",(char *) "numCols", NULL
4725 };
4726
4727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&arg3)) goto fail;
4728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4729 {
4730 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
4731 if (PyErr_Occurred()) SWIG_fail;
4732 }
4733 {
4734 PyThreadState* __tstate = wxPyBeginAllowThreads();
4735 (arg1)->UpdateAttrCols(arg2,arg3);
4736
4737 wxPyEndAllowThreads(__tstate);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 }
4740 Py_INCREF(Py_None); resultobj = Py_None;
4741 return resultobj;
4742 fail:
4743 return NULL;
4744 }
4745
4746
4747 static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
4748 PyObject *obj;
4749 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4750 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj);
4751 Py_INCREF(obj);
4752 return Py_BuildValue((char *)"");
4753 }
4754 static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4755 PyObject *resultobj;
4756 wxPyGridCellAttrProvider *result;
4757 char *kwnames[] = {
4758 NULL
4759 };
4760
4761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail;
4762 {
4763 PyThreadState* __tstate = wxPyBeginAllowThreads();
4764 result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider();
4765
4766 wxPyEndAllowThreads(__tstate);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellAttrProvider, 1);
4770 return resultobj;
4771 fail:
4772 return NULL;
4773 }
4774
4775
4776 static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4777 PyObject *resultobj;
4778 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4779 PyObject *arg2 = (PyObject *) 0 ;
4780 PyObject *arg3 = (PyObject *) 0 ;
4781 PyObject * obj0 = 0 ;
4782 PyObject * obj1 = 0 ;
4783 PyObject * obj2 = 0 ;
4784 char *kwnames[] = {
4785 (char *) "self",(char *) "self",(char *) "_class", NULL
4786 };
4787
4788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
4789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4790 arg2 = obj1;
4791 arg3 = obj2;
4792 {
4793 PyThreadState* __tstate = wxPyBeginAllowThreads();
4794 (arg1)->_setCallbackInfo(arg2,arg3);
4795
4796 wxPyEndAllowThreads(__tstate);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 }
4799 Py_INCREF(Py_None); resultobj = Py_None;
4800 return resultobj;
4801 fail:
4802 return NULL;
4803 }
4804
4805
4806 static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4807 PyObject *resultobj;
4808 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4809 int arg2 ;
4810 int arg3 ;
4811 int arg4 ;
4812 wxGridCellAttr *result;
4813 PyObject * obj0 = 0 ;
4814 char *kwnames[] = {
4815 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4816 };
4817
4818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
4819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4820 {
4821 PyThreadState* __tstate = wxPyBeginAllowThreads();
4822 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4823
4824 wxPyEndAllowThreads(__tstate);
4825 if (PyErr_Occurred()) SWIG_fail;
4826 }
4827 {
4828 resultobj = wxPyMake_wxGridCellAttr(result);
4829 }
4830 return resultobj;
4831 fail:
4832 return NULL;
4833 }
4834
4835
4836 static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4837 PyObject *resultobj;
4838 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4839 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4840 int arg3 ;
4841 int arg4 ;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844 char *kwnames[] = {
4845 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4846 };
4847
4848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4850 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4851 {
4852 PyThreadState* __tstate = wxPyBeginAllowThreads();
4853 (arg1)->base_SetAttr(arg2,arg3,arg4);
4854
4855 wxPyEndAllowThreads(__tstate);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 Py_INCREF(Py_None); resultobj = Py_None;
4859 return resultobj;
4860 fail:
4861 return NULL;
4862 }
4863
4864
4865 static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj;
4867 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4868 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4869 int arg3 ;
4870 PyObject * obj0 = 0 ;
4871 PyObject * obj1 = 0 ;
4872 char *kwnames[] = {
4873 (char *) "self",(char *) "attr",(char *) "row", NULL
4874 };
4875
4876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4878 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4879 {
4880 PyThreadState* __tstate = wxPyBeginAllowThreads();
4881 (arg1)->base_SetRowAttr(arg2,arg3);
4882
4883 wxPyEndAllowThreads(__tstate);
4884 if (PyErr_Occurred()) SWIG_fail;
4885 }
4886 Py_INCREF(Py_None); resultobj = Py_None;
4887 return resultobj;
4888 fail:
4889 return NULL;
4890 }
4891
4892
4893 static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4894 PyObject *resultobj;
4895 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4896 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4897 int arg3 ;
4898 PyObject * obj0 = 0 ;
4899 PyObject * obj1 = 0 ;
4900 char *kwnames[] = {
4901 (char *) "self",(char *) "attr",(char *) "col", NULL
4902 };
4903
4904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4906 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4907 {
4908 PyThreadState* __tstate = wxPyBeginAllowThreads();
4909 (arg1)->base_SetColAttr(arg2,arg3);
4910
4911 wxPyEndAllowThreads(__tstate);
4912 if (PyErr_Occurred()) SWIG_fail;
4913 }
4914 Py_INCREF(Py_None); resultobj = Py_None;
4915 return resultobj;
4916 fail:
4917 return NULL;
4918 }
4919
4920
4921 static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
4922 PyObject *obj;
4923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4924 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj);
4925 Py_INCREF(obj);
4926 return Py_BuildValue((char *)"");
4927 }
4928 static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4929 PyObject *resultobj;
4930 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4931 PyObject *arg2 = (PyObject *) 0 ;
4932 PyObject * obj0 = 0 ;
4933 PyObject * obj1 = 0 ;
4934 char *kwnames[] = {
4935 (char *) "self",(char *) "_self", NULL
4936 };
4937
4938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4940 arg2 = obj1;
4941 {
4942 PyThreadState* __tstate = wxPyBeginAllowThreads();
4943 wxGridTableBase__setOORInfo(arg1,arg2);
4944
4945 wxPyEndAllowThreads(__tstate);
4946 if (PyErr_Occurred()) SWIG_fail;
4947 }
4948 Py_INCREF(Py_None); resultobj = Py_None;
4949 return resultobj;
4950 fail:
4951 return NULL;
4952 }
4953
4954
4955 static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4956 PyObject *resultobj;
4957 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4958 wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ;
4959 PyObject * obj0 = 0 ;
4960 PyObject * obj1 = 0 ;
4961 char *kwnames[] = {
4962 (char *) "self",(char *) "attrProvider", NULL
4963 };
4964
4965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail;
4966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4967 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4968 {
4969 PyThreadState* __tstate = wxPyBeginAllowThreads();
4970 (arg1)->SetAttrProvider(arg2);
4971
4972 wxPyEndAllowThreads(__tstate);
4973 if (PyErr_Occurred()) SWIG_fail;
4974 }
4975 Py_INCREF(Py_None); resultobj = Py_None;
4976 return resultobj;
4977 fail:
4978 return NULL;
4979 }
4980
4981
4982 static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4983 PyObject *resultobj;
4984 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4985 wxGridCellAttrProvider *result;
4986 PyObject * obj0 = 0 ;
4987 char *kwnames[] = {
4988 (char *) "self", NULL
4989 };
4990
4991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail;
4992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4993 {
4994 PyThreadState* __tstate = wxPyBeginAllowThreads();
4995 result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider();
4996
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 {
5001 resultobj = wxPyMake_wxGridCellAttrProvider(result);
5002 }
5003 return resultobj;
5004 fail:
5005 return NULL;
5006 }
5007
5008
5009 static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) {
5010 PyObject *resultobj;
5011 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5012 wxGrid *arg2 = (wxGrid *) 0 ;
5013 PyObject * obj0 = 0 ;
5014 PyObject * obj1 = 0 ;
5015 char *kwnames[] = {
5016 (char *) "self",(char *) "grid", NULL
5017 };
5018
5019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail;
5020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5021 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5022 {
5023 PyThreadState* __tstate = wxPyBeginAllowThreads();
5024 (arg1)->SetView(arg2);
5025
5026 wxPyEndAllowThreads(__tstate);
5027 if (PyErr_Occurred()) SWIG_fail;
5028 }
5029 Py_INCREF(Py_None); resultobj = Py_None;
5030 return resultobj;
5031 fail:
5032 return NULL;
5033 }
5034
5035
5036 static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) {
5037 PyObject *resultobj;
5038 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5039 wxGrid *result;
5040 PyObject * obj0 = 0 ;
5041 char *kwnames[] = {
5042 (char *) "self", NULL
5043 };
5044
5045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail;
5046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView();
5050
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 {
5055 resultobj = wxPyMake_wxObject(result);
5056 }
5057 return resultobj;
5058 fail:
5059 return NULL;
5060 }
5061
5062
5063 static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5064 PyObject *resultobj;
5065 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5066 int result;
5067 PyObject * obj0 = 0 ;
5068 char *kwnames[] = {
5069 (char *) "self", NULL
5070 };
5071
5072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail;
5073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5074 {
5075 PyThreadState* __tstate = wxPyBeginAllowThreads();
5076 result = (int)(arg1)->GetNumberRows();
5077
5078 wxPyEndAllowThreads(__tstate);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 resultobj = PyInt_FromLong((long)result);
5082 return resultobj;
5083 fail:
5084 return NULL;
5085 }
5086
5087
5088 static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj;
5090 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5091 int result;
5092 PyObject * obj0 = 0 ;
5093 char *kwnames[] = {
5094 (char *) "self", NULL
5095 };
5096
5097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail;
5098 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5099 {
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = (int)(arg1)->GetNumberCols();
5102
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = PyInt_FromLong((long)result);
5107 return resultobj;
5108 fail:
5109 return NULL;
5110 }
5111
5112
5113 static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj;
5115 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5116 int arg2 ;
5117 int arg3 ;
5118 bool result;
5119 PyObject * obj0 = 0 ;
5120 char *kwnames[] = {
5121 (char *) "self",(char *) "row",(char *) "col", NULL
5122 };
5123
5124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_IsEmptyCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
5125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5126 {
5127 PyThreadState* __tstate = wxPyBeginAllowThreads();
5128 result = (bool)(arg1)->IsEmptyCell(arg2,arg3);
5129
5130 wxPyEndAllowThreads(__tstate);
5131 if (PyErr_Occurred()) SWIG_fail;
5132 }
5133 resultobj = PyInt_FromLong((long)result);
5134 return resultobj;
5135 fail:
5136 return NULL;
5137 }
5138
5139
5140 static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5141 PyObject *resultobj;
5142 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5143 int arg2 ;
5144 int arg3 ;
5145 wxString result;
5146 PyObject * obj0 = 0 ;
5147 char *kwnames[] = {
5148 (char *) "self",(char *) "row",(char *) "col", NULL
5149 };
5150
5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValue",kwnames,&obj0,&arg2,&arg3)) goto fail;
5152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 result = (arg1)->GetValue(arg2,arg3);
5156
5157 wxPyEndAllowThreads(__tstate);
5158 if (PyErr_Occurred()) SWIG_fail;
5159 }
5160 {
5161 #if wxUSE_UNICODE
5162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5163 #else
5164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5165 #endif
5166 }
5167 return resultobj;
5168 fail:
5169 return NULL;
5170 }
5171
5172
5173 static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5174 PyObject *resultobj;
5175 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5176 int arg2 ;
5177 int arg3 ;
5178 wxString *arg4 = 0 ;
5179 bool temp4 = False ;
5180 PyObject * obj0 = 0 ;
5181 PyObject * obj3 = 0 ;
5182 char *kwnames[] = {
5183 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5184 };
5185
5186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_SetValue",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5188 {
5189 arg4 = wxString_in_helper(obj3);
5190 if (arg4 == NULL) SWIG_fail;
5191 temp4 = True;
5192 }
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4);
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 Py_INCREF(Py_None); resultobj = Py_None;
5201 {
5202 if (temp4)
5203 delete arg4;
5204 }
5205 return resultobj;
5206 fail:
5207 {
5208 if (temp4)
5209 delete arg4;
5210 }
5211 return NULL;
5212 }
5213
5214
5215 static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
5216 PyObject *resultobj;
5217 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5218 int arg2 ;
5219 int arg3 ;
5220 wxString result;
5221 PyObject * obj0 = 0 ;
5222 char *kwnames[] = {
5223 (char *) "self",(char *) "row",(char *) "col", NULL
5224 };
5225
5226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetTypeName",kwnames,&obj0,&arg2,&arg3)) goto fail;
5227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5228 {
5229 PyThreadState* __tstate = wxPyBeginAllowThreads();
5230 result = (arg1)->GetTypeName(arg2,arg3);
5231
5232 wxPyEndAllowThreads(__tstate);
5233 if (PyErr_Occurred()) SWIG_fail;
5234 }
5235 {
5236 #if wxUSE_UNICODE
5237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5238 #else
5239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5240 #endif
5241 }
5242 return resultobj;
5243 fail:
5244 return NULL;
5245 }
5246
5247
5248 static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj;
5250 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5251 int arg2 ;
5252 int arg3 ;
5253 wxString *arg4 = 0 ;
5254 bool result;
5255 bool temp4 = False ;
5256 PyObject * obj0 = 0 ;
5257 PyObject * obj3 = 0 ;
5258 char *kwnames[] = {
5259 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5260 };
5261
5262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_CanGetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5264 {
5265 arg4 = wxString_in_helper(obj3);
5266 if (arg4 == NULL) SWIG_fail;
5267 temp4 = True;
5268 }
5269 {
5270 PyThreadState* __tstate = wxPyBeginAllowThreads();
5271 result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
5272
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 resultobj = PyInt_FromLong((long)result);
5277 {
5278 if (temp4)
5279 delete arg4;
5280 }
5281 return resultobj;
5282 fail:
5283 {
5284 if (temp4)
5285 delete arg4;
5286 }
5287 return NULL;
5288 }
5289
5290
5291 static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5292 PyObject *resultobj;
5293 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5294 int arg2 ;
5295 int arg3 ;
5296 wxString *arg4 = 0 ;
5297 bool result;
5298 bool temp4 = False ;
5299 PyObject * obj0 = 0 ;
5300 PyObject * obj3 = 0 ;
5301 char *kwnames[] = {
5302 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5303 };
5304
5305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_CanSetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5307 {
5308 arg4 = wxString_in_helper(obj3);
5309 if (arg4 == NULL) SWIG_fail;
5310 temp4 = True;
5311 }
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
5315
5316 wxPyEndAllowThreads(__tstate);
5317 if (PyErr_Occurred()) SWIG_fail;
5318 }
5319 resultobj = PyInt_FromLong((long)result);
5320 {
5321 if (temp4)
5322 delete arg4;
5323 }
5324 return resultobj;
5325 fail:
5326 {
5327 if (temp4)
5328 delete arg4;
5329 }
5330 return NULL;
5331 }
5332
5333
5334 static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj;
5336 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5337 int arg2 ;
5338 int arg3 ;
5339 long result;
5340 PyObject * obj0 = 0 ;
5341 char *kwnames[] = {
5342 (char *) "self",(char *) "row",(char *) "col", NULL
5343 };
5344
5345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsLong",kwnames,&obj0,&arg2,&arg3)) goto fail;
5346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 result = (long)(arg1)->GetValueAsLong(arg2,arg3);
5350
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
5354 resultobj = PyInt_FromLong((long)result);
5355 return resultobj;
5356 fail:
5357 return NULL;
5358 }
5359
5360
5361 static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5364 int arg2 ;
5365 int arg3 ;
5366 double result;
5367 PyObject * obj0 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "self",(char *) "row",(char *) "col", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsDouble",kwnames,&obj0,&arg2,&arg3)) goto fail;
5373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 result = (double)(arg1)->GetValueAsDouble(arg2,arg3);
5377
5378 wxPyEndAllowThreads(__tstate);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 }
5381 resultobj = PyFloat_FromDouble(result);
5382 return resultobj;
5383 fail:
5384 return NULL;
5385 }
5386
5387
5388 static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5389 PyObject *resultobj;
5390 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5391 int arg2 ;
5392 int arg3 ;
5393 bool result;
5394 PyObject * obj0 = 0 ;
5395 char *kwnames[] = {
5396 (char *) "self",(char *) "row",(char *) "col", NULL
5397 };
5398
5399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsBool",kwnames,&obj0,&arg2,&arg3)) goto fail;
5400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 result = (bool)(arg1)->GetValueAsBool(arg2,arg3);
5404
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 }
5408 resultobj = PyInt_FromLong((long)result);
5409 return resultobj;
5410 fail:
5411 return NULL;
5412 }
5413
5414
5415 static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5416 PyObject *resultobj;
5417 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5418 int arg2 ;
5419 int arg3 ;
5420 long arg4 ;
5421 PyObject * obj0 = 0 ;
5422 char *kwnames[] = {
5423 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5424 };
5425
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiil:GridTableBase_SetValueAsLong",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5428 {
5429 PyThreadState* __tstate = wxPyBeginAllowThreads();
5430 (arg1)->SetValueAsLong(arg2,arg3,arg4);
5431
5432 wxPyEndAllowThreads(__tstate);
5433 if (PyErr_Occurred()) SWIG_fail;
5434 }
5435 Py_INCREF(Py_None); resultobj = Py_None;
5436 return resultobj;
5437 fail:
5438 return NULL;
5439 }
5440
5441
5442 static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5443 PyObject *resultobj;
5444 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5445 int arg2 ;
5446 int arg3 ;
5447 double arg4 ;
5448 PyObject * obj0 = 0 ;
5449 char *kwnames[] = {
5450 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5451 };
5452
5453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiid:GridTableBase_SetValueAsDouble",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 (arg1)->SetValueAsDouble(arg2,arg3,arg4);
5458
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 Py_INCREF(Py_None); resultobj = Py_None;
5463 return resultobj;
5464 fail:
5465 return NULL;
5466 }
5467
5468
5469 static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5470 PyObject *resultobj;
5471 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5472 int arg2 ;
5473 int arg3 ;
5474 bool arg4 ;
5475 PyObject * obj0 = 0 ;
5476 PyObject * obj3 = 0 ;
5477 char *kwnames[] = {
5478 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5479 };
5480
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_SetValueAsBool",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5483 {
5484 arg4 = (bool) SPyObj_AsBool(obj3);
5485 if (PyErr_Occurred()) SWIG_fail;
5486 }
5487 {
5488 PyThreadState* __tstate = wxPyBeginAllowThreads();
5489 (arg1)->SetValueAsBool(arg2,arg3,arg4);
5490
5491 wxPyEndAllowThreads(__tstate);
5492 if (PyErr_Occurred()) SWIG_fail;
5493 }
5494 Py_INCREF(Py_None); resultobj = Py_None;
5495 return resultobj;
5496 fail:
5497 return NULL;
5498 }
5499
5500
5501 static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5502 PyObject *resultobj;
5503 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5504 PyObject * obj0 = 0 ;
5505 char *kwnames[] = {
5506 (char *) "self", NULL
5507 };
5508
5509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail;
5510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5511 {
5512 PyThreadState* __tstate = wxPyBeginAllowThreads();
5513 (arg1)->Clear();
5514
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 Py_INCREF(Py_None); resultobj = Py_None;
5519 return resultobj;
5520 fail:
5521 return NULL;
5522 }
5523
5524
5525 static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj;
5527 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5528 size_t arg2 = (size_t) 0 ;
5529 size_t arg3 = (size_t) 1 ;
5530 bool result;
5531 PyObject * obj0 = 0 ;
5532 PyObject * obj1 = 0 ;
5533 PyObject * obj2 = 0 ;
5534 char *kwnames[] = {
5535 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5536 };
5537
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5540 if (obj1) {
5541 {
5542 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
5543 if (PyErr_Occurred()) SWIG_fail;
5544 }
5545 }
5546 if (obj2) {
5547 {
5548 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
5549 if (PyErr_Occurred()) SWIG_fail;
5550 }
5551 }
5552 {
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (bool)(arg1)->InsertRows(arg2,arg3);
5555
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = PyInt_FromLong((long)result);
5560 return resultobj;
5561 fail:
5562 return NULL;
5563 }
5564
5565
5566 static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj;
5568 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5569 size_t arg2 = (size_t) 1 ;
5570 bool result;
5571 PyObject * obj0 = 0 ;
5572 PyObject * obj1 = 0 ;
5573 char *kwnames[] = {
5574 (char *) "self",(char *) "numRows", NULL
5575 };
5576
5577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail;
5578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5579 if (obj1) {
5580 {
5581 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 }
5584 }
5585 {
5586 PyThreadState* __tstate = wxPyBeginAllowThreads();
5587 result = (bool)(arg1)->AppendRows(arg2);
5588
5589 wxPyEndAllowThreads(__tstate);
5590 if (PyErr_Occurred()) SWIG_fail;
5591 }
5592 resultobj = PyInt_FromLong((long)result);
5593 return resultobj;
5594 fail:
5595 return NULL;
5596 }
5597
5598
5599 static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5600 PyObject *resultobj;
5601 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5602 size_t arg2 = (size_t) 0 ;
5603 size_t arg3 = (size_t) 1 ;
5604 bool result;
5605 PyObject * obj0 = 0 ;
5606 PyObject * obj1 = 0 ;
5607 PyObject * obj2 = 0 ;
5608 char *kwnames[] = {
5609 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5610 };
5611
5612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5614 if (obj1) {
5615 {
5616 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 }
5620 if (obj2) {
5621 {
5622 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 }
5626 {
5627 PyThreadState* __tstate = wxPyBeginAllowThreads();
5628 result = (bool)(arg1)->DeleteRows(arg2,arg3);
5629
5630 wxPyEndAllowThreads(__tstate);
5631 if (PyErr_Occurred()) SWIG_fail;
5632 }
5633 resultobj = PyInt_FromLong((long)result);
5634 return resultobj;
5635 fail:
5636 return NULL;
5637 }
5638
5639
5640 static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5641 PyObject *resultobj;
5642 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5643 size_t arg2 = (size_t) 0 ;
5644 size_t arg3 = (size_t) 1 ;
5645 bool result;
5646 PyObject * obj0 = 0 ;
5647 PyObject * obj1 = 0 ;
5648 PyObject * obj2 = 0 ;
5649 char *kwnames[] = {
5650 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5651 };
5652
5653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5655 if (obj1) {
5656 {
5657 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 }
5661 if (obj2) {
5662 {
5663 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 }
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5669 result = (bool)(arg1)->InsertCols(arg2,arg3);
5670
5671 wxPyEndAllowThreads(__tstate);
5672 if (PyErr_Occurred()) SWIG_fail;
5673 }
5674 resultobj = PyInt_FromLong((long)result);
5675 return resultobj;
5676 fail:
5677 return NULL;
5678 }
5679
5680
5681 static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5682 PyObject *resultobj;
5683 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5684 size_t arg2 = (size_t) 1 ;
5685 bool result;
5686 PyObject * obj0 = 0 ;
5687 PyObject * obj1 = 0 ;
5688 char *kwnames[] = {
5689 (char *) "self",(char *) "numCols", NULL
5690 };
5691
5692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail;
5693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5694 if (obj1) {
5695 {
5696 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 }
5700 {
5701 PyThreadState* __tstate = wxPyBeginAllowThreads();
5702 result = (bool)(arg1)->AppendCols(arg2);
5703
5704 wxPyEndAllowThreads(__tstate);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 }
5707 resultobj = PyInt_FromLong((long)result);
5708 return resultobj;
5709 fail:
5710 return NULL;
5711 }
5712
5713
5714 static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5715 PyObject *resultobj;
5716 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5717 size_t arg2 = (size_t) 0 ;
5718 size_t arg3 = (size_t) 1 ;
5719 bool result;
5720 PyObject * obj0 = 0 ;
5721 PyObject * obj1 = 0 ;
5722 PyObject * obj2 = 0 ;
5723 char *kwnames[] = {
5724 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5725 };
5726
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5729 if (obj1) {
5730 {
5731 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
5732 if (PyErr_Occurred()) SWIG_fail;
5733 }
5734 }
5735 if (obj2) {
5736 {
5737 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
5738 if (PyErr_Occurred()) SWIG_fail;
5739 }
5740 }
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 result = (bool)(arg1)->DeleteCols(arg2,arg3);
5744
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 resultobj = PyInt_FromLong((long)result);
5749 return resultobj;
5750 fail:
5751 return NULL;
5752 }
5753
5754
5755 static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5756 PyObject *resultobj;
5757 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5758 int arg2 ;
5759 wxString result;
5760 PyObject * obj0 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "self",(char *) "row", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableBase_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
5766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5767 {
5768 PyThreadState* __tstate = wxPyBeginAllowThreads();
5769 result = (arg1)->GetRowLabelValue(arg2);
5770
5771 wxPyEndAllowThreads(__tstate);
5772 if (PyErr_Occurred()) SWIG_fail;
5773 }
5774 {
5775 #if wxUSE_UNICODE
5776 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5777 #else
5778 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5779 #endif
5780 }
5781 return resultobj;
5782 fail:
5783 return NULL;
5784 }
5785
5786
5787 static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5788 PyObject *resultobj;
5789 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5790 int arg2 ;
5791 wxString result;
5792 PyObject * obj0 = 0 ;
5793 char *kwnames[] = {
5794 (char *) "self",(char *) "col", NULL
5795 };
5796
5797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableBase_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
5798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5799 {
5800 PyThreadState* __tstate = wxPyBeginAllowThreads();
5801 result = (arg1)->GetColLabelValue(arg2);
5802
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 {
5807 #if wxUSE_UNICODE
5808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5809 #else
5810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5811 #endif
5812 }
5813 return resultobj;
5814 fail:
5815 return NULL;
5816 }
5817
5818
5819 static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5820 PyObject *resultobj;
5821 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5822 int arg2 ;
5823 wxString *arg3 = 0 ;
5824 bool temp3 = False ;
5825 PyObject * obj0 = 0 ;
5826 PyObject * obj2 = 0 ;
5827 char *kwnames[] = {
5828 (char *) "self",(char *) "row",(char *) "value", NULL
5829 };
5830
5831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
5832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5833 {
5834 arg3 = wxString_in_helper(obj2);
5835 if (arg3 == NULL) SWIG_fail;
5836 temp3 = True;
5837 }
5838 {
5839 PyThreadState* __tstate = wxPyBeginAllowThreads();
5840 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
5841
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 Py_INCREF(Py_None); resultobj = Py_None;
5846 {
5847 if (temp3)
5848 delete arg3;
5849 }
5850 return resultobj;
5851 fail:
5852 {
5853 if (temp3)
5854 delete arg3;
5855 }
5856 return NULL;
5857 }
5858
5859
5860 static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5861 PyObject *resultobj;
5862 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5863 int arg2 ;
5864 wxString *arg3 = 0 ;
5865 bool temp3 = False ;
5866 PyObject * obj0 = 0 ;
5867 PyObject * obj2 = 0 ;
5868 char *kwnames[] = {
5869 (char *) "self",(char *) "col",(char *) "value", NULL
5870 };
5871
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:GridTableBase_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
5873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5874 {
5875 arg3 = wxString_in_helper(obj2);
5876 if (arg3 == NULL) SWIG_fail;
5877 temp3 = True;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
5882
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 Py_INCREF(Py_None); resultobj = Py_None;
5887 {
5888 if (temp3)
5889 delete arg3;
5890 }
5891 return resultobj;
5892 fail:
5893 {
5894 if (temp3)
5895 delete arg3;
5896 }
5897 return NULL;
5898 }
5899
5900
5901 static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5902 PyObject *resultobj;
5903 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5904 bool result;
5905 PyObject * obj0 = 0 ;
5906 char *kwnames[] = {
5907 (char *) "self", NULL
5908 };
5909
5910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail;
5911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5912 {
5913 PyThreadState* __tstate = wxPyBeginAllowThreads();
5914 result = (bool)(arg1)->CanHaveAttributes();
5915
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 resultobj = PyInt_FromLong((long)result);
5920 return resultobj;
5921 fail:
5922 return NULL;
5923 }
5924
5925
5926 static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject *resultobj;
5928 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5929 int arg2 ;
5930 int arg3 ;
5931 int arg4 ;
5932 wxGridCellAttr *result;
5933 PyObject * obj0 = 0 ;
5934 char *kwnames[] = {
5935 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:GridTableBase_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
5943
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 {
5948 resultobj = wxPyMake_wxGridCellAttr(result);
5949 }
5950 return resultobj;
5951 fail:
5952 return NULL;
5953 }
5954
5955
5956 static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj;
5958 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5959 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5960 int arg3 ;
5961 int arg4 ;
5962 PyObject * obj0 = 0 ;
5963 PyObject * obj1 = 0 ;
5964 char *kwnames[] = {
5965 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
5966 };
5967
5968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
5969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5970 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5971 {
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 (arg1)->SetAttr(arg2,arg3,arg4);
5974
5975 wxPyEndAllowThreads(__tstate);
5976 if (PyErr_Occurred()) SWIG_fail;
5977 }
5978 Py_INCREF(Py_None); resultobj = Py_None;
5979 return resultobj;
5980 fail:
5981 return NULL;
5982 }
5983
5984
5985 static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5986 PyObject *resultobj;
5987 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5988 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5989 int arg3 ;
5990 PyObject * obj0 = 0 ;
5991 PyObject * obj1 = 0 ;
5992 char *kwnames[] = {
5993 (char *) "self",(char *) "attr",(char *) "row", NULL
5994 };
5995
5996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
5997 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5998 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5999 {
6000 PyThreadState* __tstate = wxPyBeginAllowThreads();
6001 (arg1)->SetRowAttr(arg2,arg3);
6002
6003 wxPyEndAllowThreads(__tstate);
6004 if (PyErr_Occurred()) SWIG_fail;
6005 }
6006 Py_INCREF(Py_None); resultobj = Py_None;
6007 return resultobj;
6008 fail:
6009 return NULL;
6010 }
6011
6012
6013 static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6014 PyObject *resultobj;
6015 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6016 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6017 int arg3 ;
6018 PyObject * obj0 = 0 ;
6019 PyObject * obj1 = 0 ;
6020 char *kwnames[] = {
6021 (char *) "self",(char *) "attr",(char *) "col", NULL
6022 };
6023
6024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
6025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6026 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6027 {
6028 PyThreadState* __tstate = wxPyBeginAllowThreads();
6029 (arg1)->SetColAttr(arg2,arg3);
6030
6031 wxPyEndAllowThreads(__tstate);
6032 if (PyErr_Occurred()) SWIG_fail;
6033 }
6034 Py_INCREF(Py_None); resultobj = Py_None;
6035 return resultobj;
6036 fail:
6037 return NULL;
6038 }
6039
6040
6041 static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) {
6042 PyObject *obj;
6043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6044 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj);
6045 Py_INCREF(obj);
6046 return Py_BuildValue((char *)"");
6047 }
6048 static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj;
6050 wxPyGridTableBase *result;
6051 char *kwnames[] = {
6052 NULL
6053 };
6054
6055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail;
6056 {
6057 PyThreadState* __tstate = wxPyBeginAllowThreads();
6058 result = (wxPyGridTableBase *)new wxPyGridTableBase();
6059
6060 wxPyEndAllowThreads(__tstate);
6061 if (PyErr_Occurred()) SWIG_fail;
6062 }
6063 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridTableBase, 1);
6064 return resultobj;
6065 fail:
6066 return NULL;
6067 }
6068
6069
6070 static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6071 PyObject *resultobj;
6072 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6073 PyObject *arg2 = (PyObject *) 0 ;
6074 PyObject *arg3 = (PyObject *) 0 ;
6075 PyObject * obj0 = 0 ;
6076 PyObject * obj1 = 0 ;
6077 PyObject * obj2 = 0 ;
6078 char *kwnames[] = {
6079 (char *) "self",(char *) "self",(char *) "_class", NULL
6080 };
6081
6082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6084 arg2 = obj1;
6085 arg3 = obj2;
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 (arg1)->_setCallbackInfo(arg2,arg3);
6089
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 Py_INCREF(Py_None); resultobj = Py_None;
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj;
6102 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6103 PyObject * obj0 = 0 ;
6104 char *kwnames[] = {
6105 (char *) "self", NULL
6106 };
6107
6108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail;
6109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 wxPyGridTableBase_Destroy(arg1);
6113
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 Py_INCREF(Py_None); resultobj = Py_None;
6118 return resultobj;
6119 fail:
6120 return NULL;
6121 }
6122
6123
6124 static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj;
6126 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6127 int arg2 ;
6128 int arg3 ;
6129 wxString result;
6130 PyObject * obj0 = 0 ;
6131 char *kwnames[] = {
6132 (char *) "self",(char *) "row",(char *) "col", NULL
6133 };
6134
6135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&arg2,&arg3)) goto fail;
6136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6137 {
6138 PyThreadState* __tstate = wxPyBeginAllowThreads();
6139 result = (arg1)->base_GetTypeName(arg2,arg3);
6140
6141 wxPyEndAllowThreads(__tstate);
6142 if (PyErr_Occurred()) SWIG_fail;
6143 }
6144 {
6145 #if wxUSE_UNICODE
6146 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6147 #else
6148 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6149 #endif
6150 }
6151 return resultobj;
6152 fail:
6153 return NULL;
6154 }
6155
6156
6157 static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
6158 PyObject *resultobj;
6159 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6160 int arg2 ;
6161 int arg3 ;
6162 wxString *arg4 = 0 ;
6163 bool result;
6164 bool temp4 = False ;
6165 PyObject * obj0 = 0 ;
6166 PyObject * obj3 = 0 ;
6167 char *kwnames[] = {
6168 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
6169 };
6170
6171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
6172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6173 {
6174 arg4 = wxString_in_helper(obj3);
6175 if (arg4 == NULL) SWIG_fail;
6176 temp4 = True;
6177 }
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 resultobj = PyInt_FromLong((long)result);
6186 {
6187 if (temp4)
6188 delete arg4;
6189 }
6190 return resultobj;
6191 fail:
6192 {
6193 if (temp4)
6194 delete arg4;
6195 }
6196 return NULL;
6197 }
6198
6199
6200 static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
6201 PyObject *resultobj;
6202 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6203 int arg2 ;
6204 int arg3 ;
6205 wxString *arg4 = 0 ;
6206 bool result;
6207 bool temp4 = False ;
6208 PyObject * obj0 = 0 ;
6209 PyObject * obj3 = 0 ;
6210 char *kwnames[] = {
6211 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
6212 };
6213
6214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
6215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6216 {
6217 arg4 = wxString_in_helper(obj3);
6218 if (arg4 == NULL) SWIG_fail;
6219 temp4 = True;
6220 }
6221 {
6222 PyThreadState* __tstate = wxPyBeginAllowThreads();
6223 result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
6224
6225 wxPyEndAllowThreads(__tstate);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 }
6228 resultobj = PyInt_FromLong((long)result);
6229 {
6230 if (temp4)
6231 delete arg4;
6232 }
6233 return resultobj;
6234 fail:
6235 {
6236 if (temp4)
6237 delete arg4;
6238 }
6239 return NULL;
6240 }
6241
6242
6243 static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6244 PyObject *resultobj;
6245 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6246 PyObject * obj0 = 0 ;
6247 char *kwnames[] = {
6248 (char *) "self", NULL
6249 };
6250
6251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail;
6252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6253 {
6254 PyThreadState* __tstate = wxPyBeginAllowThreads();
6255 (arg1)->base_Clear();
6256
6257 wxPyEndAllowThreads(__tstate);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 }
6260 Py_INCREF(Py_None); resultobj = Py_None;
6261 return resultobj;
6262 fail:
6263 return NULL;
6264 }
6265
6266
6267 static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj;
6269 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6270 size_t arg2 = (size_t) 0 ;
6271 size_t arg3 = (size_t) 1 ;
6272 bool result;
6273 PyObject * obj0 = 0 ;
6274 PyObject * obj1 = 0 ;
6275 PyObject * obj2 = 0 ;
6276 char *kwnames[] = {
6277 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6278 };
6279
6280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6282 if (obj1) {
6283 {
6284 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 }
6288 if (obj2) {
6289 {
6290 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
6291 if (PyErr_Occurred()) SWIG_fail;
6292 }
6293 }
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 result = (bool)(arg1)->base_InsertRows(arg2,arg3);
6297
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 resultobj = PyInt_FromLong((long)result);
6302 return resultobj;
6303 fail:
6304 return NULL;
6305 }
6306
6307
6308 static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj;
6310 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6311 size_t arg2 = (size_t) 1 ;
6312 bool result;
6313 PyObject * obj0 = 0 ;
6314 PyObject * obj1 = 0 ;
6315 char *kwnames[] = {
6316 (char *) "self",(char *) "numRows", NULL
6317 };
6318
6319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail;
6320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6321 if (obj1) {
6322 {
6323 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
6324 if (PyErr_Occurred()) SWIG_fail;
6325 }
6326 }
6327 {
6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
6329 result = (bool)(arg1)->base_AppendRows(arg2);
6330
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 resultobj = PyInt_FromLong((long)result);
6335 return resultobj;
6336 fail:
6337 return NULL;
6338 }
6339
6340
6341 static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj;
6343 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6344 size_t arg2 = (size_t) 0 ;
6345 size_t arg3 = (size_t) 1 ;
6346 bool result;
6347 PyObject * obj0 = 0 ;
6348 PyObject * obj1 = 0 ;
6349 PyObject * obj2 = 0 ;
6350 char *kwnames[] = {
6351 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6352 };
6353
6354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6356 if (obj1) {
6357 {
6358 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
6359 if (PyErr_Occurred()) SWIG_fail;
6360 }
6361 }
6362 if (obj2) {
6363 {
6364 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
6365 if (PyErr_Occurred()) SWIG_fail;
6366 }
6367 }
6368 {
6369 PyThreadState* __tstate = wxPyBeginAllowThreads();
6370 result = (bool)(arg1)->base_DeleteRows(arg2,arg3);
6371
6372 wxPyEndAllowThreads(__tstate);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 resultobj = PyInt_FromLong((long)result);
6376 return resultobj;
6377 fail:
6378 return NULL;
6379 }
6380
6381
6382 static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6383 PyObject *resultobj;
6384 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6385 size_t arg2 = (size_t) 0 ;
6386 size_t arg3 = (size_t) 1 ;
6387 bool result;
6388 PyObject * obj0 = 0 ;
6389 PyObject * obj1 = 0 ;
6390 PyObject * obj2 = 0 ;
6391 char *kwnames[] = {
6392 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6393 };
6394
6395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6397 if (obj1) {
6398 {
6399 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
6400 if (PyErr_Occurred()) SWIG_fail;
6401 }
6402 }
6403 if (obj2) {
6404 {
6405 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
6406 if (PyErr_Occurred()) SWIG_fail;
6407 }
6408 }
6409 {
6410 PyThreadState* __tstate = wxPyBeginAllowThreads();
6411 result = (bool)(arg1)->base_InsertCols(arg2,arg3);
6412
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = PyInt_FromLong((long)result);
6417 return resultobj;
6418 fail:
6419 return NULL;
6420 }
6421
6422
6423 static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj;
6425 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6426 size_t arg2 = (size_t) 1 ;
6427 bool result;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 char *kwnames[] = {
6431 (char *) "self",(char *) "numCols", NULL
6432 };
6433
6434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail;
6435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6436 if (obj1) {
6437 {
6438 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
6439 if (PyErr_Occurred()) SWIG_fail;
6440 }
6441 }
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 result = (bool)(arg1)->base_AppendCols(arg2);
6445
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 resultobj = PyInt_FromLong((long)result);
6450 return resultobj;
6451 fail:
6452 return NULL;
6453 }
6454
6455
6456 static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6457 PyObject *resultobj;
6458 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6459 size_t arg2 = (size_t) 0 ;
6460 size_t arg3 = (size_t) 1 ;
6461 bool result;
6462 PyObject * obj0 = 0 ;
6463 PyObject * obj1 = 0 ;
6464 PyObject * obj2 = 0 ;
6465 char *kwnames[] = {
6466 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6467 };
6468
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6471 if (obj1) {
6472 {
6473 arg2 = (size_t) SPyObj_AsUnsignedLong(obj1);
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 }
6477 if (obj2) {
6478 {
6479 arg3 = (size_t) SPyObj_AsUnsignedLong(obj2);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 }
6483 {
6484 PyThreadState* __tstate = wxPyBeginAllowThreads();
6485 result = (bool)(arg1)->base_DeleteCols(arg2,arg3);
6486
6487 wxPyEndAllowThreads(__tstate);
6488 if (PyErr_Occurred()) SWIG_fail;
6489 }
6490 resultobj = PyInt_FromLong((long)result);
6491 return resultobj;
6492 fail:
6493 return NULL;
6494 }
6495
6496
6497 static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6498 PyObject *resultobj;
6499 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6500 int arg2 ;
6501 wxString result;
6502 PyObject * obj0 = 0 ;
6503 char *kwnames[] = {
6504 (char *) "self",(char *) "row", NULL
6505 };
6506
6507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
6508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6509 {
6510 PyThreadState* __tstate = wxPyBeginAllowThreads();
6511 result = (arg1)->base_GetRowLabelValue(arg2);
6512
6513 wxPyEndAllowThreads(__tstate);
6514 if (PyErr_Occurred()) SWIG_fail;
6515 }
6516 {
6517 #if wxUSE_UNICODE
6518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6519 #else
6520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6521 #endif
6522 }
6523 return resultobj;
6524 fail:
6525 return NULL;
6526 }
6527
6528
6529 static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6530 PyObject *resultobj;
6531 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6532 int arg2 ;
6533 wxString result;
6534 PyObject * obj0 = 0 ;
6535 char *kwnames[] = {
6536 (char *) "self",(char *) "col", NULL
6537 };
6538
6539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
6540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 result = (arg1)->base_GetColLabelValue(arg2);
6544
6545 wxPyEndAllowThreads(__tstate);
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 {
6549 #if wxUSE_UNICODE
6550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6551 #else
6552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6553 #endif
6554 }
6555 return resultobj;
6556 fail:
6557 return NULL;
6558 }
6559
6560
6561 static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj;
6563 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6564 int arg2 ;
6565 wxString *arg3 = 0 ;
6566 bool temp3 = False ;
6567 PyObject * obj0 = 0 ;
6568 PyObject * obj2 = 0 ;
6569 char *kwnames[] = {
6570 (char *) "self",(char *) "row",(char *) "value", NULL
6571 };
6572
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
6574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6575 {
6576 arg3 = wxString_in_helper(obj2);
6577 if (arg3 == NULL) SWIG_fail;
6578 temp3 = True;
6579 }
6580 {
6581 PyThreadState* __tstate = wxPyBeginAllowThreads();
6582 (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3);
6583
6584 wxPyEndAllowThreads(__tstate);
6585 if (PyErr_Occurred()) SWIG_fail;
6586 }
6587 Py_INCREF(Py_None); resultobj = Py_None;
6588 {
6589 if (temp3)
6590 delete arg3;
6591 }
6592 return resultobj;
6593 fail:
6594 {
6595 if (temp3)
6596 delete arg3;
6597 }
6598 return NULL;
6599 }
6600
6601
6602 static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6603 PyObject *resultobj;
6604 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6605 int arg2 ;
6606 wxString *arg3 = 0 ;
6607 bool temp3 = False ;
6608 PyObject * obj0 = 0 ;
6609 PyObject * obj2 = 0 ;
6610 char *kwnames[] = {
6611 (char *) "self",(char *) "col",(char *) "value", NULL
6612 };
6613
6614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
6615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6616 {
6617 arg3 = wxString_in_helper(obj2);
6618 if (arg3 == NULL) SWIG_fail;
6619 temp3 = True;
6620 }
6621 {
6622 PyThreadState* __tstate = wxPyBeginAllowThreads();
6623 (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3);
6624
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 Py_INCREF(Py_None); resultobj = Py_None;
6629 {
6630 if (temp3)
6631 delete arg3;
6632 }
6633 return resultobj;
6634 fail:
6635 {
6636 if (temp3)
6637 delete arg3;
6638 }
6639 return NULL;
6640 }
6641
6642
6643 static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6644 PyObject *resultobj;
6645 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6646 bool result;
6647 PyObject * obj0 = 0 ;
6648 char *kwnames[] = {
6649 (char *) "self", NULL
6650 };
6651
6652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail;
6653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6654 {
6655 PyThreadState* __tstate = wxPyBeginAllowThreads();
6656 result = (bool)(arg1)->base_CanHaveAttributes();
6657
6658 wxPyEndAllowThreads(__tstate);
6659 if (PyErr_Occurred()) SWIG_fail;
6660 }
6661 resultobj = PyInt_FromLong((long)result);
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj;
6670 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6671 int arg2 ;
6672 int arg3 ;
6673 int arg4 ;
6674 wxGridCellAttr *result;
6675 PyObject * obj0 = 0 ;
6676 char *kwnames[] = {
6677 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
6678 };
6679
6680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:PyGridTableBase_base_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
6681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6682 {
6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
6684 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
6685
6686 wxPyEndAllowThreads(__tstate);
6687 if (PyErr_Occurred()) SWIG_fail;
6688 }
6689 {
6690 resultobj = wxPyMake_wxGridCellAttr(result);
6691 }
6692 return resultobj;
6693 fail:
6694 return NULL;
6695 }
6696
6697
6698 static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6699 PyObject *resultobj;
6700 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6701 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6702 int arg3 ;
6703 int arg4 ;
6704 PyObject * obj0 = 0 ;
6705 PyObject * obj1 = 0 ;
6706 char *kwnames[] = {
6707 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
6708 };
6709
6710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
6711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6712 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6713 {
6714 PyThreadState* __tstate = wxPyBeginAllowThreads();
6715 (arg1)->base_SetAttr(arg2,arg3,arg4);
6716
6717 wxPyEndAllowThreads(__tstate);
6718 if (PyErr_Occurred()) SWIG_fail;
6719 }
6720 Py_INCREF(Py_None); resultobj = Py_None;
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj;
6729 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6730 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6731 int arg3 ;
6732 PyObject * obj0 = 0 ;
6733 PyObject * obj1 = 0 ;
6734 char *kwnames[] = {
6735 (char *) "self",(char *) "attr",(char *) "row", NULL
6736 };
6737
6738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
6739 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6740 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6741 {
6742 PyThreadState* __tstate = wxPyBeginAllowThreads();
6743 (arg1)->base_SetRowAttr(arg2,arg3);
6744
6745 wxPyEndAllowThreads(__tstate);
6746 if (PyErr_Occurred()) SWIG_fail;
6747 }
6748 Py_INCREF(Py_None); resultobj = Py_None;
6749 return resultobj;
6750 fail:
6751 return NULL;
6752 }
6753
6754
6755 static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6756 PyObject *resultobj;
6757 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6758 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6759 int arg3 ;
6760 PyObject * obj0 = 0 ;
6761 PyObject * obj1 = 0 ;
6762 char *kwnames[] = {
6763 (char *) "self",(char *) "attr",(char *) "col", NULL
6764 };
6765
6766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
6767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6768 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6769 {
6770 PyThreadState* __tstate = wxPyBeginAllowThreads();
6771 (arg1)->base_SetColAttr(arg2,arg3);
6772
6773 wxPyEndAllowThreads(__tstate);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 }
6776 Py_INCREF(Py_None); resultobj = Py_None;
6777 return resultobj;
6778 fail:
6779 return NULL;
6780 }
6781
6782
6783 static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) {
6784 PyObject *obj;
6785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6786 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj);
6787 Py_INCREF(obj);
6788 return Py_BuildValue((char *)"");
6789 }
6790 static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) {
6791 PyObject *resultobj;
6792 int arg1 = (int) 0 ;
6793 int arg2 = (int) 0 ;
6794 wxGridStringTable *result;
6795 char *kwnames[] = {
6796 (char *) "numRows",(char *) "numCols", NULL
6797 };
6798
6799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridStringTable",kwnames,&arg1,&arg2)) goto fail;
6800 {
6801 PyThreadState* __tstate = wxPyBeginAllowThreads();
6802 result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2);
6803
6804 wxPyEndAllowThreads(__tstate);
6805 if (PyErr_Occurred()) SWIG_fail;
6806 }
6807 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridStringTable, 1);
6808 return resultobj;
6809 fail:
6810 return NULL;
6811 }
6812
6813
6814 static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) {
6815 PyObject *obj;
6816 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6817 SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj);
6818 Py_INCREF(obj);
6819 return Py_BuildValue((char *)"");
6820 }
6821 static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
6822 PyObject *resultobj;
6823 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6824 int arg2 ;
6825 int arg3 = (int) -1 ;
6826 int arg4 = (int) -1 ;
6827 wxGridTableMessage *result;
6828 PyObject * obj0 = 0 ;
6829 char *kwnames[] = {
6830 (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL
6831 };
6832
6833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:new_GridTableMessage",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
6834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6835 {
6836 PyThreadState* __tstate = wxPyBeginAllowThreads();
6837 result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4);
6838
6839 wxPyEndAllowThreads(__tstate);
6840 if (PyErr_Occurred()) SWIG_fail;
6841 }
6842 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridTableMessage, 1);
6843 return resultobj;
6844 fail:
6845 return NULL;
6846 }
6847
6848
6849 static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj;
6851 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6852 PyObject * obj0 = 0 ;
6853 char *kwnames[] = {
6854 (char *) "self", NULL
6855 };
6856
6857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail;
6858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6859 {
6860 PyThreadState* __tstate = wxPyBeginAllowThreads();
6861 delete arg1;
6862
6863 wxPyEndAllowThreads(__tstate);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 Py_INCREF(Py_None); resultobj = Py_None;
6867 return resultobj;
6868 fail:
6869 return NULL;
6870 }
6871
6872
6873 static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
6874 PyObject *resultobj;
6875 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6876 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
6877 PyObject * obj0 = 0 ;
6878 PyObject * obj1 = 0 ;
6879 char *kwnames[] = {
6880 (char *) "self",(char *) "table", NULL
6881 };
6882
6883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail;
6884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6885 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6886 {
6887 PyThreadState* __tstate = wxPyBeginAllowThreads();
6888 (arg1)->SetTableObject(arg2);
6889
6890 wxPyEndAllowThreads(__tstate);
6891 if (PyErr_Occurred()) SWIG_fail;
6892 }
6893 Py_INCREF(Py_None); resultobj = Py_None;
6894 return resultobj;
6895 fail:
6896 return NULL;
6897 }
6898
6899
6900 static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
6901 PyObject *resultobj;
6902 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6903 wxGridTableBase *result;
6904 PyObject * obj0 = 0 ;
6905 char *kwnames[] = {
6906 (char *) "self", NULL
6907 };
6908
6909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail;
6910 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6911 {
6912 PyThreadState* __tstate = wxPyBeginAllowThreads();
6913 result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject();
6914
6915 wxPyEndAllowThreads(__tstate);
6916 if (PyErr_Occurred()) SWIG_fail;
6917 }
6918 {
6919 resultobj = wxPyMake_wxGridTableBase(result);
6920 }
6921 return resultobj;
6922 fail:
6923 return NULL;
6924 }
6925
6926
6927 static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6928 PyObject *resultobj;
6929 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6930 int arg2 ;
6931 PyObject * obj0 = 0 ;
6932 char *kwnames[] = {
6933 (char *) "self",(char *) "id", NULL
6934 };
6935
6936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetId",kwnames,&obj0,&arg2)) goto fail;
6937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6938 {
6939 PyThreadState* __tstate = wxPyBeginAllowThreads();
6940 (arg1)->SetId(arg2);
6941
6942 wxPyEndAllowThreads(__tstate);
6943 if (PyErr_Occurred()) SWIG_fail;
6944 }
6945 Py_INCREF(Py_None); resultobj = Py_None;
6946 return resultobj;
6947 fail:
6948 return NULL;
6949 }
6950
6951
6952 static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6953 PyObject *resultobj;
6954 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6955 int result;
6956 PyObject * obj0 = 0 ;
6957 char *kwnames[] = {
6958 (char *) "self", NULL
6959 };
6960
6961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail;
6962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6963 {
6964 PyThreadState* __tstate = wxPyBeginAllowThreads();
6965 result = (int)(arg1)->GetId();
6966
6967 wxPyEndAllowThreads(__tstate);
6968 if (PyErr_Occurred()) SWIG_fail;
6969 }
6970 resultobj = PyInt_FromLong((long)result);
6971 return resultobj;
6972 fail:
6973 return NULL;
6974 }
6975
6976
6977 static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
6978 PyObject *resultobj;
6979 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6980 int arg2 ;
6981 PyObject * obj0 = 0 ;
6982 char *kwnames[] = {
6983 (char *) "self",(char *) "comInt1", NULL
6984 };
6985
6986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetCommandInt",kwnames,&obj0,&arg2)) goto fail;
6987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6988 {
6989 PyThreadState* __tstate = wxPyBeginAllowThreads();
6990 (arg1)->SetCommandInt(arg2);
6991
6992 wxPyEndAllowThreads(__tstate);
6993 if (PyErr_Occurred()) SWIG_fail;
6994 }
6995 Py_INCREF(Py_None); resultobj = Py_None;
6996 return resultobj;
6997 fail:
6998 return NULL;
6999 }
7000
7001
7002 static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
7003 PyObject *resultobj;
7004 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7005 int result;
7006 PyObject * obj0 = 0 ;
7007 char *kwnames[] = {
7008 (char *) "self", NULL
7009 };
7010
7011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail;
7012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7013 {
7014 PyThreadState* __tstate = wxPyBeginAllowThreads();
7015 result = (int)(arg1)->GetCommandInt();
7016
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 resultobj = PyInt_FromLong((long)result);
7021 return resultobj;
7022 fail:
7023 return NULL;
7024 }
7025
7026
7027 static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
7028 PyObject *resultobj;
7029 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7030 int arg2 ;
7031 PyObject * obj0 = 0 ;
7032 char *kwnames[] = {
7033 (char *) "self",(char *) "comInt2", NULL
7034 };
7035
7036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetCommandInt2",kwnames,&obj0,&arg2)) goto fail;
7037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7038 {
7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
7040 (arg1)->SetCommandInt2(arg2);
7041
7042 wxPyEndAllowThreads(__tstate);
7043 if (PyErr_Occurred()) SWIG_fail;
7044 }
7045 Py_INCREF(Py_None); resultobj = Py_None;
7046 return resultobj;
7047 fail:
7048 return NULL;
7049 }
7050
7051
7052 static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
7053 PyObject *resultobj;
7054 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7055 int result;
7056 PyObject * obj0 = 0 ;
7057 char *kwnames[] = {
7058 (char *) "self", NULL
7059 };
7060
7061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail;
7062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 result = (int)(arg1)->GetCommandInt2();
7066
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 resultobj = PyInt_FromLong((long)result);
7071 return resultobj;
7072 fail:
7073 return NULL;
7074 }
7075
7076
7077 static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) {
7078 PyObject *obj;
7079 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7080 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj);
7081 Py_INCREF(obj);
7082 return Py_BuildValue((char *)"");
7083 }
7084 static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
7085 PyObject *resultobj;
7086 int arg1 = (int) -1 ;
7087 int arg2 = (int) -1 ;
7088 wxGridCellCoords *result;
7089 char *kwnames[] = {
7090 (char *) "r",(char *) "c", NULL
7091 };
7092
7093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellCoords",kwnames,&arg1,&arg2)) goto fail;
7094 {
7095 PyThreadState* __tstate = wxPyBeginAllowThreads();
7096 result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2);
7097
7098 wxPyEndAllowThreads(__tstate);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 }
7101 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellCoords, 1);
7102 return resultobj;
7103 fail:
7104 return NULL;
7105 }
7106
7107
7108 static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
7109 PyObject *resultobj;
7110 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7111 PyObject * obj0 = 0 ;
7112 char *kwnames[] = {
7113 (char *) "self", NULL
7114 };
7115
7116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail;
7117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7118 {
7119 PyThreadState* __tstate = wxPyBeginAllowThreads();
7120 delete arg1;
7121
7122 wxPyEndAllowThreads(__tstate);
7123 if (PyErr_Occurred()) SWIG_fail;
7124 }
7125 Py_INCREF(Py_None); resultobj = Py_None;
7126 return resultobj;
7127 fail:
7128 return NULL;
7129 }
7130
7131
7132 static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
7133 PyObject *resultobj;
7134 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7135 int result;
7136 PyObject * obj0 = 0 ;
7137 char *kwnames[] = {
7138 (char *) "self", NULL
7139 };
7140
7141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail;
7142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7143 {
7144 PyThreadState* __tstate = wxPyBeginAllowThreads();
7145 result = (int)((wxGridCellCoords const *)arg1)->GetRow();
7146
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 resultobj = PyInt_FromLong((long)result);
7151 return resultobj;
7152 fail:
7153 return NULL;
7154 }
7155
7156
7157 static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
7158 PyObject *resultobj;
7159 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7160 int arg2 ;
7161 PyObject * obj0 = 0 ;
7162 char *kwnames[] = {
7163 (char *) "self",(char *) "n", NULL
7164 };
7165
7166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellCoords_SetRow",kwnames,&obj0,&arg2)) goto fail;
7167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7168 {
7169 PyThreadState* __tstate = wxPyBeginAllowThreads();
7170 (arg1)->SetRow(arg2);
7171
7172 wxPyEndAllowThreads(__tstate);
7173 if (PyErr_Occurred()) SWIG_fail;
7174 }
7175 Py_INCREF(Py_None); resultobj = Py_None;
7176 return resultobj;
7177 fail:
7178 return NULL;
7179 }
7180
7181
7182 static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
7183 PyObject *resultobj;
7184 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7185 int result;
7186 PyObject * obj0 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "self", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7193 {
7194 PyThreadState* __tstate = wxPyBeginAllowThreads();
7195 result = (int)((wxGridCellCoords const *)arg1)->GetCol();
7196
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 }
7200 resultobj = PyInt_FromLong((long)result);
7201 return resultobj;
7202 fail:
7203 return NULL;
7204 }
7205
7206
7207 static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
7208 PyObject *resultobj;
7209 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7210 int arg2 ;
7211 PyObject * obj0 = 0 ;
7212 char *kwnames[] = {
7213 (char *) "self",(char *) "n", NULL
7214 };
7215
7216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellCoords_SetCol",kwnames,&obj0,&arg2)) goto fail;
7217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7218 {
7219 PyThreadState* __tstate = wxPyBeginAllowThreads();
7220 (arg1)->SetCol(arg2);
7221
7222 wxPyEndAllowThreads(__tstate);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 Py_INCREF(Py_None); resultobj = Py_None;
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7233 PyObject *resultobj;
7234 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7235 int arg2 ;
7236 int arg3 ;
7237 PyObject * obj0 = 0 ;
7238 char *kwnames[] = {
7239 (char *) "self",(char *) "row",(char *) "col", NULL
7240 };
7241
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellCoords_Set",kwnames,&obj0,&arg2,&arg3)) goto fail;
7243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 (arg1)->Set(arg2,arg3);
7247
7248 wxPyEndAllowThreads(__tstate);
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 Py_INCREF(Py_None); resultobj = Py_None;
7252 return resultobj;
7253 fail:
7254 return NULL;
7255 }
7256
7257
7258 static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj;
7260 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7261 wxGridCellCoords *arg2 = 0 ;
7262 bool result;
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 char *kwnames[] = {
7266 (char *) "self",(char *) "other", NULL
7267 };
7268
7269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail;
7270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7271 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7272 if (arg2 == NULL) {
7273 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7274 }
7275 {
7276 PyThreadState* __tstate = wxPyBeginAllowThreads();
7277 result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2);
7278
7279 wxPyEndAllowThreads(__tstate);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 resultobj = PyInt_FromLong((long)result);
7283 return resultobj;
7284 fail:
7285 return NULL;
7286 }
7287
7288
7289 static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7290 PyObject *resultobj;
7291 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7292 wxGridCellCoords *arg2 = 0 ;
7293 bool result;
7294 PyObject * obj0 = 0 ;
7295 PyObject * obj1 = 0 ;
7296 char *kwnames[] = {
7297 (char *) "self",(char *) "other", NULL
7298 };
7299
7300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail;
7301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7302 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7303 if (arg2 == NULL) {
7304 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7305 }
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2);
7309
7310 wxPyEndAllowThreads(__tstate);
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 resultobj = PyInt_FromLong((long)result);
7314 return resultobj;
7315 fail:
7316 return NULL;
7317 }
7318
7319
7320 static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7321 PyObject *resultobj;
7322 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7323 PyObject *result;
7324 PyObject * obj0 = 0 ;
7325 char *kwnames[] = {
7326 (char *) "self", NULL
7327 };
7328
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail;
7330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7331 {
7332 PyThreadState* __tstate = wxPyBeginAllowThreads();
7333 result = (PyObject *)wxGridCellCoords_asTuple(arg1);
7334
7335 wxPyEndAllowThreads(__tstate);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 resultobj = result;
7339 return resultobj;
7340 fail:
7341 return NULL;
7342 }
7343
7344
7345 static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) {
7346 PyObject *obj;
7347 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7348 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj);
7349 Py_INCREF(obj);
7350 return Py_BuildValue((char *)"");
7351 }
7352 static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) {
7353 PyObject *resultobj;
7354 wxWindow *arg1 = (wxWindow *) 0 ;
7355 int arg2 ;
7356 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7357 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7358 wxSize const &arg4_defvalue = wxDefaultSize ;
7359 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7360 long arg5 = (long) wxWANTS_CHARS ;
7361 wxString const &arg6_defvalue = wxPyPanelNameStr ;
7362 wxString *arg6 = (wxString *) &arg6_defvalue ;
7363 wxGrid *result;
7364 wxPoint temp3 ;
7365 wxSize temp4 ;
7366 bool temp6 = False ;
7367 PyObject * obj0 = 0 ;
7368 PyObject * obj2 = 0 ;
7369 PyObject * obj3 = 0 ;
7370 PyObject * obj5 = 0 ;
7371 char *kwnames[] = {
7372 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7373 };
7374
7375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Grid",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail;
7376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7377 if (obj2) {
7378 {
7379 arg3 = &temp3;
7380 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7381 }
7382 }
7383 if (obj3) {
7384 {
7385 arg4 = &temp4;
7386 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7387 }
7388 }
7389 if (obj5) {
7390 {
7391 arg6 = wxString_in_helper(obj5);
7392 if (arg6 == NULL) SWIG_fail;
7393 temp6 = True;
7394 }
7395 }
7396 {
7397 PyThreadState* __tstate = wxPyBeginAllowThreads();
7398 result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7399
7400 wxPyEndAllowThreads(__tstate);
7401 if (PyErr_Occurred()) SWIG_fail;
7402 }
7403 {
7404 resultobj = wxPyMake_wxObject(result);
7405 }
7406 {
7407 if (temp6)
7408 delete arg6;
7409 }
7410 return resultobj;
7411 fail:
7412 {
7413 if (temp6)
7414 delete arg6;
7415 }
7416 return NULL;
7417 }
7418
7419
7420 static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
7421 PyObject *resultobj;
7422 wxGrid *arg1 = (wxGrid *) 0 ;
7423 int arg2 ;
7424 int arg3 ;
7425 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
7426 bool result;
7427 PyObject * obj0 = 0 ;
7428 char *kwnames[] = {
7429 (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL
7430 };
7431
7432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:Grid_CreateGrid",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
7433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7434 {
7435 PyThreadState* __tstate = wxPyBeginAllowThreads();
7436 result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4);
7437
7438 wxPyEndAllowThreads(__tstate);
7439 if (PyErr_Occurred()) SWIG_fail;
7440 }
7441 resultobj = PyInt_FromLong((long)result);
7442 return resultobj;
7443 fail:
7444 return NULL;
7445 }
7446
7447
7448 static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj;
7450 wxGrid *arg1 = (wxGrid *) 0 ;
7451 WXGRIDSELECTIONMODES arg2 ;
7452 PyObject * obj0 = 0 ;
7453 char *kwnames[] = {
7454 (char *) "self",(char *) "selmode", NULL
7455 };
7456
7457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetSelectionMode",kwnames,&obj0,&arg2)) goto fail;
7458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 (arg1)->SetSelectionMode(arg2);
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 Py_INCREF(Py_None); resultobj = Py_None;
7467 return resultobj;
7468 fail:
7469 return NULL;
7470 }
7471
7472
7473 static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7474 PyObject *resultobj;
7475 wxGrid *arg1 = (wxGrid *) 0 ;
7476 WXGRIDSELECTIONMODES result;
7477 PyObject * obj0 = 0 ;
7478 char *kwnames[] = {
7479 (char *) "self", NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail;
7483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7484 {
7485 PyThreadState* __tstate = wxPyBeginAllowThreads();
7486 result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode();
7487
7488 wxPyEndAllowThreads(__tstate);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 resultobj = PyInt_FromLong((long)result);
7492 return resultobj;
7493 fail:
7494 return NULL;
7495 }
7496
7497
7498 static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7499 PyObject *resultobj;
7500 wxGrid *arg1 = (wxGrid *) 0 ;
7501 int result;
7502 PyObject * obj0 = 0 ;
7503 char *kwnames[] = {
7504 (char *) "self", NULL
7505 };
7506
7507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail;
7508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 result = (int)(arg1)->GetNumberRows();
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 resultobj = PyInt_FromLong((long)result);
7517 return resultobj;
7518 fail:
7519 return NULL;
7520 }
7521
7522
7523 static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7524 PyObject *resultobj;
7525 wxGrid *arg1 = (wxGrid *) 0 ;
7526 int result;
7527 PyObject * obj0 = 0 ;
7528 char *kwnames[] = {
7529 (char *) "self", NULL
7530 };
7531
7532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail;
7533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7534 {
7535 PyThreadState* __tstate = wxPyBeginAllowThreads();
7536 result = (int)(arg1)->GetNumberCols();
7537
7538 wxPyEndAllowThreads(__tstate);
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
7541 resultobj = PyInt_FromLong((long)result);
7542 return resultobj;
7543 fail:
7544 return NULL;
7545 }
7546
7547
7548 static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7549 PyObject *resultobj;
7550 wxGrid *arg1 = (wxGrid *) 0 ;
7551 wxGridTableMessage *arg2 = 0 ;
7552 bool result;
7553 PyObject * obj0 = 0 ;
7554 PyObject * obj1 = 0 ;
7555 char *kwnames[] = {
7556 (char *) "self","arg2", NULL
7557 };
7558
7559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail;
7560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7561 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7562 if (arg2 == NULL) {
7563 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7564 }
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 result = (bool)(arg1)->ProcessTableMessage(*arg2);
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 resultobj = PyInt_FromLong((long)result);
7573 return resultobj;
7574 fail:
7575 return NULL;
7576 }
7577
7578
7579 static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj;
7581 wxGrid *arg1 = (wxGrid *) 0 ;
7582 wxGridTableBase *result;
7583 PyObject * obj0 = 0 ;
7584 char *kwnames[] = {
7585 (char *) "self", NULL
7586 };
7587
7588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail;
7589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7590 {
7591 PyThreadState* __tstate = wxPyBeginAllowThreads();
7592 result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable();
7593
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 {
7598 resultobj = wxPyMake_wxGridTableBase(result);
7599 }
7600 return resultobj;
7601 fail:
7602 return NULL;
7603 }
7604
7605
7606 static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7607 PyObject *resultobj;
7608 wxGrid *arg1 = (wxGrid *) 0 ;
7609 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
7610 bool arg3 = (bool) False ;
7611 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
7612 bool result;
7613 PyObject * obj0 = 0 ;
7614 PyObject * obj1 = 0 ;
7615 PyObject * obj2 = 0 ;
7616 char *kwnames[] = {
7617 (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL
7618 };
7619
7620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
7621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7622 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7623 if (obj2) {
7624 {
7625 arg3 = (bool) SPyObj_AsBool(obj2);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 }
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (bool)(arg1)->SetTable(arg2,arg3,arg4);
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 resultobj = PyInt_FromLong((long)result);
7637 return resultobj;
7638 fail:
7639 return NULL;
7640 }
7641
7642
7643 static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj;
7645 wxGrid *arg1 = (wxGrid *) 0 ;
7646 PyObject * obj0 = 0 ;
7647 char *kwnames[] = {
7648 (char *) "self", NULL
7649 };
7650
7651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail;
7652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7653 {
7654 PyThreadState* __tstate = wxPyBeginAllowThreads();
7655 (arg1)->ClearGrid();
7656
7657 wxPyEndAllowThreads(__tstate);
7658 if (PyErr_Occurred()) SWIG_fail;
7659 }
7660 Py_INCREF(Py_None); resultobj = Py_None;
7661 return resultobj;
7662 fail:
7663 return NULL;
7664 }
7665
7666
7667 static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7668 PyObject *resultobj;
7669 wxGrid *arg1 = (wxGrid *) 0 ;
7670 int arg2 = (int) 0 ;
7671 int arg3 = (int) 1 ;
7672 bool arg4 = (bool) True ;
7673 bool result;
7674 PyObject * obj0 = 0 ;
7675 PyObject * obj3 = 0 ;
7676 char *kwnames[] = {
7677 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
7678 };
7679
7680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_InsertRows",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7682 if (obj3) {
7683 {
7684 arg4 = (bool) SPyObj_AsBool(obj3);
7685 if (PyErr_Occurred()) SWIG_fail;
7686 }
7687 }
7688 {
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 result = (bool)(arg1)->InsertRows(arg2,arg3,arg4);
7691
7692 wxPyEndAllowThreads(__tstate);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 resultobj = PyInt_FromLong((long)result);
7696 return resultobj;
7697 fail:
7698 return NULL;
7699 }
7700
7701
7702 static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7703 PyObject *resultobj;
7704 wxGrid *arg1 = (wxGrid *) 0 ;
7705 int arg2 = (int) 1 ;
7706 bool arg3 = (bool) True ;
7707 bool result;
7708 PyObject * obj0 = 0 ;
7709 PyObject * obj2 = 0 ;
7710 char *kwnames[] = {
7711 (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL
7712 };
7713
7714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Grid_AppendRows",kwnames,&obj0,&arg2,&obj2)) goto fail;
7715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7716 if (obj2) {
7717 {
7718 arg3 = (bool) SPyObj_AsBool(obj2);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 }
7722 {
7723 PyThreadState* __tstate = wxPyBeginAllowThreads();
7724 result = (bool)(arg1)->AppendRows(arg2,arg3);
7725
7726 wxPyEndAllowThreads(__tstate);
7727 if (PyErr_Occurred()) SWIG_fail;
7728 }
7729 resultobj = PyInt_FromLong((long)result);
7730 return resultobj;
7731 fail:
7732 return NULL;
7733 }
7734
7735
7736 static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7737 PyObject *resultobj;
7738 wxGrid *arg1 = (wxGrid *) 0 ;
7739 int arg2 = (int) 0 ;
7740 int arg3 = (int) 1 ;
7741 bool arg4 = (bool) True ;
7742 bool result;
7743 PyObject * obj0 = 0 ;
7744 PyObject * obj3 = 0 ;
7745 char *kwnames[] = {
7746 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
7747 };
7748
7749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_DeleteRows",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7751 if (obj3) {
7752 {
7753 arg4 = (bool) SPyObj_AsBool(obj3);
7754 if (PyErr_Occurred()) SWIG_fail;
7755 }
7756 }
7757 {
7758 PyThreadState* __tstate = wxPyBeginAllowThreads();
7759 result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4);
7760
7761 wxPyEndAllowThreads(__tstate);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 }
7764 resultobj = PyInt_FromLong((long)result);
7765 return resultobj;
7766 fail:
7767 return NULL;
7768 }
7769
7770
7771 static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7772 PyObject *resultobj;
7773 wxGrid *arg1 = (wxGrid *) 0 ;
7774 int arg2 = (int) 0 ;
7775 int arg3 = (int) 1 ;
7776 bool arg4 = (bool) True ;
7777 bool result;
7778 PyObject * obj0 = 0 ;
7779 PyObject * obj3 = 0 ;
7780 char *kwnames[] = {
7781 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
7782 };
7783
7784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_InsertCols",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7786 if (obj3) {
7787 {
7788 arg4 = (bool) SPyObj_AsBool(obj3);
7789 if (PyErr_Occurred()) SWIG_fail;
7790 }
7791 }
7792 {
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 result = (bool)(arg1)->InsertCols(arg2,arg3,arg4);
7795
7796 wxPyEndAllowThreads(__tstate);
7797 if (PyErr_Occurred()) SWIG_fail;
7798 }
7799 resultobj = PyInt_FromLong((long)result);
7800 return resultobj;
7801 fail:
7802 return NULL;
7803 }
7804
7805
7806 static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 wxGrid *arg1 = (wxGrid *) 0 ;
7809 int arg2 = (int) 1 ;
7810 bool arg3 = (bool) True ;
7811 bool result;
7812 PyObject * obj0 = 0 ;
7813 PyObject * obj2 = 0 ;
7814 char *kwnames[] = {
7815 (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL
7816 };
7817
7818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Grid_AppendCols",kwnames,&obj0,&arg2,&obj2)) goto fail;
7819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7820 if (obj2) {
7821 {
7822 arg3 = (bool) SPyObj_AsBool(obj2);
7823 if (PyErr_Occurred()) SWIG_fail;
7824 }
7825 }
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 result = (bool)(arg1)->AppendCols(arg2,arg3);
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 resultobj = PyInt_FromLong((long)result);
7834 return resultobj;
7835 fail:
7836 return NULL;
7837 }
7838
7839
7840 static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7841 PyObject *resultobj;
7842 wxGrid *arg1 = (wxGrid *) 0 ;
7843 int arg2 = (int) 0 ;
7844 int arg3 = (int) 1 ;
7845 bool arg4 = (bool) True ;
7846 bool result;
7847 PyObject * obj0 = 0 ;
7848 PyObject * obj3 = 0 ;
7849 char *kwnames[] = {
7850 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
7851 };
7852
7853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_DeleteCols",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7855 if (obj3) {
7856 {
7857 arg4 = (bool) SPyObj_AsBool(obj3);
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 }
7861 {
7862 PyThreadState* __tstate = wxPyBeginAllowThreads();
7863 result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4);
7864
7865 wxPyEndAllowThreads(__tstate);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 resultobj = PyInt_FromLong((long)result);
7869 return resultobj;
7870 fail:
7871 return NULL;
7872 }
7873
7874
7875 static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
7876 PyObject *resultobj;
7877 wxGrid *arg1 = (wxGrid *) 0 ;
7878 wxDC *arg2 = 0 ;
7879 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
7880 PyObject * obj0 = 0 ;
7881 PyObject * obj1 = 0 ;
7882 PyObject * obj2 = 0 ;
7883 char *kwnames[] = {
7884 (char *) "self",(char *) "dc",(char *) "attr", NULL
7885 };
7886
7887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
7888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7889 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7890 if (arg2 == NULL) {
7891 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7892 }
7893 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7894 {
7895 PyThreadState* __tstate = wxPyBeginAllowThreads();
7896 (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3);
7897
7898 wxPyEndAllowThreads(__tstate);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 Py_INCREF(Py_None); resultobj = Py_None;
7902 return resultobj;
7903 fail:
7904 return NULL;
7905 }
7906
7907
7908 static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7909 PyObject *resultobj;
7910 wxGrid *arg1 = (wxGrid *) 0 ;
7911 wxDC *arg2 = 0 ;
7912 wxString *arg3 = 0 ;
7913 wxRect *arg4 = 0 ;
7914 int arg5 = (int) wxLEFT ;
7915 int arg6 = (int) wxTOP ;
7916 int arg7 = (int) wxHORIZONTAL ;
7917 bool temp3 = False ;
7918 wxRect temp4 ;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 PyObject * obj2 = 0 ;
7922 PyObject * obj3 = 0 ;
7923 char *kwnames[] = {
7924 (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL
7925 };
7926
7927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iii:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&arg7)) goto fail;
7928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7929 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7930 if (arg2 == NULL) {
7931 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7932 }
7933 {
7934 arg3 = wxString_in_helper(obj2);
7935 if (arg3 == NULL) SWIG_fail;
7936 temp3 = True;
7937 }
7938 {
7939 arg4 = &temp4;
7940 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
7941 }
7942 {
7943 PyThreadState* __tstate = wxPyBeginAllowThreads();
7944 (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
7945
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 Py_INCREF(Py_None); resultobj = Py_None;
7950 {
7951 if (temp3)
7952 delete arg3;
7953 }
7954 return resultobj;
7955 fail:
7956 {
7957 if (temp3)
7958 delete arg3;
7959 }
7960 return NULL;
7961 }
7962
7963
7964 static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7965 PyObject *resultobj;
7966 wxGrid *arg1 = (wxGrid *) 0 ;
7967 wxDC *arg2 = 0 ;
7968 wxArrayString *arg3 = 0 ;
7969 long *arg4 = (long *) 0 ;
7970 long *arg5 = (long *) 0 ;
7971 long temp4 ;
7972 long temp5 ;
7973 PyObject * obj0 = 0 ;
7974 PyObject * obj1 = 0 ;
7975 PyObject * obj2 = 0 ;
7976 char *kwnames[] = {
7977 (char *) "self",(char *) "dc",(char *) "lines", NULL
7978 };
7979
7980 arg4 = &temp4;
7981 arg5 = &temp5;
7982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
7983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7984 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7985 if (arg2 == NULL) {
7986 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7987 }
7988 {
7989 if (! PySequence_Check(obj2)) {
7990 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
7991 SWIG_fail;
7992 }
7993 arg3 = new wxArrayString;
7994 int i, len=PySequence_Length(obj2);
7995 for (i=0; i<len; i++) {
7996 PyObject* item = PySequence_GetItem(obj2, i);
7997 #if wxUSE_UNICODE
7998 PyObject* str = PyObject_Unicode(item);
7999 #else
8000 PyObject* str = PyObject_Str(item);
8001 #endif
8002 arg3->Add(Py2wxString(str));
8003 Py_DECREF(item);
8004 Py_DECREF(str);
8005 }
8006 }
8007 {
8008 PyThreadState* __tstate = wxPyBeginAllowThreads();
8009 (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5);
8010
8011 wxPyEndAllowThreads(__tstate);
8012 if (PyErr_Occurred()) SWIG_fail;
8013 }
8014 Py_INCREF(Py_None); resultobj = Py_None;
8015 {
8016 PyObject *o = PyInt_FromLong((long) (*arg4));
8017 resultobj = t_output_helper(resultobj,o);
8018 }
8019 {
8020 PyObject *o = PyInt_FromLong((long) (*arg5));
8021 resultobj = t_output_helper(resultobj,o);
8022 }
8023 {
8024 if (arg3) delete arg3;
8025 }
8026 return resultobj;
8027 fail:
8028 {
8029 if (arg3) delete arg3;
8030 }
8031 return NULL;
8032 }
8033
8034
8035 static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxGrid *arg1 = (wxGrid *) 0 ;
8038 PyObject * obj0 = 0 ;
8039 char *kwnames[] = {
8040 (char *) "self", NULL
8041 };
8042
8043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail;
8044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 (arg1)->BeginBatch();
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 Py_INCREF(Py_None); resultobj = Py_None;
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
8060 PyObject *resultobj;
8061 wxGrid *arg1 = (wxGrid *) 0 ;
8062 PyObject * obj0 = 0 ;
8063 char *kwnames[] = {
8064 (char *) "self", NULL
8065 };
8066
8067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail;
8068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8069 {
8070 PyThreadState* __tstate = wxPyBeginAllowThreads();
8071 (arg1)->EndBatch();
8072
8073 wxPyEndAllowThreads(__tstate);
8074 if (PyErr_Occurred()) SWIG_fail;
8075 }
8076 Py_INCREF(Py_None); resultobj = Py_None;
8077 return resultobj;
8078 fail:
8079 return NULL;
8080 }
8081
8082
8083 static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 wxGrid *arg1 = (wxGrid *) 0 ;
8086 int result;
8087 PyObject * obj0 = 0 ;
8088 char *kwnames[] = {
8089 (char *) "self", NULL
8090 };
8091
8092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail;
8093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8094 {
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 result = (int)(arg1)->GetBatchCount();
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 resultobj = PyInt_FromLong((long)result);
8102 return resultobj;
8103 fail:
8104 return NULL;
8105 }
8106
8107
8108 static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj;
8110 wxGrid *arg1 = (wxGrid *) 0 ;
8111 PyObject * obj0 = 0 ;
8112 char *kwnames[] = {
8113 (char *) "self", NULL
8114 };
8115
8116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail;
8117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8118 {
8119 PyThreadState* __tstate = wxPyBeginAllowThreads();
8120 (arg1)->ForceRefresh();
8121
8122 wxPyEndAllowThreads(__tstate);
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 Py_INCREF(Py_None); resultobj = Py_None;
8126 return resultobj;
8127 fail:
8128 return NULL;
8129 }
8130
8131
8132 static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj;
8134 wxGrid *arg1 = (wxGrid *) 0 ;
8135 bool arg2 = (bool) True ;
8136 wxRect *arg3 = (wxRect *) NULL ;
8137 PyObject * obj0 = 0 ;
8138 PyObject * obj1 = 0 ;
8139 PyObject * obj2 = 0 ;
8140 char *kwnames[] = {
8141 (char *) "self",(char *) "eraseb",(char *) "rect", NULL
8142 };
8143
8144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
8145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8146 if (obj1) {
8147 {
8148 arg2 = (bool) SPyObj_AsBool(obj1);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 }
8152 if (obj2) {
8153 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8154 }
8155 {
8156 PyThreadState* __tstate = wxPyBeginAllowThreads();
8157 (arg1)->Refresh(arg2,(wxRect const *)arg3);
8158
8159 wxPyEndAllowThreads(__tstate);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 Py_INCREF(Py_None); resultobj = Py_None;
8163 return resultobj;
8164 fail:
8165 return NULL;
8166 }
8167
8168
8169 static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8170 PyObject *resultobj;
8171 wxGrid *arg1 = (wxGrid *) 0 ;
8172 bool result;
8173 PyObject * obj0 = 0 ;
8174 char *kwnames[] = {
8175 (char *) "self", NULL
8176 };
8177
8178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail;
8179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 result = (bool)(arg1)->IsEditable();
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = PyInt_FromLong((long)result);
8188 return resultobj;
8189 fail:
8190 return NULL;
8191 }
8192
8193
8194 static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) {
8195 PyObject *resultobj;
8196 wxGrid *arg1 = (wxGrid *) 0 ;
8197 bool arg2 ;
8198 PyObject * obj0 = 0 ;
8199 PyObject * obj1 = 0 ;
8200 char *kwnames[] = {
8201 (char *) "self",(char *) "edit", NULL
8202 };
8203
8204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail;
8205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8206 {
8207 arg2 = (bool) SPyObj_AsBool(obj1);
8208 if (PyErr_Occurred()) SWIG_fail;
8209 }
8210 {
8211 PyThreadState* __tstate = wxPyBeginAllowThreads();
8212 (arg1)->EnableEditing(arg2);
8213
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 Py_INCREF(Py_None); resultobj = Py_None;
8218 return resultobj;
8219 fail:
8220 return NULL;
8221 }
8222
8223
8224 static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8225 PyObject *resultobj;
8226 wxGrid *arg1 = (wxGrid *) 0 ;
8227 bool arg2 = (bool) True ;
8228 PyObject * obj0 = 0 ;
8229 PyObject * obj1 = 0 ;
8230 char *kwnames[] = {
8231 (char *) "self",(char *) "enable", NULL
8232 };
8233
8234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail;
8235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8236 if (obj1) {
8237 {
8238 arg2 = (bool) SPyObj_AsBool(obj1);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 }
8242 {
8243 PyThreadState* __tstate = wxPyBeginAllowThreads();
8244 (arg1)->EnableCellEditControl(arg2);
8245
8246 wxPyEndAllowThreads(__tstate);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 Py_INCREF(Py_None); resultobj = Py_None;
8250 return resultobj;
8251 fail:
8252 return NULL;
8253 }
8254
8255
8256 static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8257 PyObject *resultobj;
8258 wxGrid *arg1 = (wxGrid *) 0 ;
8259 PyObject * obj0 = 0 ;
8260 char *kwnames[] = {
8261 (char *) "self", NULL
8262 };
8263
8264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail;
8265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 (arg1)->DisableCellEditControl();
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 Py_INCREF(Py_None); resultobj = Py_None;
8274 return resultobj;
8275 fail:
8276 return NULL;
8277 }
8278
8279
8280 static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj;
8282 wxGrid *arg1 = (wxGrid *) 0 ;
8283 bool result;
8284 PyObject * obj0 = 0 ;
8285 char *kwnames[] = {
8286 (char *) "self", NULL
8287 };
8288
8289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail;
8290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8291 {
8292 PyThreadState* __tstate = wxPyBeginAllowThreads();
8293 result = (bool)((wxGrid const *)arg1)->CanEnableCellControl();
8294
8295 wxPyEndAllowThreads(__tstate);
8296 if (PyErr_Occurred()) SWIG_fail;
8297 }
8298 resultobj = PyInt_FromLong((long)result);
8299 return resultobj;
8300 fail:
8301 return NULL;
8302 }
8303
8304
8305 static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8306 PyObject *resultobj;
8307 wxGrid *arg1 = (wxGrid *) 0 ;
8308 bool result;
8309 PyObject * obj0 = 0 ;
8310 char *kwnames[] = {
8311 (char *) "self", NULL
8312 };
8313
8314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail;
8315 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8316 {
8317 PyThreadState* __tstate = wxPyBeginAllowThreads();
8318 result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled();
8319
8320 wxPyEndAllowThreads(__tstate);
8321 if (PyErr_Occurred()) SWIG_fail;
8322 }
8323 resultobj = PyInt_FromLong((long)result);
8324 return resultobj;
8325 fail:
8326 return NULL;
8327 }
8328
8329
8330 static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) {
8331 PyObject *resultobj;
8332 wxGrid *arg1 = (wxGrid *) 0 ;
8333 bool result;
8334 PyObject * obj0 = 0 ;
8335 char *kwnames[] = {
8336 (char *) "self", NULL
8337 };
8338
8339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail;
8340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8341 {
8342 PyThreadState* __tstate = wxPyBeginAllowThreads();
8343 result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown();
8344
8345 wxPyEndAllowThreads(__tstate);
8346 if (PyErr_Occurred()) SWIG_fail;
8347 }
8348 resultobj = PyInt_FromLong((long)result);
8349 return resultobj;
8350 fail:
8351 return NULL;
8352 }
8353
8354
8355 static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
8356 PyObject *resultobj;
8357 wxGrid *arg1 = (wxGrid *) 0 ;
8358 bool result;
8359 PyObject * obj0 = 0 ;
8360 char *kwnames[] = {
8361 (char *) "self", NULL
8362 };
8363
8364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail;
8365 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8366 {
8367 PyThreadState* __tstate = wxPyBeginAllowThreads();
8368 result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly();
8369
8370 wxPyEndAllowThreads(__tstate);
8371 if (PyErr_Occurred()) SWIG_fail;
8372 }
8373 resultobj = PyInt_FromLong((long)result);
8374 return resultobj;
8375 fail:
8376 return NULL;
8377 }
8378
8379
8380 static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8381 PyObject *resultobj;
8382 wxGrid *arg1 = (wxGrid *) 0 ;
8383 PyObject * obj0 = 0 ;
8384 char *kwnames[] = {
8385 (char *) "self", NULL
8386 };
8387
8388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail;
8389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8390 {
8391 PyThreadState* __tstate = wxPyBeginAllowThreads();
8392 (arg1)->ShowCellEditControl();
8393
8394 wxPyEndAllowThreads(__tstate);
8395 if (PyErr_Occurred()) SWIG_fail;
8396 }
8397 Py_INCREF(Py_None); resultobj = Py_None;
8398 return resultobj;
8399 fail:
8400 return NULL;
8401 }
8402
8403
8404 static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8405 PyObject *resultobj;
8406 wxGrid *arg1 = (wxGrid *) 0 ;
8407 PyObject * obj0 = 0 ;
8408 char *kwnames[] = {
8409 (char *) "self", NULL
8410 };
8411
8412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail;
8413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8414 {
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 (arg1)->HideCellEditControl();
8417
8418 wxPyEndAllowThreads(__tstate);
8419 if (PyErr_Occurred()) SWIG_fail;
8420 }
8421 Py_INCREF(Py_None); resultobj = Py_None;
8422 return resultobj;
8423 fail:
8424 return NULL;
8425 }
8426
8427
8428 static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8429 PyObject *resultobj;
8430 wxGrid *arg1 = (wxGrid *) 0 ;
8431 PyObject * obj0 = 0 ;
8432 char *kwnames[] = {
8433 (char *) "self", NULL
8434 };
8435
8436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail;
8437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8438 {
8439 PyThreadState* __tstate = wxPyBeginAllowThreads();
8440 (arg1)->SaveEditControlValue();
8441
8442 wxPyEndAllowThreads(__tstate);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 Py_INCREF(Py_None); resultobj = Py_None;
8446 return resultobj;
8447 fail:
8448 return NULL;
8449 }
8450
8451
8452 static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) {
8453 PyObject *resultobj;
8454 wxGrid *arg1 = (wxGrid *) 0 ;
8455 int arg2 ;
8456 int arg3 ;
8457 wxGridCellCoords result;
8458 PyObject * obj0 = 0 ;
8459 char *kwnames[] = {
8460 (char *) "self",(char *) "x",(char *) "y", NULL
8461 };
8462
8463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_XYToCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
8464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8465 {
8466 PyThreadState* __tstate = wxPyBeginAllowThreads();
8467 result = wxGrid_XYToCell(arg1,arg2,arg3);
8468
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 {
8473 wxGridCellCoords * resultptr;
8474 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
8475 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
8476 }
8477 return resultobj;
8478 fail:
8479 return NULL;
8480 }
8481
8482
8483 static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8484 PyObject *resultobj;
8485 wxGrid *arg1 = (wxGrid *) 0 ;
8486 int arg2 ;
8487 int result;
8488 PyObject * obj0 = 0 ;
8489 char *kwnames[] = {
8490 (char *) "self",(char *) "y", NULL
8491 };
8492
8493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_YToRow",kwnames,&obj0,&arg2)) goto fail;
8494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8495 {
8496 PyThreadState* __tstate = wxPyBeginAllowThreads();
8497 result = (int)(arg1)->YToRow(arg2);
8498
8499 wxPyEndAllowThreads(__tstate);
8500 if (PyErr_Occurred()) SWIG_fail;
8501 }
8502 resultobj = PyInt_FromLong((long)result);
8503 return resultobj;
8504 fail:
8505 return NULL;
8506 }
8507
8508
8509 static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8510 PyObject *resultobj;
8511 wxGrid *arg1 = (wxGrid *) 0 ;
8512 int arg2 ;
8513 int result;
8514 PyObject * obj0 = 0 ;
8515 char *kwnames[] = {
8516 (char *) "self",(char *) "x", NULL
8517 };
8518
8519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_XToCol",kwnames,&obj0,&arg2)) goto fail;
8520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8521 {
8522 PyThreadState* __tstate = wxPyBeginAllowThreads();
8523 result = (int)(arg1)->XToCol(arg2);
8524
8525 wxPyEndAllowThreads(__tstate);
8526 if (PyErr_Occurred()) SWIG_fail;
8527 }
8528 resultobj = PyInt_FromLong((long)result);
8529 return resultobj;
8530 fail:
8531 return NULL;
8532 }
8533
8534
8535 static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8536 PyObject *resultobj;
8537 wxGrid *arg1 = (wxGrid *) 0 ;
8538 int arg2 ;
8539 int result;
8540 PyObject * obj0 = 0 ;
8541 char *kwnames[] = {
8542 (char *) "self",(char *) "y", NULL
8543 };
8544
8545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_YToEdgeOfRow",kwnames,&obj0,&arg2)) goto fail;
8546 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8547 {
8548 PyThreadState* __tstate = wxPyBeginAllowThreads();
8549 result = (int)(arg1)->YToEdgeOfRow(arg2);
8550
8551 wxPyEndAllowThreads(__tstate);
8552 if (PyErr_Occurred()) SWIG_fail;
8553 }
8554 resultobj = PyInt_FromLong((long)result);
8555 return resultobj;
8556 fail:
8557 return NULL;
8558 }
8559
8560
8561 static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8562 PyObject *resultobj;
8563 wxGrid *arg1 = (wxGrid *) 0 ;
8564 int arg2 ;
8565 int result;
8566 PyObject * obj0 = 0 ;
8567 char *kwnames[] = {
8568 (char *) "self",(char *) "x", NULL
8569 };
8570
8571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_XToEdgeOfCol",kwnames,&obj0,&arg2)) goto fail;
8572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8573 {
8574 PyThreadState* __tstate = wxPyBeginAllowThreads();
8575 result = (int)(arg1)->XToEdgeOfCol(arg2);
8576
8577 wxPyEndAllowThreads(__tstate);
8578 if (PyErr_Occurred()) SWIG_fail;
8579 }
8580 resultobj = PyInt_FromLong((long)result);
8581 return resultobj;
8582 fail:
8583 return NULL;
8584 }
8585
8586
8587 static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj;
8589 wxGrid *arg1 = (wxGrid *) 0 ;
8590 int arg2 ;
8591 int arg3 ;
8592 wxRect result;
8593 PyObject * obj0 = 0 ;
8594 char *kwnames[] = {
8595 (char *) "self",(char *) "row",(char *) "col", NULL
8596 };
8597
8598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_CellToRect",kwnames,&obj0,&arg2,&arg3)) goto fail;
8599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8600 {
8601 PyThreadState* __tstate = wxPyBeginAllowThreads();
8602 result = (arg1)->CellToRect(arg2,arg3);
8603
8604 wxPyEndAllowThreads(__tstate);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 {
8608 wxRect * resultptr;
8609 resultptr = new wxRect((wxRect &) result);
8610 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
8611 }
8612 return resultobj;
8613 fail:
8614 return NULL;
8615 }
8616
8617
8618 static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8619 PyObject *resultobj;
8620 wxGrid *arg1 = (wxGrid *) 0 ;
8621 int result;
8622 PyObject * obj0 = 0 ;
8623 char *kwnames[] = {
8624 (char *) "self", NULL
8625 };
8626
8627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail;
8628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8629 {
8630 PyThreadState* __tstate = wxPyBeginAllowThreads();
8631 result = (int)(arg1)->GetGridCursorRow();
8632
8633 wxPyEndAllowThreads(__tstate);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 resultobj = PyInt_FromLong((long)result);
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj;
8645 wxGrid *arg1 = (wxGrid *) 0 ;
8646 int result;
8647 PyObject * obj0 = 0 ;
8648 char *kwnames[] = {
8649 (char *) "self", NULL
8650 };
8651
8652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail;
8653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8654 {
8655 PyThreadState* __tstate = wxPyBeginAllowThreads();
8656 result = (int)(arg1)->GetGridCursorCol();
8657
8658 wxPyEndAllowThreads(__tstate);
8659 if (PyErr_Occurred()) SWIG_fail;
8660 }
8661 resultobj = PyInt_FromLong((long)result);
8662 return resultobj;
8663 fail:
8664 return NULL;
8665 }
8666
8667
8668 static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8669 PyObject *resultobj;
8670 wxGrid *arg1 = (wxGrid *) 0 ;
8671 int arg2 ;
8672 int arg3 ;
8673 bool arg4 = (bool) True ;
8674 bool result;
8675 PyObject * obj0 = 0 ;
8676 PyObject * obj3 = 0 ;
8677 char *kwnames[] = {
8678 (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL
8679 };
8680
8681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Grid_IsVisible",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
8682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8683 if (obj3) {
8684 {
8685 arg4 = (bool) SPyObj_AsBool(obj3);
8686 if (PyErr_Occurred()) SWIG_fail;
8687 }
8688 }
8689 {
8690 PyThreadState* __tstate = wxPyBeginAllowThreads();
8691 result = (bool)(arg1)->IsVisible(arg2,arg3,arg4);
8692
8693 wxPyEndAllowThreads(__tstate);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 resultobj = PyInt_FromLong((long)result);
8697 return resultobj;
8698 fail:
8699 return NULL;
8700 }
8701
8702
8703 static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8704 PyObject *resultobj;
8705 wxGrid *arg1 = (wxGrid *) 0 ;
8706 int arg2 ;
8707 int arg3 ;
8708 PyObject * obj0 = 0 ;
8709 char *kwnames[] = {
8710 (char *) "self",(char *) "row",(char *) "col", NULL
8711 };
8712
8713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_MakeCellVisible",kwnames,&obj0,&arg2,&arg3)) goto fail;
8714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 (arg1)->MakeCellVisible(arg2,arg3);
8718
8719 wxPyEndAllowThreads(__tstate);
8720 if (PyErr_Occurred()) SWIG_fail;
8721 }
8722 Py_INCREF(Py_None); resultobj = Py_None;
8723 return resultobj;
8724 fail:
8725 return NULL;
8726 }
8727
8728
8729 static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
8730 PyObject *resultobj;
8731 wxGrid *arg1 = (wxGrid *) 0 ;
8732 int arg2 ;
8733 int arg3 ;
8734 PyObject * obj0 = 0 ;
8735 char *kwnames[] = {
8736 (char *) "self",(char *) "row",(char *) "col", NULL
8737 };
8738
8739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetGridCursor",kwnames,&obj0,&arg2,&arg3)) goto fail;
8740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8741 {
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 (arg1)->SetGridCursor(arg2,arg3);
8744
8745 wxPyEndAllowThreads(__tstate);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 Py_INCREF(Py_None); resultobj = Py_None;
8749 return resultobj;
8750 fail:
8751 return NULL;
8752 }
8753
8754
8755 static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) {
8756 PyObject *resultobj;
8757 wxGrid *arg1 = (wxGrid *) 0 ;
8758 bool arg2 ;
8759 bool result;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762 char *kwnames[] = {
8763 (char *) "self",(char *) "expandSelection", NULL
8764 };
8765
8766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail;
8767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8768 {
8769 arg2 = (bool) SPyObj_AsBool(obj1);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 result = (bool)(arg1)->MoveCursorUp(arg2);
8775
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 resultobj = PyInt_FromLong((long)result);
8780 return resultobj;
8781 fail:
8782 return NULL;
8783 }
8784
8785
8786 static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) {
8787 PyObject *resultobj;
8788 wxGrid *arg1 = (wxGrid *) 0 ;
8789 bool arg2 ;
8790 bool result;
8791 PyObject * obj0 = 0 ;
8792 PyObject * obj1 = 0 ;
8793 char *kwnames[] = {
8794 (char *) "self",(char *) "expandSelection", NULL
8795 };
8796
8797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail;
8798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8799 {
8800 arg2 = (bool) SPyObj_AsBool(obj1);
8801 if (PyErr_Occurred()) SWIG_fail;
8802 }
8803 {
8804 PyThreadState* __tstate = wxPyBeginAllowThreads();
8805 result = (bool)(arg1)->MoveCursorDown(arg2);
8806
8807 wxPyEndAllowThreads(__tstate);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 resultobj = PyInt_FromLong((long)result);
8811 return resultobj;
8812 fail:
8813 return NULL;
8814 }
8815
8816
8817 static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
8818 PyObject *resultobj;
8819 wxGrid *arg1 = (wxGrid *) 0 ;
8820 bool arg2 ;
8821 bool result;
8822 PyObject * obj0 = 0 ;
8823 PyObject * obj1 = 0 ;
8824 char *kwnames[] = {
8825 (char *) "self",(char *) "expandSelection", NULL
8826 };
8827
8828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail;
8829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8830 {
8831 arg2 = (bool) SPyObj_AsBool(obj1);
8832 if (PyErr_Occurred()) SWIG_fail;
8833 }
8834 {
8835 PyThreadState* __tstate = wxPyBeginAllowThreads();
8836 result = (bool)(arg1)->MoveCursorLeft(arg2);
8837
8838 wxPyEndAllowThreads(__tstate);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 resultobj = PyInt_FromLong((long)result);
8842 return resultobj;
8843 fail:
8844 return NULL;
8845 }
8846
8847
8848 static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) {
8849 PyObject *resultobj;
8850 wxGrid *arg1 = (wxGrid *) 0 ;
8851 bool arg2 ;
8852 bool result;
8853 PyObject * obj0 = 0 ;
8854 PyObject * obj1 = 0 ;
8855 char *kwnames[] = {
8856 (char *) "self",(char *) "expandSelection", NULL
8857 };
8858
8859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail;
8860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8861 {
8862 arg2 = (bool) SPyObj_AsBool(obj1);
8863 if (PyErr_Occurred()) SWIG_fail;
8864 }
8865 {
8866 PyThreadState* __tstate = wxPyBeginAllowThreads();
8867 result = (bool)(arg1)->MoveCursorRight(arg2);
8868
8869 wxPyEndAllowThreads(__tstate);
8870 if (PyErr_Occurred()) SWIG_fail;
8871 }
8872 resultobj = PyInt_FromLong((long)result);
8873 return resultobj;
8874 fail:
8875 return NULL;
8876 }
8877
8878
8879 static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
8880 PyObject *resultobj;
8881 wxGrid *arg1 = (wxGrid *) 0 ;
8882 bool result;
8883 PyObject * obj0 = 0 ;
8884 char *kwnames[] = {
8885 (char *) "self", NULL
8886 };
8887
8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail;
8889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8890 {
8891 PyThreadState* __tstate = wxPyBeginAllowThreads();
8892 result = (bool)(arg1)->MovePageDown();
8893
8894 wxPyEndAllowThreads(__tstate);
8895 if (PyErr_Occurred()) SWIG_fail;
8896 }
8897 resultobj = PyInt_FromLong((long)result);
8898 return resultobj;
8899 fail:
8900 return NULL;
8901 }
8902
8903
8904 static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
8905 PyObject *resultobj;
8906 wxGrid *arg1 = (wxGrid *) 0 ;
8907 bool result;
8908 PyObject * obj0 = 0 ;
8909 char *kwnames[] = {
8910 (char *) "self", NULL
8911 };
8912
8913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail;
8914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8915 {
8916 PyThreadState* __tstate = wxPyBeginAllowThreads();
8917 result = (bool)(arg1)->MovePageUp();
8918
8919 wxPyEndAllowThreads(__tstate);
8920 if (PyErr_Occurred()) SWIG_fail;
8921 }
8922 resultobj = PyInt_FromLong((long)result);
8923 return resultobj;
8924 fail:
8925 return NULL;
8926 }
8927
8928
8929 static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8930 PyObject *resultobj;
8931 wxGrid *arg1 = (wxGrid *) 0 ;
8932 bool arg2 ;
8933 bool result;
8934 PyObject * obj0 = 0 ;
8935 PyObject * obj1 = 0 ;
8936 char *kwnames[] = {
8937 (char *) "self",(char *) "expandSelection", NULL
8938 };
8939
8940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail;
8941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8942 {
8943 arg2 = (bool) SPyObj_AsBool(obj1);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 }
8946 {
8947 PyThreadState* __tstate = wxPyBeginAllowThreads();
8948 result = (bool)(arg1)->MoveCursorUpBlock(arg2);
8949
8950 wxPyEndAllowThreads(__tstate);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 resultobj = PyInt_FromLong((long)result);
8954 return resultobj;
8955 fail:
8956 return NULL;
8957 }
8958
8959
8960 static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8961 PyObject *resultobj;
8962 wxGrid *arg1 = (wxGrid *) 0 ;
8963 bool arg2 ;
8964 bool result;
8965 PyObject * obj0 = 0 ;
8966 PyObject * obj1 = 0 ;
8967 char *kwnames[] = {
8968 (char *) "self",(char *) "expandSelection", NULL
8969 };
8970
8971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail;
8972 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8973 {
8974 arg2 = (bool) SPyObj_AsBool(obj1);
8975 if (PyErr_Occurred()) SWIG_fail;
8976 }
8977 {
8978 PyThreadState* __tstate = wxPyBeginAllowThreads();
8979 result = (bool)(arg1)->MoveCursorDownBlock(arg2);
8980
8981 wxPyEndAllowThreads(__tstate);
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
8984 resultobj = PyInt_FromLong((long)result);
8985 return resultobj;
8986 fail:
8987 return NULL;
8988 }
8989
8990
8991 static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8992 PyObject *resultobj;
8993 wxGrid *arg1 = (wxGrid *) 0 ;
8994 bool arg2 ;
8995 bool result;
8996 PyObject * obj0 = 0 ;
8997 PyObject * obj1 = 0 ;
8998 char *kwnames[] = {
8999 (char *) "self",(char *) "expandSelection", NULL
9000 };
9001
9002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail;
9003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9004 {
9005 arg2 = (bool) SPyObj_AsBool(obj1);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 }
9008 {
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 result = (bool)(arg1)->MoveCursorLeftBlock(arg2);
9011
9012 wxPyEndAllowThreads(__tstate);
9013 if (PyErr_Occurred()) SWIG_fail;
9014 }
9015 resultobj = PyInt_FromLong((long)result);
9016 return resultobj;
9017 fail:
9018 return NULL;
9019 }
9020
9021
9022 static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9023 PyObject *resultobj;
9024 wxGrid *arg1 = (wxGrid *) 0 ;
9025 bool arg2 ;
9026 bool result;
9027 PyObject * obj0 = 0 ;
9028 PyObject * obj1 = 0 ;
9029 char *kwnames[] = {
9030 (char *) "self",(char *) "expandSelection", NULL
9031 };
9032
9033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail;
9034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9035 {
9036 arg2 = (bool) SPyObj_AsBool(obj1);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 {
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 result = (bool)(arg1)->MoveCursorRightBlock(arg2);
9042
9043 wxPyEndAllowThreads(__tstate);
9044 if (PyErr_Occurred()) SWIG_fail;
9045 }
9046 resultobj = PyInt_FromLong((long)result);
9047 return resultobj;
9048 fail:
9049 return NULL;
9050 }
9051
9052
9053 static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9054 PyObject *resultobj;
9055 wxGrid *arg1 = (wxGrid *) 0 ;
9056 int result;
9057 PyObject * obj0 = 0 ;
9058 char *kwnames[] = {
9059 (char *) "self", NULL
9060 };
9061
9062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail;
9063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (int)(arg1)->GetDefaultRowLabelSize();
9067
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 }
9071 resultobj = PyInt_FromLong((long)result);
9072 return resultobj;
9073 fail:
9074 return NULL;
9075 }
9076
9077
9078 static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9079 PyObject *resultobj;
9080 wxGrid *arg1 = (wxGrid *) 0 ;
9081 int result;
9082 PyObject * obj0 = 0 ;
9083 char *kwnames[] = {
9084 (char *) "self", NULL
9085 };
9086
9087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail;
9088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9089 {
9090 PyThreadState* __tstate = wxPyBeginAllowThreads();
9091 result = (int)(arg1)->GetRowLabelSize();
9092
9093 wxPyEndAllowThreads(__tstate);
9094 if (PyErr_Occurred()) SWIG_fail;
9095 }
9096 resultobj = PyInt_FromLong((long)result);
9097 return resultobj;
9098 fail:
9099 return NULL;
9100 }
9101
9102
9103 static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9104 PyObject *resultobj;
9105 wxGrid *arg1 = (wxGrid *) 0 ;
9106 int result;
9107 PyObject * obj0 = 0 ;
9108 char *kwnames[] = {
9109 (char *) "self", NULL
9110 };
9111
9112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail;
9113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9114 {
9115 PyThreadState* __tstate = wxPyBeginAllowThreads();
9116 result = (int)(arg1)->GetDefaultColLabelSize();
9117
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 resultobj = PyInt_FromLong((long)result);
9122 return resultobj;
9123 fail:
9124 return NULL;
9125 }
9126
9127
9128 static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9129 PyObject *resultobj;
9130 wxGrid *arg1 = (wxGrid *) 0 ;
9131 int result;
9132 PyObject * obj0 = 0 ;
9133 char *kwnames[] = {
9134 (char *) "self", NULL
9135 };
9136
9137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail;
9138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9139 {
9140 PyThreadState* __tstate = wxPyBeginAllowThreads();
9141 result = (int)(arg1)->GetColLabelSize();
9142
9143 wxPyEndAllowThreads(__tstate);
9144 if (PyErr_Occurred()) SWIG_fail;
9145 }
9146 resultobj = PyInt_FromLong((long)result);
9147 return resultobj;
9148 fail:
9149 return NULL;
9150 }
9151
9152
9153 static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9154 PyObject *resultobj;
9155 wxGrid *arg1 = (wxGrid *) 0 ;
9156 wxColour result;
9157 PyObject * obj0 = 0 ;
9158 char *kwnames[] = {
9159 (char *) "self", NULL
9160 };
9161
9162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail;
9163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9164 {
9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
9166 result = (arg1)->GetLabelBackgroundColour();
9167
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 {
9172 wxColour * resultptr;
9173 resultptr = new wxColour((wxColour &) result);
9174 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9175 }
9176 return resultobj;
9177 fail:
9178 return NULL;
9179 }
9180
9181
9182 static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9183 PyObject *resultobj;
9184 wxGrid *arg1 = (wxGrid *) 0 ;
9185 wxColour result;
9186 PyObject * obj0 = 0 ;
9187 char *kwnames[] = {
9188 (char *) "self", NULL
9189 };
9190
9191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail;
9192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9193 {
9194 PyThreadState* __tstate = wxPyBeginAllowThreads();
9195 result = (arg1)->GetLabelTextColour();
9196
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 {
9201 wxColour * resultptr;
9202 resultptr = new wxColour((wxColour &) result);
9203 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9204 }
9205 return resultobj;
9206 fail:
9207 return NULL;
9208 }
9209
9210
9211 static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9212 PyObject *resultobj;
9213 wxGrid *arg1 = (wxGrid *) 0 ;
9214 wxFont result;
9215 PyObject * obj0 = 0 ;
9216 char *kwnames[] = {
9217 (char *) "self", NULL
9218 };
9219
9220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail;
9221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9222 {
9223 PyThreadState* __tstate = wxPyBeginAllowThreads();
9224 result = (arg1)->GetLabelFont();
9225
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 {
9230 wxFont * resultptr;
9231 resultptr = new wxFont((wxFont &) result);
9232 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
9233 }
9234 return resultobj;
9235 fail:
9236 return NULL;
9237 }
9238
9239
9240 static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj;
9242 wxGrid *arg1 = (wxGrid *) 0 ;
9243 int *arg2 = (int *) 0 ;
9244 int *arg3 = (int *) 0 ;
9245 int temp2 ;
9246 int temp3 ;
9247 PyObject * obj0 = 0 ;
9248 char *kwnames[] = {
9249 (char *) "self", NULL
9250 };
9251
9252 arg2 = &temp2;
9253 arg3 = &temp3;
9254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail;
9255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9256 {
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 (arg1)->GetRowLabelAlignment(arg2,arg3);
9259
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 Py_INCREF(Py_None); resultobj = Py_None;
9264 {
9265 PyObject *o = PyInt_FromLong((long) (*arg2));
9266 resultobj = t_output_helper(resultobj,o);
9267 }
9268 {
9269 PyObject *o = PyInt_FromLong((long) (*arg3));
9270 resultobj = t_output_helper(resultobj,o);
9271 }
9272 return resultobj;
9273 fail:
9274 return NULL;
9275 }
9276
9277
9278 static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9279 PyObject *resultobj;
9280 wxGrid *arg1 = (wxGrid *) 0 ;
9281 int *arg2 = (int *) 0 ;
9282 int *arg3 = (int *) 0 ;
9283 int temp2 ;
9284 int temp3 ;
9285 PyObject * obj0 = 0 ;
9286 char *kwnames[] = {
9287 (char *) "self", NULL
9288 };
9289
9290 arg2 = &temp2;
9291 arg3 = &temp3;
9292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail;
9293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9294 {
9295 PyThreadState* __tstate = wxPyBeginAllowThreads();
9296 (arg1)->GetColLabelAlignment(arg2,arg3);
9297
9298 wxPyEndAllowThreads(__tstate);
9299 if (PyErr_Occurred()) SWIG_fail;
9300 }
9301 Py_INCREF(Py_None); resultobj = Py_None;
9302 {
9303 PyObject *o = PyInt_FromLong((long) (*arg2));
9304 resultobj = t_output_helper(resultobj,o);
9305 }
9306 {
9307 PyObject *o = PyInt_FromLong((long) (*arg3));
9308 resultobj = t_output_helper(resultobj,o);
9309 }
9310 return resultobj;
9311 fail:
9312 return NULL;
9313 }
9314
9315
9316 static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9317 PyObject *resultobj;
9318 wxGrid *arg1 = (wxGrid *) 0 ;
9319 int result;
9320 PyObject * obj0 = 0 ;
9321 char *kwnames[] = {
9322 (char *) "self", NULL
9323 };
9324
9325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail;
9326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9327 {
9328 PyThreadState* __tstate = wxPyBeginAllowThreads();
9329 result = (int)(arg1)->GetColLabelTextOrientation();
9330
9331 wxPyEndAllowThreads(__tstate);
9332 if (PyErr_Occurred()) SWIG_fail;
9333 }
9334 resultobj = PyInt_FromLong((long)result);
9335 return resultobj;
9336 fail:
9337 return NULL;
9338 }
9339
9340
9341 static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9342 PyObject *resultobj;
9343 wxGrid *arg1 = (wxGrid *) 0 ;
9344 int arg2 ;
9345 wxString result;
9346 PyObject * obj0 = 0 ;
9347 char *kwnames[] = {
9348 (char *) "self",(char *) "row", NULL
9349 };
9350
9351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
9352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9353 {
9354 PyThreadState* __tstate = wxPyBeginAllowThreads();
9355 result = (arg1)->GetRowLabelValue(arg2);
9356
9357 wxPyEndAllowThreads(__tstate);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
9360 {
9361 #if wxUSE_UNICODE
9362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9363 #else
9364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9365 #endif
9366 }
9367 return resultobj;
9368 fail:
9369 return NULL;
9370 }
9371
9372
9373 static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9374 PyObject *resultobj;
9375 wxGrid *arg1 = (wxGrid *) 0 ;
9376 int arg2 ;
9377 wxString result;
9378 PyObject * obj0 = 0 ;
9379 char *kwnames[] = {
9380 (char *) "self",(char *) "col", NULL
9381 };
9382
9383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
9384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9385 {
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 result = (arg1)->GetColLabelValue(arg2);
9388
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 {
9393 #if wxUSE_UNICODE
9394 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9395 #else
9396 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9397 #endif
9398 }
9399 return resultobj;
9400 fail:
9401 return NULL;
9402 }
9403
9404
9405 static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9406 PyObject *resultobj;
9407 wxGrid *arg1 = (wxGrid *) 0 ;
9408 wxColour result;
9409 PyObject * obj0 = 0 ;
9410 char *kwnames[] = {
9411 (char *) "self", NULL
9412 };
9413
9414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail;
9415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9416 {
9417 PyThreadState* __tstate = wxPyBeginAllowThreads();
9418 result = (arg1)->GetGridLineColour();
9419
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 {
9424 wxColour * resultptr;
9425 resultptr = new wxColour((wxColour &) result);
9426 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9427 }
9428 return resultobj;
9429 fail:
9430 return NULL;
9431 }
9432
9433
9434 static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9435 PyObject *resultobj;
9436 wxGrid *arg1 = (wxGrid *) 0 ;
9437 wxColour result;
9438 PyObject * obj0 = 0 ;
9439 char *kwnames[] = {
9440 (char *) "self", NULL
9441 };
9442
9443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail;
9444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 result = (arg1)->GetCellHighlightColour();
9448
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 {
9453 wxColour * resultptr;
9454 resultptr = new wxColour((wxColour &) result);
9455 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9456 }
9457 return resultobj;
9458 fail:
9459 return NULL;
9460 }
9461
9462
9463 static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9464 PyObject *resultobj;
9465 wxGrid *arg1 = (wxGrid *) 0 ;
9466 int result;
9467 PyObject * obj0 = 0 ;
9468 char *kwnames[] = {
9469 (char *) "self", NULL
9470 };
9471
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 result = (int)(arg1)->GetCellHighlightPenWidth();
9477
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 resultobj = PyInt_FromLong((long)result);
9482 return resultobj;
9483 fail:
9484 return NULL;
9485 }
9486
9487
9488 static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj;
9490 wxGrid *arg1 = (wxGrid *) 0 ;
9491 int result;
9492 PyObject * obj0 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9499 {
9500 PyThreadState* __tstate = wxPyBeginAllowThreads();
9501 result = (int)(arg1)->GetCellHighlightROPenWidth();
9502
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 resultobj = PyInt_FromLong((long)result);
9507 return resultobj;
9508 fail:
9509 return NULL;
9510 }
9511
9512
9513 static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj;
9515 wxGrid *arg1 = (wxGrid *) 0 ;
9516 int arg2 ;
9517 PyObject * obj0 = 0 ;
9518 char *kwnames[] = {
9519 (char *) "self",(char *) "width", NULL
9520 };
9521
9522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetRowLabelSize",kwnames,&obj0,&arg2)) goto fail;
9523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9524 {
9525 PyThreadState* __tstate = wxPyBeginAllowThreads();
9526 (arg1)->SetRowLabelSize(arg2);
9527
9528 wxPyEndAllowThreads(__tstate);
9529 if (PyErr_Occurred()) SWIG_fail;
9530 }
9531 Py_INCREF(Py_None); resultobj = Py_None;
9532 return resultobj;
9533 fail:
9534 return NULL;
9535 }
9536
9537
9538 static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9539 PyObject *resultobj;
9540 wxGrid *arg1 = (wxGrid *) 0 ;
9541 int arg2 ;
9542 PyObject * obj0 = 0 ;
9543 char *kwnames[] = {
9544 (char *) "self",(char *) "height", NULL
9545 };
9546
9547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColLabelSize",kwnames,&obj0,&arg2)) goto fail;
9548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 (arg1)->SetColLabelSize(arg2);
9552
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 Py_INCREF(Py_None); resultobj = Py_None;
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9564 PyObject *resultobj;
9565 wxGrid *arg1 = (wxGrid *) 0 ;
9566 wxColour *arg2 = 0 ;
9567 wxColour temp2 ;
9568 PyObject * obj0 = 0 ;
9569 PyObject * obj1 = 0 ;
9570 char *kwnames[] = {
9571 (char *) "self","arg2", NULL
9572 };
9573
9574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
9575 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9576 {
9577 arg2 = &temp2;
9578 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9579 }
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2);
9583
9584 wxPyEndAllowThreads(__tstate);
9585 if (PyErr_Occurred()) SWIG_fail;
9586 }
9587 Py_INCREF(Py_None); resultobj = Py_None;
9588 return resultobj;
9589 fail:
9590 return NULL;
9591 }
9592
9593
9594 static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9595 PyObject *resultobj;
9596 wxGrid *arg1 = (wxGrid *) 0 ;
9597 wxColour *arg2 = 0 ;
9598 wxColour temp2 ;
9599 PyObject * obj0 = 0 ;
9600 PyObject * obj1 = 0 ;
9601 char *kwnames[] = {
9602 (char *) "self","arg2", NULL
9603 };
9604
9605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail;
9606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9607 {
9608 arg2 = &temp2;
9609 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9610 }
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 (arg1)->SetLabelTextColour((wxColour const &)*arg2);
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 Py_INCREF(Py_None); resultobj = Py_None;
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9626 PyObject *resultobj;
9627 wxGrid *arg1 = (wxGrid *) 0 ;
9628 wxFont *arg2 = 0 ;
9629 PyObject * obj0 = 0 ;
9630 PyObject * obj1 = 0 ;
9631 char *kwnames[] = {
9632 (char *) "self","arg2", NULL
9633 };
9634
9635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail;
9636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9637 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9638 if (arg2 == NULL) {
9639 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9640 }
9641 {
9642 PyThreadState* __tstate = wxPyBeginAllowThreads();
9643 (arg1)->SetLabelFont((wxFont const &)*arg2);
9644
9645 wxPyEndAllowThreads(__tstate);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 }
9648 Py_INCREF(Py_None); resultobj = Py_None;
9649 return resultobj;
9650 fail:
9651 return NULL;
9652 }
9653
9654
9655 static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9656 PyObject *resultobj;
9657 wxGrid *arg1 = (wxGrid *) 0 ;
9658 int arg2 ;
9659 int arg3 ;
9660 PyObject * obj0 = 0 ;
9661 char *kwnames[] = {
9662 (char *) "self",(char *) "horiz",(char *) "vert", NULL
9663 };
9664
9665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowLabelAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
9666 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 (arg1)->SetRowLabelAlignment(arg2,arg3);
9670
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 Py_INCREF(Py_None); resultobj = Py_None;
9675 return resultobj;
9676 fail:
9677 return NULL;
9678 }
9679
9680
9681 static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9682 PyObject *resultobj;
9683 wxGrid *arg1 = (wxGrid *) 0 ;
9684 int arg2 ;
9685 int arg3 ;
9686 PyObject * obj0 = 0 ;
9687 char *kwnames[] = {
9688 (char *) "self",(char *) "horiz",(char *) "vert", NULL
9689 };
9690
9691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColLabelAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
9692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 (arg1)->SetColLabelAlignment(arg2,arg3);
9696
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 Py_INCREF(Py_None); resultobj = Py_None;
9701 return resultobj;
9702 fail:
9703 return NULL;
9704 }
9705
9706
9707 static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9708 PyObject *resultobj;
9709 wxGrid *arg1 = (wxGrid *) 0 ;
9710 int arg2 ;
9711 PyObject * obj0 = 0 ;
9712 char *kwnames[] = {
9713 (char *) "self",(char *) "textOrientation", NULL
9714 };
9715
9716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColLabelTextOrientation",kwnames,&obj0,&arg2)) goto fail;
9717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9718 {
9719 PyThreadState* __tstate = wxPyBeginAllowThreads();
9720 (arg1)->SetColLabelTextOrientation(arg2);
9721
9722 wxPyEndAllowThreads(__tstate);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 Py_INCREF(Py_None); resultobj = Py_None;
9726 return resultobj;
9727 fail:
9728 return NULL;
9729 }
9730
9731
9732 static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj;
9734 wxGrid *arg1 = (wxGrid *) 0 ;
9735 int arg2 ;
9736 wxString *arg3 = 0 ;
9737 bool temp3 = False ;
9738 PyObject * obj0 = 0 ;
9739 PyObject * obj2 = 0 ;
9740 char *kwnames[] = {
9741 (char *) "self",(char *) "row","arg3", NULL
9742 };
9743
9744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
9745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9746 {
9747 arg3 = wxString_in_helper(obj2);
9748 if (arg3 == NULL) SWIG_fail;
9749 temp3 = True;
9750 }
9751 {
9752 PyThreadState* __tstate = wxPyBeginAllowThreads();
9753 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
9754
9755 wxPyEndAllowThreads(__tstate);
9756 if (PyErr_Occurred()) SWIG_fail;
9757 }
9758 Py_INCREF(Py_None); resultobj = Py_None;
9759 {
9760 if (temp3)
9761 delete arg3;
9762 }
9763 return resultobj;
9764 fail:
9765 {
9766 if (temp3)
9767 delete arg3;
9768 }
9769 return NULL;
9770 }
9771
9772
9773 static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9774 PyObject *resultobj;
9775 wxGrid *arg1 = (wxGrid *) 0 ;
9776 int arg2 ;
9777 wxString *arg3 = 0 ;
9778 bool temp3 = False ;
9779 PyObject * obj0 = 0 ;
9780 PyObject * obj2 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "self",(char *) "col","arg3", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
9786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9787 {
9788 arg3 = wxString_in_helper(obj2);
9789 if (arg3 == NULL) SWIG_fail;
9790 temp3 = True;
9791 }
9792 {
9793 PyThreadState* __tstate = wxPyBeginAllowThreads();
9794 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
9795
9796 wxPyEndAllowThreads(__tstate);
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 Py_INCREF(Py_None); resultobj = Py_None;
9800 {
9801 if (temp3)
9802 delete arg3;
9803 }
9804 return resultobj;
9805 fail:
9806 {
9807 if (temp3)
9808 delete arg3;
9809 }
9810 return NULL;
9811 }
9812
9813
9814 static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9815 PyObject *resultobj;
9816 wxGrid *arg1 = (wxGrid *) 0 ;
9817 wxColour *arg2 = 0 ;
9818 wxColour temp2 ;
9819 PyObject * obj0 = 0 ;
9820 PyObject * obj1 = 0 ;
9821 char *kwnames[] = {
9822 (char *) "self","arg2", NULL
9823 };
9824
9825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail;
9826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9827 {
9828 arg2 = &temp2;
9829 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9830 }
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 (arg1)->SetGridLineColour((wxColour const &)*arg2);
9834
9835 wxPyEndAllowThreads(__tstate);
9836 if (PyErr_Occurred()) SWIG_fail;
9837 }
9838 Py_INCREF(Py_None); resultobj = Py_None;
9839 return resultobj;
9840 fail:
9841 return NULL;
9842 }
9843
9844
9845 static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9846 PyObject *resultobj;
9847 wxGrid *arg1 = (wxGrid *) 0 ;
9848 wxColour *arg2 = 0 ;
9849 wxColour temp2 ;
9850 PyObject * obj0 = 0 ;
9851 PyObject * obj1 = 0 ;
9852 char *kwnames[] = {
9853 (char *) "self","arg2", NULL
9854 };
9855
9856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail;
9857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9858 {
9859 arg2 = &temp2;
9860 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9861 }
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 (arg1)->SetCellHighlightColour((wxColour const &)*arg2);
9865
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 Py_INCREF(Py_None); resultobj = Py_None;
9870 return resultobj;
9871 fail:
9872 return NULL;
9873 }
9874
9875
9876 static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj;
9878 wxGrid *arg1 = (wxGrid *) 0 ;
9879 int arg2 ;
9880 PyObject * obj0 = 0 ;
9881 char *kwnames[] = {
9882 (char *) "self",(char *) "width", NULL
9883 };
9884
9885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&arg2)) goto fail;
9886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 (arg1)->SetCellHighlightPenWidth(arg2);
9890
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 Py_INCREF(Py_None); resultobj = Py_None;
9895 return resultobj;
9896 fail:
9897 return NULL;
9898 }
9899
9900
9901 static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9902 PyObject *resultobj;
9903 wxGrid *arg1 = (wxGrid *) 0 ;
9904 int arg2 ;
9905 PyObject * obj0 = 0 ;
9906 char *kwnames[] = {
9907 (char *) "self",(char *) "width", NULL
9908 };
9909
9910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&arg2)) goto fail;
9911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 (arg1)->SetCellHighlightROPenWidth(arg2);
9915
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 Py_INCREF(Py_None); resultobj = Py_None;
9920 return resultobj;
9921 fail:
9922 return NULL;
9923 }
9924
9925
9926 static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj;
9928 wxGrid *arg1 = (wxGrid *) 0 ;
9929 bool arg2 = (bool) True ;
9930 PyObject * obj0 = 0 ;
9931 PyObject * obj1 = 0 ;
9932 char *kwnames[] = {
9933 (char *) "self",(char *) "enable", NULL
9934 };
9935
9936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail;
9937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9938 if (obj1) {
9939 {
9940 arg2 = (bool) SPyObj_AsBool(obj1);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
9943 }
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 (arg1)->EnableDragRowSize(arg2);
9947
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 Py_INCREF(Py_None); resultobj = Py_None;
9952 return resultobj;
9953 fail:
9954 return NULL;
9955 }
9956
9957
9958 static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj;
9960 wxGrid *arg1 = (wxGrid *) 0 ;
9961 PyObject * obj0 = 0 ;
9962 char *kwnames[] = {
9963 (char *) "self", NULL
9964 };
9965
9966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail;
9967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9968 {
9969 PyThreadState* __tstate = wxPyBeginAllowThreads();
9970 (arg1)->DisableDragRowSize();
9971
9972 wxPyEndAllowThreads(__tstate);
9973 if (PyErr_Occurred()) SWIG_fail;
9974 }
9975 Py_INCREF(Py_None); resultobj = Py_None;
9976 return resultobj;
9977 fail:
9978 return NULL;
9979 }
9980
9981
9982 static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9983 PyObject *resultobj;
9984 wxGrid *arg1 = (wxGrid *) 0 ;
9985 bool result;
9986 PyObject * obj0 = 0 ;
9987 char *kwnames[] = {
9988 (char *) "self", NULL
9989 };
9990
9991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail;
9992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9993 {
9994 PyThreadState* __tstate = wxPyBeginAllowThreads();
9995 result = (bool)(arg1)->CanDragRowSize();
9996
9997 wxPyEndAllowThreads(__tstate);
9998 if (PyErr_Occurred()) SWIG_fail;
9999 }
10000 resultobj = PyInt_FromLong((long)result);
10001 return resultobj;
10002 fail:
10003 return NULL;
10004 }
10005
10006
10007 static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10008 PyObject *resultobj;
10009 wxGrid *arg1 = (wxGrid *) 0 ;
10010 bool arg2 = (bool) True ;
10011 PyObject * obj0 = 0 ;
10012 PyObject * obj1 = 0 ;
10013 char *kwnames[] = {
10014 (char *) "self",(char *) "enable", NULL
10015 };
10016
10017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail;
10018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10019 if (obj1) {
10020 {
10021 arg2 = (bool) SPyObj_AsBool(obj1);
10022 if (PyErr_Occurred()) SWIG_fail;
10023 }
10024 }
10025 {
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 (arg1)->EnableDragColSize(arg2);
10028
10029 wxPyEndAllowThreads(__tstate);
10030 if (PyErr_Occurred()) SWIG_fail;
10031 }
10032 Py_INCREF(Py_None); resultobj = Py_None;
10033 return resultobj;
10034 fail:
10035 return NULL;
10036 }
10037
10038
10039 static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10040 PyObject *resultobj;
10041 wxGrid *arg1 = (wxGrid *) 0 ;
10042 PyObject * obj0 = 0 ;
10043 char *kwnames[] = {
10044 (char *) "self", NULL
10045 };
10046
10047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail;
10048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10049 {
10050 PyThreadState* __tstate = wxPyBeginAllowThreads();
10051 (arg1)->DisableDragColSize();
10052
10053 wxPyEndAllowThreads(__tstate);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 }
10056 Py_INCREF(Py_None); resultobj = Py_None;
10057 return resultobj;
10058 fail:
10059 return NULL;
10060 }
10061
10062
10063 static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10064 PyObject *resultobj;
10065 wxGrid *arg1 = (wxGrid *) 0 ;
10066 bool result;
10067 PyObject * obj0 = 0 ;
10068 char *kwnames[] = {
10069 (char *) "self", NULL
10070 };
10071
10072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail;
10073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10074 {
10075 PyThreadState* __tstate = wxPyBeginAllowThreads();
10076 result = (bool)(arg1)->CanDragColSize();
10077
10078 wxPyEndAllowThreads(__tstate);
10079 if (PyErr_Occurred()) SWIG_fail;
10080 }
10081 resultobj = PyInt_FromLong((long)result);
10082 return resultobj;
10083 fail:
10084 return NULL;
10085 }
10086
10087
10088 static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10089 PyObject *resultobj;
10090 wxGrid *arg1 = (wxGrid *) 0 ;
10091 bool arg2 = (bool) True ;
10092 PyObject * obj0 = 0 ;
10093 PyObject * obj1 = 0 ;
10094 char *kwnames[] = {
10095 (char *) "self",(char *) "enable", NULL
10096 };
10097
10098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail;
10099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10100 if (obj1) {
10101 {
10102 arg2 = (bool) SPyObj_AsBool(obj1);
10103 if (PyErr_Occurred()) SWIG_fail;
10104 }
10105 }
10106 {
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 (arg1)->EnableDragGridSize(arg2);
10109
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
10113 Py_INCREF(Py_None); resultobj = Py_None;
10114 return resultobj;
10115 fail:
10116 return NULL;
10117 }
10118
10119
10120 static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10121 PyObject *resultobj;
10122 wxGrid *arg1 = (wxGrid *) 0 ;
10123 PyObject * obj0 = 0 ;
10124 char *kwnames[] = {
10125 (char *) "self", NULL
10126 };
10127
10128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail;
10129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 (arg1)->DisableDragGridSize();
10133
10134 wxPyEndAllowThreads(__tstate);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 Py_INCREF(Py_None); resultobj = Py_None;
10138 return resultobj;
10139 fail:
10140 return NULL;
10141 }
10142
10143
10144 static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10145 PyObject *resultobj;
10146 wxGrid *arg1 = (wxGrid *) 0 ;
10147 bool result;
10148 PyObject * obj0 = 0 ;
10149 char *kwnames[] = {
10150 (char *) "self", NULL
10151 };
10152
10153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail;
10154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (bool)(arg1)->CanDragGridSize();
10158
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 resultobj = PyInt_FromLong((long)result);
10163 return resultobj;
10164 fail:
10165 return NULL;
10166 }
10167
10168
10169 static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
10170 PyObject *resultobj;
10171 wxGrid *arg1 = (wxGrid *) 0 ;
10172 int arg2 ;
10173 int arg3 ;
10174 wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ;
10175 PyObject * obj0 = 0 ;
10176 PyObject * obj3 = 0 ;
10177 char *kwnames[] = {
10178 (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL
10179 };
10180
10181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetAttr",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
10182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10183 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10184 {
10185 PyThreadState* __tstate = wxPyBeginAllowThreads();
10186 (arg1)->SetAttr(arg2,arg3,arg4);
10187
10188 wxPyEndAllowThreads(__tstate);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 }
10191 Py_INCREF(Py_None); resultobj = Py_None;
10192 return resultobj;
10193 fail:
10194 return NULL;
10195 }
10196
10197
10198 static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
10199 PyObject *resultobj;
10200 wxGrid *arg1 = (wxGrid *) 0 ;
10201 int arg2 ;
10202 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
10203 PyObject * obj0 = 0 ;
10204 PyObject * obj2 = 0 ;
10205 char *kwnames[] = {
10206 (char *) "self",(char *) "row",(char *) "attr", NULL
10207 };
10208
10209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetRowAttr",kwnames,&obj0,&arg2,&obj2)) goto fail;
10210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10211 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10212 {
10213 PyThreadState* __tstate = wxPyBeginAllowThreads();
10214 (arg1)->SetRowAttr(arg2,arg3);
10215
10216 wxPyEndAllowThreads(__tstate);
10217 if (PyErr_Occurred()) SWIG_fail;
10218 }
10219 Py_INCREF(Py_None); resultobj = Py_None;
10220 return resultobj;
10221 fail:
10222 return NULL;
10223 }
10224
10225
10226 static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
10227 PyObject *resultobj;
10228 wxGrid *arg1 = (wxGrid *) 0 ;
10229 int arg2 ;
10230 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
10231 PyObject * obj0 = 0 ;
10232 PyObject * obj2 = 0 ;
10233 char *kwnames[] = {
10234 (char *) "self",(char *) "col",(char *) "attr", NULL
10235 };
10236
10237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColAttr",kwnames,&obj0,&arg2,&obj2)) goto fail;
10238 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10239 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 (arg1)->SetColAttr(arg2,arg3);
10243
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 Py_INCREF(Py_None); resultobj = Py_None;
10248 return resultobj;
10249 fail:
10250 return NULL;
10251 }
10252
10253
10254 static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) {
10255 PyObject *resultobj;
10256 wxGrid *arg1 = (wxGrid *) 0 ;
10257 int arg2 ;
10258 PyObject * obj0 = 0 ;
10259 char *kwnames[] = {
10260 (char *) "self",(char *) "col", NULL
10261 };
10262
10263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColFormatBool",kwnames,&obj0,&arg2)) goto fail;
10264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 (arg1)->SetColFormatBool(arg2);
10268
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 Py_INCREF(Py_None); resultobj = Py_None;
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj;
10281 wxGrid *arg1 = (wxGrid *) 0 ;
10282 int arg2 ;
10283 PyObject * obj0 = 0 ;
10284 char *kwnames[] = {
10285 (char *) "self",(char *) "col", NULL
10286 };
10287
10288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColFormatNumber",kwnames,&obj0,&arg2)) goto fail;
10289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10290 {
10291 PyThreadState* __tstate = wxPyBeginAllowThreads();
10292 (arg1)->SetColFormatNumber(arg2);
10293
10294 wxPyEndAllowThreads(__tstate);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 Py_INCREF(Py_None); resultobj = Py_None;
10298 return resultobj;
10299 fail:
10300 return NULL;
10301 }
10302
10303
10304 static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
10305 PyObject *resultobj;
10306 wxGrid *arg1 = (wxGrid *) 0 ;
10307 int arg2 ;
10308 int arg3 = (int) -1 ;
10309 int arg4 = (int) -1 ;
10310 PyObject * obj0 = 0 ;
10311 char *kwnames[] = {
10312 (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL
10313 };
10314
10315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:Grid_SetColFormatFloat",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
10316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 (arg1)->SetColFormatFloat(arg2,arg3,arg4);
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 Py_INCREF(Py_None); resultobj = Py_None;
10325 return resultobj;
10326 fail:
10327 return NULL;
10328 }
10329
10330
10331 static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) {
10332 PyObject *resultobj;
10333 wxGrid *arg1 = (wxGrid *) 0 ;
10334 int arg2 ;
10335 wxString *arg3 = 0 ;
10336 bool temp3 = False ;
10337 PyObject * obj0 = 0 ;
10338 PyObject * obj2 = 0 ;
10339 char *kwnames[] = {
10340 (char *) "self",(char *) "col",(char *) "typeName", NULL
10341 };
10342
10343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColFormatCustom",kwnames,&obj0,&arg2,&obj2)) goto fail;
10344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10345 {
10346 arg3 = wxString_in_helper(obj2);
10347 if (arg3 == NULL) SWIG_fail;
10348 temp3 = True;
10349 }
10350 {
10351 PyThreadState* __tstate = wxPyBeginAllowThreads();
10352 (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3);
10353
10354 wxPyEndAllowThreads(__tstate);
10355 if (PyErr_Occurred()) SWIG_fail;
10356 }
10357 Py_INCREF(Py_None); resultobj = Py_None;
10358 {
10359 if (temp3)
10360 delete arg3;
10361 }
10362 return resultobj;
10363 fail:
10364 {
10365 if (temp3)
10366 delete arg3;
10367 }
10368 return NULL;
10369 }
10370
10371
10372 static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10373 PyObject *resultobj;
10374 wxGrid *arg1 = (wxGrid *) 0 ;
10375 bool arg2 = (bool) True ;
10376 PyObject * obj0 = 0 ;
10377 PyObject * obj1 = 0 ;
10378 char *kwnames[] = {
10379 (char *) "self",(char *) "enable", NULL
10380 };
10381
10382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail;
10383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10384 if (obj1) {
10385 {
10386 arg2 = (bool) SPyObj_AsBool(obj1);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
10389 }
10390 {
10391 PyThreadState* __tstate = wxPyBeginAllowThreads();
10392 (arg1)->EnableGridLines(arg2);
10393
10394 wxPyEndAllowThreads(__tstate);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 }
10397 Py_INCREF(Py_None); resultobj = Py_None;
10398 return resultobj;
10399 fail:
10400 return NULL;
10401 }
10402
10403
10404 static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
10405 PyObject *resultobj;
10406 wxGrid *arg1 = (wxGrid *) 0 ;
10407 bool result;
10408 PyObject * obj0 = 0 ;
10409 char *kwnames[] = {
10410 (char *) "self", NULL
10411 };
10412
10413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail;
10414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10415 {
10416 PyThreadState* __tstate = wxPyBeginAllowThreads();
10417 result = (bool)(arg1)->GridLinesEnabled();
10418
10419 wxPyEndAllowThreads(__tstate);
10420 if (PyErr_Occurred()) SWIG_fail;
10421 }
10422 resultobj = PyInt_FromLong((long)result);
10423 return resultobj;
10424 fail:
10425 return NULL;
10426 }
10427
10428
10429 static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10430 PyObject *resultobj;
10431 wxGrid *arg1 = (wxGrid *) 0 ;
10432 int result;
10433 PyObject * obj0 = 0 ;
10434 char *kwnames[] = {
10435 (char *) "self", NULL
10436 };
10437
10438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail;
10439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10440 {
10441 PyThreadState* __tstate = wxPyBeginAllowThreads();
10442 result = (int)(arg1)->GetDefaultRowSize();
10443
10444 wxPyEndAllowThreads(__tstate);
10445 if (PyErr_Occurred()) SWIG_fail;
10446 }
10447 resultobj = PyInt_FromLong((long)result);
10448 return resultobj;
10449 fail:
10450 return NULL;
10451 }
10452
10453
10454 static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10455 PyObject *resultobj;
10456 wxGrid *arg1 = (wxGrid *) 0 ;
10457 int arg2 ;
10458 int result;
10459 PyObject * obj0 = 0 ;
10460 char *kwnames[] = {
10461 (char *) "self",(char *) "row", NULL
10462 };
10463
10464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetRowSize",kwnames,&obj0,&arg2)) goto fail;
10465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10466 {
10467 PyThreadState* __tstate = wxPyBeginAllowThreads();
10468 result = (int)(arg1)->GetRowSize(arg2);
10469
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 resultobj = PyInt_FromLong((long)result);
10474 return resultobj;
10475 fail:
10476 return NULL;
10477 }
10478
10479
10480 static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10481 PyObject *resultobj;
10482 wxGrid *arg1 = (wxGrid *) 0 ;
10483 int result;
10484 PyObject * obj0 = 0 ;
10485 char *kwnames[] = {
10486 (char *) "self", NULL
10487 };
10488
10489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail;
10490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10491 {
10492 PyThreadState* __tstate = wxPyBeginAllowThreads();
10493 result = (int)(arg1)->GetDefaultColSize();
10494
10495 wxPyEndAllowThreads(__tstate);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 resultobj = PyInt_FromLong((long)result);
10499 return resultobj;
10500 fail:
10501 return NULL;
10502 }
10503
10504
10505 static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10506 PyObject *resultobj;
10507 wxGrid *arg1 = (wxGrid *) 0 ;
10508 int arg2 ;
10509 int result;
10510 PyObject * obj0 = 0 ;
10511 char *kwnames[] = {
10512 (char *) "self",(char *) "col", NULL
10513 };
10514
10515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetColSize",kwnames,&obj0,&arg2)) goto fail;
10516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10517 {
10518 PyThreadState* __tstate = wxPyBeginAllowThreads();
10519 result = (int)(arg1)->GetColSize(arg2);
10520
10521 wxPyEndAllowThreads(__tstate);
10522 if (PyErr_Occurred()) SWIG_fail;
10523 }
10524 resultobj = PyInt_FromLong((long)result);
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj;
10533 wxGrid *arg1 = (wxGrid *) 0 ;
10534 wxColour result;
10535 PyObject * obj0 = 0 ;
10536 char *kwnames[] = {
10537 (char *) "self", NULL
10538 };
10539
10540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail;
10541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10542 {
10543 PyThreadState* __tstate = wxPyBeginAllowThreads();
10544 result = (arg1)->GetDefaultCellBackgroundColour();
10545
10546 wxPyEndAllowThreads(__tstate);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 {
10550 wxColour * resultptr;
10551 resultptr = new wxColour((wxColour &) result);
10552 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10553 }
10554 return resultobj;
10555 fail:
10556 return NULL;
10557 }
10558
10559
10560 static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10561 PyObject *resultobj;
10562 wxGrid *arg1 = (wxGrid *) 0 ;
10563 int arg2 ;
10564 int arg3 ;
10565 wxColour result;
10566 PyObject * obj0 = 0 ;
10567 char *kwnames[] = {
10568 (char *) "self",(char *) "row",(char *) "col", NULL
10569 };
10570
10571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellBackgroundColour",kwnames,&obj0,&arg2,&arg3)) goto fail;
10572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (arg1)->GetCellBackgroundColour(arg2,arg3);
10576
10577 wxPyEndAllowThreads(__tstate);
10578 if (PyErr_Occurred()) SWIG_fail;
10579 }
10580 {
10581 wxColour * resultptr;
10582 resultptr = new wxColour((wxColour &) result);
10583 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10584 }
10585 return resultobj;
10586 fail:
10587 return NULL;
10588 }
10589
10590
10591 static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj;
10593 wxGrid *arg1 = (wxGrid *) 0 ;
10594 wxColour result;
10595 PyObject * obj0 = 0 ;
10596 char *kwnames[] = {
10597 (char *) "self", NULL
10598 };
10599
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail;
10601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 result = (arg1)->GetDefaultCellTextColour();
10605
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 {
10610 wxColour * resultptr;
10611 resultptr = new wxColour((wxColour &) result);
10612 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10613 }
10614 return resultobj;
10615 fail:
10616 return NULL;
10617 }
10618
10619
10620 static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10621 PyObject *resultobj;
10622 wxGrid *arg1 = (wxGrid *) 0 ;
10623 int arg2 ;
10624 int arg3 ;
10625 wxColour result;
10626 PyObject * obj0 = 0 ;
10627 char *kwnames[] = {
10628 (char *) "self",(char *) "row",(char *) "col", NULL
10629 };
10630
10631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellTextColour",kwnames,&obj0,&arg2,&arg3)) goto fail;
10632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10633 {
10634 PyThreadState* __tstate = wxPyBeginAllowThreads();
10635 result = (arg1)->GetCellTextColour(arg2,arg3);
10636
10637 wxPyEndAllowThreads(__tstate);
10638 if (PyErr_Occurred()) SWIG_fail;
10639 }
10640 {
10641 wxColour * resultptr;
10642 resultptr = new wxColour((wxColour &) result);
10643 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10644 }
10645 return resultobj;
10646 fail:
10647 return NULL;
10648 }
10649
10650
10651 static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj;
10653 wxGrid *arg1 = (wxGrid *) 0 ;
10654 wxFont result;
10655 PyObject * obj0 = 0 ;
10656 char *kwnames[] = {
10657 (char *) "self", NULL
10658 };
10659
10660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail;
10661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10662 {
10663 PyThreadState* __tstate = wxPyBeginAllowThreads();
10664 result = (arg1)->GetDefaultCellFont();
10665
10666 wxPyEndAllowThreads(__tstate);
10667 if (PyErr_Occurred()) SWIG_fail;
10668 }
10669 {
10670 wxFont * resultptr;
10671 resultptr = new wxFont((wxFont &) result);
10672 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
10673 }
10674 return resultobj;
10675 fail:
10676 return NULL;
10677 }
10678
10679
10680 static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10681 PyObject *resultobj;
10682 wxGrid *arg1 = (wxGrid *) 0 ;
10683 int arg2 ;
10684 int arg3 ;
10685 wxFont result;
10686 PyObject * obj0 = 0 ;
10687 char *kwnames[] = {
10688 (char *) "self",(char *) "row",(char *) "col", NULL
10689 };
10690
10691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellFont",kwnames,&obj0,&arg2,&arg3)) goto fail;
10692 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10693 {
10694 PyThreadState* __tstate = wxPyBeginAllowThreads();
10695 result = (arg1)->GetCellFont(arg2,arg3);
10696
10697 wxPyEndAllowThreads(__tstate);
10698 if (PyErr_Occurred()) SWIG_fail;
10699 }
10700 {
10701 wxFont * resultptr;
10702 resultptr = new wxFont((wxFont &) result);
10703 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
10704 }
10705 return resultobj;
10706 fail:
10707 return NULL;
10708 }
10709
10710
10711 static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10712 PyObject *resultobj;
10713 wxGrid *arg1 = (wxGrid *) 0 ;
10714 int *arg2 = (int *) 0 ;
10715 int *arg3 = (int *) 0 ;
10716 int temp2 ;
10717 int temp3 ;
10718 PyObject * obj0 = 0 ;
10719 char *kwnames[] = {
10720 (char *) "self", NULL
10721 };
10722
10723 arg2 = &temp2;
10724 arg3 = &temp3;
10725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail;
10726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 (arg1)->GetDefaultCellAlignment(arg2,arg3);
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 Py_INCREF(Py_None); resultobj = Py_None;
10735 {
10736 PyObject *o = PyInt_FromLong((long) (*arg2));
10737 resultobj = t_output_helper(resultobj,o);
10738 }
10739 {
10740 PyObject *o = PyInt_FromLong((long) (*arg3));
10741 resultobj = t_output_helper(resultobj,o);
10742 }
10743 return resultobj;
10744 fail:
10745 return NULL;
10746 }
10747
10748
10749 static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10750 PyObject *resultobj;
10751 wxGrid *arg1 = (wxGrid *) 0 ;
10752 int arg2 ;
10753 int arg3 ;
10754 int *arg4 = (int *) 0 ;
10755 int *arg5 = (int *) 0 ;
10756 int temp4 ;
10757 int temp5 ;
10758 PyObject * obj0 = 0 ;
10759 char *kwnames[] = {
10760 (char *) "self",(char *) "row",(char *) "col", NULL
10761 };
10762
10763 arg4 = &temp4;
10764 arg5 = &temp5;
10765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
10766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5);
10770
10771 wxPyEndAllowThreads(__tstate);
10772 if (PyErr_Occurred()) SWIG_fail;
10773 }
10774 Py_INCREF(Py_None); resultobj = Py_None;
10775 {
10776 PyObject *o = PyInt_FromLong((long) (*arg4));
10777 resultobj = t_output_helper(resultobj,o);
10778 }
10779 {
10780 PyObject *o = PyInt_FromLong((long) (*arg5));
10781 resultobj = t_output_helper(resultobj,o);
10782 }
10783 return resultobj;
10784 fail:
10785 return NULL;
10786 }
10787
10788
10789 static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj;
10791 wxGrid *arg1 = (wxGrid *) 0 ;
10792 bool result;
10793 PyObject * obj0 = 0 ;
10794 char *kwnames[] = {
10795 (char *) "self", NULL
10796 };
10797
10798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail;
10799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 result = (bool)(arg1)->GetDefaultCellOverflow();
10803
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 resultobj = PyInt_FromLong((long)result);
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
10815 PyObject *resultobj;
10816 wxGrid *arg1 = (wxGrid *) 0 ;
10817 int arg2 ;
10818 int arg3 ;
10819 bool result;
10820 PyObject * obj0 = 0 ;
10821 char *kwnames[] = {
10822 (char *) "self",(char *) "row",(char *) "col", NULL
10823 };
10824
10825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellOverflow",kwnames,&obj0,&arg2,&arg3)) goto fail;
10826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 result = (bool)(arg1)->GetCellOverflow(arg2,arg3);
10830
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 resultobj = PyInt_FromLong((long)result);
10835 return resultobj;
10836 fail:
10837 return NULL;
10838 }
10839
10840
10841 static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxGrid *arg1 = (wxGrid *) 0 ;
10844 int arg2 ;
10845 int arg3 ;
10846 int *arg4 = (int *) 0 ;
10847 int *arg5 = (int *) 0 ;
10848 int temp4 ;
10849 int temp5 ;
10850 PyObject * obj0 = 0 ;
10851 char *kwnames[] = {
10852 (char *) "self",(char *) "row",(char *) "col", NULL
10853 };
10854
10855 arg4 = &temp4;
10856 arg5 = &temp5;
10857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10859 {
10860 PyThreadState* __tstate = wxPyBeginAllowThreads();
10861 (arg1)->GetCellSize(arg2,arg3,arg4,arg5);
10862
10863 wxPyEndAllowThreads(__tstate);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 }
10866 Py_INCREF(Py_None); resultobj = Py_None;
10867 {
10868 PyObject *o = PyInt_FromLong((long) (*arg4));
10869 resultobj = t_output_helper(resultobj,o);
10870 }
10871 {
10872 PyObject *o = PyInt_FromLong((long) (*arg5));
10873 resultobj = t_output_helper(resultobj,o);
10874 }
10875 return resultobj;
10876 fail:
10877 return NULL;
10878 }
10879
10880
10881 static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10882 PyObject *resultobj;
10883 wxGrid *arg1 = (wxGrid *) 0 ;
10884 int arg2 ;
10885 bool arg3 = (bool) False ;
10886 PyObject * obj0 = 0 ;
10887 PyObject * obj2 = 0 ;
10888 char *kwnames[] = {
10889 (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL
10890 };
10891
10892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SetDefaultRowSize",kwnames,&obj0,&arg2,&obj2)) goto fail;
10893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10894 if (obj2) {
10895 {
10896 arg3 = (bool) SPyObj_AsBool(obj2);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 }
10899 }
10900 {
10901 PyThreadState* __tstate = wxPyBeginAllowThreads();
10902 (arg1)->SetDefaultRowSize(arg2,arg3);
10903
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 Py_INCREF(Py_None); resultobj = Py_None;
10908 return resultobj;
10909 fail:
10910 return NULL;
10911 }
10912
10913
10914 static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10915 PyObject *resultobj;
10916 wxGrid *arg1 = (wxGrid *) 0 ;
10917 int arg2 ;
10918 int arg3 ;
10919 PyObject * obj0 = 0 ;
10920 char *kwnames[] = {
10921 (char *) "self",(char *) "row",(char *) "height", NULL
10922 };
10923
10924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 (arg1)->SetRowSize(arg2,arg3);
10929
10930 wxPyEndAllowThreads(__tstate);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
10933 Py_INCREF(Py_None); resultobj = Py_None;
10934 return resultobj;
10935 fail:
10936 return NULL;
10937 }
10938
10939
10940 static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10941 PyObject *resultobj;
10942 wxGrid *arg1 = (wxGrid *) 0 ;
10943 int arg2 ;
10944 bool arg3 = (bool) False ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj2 = 0 ;
10947 char *kwnames[] = {
10948 (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL
10949 };
10950
10951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SetDefaultColSize",kwnames,&obj0,&arg2,&obj2)) goto fail;
10952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10953 if (obj2) {
10954 {
10955 arg3 = (bool) SPyObj_AsBool(obj2);
10956 if (PyErr_Occurred()) SWIG_fail;
10957 }
10958 }
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 (arg1)->SetDefaultColSize(arg2,arg3);
10962
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 Py_INCREF(Py_None); resultobj = Py_None;
10967 return resultobj;
10968 fail:
10969 return NULL;
10970 }
10971
10972
10973 static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10974 PyObject *resultobj;
10975 wxGrid *arg1 = (wxGrid *) 0 ;
10976 int arg2 ;
10977 int arg3 ;
10978 PyObject * obj0 = 0 ;
10979 char *kwnames[] = {
10980 (char *) "self",(char *) "col",(char *) "width", NULL
10981 };
10982
10983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 (arg1)->SetColSize(arg2,arg3);
10988
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 Py_INCREF(Py_None); resultobj = Py_None;
10993 return resultobj;
10994 fail:
10995 return NULL;
10996 }
10997
10998
10999 static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
11000 PyObject *resultobj;
11001 wxGrid *arg1 = (wxGrid *) 0 ;
11002 int arg2 ;
11003 bool arg3 = (bool) True ;
11004 PyObject * obj0 = 0 ;
11005 PyObject * obj2 = 0 ;
11006 char *kwnames[] = {
11007 (char *) "self",(char *) "col",(char *) "setAsMin", NULL
11008 };
11009
11010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_AutoSizeColumn",kwnames,&obj0,&arg2,&obj2)) goto fail;
11011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11012 if (obj2) {
11013 {
11014 arg3 = (bool) SPyObj_AsBool(obj2);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 }
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 (arg1)->AutoSizeColumn(arg2,arg3);
11021
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 Py_INCREF(Py_None); resultobj = Py_None;
11026 return resultobj;
11027 fail:
11028 return NULL;
11029 }
11030
11031
11032 static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj;
11034 wxGrid *arg1 = (wxGrid *) 0 ;
11035 int arg2 ;
11036 bool arg3 = (bool) True ;
11037 PyObject * obj0 = 0 ;
11038 PyObject * obj2 = 0 ;
11039 char *kwnames[] = {
11040 (char *) "self",(char *) "row",(char *) "setAsMin", NULL
11041 };
11042
11043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_AutoSizeRow",kwnames,&obj0,&arg2,&obj2)) goto fail;
11044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11045 if (obj2) {
11046 {
11047 arg3 = (bool) SPyObj_AsBool(obj2);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 }
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 (arg1)->AutoSizeRow(arg2,arg3);
11054
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 Py_INCREF(Py_None); resultobj = Py_None;
11059 return resultobj;
11060 fail:
11061 return NULL;
11062 }
11063
11064
11065 static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
11066 PyObject *resultobj;
11067 wxGrid *arg1 = (wxGrid *) 0 ;
11068 bool arg2 = (bool) True ;
11069 PyObject * obj0 = 0 ;
11070 PyObject * obj1 = 0 ;
11071 char *kwnames[] = {
11072 (char *) "self",(char *) "setAsMin", NULL
11073 };
11074
11075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail;
11076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11077 if (obj1) {
11078 {
11079 arg2 = (bool) SPyObj_AsBool(obj1);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 }
11083 {
11084 PyThreadState* __tstate = wxPyBeginAllowThreads();
11085 (arg1)->AutoSizeColumns(arg2);
11086
11087 wxPyEndAllowThreads(__tstate);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 Py_INCREF(Py_None); resultobj = Py_None;
11091 return resultobj;
11092 fail:
11093 return NULL;
11094 }
11095
11096
11097 static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) {
11098 PyObject *resultobj;
11099 wxGrid *arg1 = (wxGrid *) 0 ;
11100 bool arg2 = (bool) True ;
11101 PyObject * obj0 = 0 ;
11102 PyObject * obj1 = 0 ;
11103 char *kwnames[] = {
11104 (char *) "self",(char *) "setAsMin", NULL
11105 };
11106
11107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail;
11108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11109 if (obj1) {
11110 {
11111 arg2 = (bool) SPyObj_AsBool(obj1);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 }
11114 }
11115 {
11116 PyThreadState* __tstate = wxPyBeginAllowThreads();
11117 (arg1)->AutoSizeRows(arg2);
11118
11119 wxPyEndAllowThreads(__tstate);
11120 if (PyErr_Occurred()) SWIG_fail;
11121 }
11122 Py_INCREF(Py_None); resultobj = Py_None;
11123 return resultobj;
11124 fail:
11125 return NULL;
11126 }
11127
11128
11129 static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11130 PyObject *resultobj;
11131 wxGrid *arg1 = (wxGrid *) 0 ;
11132 PyObject * obj0 = 0 ;
11133 char *kwnames[] = {
11134 (char *) "self", NULL
11135 };
11136
11137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail;
11138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 (arg1)->AutoSize();
11142
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 Py_INCREF(Py_None); resultobj = Py_None;
11147 return resultobj;
11148 fail:
11149 return NULL;
11150 }
11151
11152
11153 static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11154 PyObject *resultobj;
11155 wxGrid *arg1 = (wxGrid *) 0 ;
11156 int arg2 ;
11157 PyObject * obj0 = 0 ;
11158 char *kwnames[] = {
11159 (char *) "self",(char *) "row", NULL
11160 };
11161
11162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&arg2)) goto fail;
11163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11164 {
11165 PyThreadState* __tstate = wxPyBeginAllowThreads();
11166 (arg1)->AutoSizeRowLabelSize(arg2);
11167
11168 wxPyEndAllowThreads(__tstate);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 }
11171 Py_INCREF(Py_None); resultobj = Py_None;
11172 return resultobj;
11173 fail:
11174 return NULL;
11175 }
11176
11177
11178 static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11179 PyObject *resultobj;
11180 wxGrid *arg1 = (wxGrid *) 0 ;
11181 int arg2 ;
11182 PyObject * obj0 = 0 ;
11183 char *kwnames[] = {
11184 (char *) "self",(char *) "col", NULL
11185 };
11186
11187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_AutoSizeColLabelSize",kwnames,&obj0,&arg2)) goto fail;
11188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11189 {
11190 PyThreadState* __tstate = wxPyBeginAllowThreads();
11191 (arg1)->AutoSizeColLabelSize(arg2);
11192
11193 wxPyEndAllowThreads(__tstate);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 }
11196 Py_INCREF(Py_None); resultobj = Py_None;
11197 return resultobj;
11198 fail:
11199 return NULL;
11200 }
11201
11202
11203 static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11204 PyObject *resultobj;
11205 wxGrid *arg1 = (wxGrid *) 0 ;
11206 int arg2 ;
11207 int arg3 ;
11208 PyObject * obj0 = 0 ;
11209 char *kwnames[] = {
11210 (char *) "self",(char *) "col",(char *) "width", NULL
11211 };
11212
11213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColMinimalWidth",kwnames,&obj0,&arg2,&arg3)) goto fail;
11214 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11215 {
11216 PyThreadState* __tstate = wxPyBeginAllowThreads();
11217 (arg1)->SetColMinimalWidth(arg2,arg3);
11218
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 Py_INCREF(Py_None); resultobj = Py_None;
11223 return resultobj;
11224 fail:
11225 return NULL;
11226 }
11227
11228
11229 static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11230 PyObject *resultobj;
11231 wxGrid *arg1 = (wxGrid *) 0 ;
11232 int arg2 ;
11233 int arg3 ;
11234 PyObject * obj0 = 0 ;
11235 char *kwnames[] = {
11236 (char *) "self",(char *) "row",(char *) "width", NULL
11237 };
11238
11239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowMinimalHeight",kwnames,&obj0,&arg2,&arg3)) goto fail;
11240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 (arg1)->SetRowMinimalHeight(arg2,arg3);
11244
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 Py_INCREF(Py_None); resultobj = Py_None;
11249 return resultobj;
11250 fail:
11251 return NULL;
11252 }
11253
11254
11255 static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj;
11257 wxGrid *arg1 = (wxGrid *) 0 ;
11258 int arg2 ;
11259 PyObject * obj0 = 0 ;
11260 char *kwnames[] = {
11261 (char *) "self",(char *) "width", NULL
11262 };
11263
11264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&arg2)) goto fail;
11265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11266 {
11267 PyThreadState* __tstate = wxPyBeginAllowThreads();
11268 (arg1)->SetColMinimalAcceptableWidth(arg2);
11269
11270 wxPyEndAllowThreads(__tstate);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 }
11273 Py_INCREF(Py_None); resultobj = Py_None;
11274 return resultobj;
11275 fail:
11276 return NULL;
11277 }
11278
11279
11280 static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11281 PyObject *resultobj;
11282 wxGrid *arg1 = (wxGrid *) 0 ;
11283 int arg2 ;
11284 PyObject * obj0 = 0 ;
11285 char *kwnames[] = {
11286 (char *) "self",(char *) "width", NULL
11287 };
11288
11289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&arg2)) goto fail;
11290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11291 {
11292 PyThreadState* __tstate = wxPyBeginAllowThreads();
11293 (arg1)->SetRowMinimalAcceptableHeight(arg2);
11294
11295 wxPyEndAllowThreads(__tstate);
11296 if (PyErr_Occurred()) SWIG_fail;
11297 }
11298 Py_INCREF(Py_None); resultobj = Py_None;
11299 return resultobj;
11300 fail:
11301 return NULL;
11302 }
11303
11304
11305 static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11306 PyObject *resultobj;
11307 wxGrid *arg1 = (wxGrid *) 0 ;
11308 int result;
11309 PyObject * obj0 = 0 ;
11310 char *kwnames[] = {
11311 (char *) "self", NULL
11312 };
11313
11314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail;
11315 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11316 {
11317 PyThreadState* __tstate = wxPyBeginAllowThreads();
11318 result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth();
11319
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 resultobj = PyInt_FromLong((long)result);
11324 return resultobj;
11325 fail:
11326 return NULL;
11327 }
11328
11329
11330 static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11331 PyObject *resultobj;
11332 wxGrid *arg1 = (wxGrid *) 0 ;
11333 int result;
11334 PyObject * obj0 = 0 ;
11335 char *kwnames[] = {
11336 (char *) "self", NULL
11337 };
11338
11339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail;
11340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11341 {
11342 PyThreadState* __tstate = wxPyBeginAllowThreads();
11343 result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight();
11344
11345 wxPyEndAllowThreads(__tstate);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 }
11348 resultobj = PyInt_FromLong((long)result);
11349 return resultobj;
11350 fail:
11351 return NULL;
11352 }
11353
11354
11355 static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11356 PyObject *resultobj;
11357 wxGrid *arg1 = (wxGrid *) 0 ;
11358 wxColour *arg2 = 0 ;
11359 wxColour temp2 ;
11360 PyObject * obj0 = 0 ;
11361 PyObject * obj1 = 0 ;
11362 char *kwnames[] = {
11363 (char *) "self","arg2", NULL
11364 };
11365
11366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
11367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11368 {
11369 arg2 = &temp2;
11370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11371 }
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2);
11375
11376 wxPyEndAllowThreads(__tstate);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 Py_INCREF(Py_None); resultobj = Py_None;
11380 return resultobj;
11381 fail:
11382 return NULL;
11383 }
11384
11385
11386 static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11387 PyObject *resultobj;
11388 wxGrid *arg1 = (wxGrid *) 0 ;
11389 int arg2 ;
11390 int arg3 ;
11391 wxColour *arg4 = 0 ;
11392 wxColour temp4 ;
11393 PyObject * obj0 = 0 ;
11394 PyObject * obj3 = 0 ;
11395 char *kwnames[] = {
11396 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11397 };
11398
11399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellBackgroundColour",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11401 {
11402 arg4 = &temp4;
11403 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11404 }
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4);
11408
11409 wxPyEndAllowThreads(__tstate);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 }
11412 Py_INCREF(Py_None); resultobj = Py_None;
11413 return resultobj;
11414 fail:
11415 return NULL;
11416 }
11417
11418
11419 static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11420 PyObject *resultobj;
11421 wxGrid *arg1 = (wxGrid *) 0 ;
11422 wxColour *arg2 = 0 ;
11423 wxColour temp2 ;
11424 PyObject * obj0 = 0 ;
11425 PyObject * obj1 = 0 ;
11426 char *kwnames[] = {
11427 (char *) "self","arg2", NULL
11428 };
11429
11430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail;
11431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11432 {
11433 arg2 = &temp2;
11434 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11435 }
11436 {
11437 PyThreadState* __tstate = wxPyBeginAllowThreads();
11438 (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2);
11439
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 Py_INCREF(Py_None); resultobj = Py_None;
11444 return resultobj;
11445 fail:
11446 return NULL;
11447 }
11448
11449
11450 static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj;
11452 wxGrid *arg1 = (wxGrid *) 0 ;
11453 int arg2 ;
11454 int arg3 ;
11455 wxColour *arg4 = 0 ;
11456 wxColour temp4 ;
11457 PyObject * obj0 = 0 ;
11458 PyObject * obj3 = 0 ;
11459 char *kwnames[] = {
11460 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11461 };
11462
11463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellTextColour",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11465 {
11466 arg4 = &temp4;
11467 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11468 }
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4);
11472
11473 wxPyEndAllowThreads(__tstate);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 }
11476 Py_INCREF(Py_None); resultobj = Py_None;
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj;
11485 wxGrid *arg1 = (wxGrid *) 0 ;
11486 wxFont *arg2 = 0 ;
11487 PyObject * obj0 = 0 ;
11488 PyObject * obj1 = 0 ;
11489 char *kwnames[] = {
11490 (char *) "self","arg2", NULL
11491 };
11492
11493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail;
11494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11495 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11496 if (arg2 == NULL) {
11497 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11498 }
11499 {
11500 PyThreadState* __tstate = wxPyBeginAllowThreads();
11501 (arg1)->SetDefaultCellFont((wxFont const &)*arg2);
11502
11503 wxPyEndAllowThreads(__tstate);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 Py_INCREF(Py_None); resultobj = Py_None;
11507 return resultobj;
11508 fail:
11509 return NULL;
11510 }
11511
11512
11513 static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11514 PyObject *resultobj;
11515 wxGrid *arg1 = (wxGrid *) 0 ;
11516 int arg2 ;
11517 int arg3 ;
11518 wxFont *arg4 = 0 ;
11519 PyObject * obj0 = 0 ;
11520 PyObject * obj3 = 0 ;
11521 char *kwnames[] = {
11522 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11523 };
11524
11525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellFont",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11527 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11528 if (arg4 == NULL) {
11529 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11530 }
11531 {
11532 PyThreadState* __tstate = wxPyBeginAllowThreads();
11533 (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4);
11534
11535 wxPyEndAllowThreads(__tstate);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 }
11538 Py_INCREF(Py_None); resultobj = Py_None;
11539 return resultobj;
11540 fail:
11541 return NULL;
11542 }
11543
11544
11545 static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11546 PyObject *resultobj;
11547 wxGrid *arg1 = (wxGrid *) 0 ;
11548 int arg2 ;
11549 int arg3 ;
11550 PyObject * obj0 = 0 ;
11551 char *kwnames[] = {
11552 (char *) "self",(char *) "horiz",(char *) "vert", NULL
11553 };
11554
11555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetDefaultCellAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
11556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11557 {
11558 PyThreadState* __tstate = wxPyBeginAllowThreads();
11559 (arg1)->SetDefaultCellAlignment(arg2,arg3);
11560
11561 wxPyEndAllowThreads(__tstate);
11562 if (PyErr_Occurred()) SWIG_fail;
11563 }
11564 Py_INCREF(Py_None); resultobj = Py_None;
11565 return resultobj;
11566 fail:
11567 return NULL;
11568 }
11569
11570
11571 static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11572 PyObject *resultobj;
11573 wxGrid *arg1 = (wxGrid *) 0 ;
11574 int arg2 ;
11575 int arg3 ;
11576 int arg4 ;
11577 int arg5 ;
11578 PyObject * obj0 = 0 ;
11579 char *kwnames[] = {
11580 (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL
11581 };
11582
11583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Grid_SetCellAlignment",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11584 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11585 {
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5);
11588
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 Py_INCREF(Py_None); resultobj = Py_None;
11593 return resultobj;
11594 fail:
11595 return NULL;
11596 }
11597
11598
11599 static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11600 PyObject *resultobj;
11601 wxGrid *arg1 = (wxGrid *) 0 ;
11602 bool arg2 ;
11603 PyObject * obj0 = 0 ;
11604 PyObject * obj1 = 0 ;
11605 char *kwnames[] = {
11606 (char *) "self",(char *) "allow", NULL
11607 };
11608
11609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail;
11610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11611 {
11612 arg2 = (bool) SPyObj_AsBool(obj1);
11613 if (PyErr_Occurred()) SWIG_fail;
11614 }
11615 {
11616 PyThreadState* __tstate = wxPyBeginAllowThreads();
11617 (arg1)->SetDefaultCellOverflow(arg2);
11618
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 Py_INCREF(Py_None); resultobj = Py_None;
11623 return resultobj;
11624 fail:
11625 return NULL;
11626 }
11627
11628
11629 static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11630 PyObject *resultobj;
11631 wxGrid *arg1 = (wxGrid *) 0 ;
11632 int arg2 ;
11633 int arg3 ;
11634 bool arg4 ;
11635 PyObject * obj0 = 0 ;
11636 PyObject * obj3 = 0 ;
11637 char *kwnames[] = {
11638 (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL
11639 };
11640
11641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellOverflow",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11643 {
11644 arg4 = (bool) SPyObj_AsBool(obj3);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 }
11647 {
11648 PyThreadState* __tstate = wxPyBeginAllowThreads();
11649 (arg1)->SetCellOverflow(arg2,arg3,arg4);
11650
11651 wxPyEndAllowThreads(__tstate);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 }
11654 Py_INCREF(Py_None); resultobj = Py_None;
11655 return resultobj;
11656 fail:
11657 return NULL;
11658 }
11659
11660
11661 static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11662 PyObject *resultobj;
11663 wxGrid *arg1 = (wxGrid *) 0 ;
11664 int arg2 ;
11665 int arg3 ;
11666 int arg4 ;
11667 int arg5 ;
11668 PyObject * obj0 = 0 ;
11669 char *kwnames[] = {
11670 (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL
11671 };
11672
11673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Grid_SetCellSize",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11675 {
11676 PyThreadState* __tstate = wxPyBeginAllowThreads();
11677 (arg1)->SetCellSize(arg2,arg3,arg4,arg5);
11678
11679 wxPyEndAllowThreads(__tstate);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 }
11682 Py_INCREF(Py_None); resultobj = Py_None;
11683 return resultobj;
11684 fail:
11685 return NULL;
11686 }
11687
11688
11689 static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11690 PyObject *resultobj;
11691 wxGrid *arg1 = (wxGrid *) 0 ;
11692 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
11693 PyObject * obj0 = 0 ;
11694 PyObject * obj1 = 0 ;
11695 char *kwnames[] = {
11696 (char *) "self",(char *) "renderer", NULL
11697 };
11698
11699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail;
11700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11701 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11702 {
11703 PyThreadState* __tstate = wxPyBeginAllowThreads();
11704 (arg1)->SetDefaultRenderer(arg2);
11705
11706 wxPyEndAllowThreads(__tstate);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 }
11709 Py_INCREF(Py_None); resultobj = Py_None;
11710 return resultobj;
11711 fail:
11712 return NULL;
11713 }
11714
11715
11716 static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11717 PyObject *resultobj;
11718 wxGrid *arg1 = (wxGrid *) 0 ;
11719 int arg2 ;
11720 int arg3 ;
11721 wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ;
11722 PyObject * obj0 = 0 ;
11723 PyObject * obj3 = 0 ;
11724 char *kwnames[] = {
11725 (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL
11726 };
11727
11728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellRenderer",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11730 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 (arg1)->SetCellRenderer(arg2,arg3,arg4);
11734
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 }
11738 Py_INCREF(Py_None); resultobj = Py_None;
11739 return resultobj;
11740 fail:
11741 return NULL;
11742 }
11743
11744
11745 static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11746 PyObject *resultobj;
11747 wxGrid *arg1 = (wxGrid *) 0 ;
11748 wxGridCellRenderer *result;
11749 PyObject * obj0 = 0 ;
11750 char *kwnames[] = {
11751 (char *) "self", NULL
11752 };
11753
11754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail;
11755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11756 {
11757 PyThreadState* __tstate = wxPyBeginAllowThreads();
11758 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer();
11759
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 {
11764 resultobj = wxPyMake_wxGridCellRenderer(result);
11765 }
11766 return resultobj;
11767 fail:
11768 return NULL;
11769 }
11770
11771
11772 static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11773 PyObject *resultobj;
11774 wxGrid *arg1 = (wxGrid *) 0 ;
11775 int arg2 ;
11776 int arg3 ;
11777 wxGridCellRenderer *result;
11778 PyObject * obj0 = 0 ;
11779 char *kwnames[] = {
11780 (char *) "self",(char *) "row",(char *) "col", NULL
11781 };
11782
11783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellRenderer",kwnames,&obj0,&arg2,&arg3)) goto fail;
11784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3);
11788
11789 wxPyEndAllowThreads(__tstate);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 }
11792 {
11793 resultobj = wxPyMake_wxGridCellRenderer(result);
11794 }
11795 return resultobj;
11796 fail:
11797 return NULL;
11798 }
11799
11800
11801 static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11802 PyObject *resultobj;
11803 wxGrid *arg1 = (wxGrid *) 0 ;
11804 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
11805 PyObject * obj0 = 0 ;
11806 PyObject * obj1 = 0 ;
11807 char *kwnames[] = {
11808 (char *) "self",(char *) "editor", NULL
11809 };
11810
11811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail;
11812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11813 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11814 {
11815 PyThreadState* __tstate = wxPyBeginAllowThreads();
11816 (arg1)->SetDefaultEditor(arg2);
11817
11818 wxPyEndAllowThreads(__tstate);
11819 if (PyErr_Occurred()) SWIG_fail;
11820 }
11821 Py_INCREF(Py_None); resultobj = Py_None;
11822 return resultobj;
11823 fail:
11824 return NULL;
11825 }
11826
11827
11828 static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11829 PyObject *resultobj;
11830 wxGrid *arg1 = (wxGrid *) 0 ;
11831 int arg2 ;
11832 int arg3 ;
11833 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
11834 PyObject * obj0 = 0 ;
11835 PyObject * obj3 = 0 ;
11836 char *kwnames[] = {
11837 (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL
11838 };
11839
11840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellEditor",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11842 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 (arg1)->SetCellEditor(arg2,arg3,arg4);
11846
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 Py_INCREF(Py_None); resultobj = Py_None;
11851 return resultobj;
11852 fail:
11853 return NULL;
11854 }
11855
11856
11857 static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11858 PyObject *resultobj;
11859 wxGrid *arg1 = (wxGrid *) 0 ;
11860 wxGridCellEditor *result;
11861 PyObject * obj0 = 0 ;
11862 char *kwnames[] = {
11863 (char *) "self", NULL
11864 };
11865
11866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail;
11867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11868 {
11869 PyThreadState* __tstate = wxPyBeginAllowThreads();
11870 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor();
11871
11872 wxPyEndAllowThreads(__tstate);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 {
11876 resultobj = wxPyMake_wxGridCellEditor(result);
11877 }
11878 return resultobj;
11879 fail:
11880 return NULL;
11881 }
11882
11883
11884 static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11885 PyObject *resultobj;
11886 wxGrid *arg1 = (wxGrid *) 0 ;
11887 int arg2 ;
11888 int arg3 ;
11889 wxGridCellEditor *result;
11890 PyObject * obj0 = 0 ;
11891 char *kwnames[] = {
11892 (char *) "self",(char *) "row",(char *) "col", NULL
11893 };
11894
11895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellEditor",kwnames,&obj0,&arg2,&arg3)) goto fail;
11896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11897 {
11898 PyThreadState* __tstate = wxPyBeginAllowThreads();
11899 result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3);
11900
11901 wxPyEndAllowThreads(__tstate);
11902 if (PyErr_Occurred()) SWIG_fail;
11903 }
11904 {
11905 resultobj = wxPyMake_wxGridCellEditor(result);
11906 }
11907 return resultobj;
11908 fail:
11909 return NULL;
11910 }
11911
11912
11913 static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11914 PyObject *resultobj;
11915 wxGrid *arg1 = (wxGrid *) 0 ;
11916 int arg2 ;
11917 int arg3 ;
11918 wxString result;
11919 PyObject * obj0 = 0 ;
11920 char *kwnames[] = {
11921 (char *) "self",(char *) "row",(char *) "col", NULL
11922 };
11923
11924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellValue",kwnames,&obj0,&arg2,&arg3)) goto fail;
11925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11926 {
11927 PyThreadState* __tstate = wxPyBeginAllowThreads();
11928 result = (arg1)->GetCellValue(arg2,arg3);
11929
11930 wxPyEndAllowThreads(__tstate);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 {
11934 #if wxUSE_UNICODE
11935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11936 #else
11937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11938 #endif
11939 }
11940 return resultobj;
11941 fail:
11942 return NULL;
11943 }
11944
11945
11946 static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11947 PyObject *resultobj;
11948 wxGrid *arg1 = (wxGrid *) 0 ;
11949 int arg2 ;
11950 int arg3 ;
11951 wxString *arg4 = 0 ;
11952 bool temp4 = False ;
11953 PyObject * obj0 = 0 ;
11954 PyObject * obj3 = 0 ;
11955 char *kwnames[] = {
11956 (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL
11957 };
11958
11959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellValue",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11961 {
11962 arg4 = wxString_in_helper(obj3);
11963 if (arg4 == NULL) SWIG_fail;
11964 temp4 = True;
11965 }
11966 {
11967 PyThreadState* __tstate = wxPyBeginAllowThreads();
11968 (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4);
11969
11970 wxPyEndAllowThreads(__tstate);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 }
11973 Py_INCREF(Py_None); resultobj = Py_None;
11974 {
11975 if (temp4)
11976 delete arg4;
11977 }
11978 return resultobj;
11979 fail:
11980 {
11981 if (temp4)
11982 delete arg4;
11983 }
11984 return NULL;
11985 }
11986
11987
11988 static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
11989 PyObject *resultobj;
11990 wxGrid *arg1 = (wxGrid *) 0 ;
11991 int arg2 ;
11992 int arg3 ;
11993 bool result;
11994 PyObject * obj0 = 0 ;
11995 char *kwnames[] = {
11996 (char *) "self",(char *) "row",(char *) "col", NULL
11997 };
11998
11999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_IsReadOnly",kwnames,&obj0,&arg2,&arg3)) goto fail;
12000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12001 {
12002 PyThreadState* __tstate = wxPyBeginAllowThreads();
12003 result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3);
12004
12005 wxPyEndAllowThreads(__tstate);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 resultobj = PyInt_FromLong((long)result);
12009 return resultobj;
12010 fail:
12011 return NULL;
12012 }
12013
12014
12015 static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
12016 PyObject *resultobj;
12017 wxGrid *arg1 = (wxGrid *) 0 ;
12018 int arg2 ;
12019 int arg3 ;
12020 bool arg4 = (bool) True ;
12021 PyObject * obj0 = 0 ;
12022 PyObject * obj3 = 0 ;
12023 char *kwnames[] = {
12024 (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL
12025 };
12026
12027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Grid_SetReadOnly",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
12028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12029 if (obj3) {
12030 {
12031 arg4 = (bool) SPyObj_AsBool(obj3);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 }
12034 }
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 (arg1)->SetReadOnly(arg2,arg3,arg4);
12038
12039 wxPyEndAllowThreads(__tstate);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
12042 Py_INCREF(Py_None); resultobj = Py_None;
12043 return resultobj;
12044 fail:
12045 return NULL;
12046 }
12047
12048
12049 static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
12050 PyObject *resultobj;
12051 wxGrid *arg1 = (wxGrid *) 0 ;
12052 int arg2 ;
12053 bool arg3 = (bool) False ;
12054 PyObject * obj0 = 0 ;
12055 PyObject * obj2 = 0 ;
12056 char *kwnames[] = {
12057 (char *) "self",(char *) "row",(char *) "addToSelected", NULL
12058 };
12059
12060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SelectRow",kwnames,&obj0,&arg2,&obj2)) goto fail;
12061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12062 if (obj2) {
12063 {
12064 arg3 = (bool) SPyObj_AsBool(obj2);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 }
12068 {
12069 PyThreadState* __tstate = wxPyBeginAllowThreads();
12070 (arg1)->SelectRow(arg2,arg3);
12071
12072 wxPyEndAllowThreads(__tstate);
12073 if (PyErr_Occurred()) SWIG_fail;
12074 }
12075 Py_INCREF(Py_None); resultobj = Py_None;
12076 return resultobj;
12077 fail:
12078 return NULL;
12079 }
12080
12081
12082 static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj;
12084 wxGrid *arg1 = (wxGrid *) 0 ;
12085 int arg2 ;
12086 bool arg3 = (bool) False ;
12087 PyObject * obj0 = 0 ;
12088 PyObject * obj2 = 0 ;
12089 char *kwnames[] = {
12090 (char *) "self",(char *) "col",(char *) "addToSelected", NULL
12091 };
12092
12093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SelectCol",kwnames,&obj0,&arg2,&obj2)) goto fail;
12094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12095 if (obj2) {
12096 {
12097 arg3 = (bool) SPyObj_AsBool(obj2);
12098 if (PyErr_Occurred()) SWIG_fail;
12099 }
12100 }
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 (arg1)->SelectCol(arg2,arg3);
12104
12105 wxPyEndAllowThreads(__tstate);
12106 if (PyErr_Occurred()) SWIG_fail;
12107 }
12108 Py_INCREF(Py_None); resultobj = Py_None;
12109 return resultobj;
12110 fail:
12111 return NULL;
12112 }
12113
12114
12115 static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
12116 PyObject *resultobj;
12117 wxGrid *arg1 = (wxGrid *) 0 ;
12118 int arg2 ;
12119 int arg3 ;
12120 int arg4 ;
12121 int arg5 ;
12122 bool arg6 = (bool) False ;
12123 PyObject * obj0 = 0 ;
12124 PyObject * obj5 = 0 ;
12125 char *kwnames[] = {
12126 (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL
12127 };
12128
12129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:Grid_SelectBlock",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
12130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12131 if (obj5) {
12132 {
12133 arg6 = (bool) SPyObj_AsBool(obj5);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 }
12137 {
12138 PyThreadState* __tstate = wxPyBeginAllowThreads();
12139 (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6);
12140
12141 wxPyEndAllowThreads(__tstate);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 Py_INCREF(Py_None); resultobj = Py_None;
12145 return resultobj;
12146 fail:
12147 return NULL;
12148 }
12149
12150
12151 static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
12152 PyObject *resultobj;
12153 wxGrid *arg1 = (wxGrid *) 0 ;
12154 PyObject * obj0 = 0 ;
12155 char *kwnames[] = {
12156 (char *) "self", NULL
12157 };
12158
12159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail;
12160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 (arg1)->SelectAll();
12164
12165 wxPyEndAllowThreads(__tstate);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 Py_INCREF(Py_None); resultobj = Py_None;
12169 return resultobj;
12170 fail:
12171 return NULL;
12172 }
12173
12174
12175 static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12176 PyObject *resultobj;
12177 wxGrid *arg1 = (wxGrid *) 0 ;
12178 bool result;
12179 PyObject * obj0 = 0 ;
12180 char *kwnames[] = {
12181 (char *) "self", NULL
12182 };
12183
12184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail;
12185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 result = (bool)(arg1)->IsSelection();
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 resultobj = PyInt_FromLong((long)result);
12194 return resultobj;
12195 fail:
12196 return NULL;
12197 }
12198
12199
12200 static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj;
12202 wxGrid *arg1 = (wxGrid *) 0 ;
12203 PyObject * obj0 = 0 ;
12204 char *kwnames[] = {
12205 (char *) "self", NULL
12206 };
12207
12208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail;
12209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12210 {
12211 PyThreadState* __tstate = wxPyBeginAllowThreads();
12212 (arg1)->ClearSelection();
12213
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 Py_INCREF(Py_None); resultobj = Py_None;
12218 return resultobj;
12219 fail:
12220 return NULL;
12221 }
12222
12223
12224 static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12225 PyObject *resultobj;
12226 wxGrid *arg1 = (wxGrid *) 0 ;
12227 int arg2 ;
12228 int arg3 ;
12229 bool result;
12230 PyObject * obj0 = 0 ;
12231 char *kwnames[] = {
12232 (char *) "self",(char *) "row",(char *) "col", NULL
12233 };
12234
12235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_IsInSelection",kwnames,&obj0,&arg2,&arg3)) goto fail;
12236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = (bool)(arg1)->IsInSelection(arg2,arg3);
12240
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 resultobj = PyInt_FromLong((long)result);
12245 return resultobj;
12246 fail:
12247 return NULL;
12248 }
12249
12250
12251 static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) {
12252 PyObject *resultobj;
12253 wxGrid *arg1 = (wxGrid *) 0 ;
12254 wxGridCellCoordsArray result;
12255 PyObject * obj0 = 0 ;
12256 char *kwnames[] = {
12257 (char *) "self", NULL
12258 };
12259
12260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail;
12261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = ((wxGrid const *)arg1)->GetSelectedCells();
12265
12266 wxPyEndAllowThreads(__tstate);
12267 if (PyErr_Occurred()) SWIG_fail;
12268 }
12269 {
12270 resultobj = wxGridCellCoordsArray_helper(result);
12271 }
12272 return resultobj;
12273 fail:
12274 return NULL;
12275 }
12276
12277
12278 static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
12279 PyObject *resultobj;
12280 wxGrid *arg1 = (wxGrid *) 0 ;
12281 wxGridCellCoordsArray result;
12282 PyObject * obj0 = 0 ;
12283 char *kwnames[] = {
12284 (char *) "self", NULL
12285 };
12286
12287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail;
12288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft();
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 {
12297 resultobj = wxGridCellCoordsArray_helper(result);
12298 }
12299 return resultobj;
12300 fail:
12301 return NULL;
12302 }
12303
12304
12305 static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
12306 PyObject *resultobj;
12307 wxGrid *arg1 = (wxGrid *) 0 ;
12308 wxGridCellCoordsArray result;
12309 PyObject * obj0 = 0 ;
12310 char *kwnames[] = {
12311 (char *) "self", NULL
12312 };
12313
12314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail;
12315 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12316 {
12317 PyThreadState* __tstate = wxPyBeginAllowThreads();
12318 result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight();
12319
12320 wxPyEndAllowThreads(__tstate);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 {
12324 resultobj = wxGridCellCoordsArray_helper(result);
12325 }
12326 return resultobj;
12327 fail:
12328 return NULL;
12329 }
12330
12331
12332 static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) {
12333 PyObject *resultobj;
12334 wxGrid *arg1 = (wxGrid *) 0 ;
12335 wxArrayInt result;
12336 PyObject * obj0 = 0 ;
12337 char *kwnames[] = {
12338 (char *) "self", NULL
12339 };
12340
12341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail;
12342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12343 {
12344 PyThreadState* __tstate = wxPyBeginAllowThreads();
12345 result = ((wxGrid const *)arg1)->GetSelectedRows();
12346
12347 wxPyEndAllowThreads(__tstate);
12348 if (PyErr_Occurred()) SWIG_fail;
12349 }
12350 {
12351 resultobj = PyList_New(0);
12352 size_t idx;
12353 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12354 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12355 PyList_Append(resultobj, val);
12356 Py_DECREF(val);
12357 }
12358 }
12359 return resultobj;
12360 fail:
12361 return NULL;
12362 }
12363
12364
12365 static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) {
12366 PyObject *resultobj;
12367 wxGrid *arg1 = (wxGrid *) 0 ;
12368 wxArrayInt result;
12369 PyObject * obj0 = 0 ;
12370 char *kwnames[] = {
12371 (char *) "self", NULL
12372 };
12373
12374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail;
12375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 result = ((wxGrid const *)arg1)->GetSelectedCols();
12379
12380 wxPyEndAllowThreads(__tstate);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
12383 {
12384 resultobj = PyList_New(0);
12385 size_t idx;
12386 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12387 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12388 PyList_Append(resultobj, val);
12389 Py_DECREF(val);
12390 }
12391 }
12392 return resultobj;
12393 fail:
12394 return NULL;
12395 }
12396
12397
12398 static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj;
12400 wxGrid *arg1 = (wxGrid *) 0 ;
12401 int arg2 ;
12402 PyObject * obj0 = 0 ;
12403 char *kwnames[] = {
12404 (char *) "self",(char *) "row", NULL
12405 };
12406
12407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_DeselectRow",kwnames,&obj0,&arg2)) goto fail;
12408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12409 {
12410 PyThreadState* __tstate = wxPyBeginAllowThreads();
12411 (arg1)->DeselectRow(arg2);
12412
12413 wxPyEndAllowThreads(__tstate);
12414 if (PyErr_Occurred()) SWIG_fail;
12415 }
12416 Py_INCREF(Py_None); resultobj = Py_None;
12417 return resultobj;
12418 fail:
12419 return NULL;
12420 }
12421
12422
12423 static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
12424 PyObject *resultobj;
12425 wxGrid *arg1 = (wxGrid *) 0 ;
12426 int arg2 ;
12427 PyObject * obj0 = 0 ;
12428 char *kwnames[] = {
12429 (char *) "self",(char *) "col", NULL
12430 };
12431
12432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_DeselectCol",kwnames,&obj0,&arg2)) goto fail;
12433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 (arg1)->DeselectCol(arg2);
12437
12438 wxPyEndAllowThreads(__tstate);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 }
12441 Py_INCREF(Py_None); resultobj = Py_None;
12442 return resultobj;
12443 fail:
12444 return NULL;
12445 }
12446
12447
12448 static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12449 PyObject *resultobj;
12450 wxGrid *arg1 = (wxGrid *) 0 ;
12451 int arg2 ;
12452 int arg3 ;
12453 PyObject * obj0 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self",(char *) "row",(char *) "col", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_DeselectCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12460 {
12461 PyThreadState* __tstate = wxPyBeginAllowThreads();
12462 (arg1)->DeselectCell(arg2,arg3);
12463
12464 wxPyEndAllowThreads(__tstate);
12465 if (PyErr_Occurred()) SWIG_fail;
12466 }
12467 Py_INCREF(Py_None); resultobj = Py_None;
12468 return resultobj;
12469 fail:
12470 return NULL;
12471 }
12472
12473
12474 static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12475 PyObject *resultobj;
12476 wxGrid *arg1 = (wxGrid *) 0 ;
12477 wxGridCellCoords *arg2 = 0 ;
12478 wxGridCellCoords *arg3 = 0 ;
12479 wxRect result;
12480 wxGridCellCoords temp2 ;
12481 wxGridCellCoords temp3 ;
12482 PyObject * obj0 = 0 ;
12483 PyObject * obj1 = 0 ;
12484 PyObject * obj2 = 0 ;
12485 char *kwnames[] = {
12486 (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL
12487 };
12488
12489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
12490 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12491 {
12492 arg2 = &temp2;
12493 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
12494 }
12495 {
12496 arg3 = &temp3;
12497 if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail;
12498 }
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
12501 result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3);
12502
12503 wxPyEndAllowThreads(__tstate);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 }
12506 {
12507 wxRect * resultptr;
12508 resultptr = new wxRect((wxRect &) result);
12509 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12510 }
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxGrid *arg1 = (wxGrid *) 0 ;
12520 wxColour result;
12521 PyObject * obj0 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12528 {
12529 PyThreadState* __tstate = wxPyBeginAllowThreads();
12530 result = ((wxGrid const *)arg1)->GetSelectionBackground();
12531
12532 wxPyEndAllowThreads(__tstate);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 }
12535 {
12536 wxColour * resultptr;
12537 resultptr = new wxColour((wxColour &) result);
12538 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
12539 }
12540 return resultobj;
12541 fail:
12542 return NULL;
12543 }
12544
12545
12546 static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12547 PyObject *resultobj;
12548 wxGrid *arg1 = (wxGrid *) 0 ;
12549 wxColour result;
12550 PyObject * obj0 = 0 ;
12551 char *kwnames[] = {
12552 (char *) "self", NULL
12553 };
12554
12555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail;
12556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 result = ((wxGrid const *)arg1)->GetSelectionForeground();
12560
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 {
12565 wxColour * resultptr;
12566 resultptr = new wxColour((wxColour &) result);
12567 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
12568 }
12569 return resultobj;
12570 fail:
12571 return NULL;
12572 }
12573
12574
12575 static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12576 PyObject *resultobj;
12577 wxGrid *arg1 = (wxGrid *) 0 ;
12578 wxColour *arg2 = 0 ;
12579 wxColour temp2 ;
12580 PyObject * obj0 = 0 ;
12581 PyObject * obj1 = 0 ;
12582 char *kwnames[] = {
12583 (char *) "self",(char *) "c", NULL
12584 };
12585
12586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail;
12587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12588 {
12589 arg2 = &temp2;
12590 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12591 }
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 (arg1)->SetSelectionBackground((wxColour const &)*arg2);
12595
12596 wxPyEndAllowThreads(__tstate);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 }
12599 Py_INCREF(Py_None); resultobj = Py_None;
12600 return resultobj;
12601 fail:
12602 return NULL;
12603 }
12604
12605
12606 static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12607 PyObject *resultobj;
12608 wxGrid *arg1 = (wxGrid *) 0 ;
12609 wxColour *arg2 = 0 ;
12610 wxColour temp2 ;
12611 PyObject * obj0 = 0 ;
12612 PyObject * obj1 = 0 ;
12613 char *kwnames[] = {
12614 (char *) "self",(char *) "c", NULL
12615 };
12616
12617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail;
12618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12619 {
12620 arg2 = &temp2;
12621 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12622 }
12623 {
12624 PyThreadState* __tstate = wxPyBeginAllowThreads();
12625 (arg1)->SetSelectionForeground((wxColour const &)*arg2);
12626
12627 wxPyEndAllowThreads(__tstate);
12628 if (PyErr_Occurred()) SWIG_fail;
12629 }
12630 Py_INCREF(Py_None); resultobj = Py_None;
12631 return resultobj;
12632 fail:
12633 return NULL;
12634 }
12635
12636
12637 static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) {
12638 PyObject *resultobj;
12639 wxGrid *arg1 = (wxGrid *) 0 ;
12640 wxString *arg2 = 0 ;
12641 wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ;
12642 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
12643 bool temp2 = False ;
12644 PyObject * obj0 = 0 ;
12645 PyObject * obj1 = 0 ;
12646 PyObject * obj2 = 0 ;
12647 PyObject * obj3 = 0 ;
12648 char *kwnames[] = {
12649 (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL
12650 };
12651
12652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12654 {
12655 arg2 = wxString_in_helper(obj1);
12656 if (arg2 == NULL) SWIG_fail;
12657 temp2 = True;
12658 }
12659 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12660 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4);
12664
12665 wxPyEndAllowThreads(__tstate);
12666 if (PyErr_Occurred()) SWIG_fail;
12667 }
12668 Py_INCREF(Py_None); resultobj = Py_None;
12669 {
12670 if (temp2)
12671 delete arg2;
12672 }
12673 return resultobj;
12674 fail:
12675 {
12676 if (temp2)
12677 delete arg2;
12678 }
12679 return NULL;
12680 }
12681
12682
12683 static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12684 PyObject *resultobj;
12685 wxGrid *arg1 = (wxGrid *) 0 ;
12686 int arg2 ;
12687 int arg3 ;
12688 wxGridCellEditor *result;
12689 PyObject * obj0 = 0 ;
12690 char *kwnames[] = {
12691 (char *) "self",(char *) "row",(char *) "col", NULL
12692 };
12693
12694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetDefaultEditorForCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12696 {
12697 PyThreadState* __tstate = wxPyBeginAllowThreads();
12698 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3);
12699
12700 wxPyEndAllowThreads(__tstate);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 {
12704 resultobj = wxPyMake_wxGridCellEditor(result);
12705 }
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj;
12714 wxGrid *arg1 = (wxGrid *) 0 ;
12715 int arg2 ;
12716 int arg3 ;
12717 wxGridCellRenderer *result;
12718 PyObject * obj0 = 0 ;
12719 char *kwnames[] = {
12720 (char *) "self",(char *) "row",(char *) "col", NULL
12721 };
12722
12723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetDefaultRendererForCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3);
12728
12729 wxPyEndAllowThreads(__tstate);
12730 if (PyErr_Occurred()) SWIG_fail;
12731 }
12732 {
12733 resultobj = wxPyMake_wxGridCellRenderer(result);
12734 }
12735 return resultobj;
12736 fail:
12737 return NULL;
12738 }
12739
12740
12741 static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) {
12742 PyObject *resultobj;
12743 wxGrid *arg1 = (wxGrid *) 0 ;
12744 wxString *arg2 = 0 ;
12745 wxGridCellEditor *result;
12746 bool temp2 = False ;
12747 PyObject * obj0 = 0 ;
12748 PyObject * obj1 = 0 ;
12749 char *kwnames[] = {
12750 (char *) "self",(char *) "typeName", NULL
12751 };
12752
12753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail;
12754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12755 {
12756 arg2 = wxString_in_helper(obj1);
12757 if (arg2 == NULL) SWIG_fail;
12758 temp2 = True;
12759 }
12760 {
12761 PyThreadState* __tstate = wxPyBeginAllowThreads();
12762 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2);
12763
12764 wxPyEndAllowThreads(__tstate);
12765 if (PyErr_Occurred()) SWIG_fail;
12766 }
12767 {
12768 resultobj = wxPyMake_wxGridCellEditor(result);
12769 }
12770 {
12771 if (temp2)
12772 delete arg2;
12773 }
12774 return resultobj;
12775 fail:
12776 {
12777 if (temp2)
12778 delete arg2;
12779 }
12780 return NULL;
12781 }
12782
12783
12784 static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj;
12786 wxGrid *arg1 = (wxGrid *) 0 ;
12787 wxString *arg2 = 0 ;
12788 wxGridCellRenderer *result;
12789 bool temp2 = False ;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 char *kwnames[] = {
12793 (char *) "self",(char *) "typeName", NULL
12794 };
12795
12796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail;
12797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12798 {
12799 arg2 = wxString_in_helper(obj1);
12800 if (arg2 == NULL) SWIG_fail;
12801 temp2 = True;
12802 }
12803 {
12804 PyThreadState* __tstate = wxPyBeginAllowThreads();
12805 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2);
12806
12807 wxPyEndAllowThreads(__tstate);
12808 if (PyErr_Occurred()) SWIG_fail;
12809 }
12810 {
12811 resultobj = wxPyMake_wxGridCellRenderer(result);
12812 }
12813 {
12814 if (temp2)
12815 delete arg2;
12816 }
12817 return resultobj;
12818 fail:
12819 {
12820 if (temp2)
12821 delete arg2;
12822 }
12823 return NULL;
12824 }
12825
12826
12827 static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
12828 PyObject *resultobj;
12829 wxGrid *arg1 = (wxGrid *) 0 ;
12830 int arg2 ;
12831 int arg3 ;
12832 PyObject * obj0 = 0 ;
12833 char *kwnames[] = {
12834 (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL
12835 };
12836
12837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetMargins",kwnames,&obj0,&arg2,&arg3)) goto fail;
12838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 (arg1)->SetMargins(arg2,arg3);
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 Py_INCREF(Py_None); resultobj = Py_None;
12847 return resultobj;
12848 fail:
12849 return NULL;
12850 }
12851
12852
12853 static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12854 PyObject *resultobj;
12855 wxGrid *arg1 = (wxGrid *) 0 ;
12856 wxWindow *result;
12857 PyObject * obj0 = 0 ;
12858 char *kwnames[] = {
12859 (char *) "self", NULL
12860 };
12861
12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail;
12863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12864 {
12865 PyThreadState* __tstate = wxPyBeginAllowThreads();
12866 result = (wxWindow *)(arg1)->GetGridWindow();
12867
12868 wxPyEndAllowThreads(__tstate);
12869 if (PyErr_Occurred()) SWIG_fail;
12870 }
12871 {
12872 resultobj = wxPyMake_wxObject(result);
12873 }
12874 return resultobj;
12875 fail:
12876 return NULL;
12877 }
12878
12879
12880 static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12881 PyObject *resultobj;
12882 wxGrid *arg1 = (wxGrid *) 0 ;
12883 wxWindow *result;
12884 PyObject * obj0 = 0 ;
12885 char *kwnames[] = {
12886 (char *) "self", NULL
12887 };
12888
12889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail;
12890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12891 {
12892 PyThreadState* __tstate = wxPyBeginAllowThreads();
12893 result = (wxWindow *)(arg1)->GetGridRowLabelWindow();
12894
12895 wxPyEndAllowThreads(__tstate);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 {
12899 resultobj = wxPyMake_wxObject(result);
12900 }
12901 return resultobj;
12902 fail:
12903 return NULL;
12904 }
12905
12906
12907 static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12908 PyObject *resultobj;
12909 wxGrid *arg1 = (wxGrid *) 0 ;
12910 wxWindow *result;
12911 PyObject * obj0 = 0 ;
12912 char *kwnames[] = {
12913 (char *) "self", NULL
12914 };
12915
12916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail;
12917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12918 {
12919 PyThreadState* __tstate = wxPyBeginAllowThreads();
12920 result = (wxWindow *)(arg1)->GetGridColLabelWindow();
12921
12922 wxPyEndAllowThreads(__tstate);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 {
12926 resultobj = wxPyMake_wxObject(result);
12927 }
12928 return resultobj;
12929 fail:
12930 return NULL;
12931 }
12932
12933
12934 static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12935 PyObject *resultobj;
12936 wxGrid *arg1 = (wxGrid *) 0 ;
12937 wxWindow *result;
12938 PyObject * obj0 = 0 ;
12939 char *kwnames[] = {
12940 (char *) "self", NULL
12941 };
12942
12943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail;
12944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12945 {
12946 PyThreadState* __tstate = wxPyBeginAllowThreads();
12947 result = (wxWindow *)(arg1)->GetGridCornerLabelWindow();
12948
12949 wxPyEndAllowThreads(__tstate);
12950 if (PyErr_Occurred()) SWIG_fail;
12951 }
12952 {
12953 resultobj = wxPyMake_wxObject(result);
12954 }
12955 return resultobj;
12956 fail:
12957 return NULL;
12958 }
12959
12960
12961 static PyObject * Grid_swigregister(PyObject *self, PyObject *args) {
12962 PyObject *obj;
12963 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12964 SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj);
12965 Py_INCREF(obj);
12966 return Py_BuildValue((char *)"");
12967 }
12968 static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12969 PyObject *resultobj;
12970 int arg1 ;
12971 wxEventType arg2 ;
12972 wxGrid *arg3 = (wxGrid *) 0 ;
12973 int arg4 = (int) -1 ;
12974 int arg5 = (int) -1 ;
12975 int arg6 = (int) -1 ;
12976 int arg7 = (int) -1 ;
12977 bool arg8 = (bool) True ;
12978 bool arg9 = (bool) False ;
12979 bool arg10 = (bool) False ;
12980 bool arg11 = (bool) False ;
12981 bool arg12 = (bool) False ;
12982 wxGridEvent *result;
12983 PyObject * obj2 = 0 ;
12984 PyObject * obj7 = 0 ;
12985 PyObject * obj8 = 0 ;
12986 PyObject * obj9 = 0 ;
12987 PyObject * obj10 = 0 ;
12988 PyObject * obj11 = 0 ;
12989 char *kwnames[] = {
12990 (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "x",(char *) "y",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
12991 };
12992
12993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO|iiiiOOOOO:new_GridEvent",kwnames,&arg1,&arg2,&obj2,&arg4,&arg5,&arg6,&arg7,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
12994 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12995 if (obj7) {
12996 {
12997 arg8 = (bool) SPyObj_AsBool(obj7);
12998 if (PyErr_Occurred()) SWIG_fail;
12999 }
13000 }
13001 if (obj8) {
13002 {
13003 arg9 = (bool) SPyObj_AsBool(obj8);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 }
13007 if (obj9) {
13008 {
13009 arg10 = (bool) SPyObj_AsBool(obj9);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 }
13013 if (obj10) {
13014 {
13015 arg11 = (bool) SPyObj_AsBool(obj10);
13016 if (PyErr_Occurred()) SWIG_fail;
13017 }
13018 }
13019 if (obj11) {
13020 {
13021 arg12 = (bool) SPyObj_AsBool(obj11);
13022 if (PyErr_Occurred()) SWIG_fail;
13023 }
13024 }
13025 {
13026 PyThreadState* __tstate = wxPyBeginAllowThreads();
13027 result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
13028
13029 wxPyEndAllowThreads(__tstate);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEvent, 1);
13033 return resultobj;
13034 fail:
13035 return NULL;
13036 }
13037
13038
13039 static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13040 PyObject *resultobj;
13041 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
13042 int result;
13043 PyObject * obj0 = 0 ;
13044 char *kwnames[] = {
13045 (char *) "self", NULL
13046 };
13047
13048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail;
13049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13050 {
13051 PyThreadState* __tstate = wxPyBeginAllowThreads();
13052 result = (int)(arg1)->GetRow();
13053
13054 wxPyEndAllowThreads(__tstate);
13055 if (PyErr_Occurred()) SWIG_fail;
13056 }
13057 resultobj = PyInt_FromLong((long)result);
13058 return resultobj;
13059 fail:
13060 return NULL;
13061 }
13062
13063
13064 static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13065 PyObject *resultobj;
13066 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
13067 int result;
13068 PyObject * obj0 = 0 ;
13069 char *kwnames[] = {
13070 (char *) "self", NULL
13071 };
13072
13073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail;
13074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13075 {
13076 PyThreadState* __tstate = wxPyBeginAllowThreads();
13077 result = (int)(arg1)->GetCol();
13078
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 resultobj = PyInt_FromLong((long)result);
13083 return resultobj;
13084 fail:
13085 return NULL;
13086 }
13087
13088
13089 static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13090 PyObject *resultobj;
13091 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
13092 wxPoint result;
13093 PyObject * obj0 = 0 ;
13094 char *kwnames[] = {
13095 (char *) "self", NULL
13096 };
13097
13098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail;
13099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13100 {
13101 PyThreadState* __tstate = wxPyBeginAllowThreads();
13102 result = (arg1)->GetPosition();
13103
13104 wxPyEndAllowThreads(__tstate);
13105 if (PyErr_Occurred()) SWIG_fail;
13106 }
13107 {
13108 wxPoint * resultptr;
13109 resultptr = new wxPoint((wxPoint &) result);
13110 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13111 }
13112 return resultobj;
13113 fail:
13114 return NULL;
13115 }
13116
13117
13118 static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj;
13120 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
13121 bool result;
13122 PyObject * obj0 = 0 ;
13123 char *kwnames[] = {
13124 (char *) "self", NULL
13125 };
13126
13127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail;
13128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 result = (bool)(arg1)->Selecting();
13132
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 resultobj = PyInt_FromLong((long)result);
13137 return resultobj;
13138 fail:
13139 return NULL;
13140 }
13141
13142
13143 static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13144 PyObject *resultobj;
13145 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
13146 bool result;
13147 PyObject * obj0 = 0 ;
13148 char *kwnames[] = {
13149 (char *) "self", NULL
13150 };
13151
13152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail;
13153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13154 {
13155 PyThreadState* __tstate = wxPyBeginAllowThreads();
13156 result = (bool)(arg1)->ControlDown();
13157
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 resultobj = PyInt_FromLong((long)result);
13162 return resultobj;
13163 fail:
13164 return NULL;
13165 }
13166
13167
13168 static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13169 PyObject *resultobj;
13170 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
13171 bool result;
13172 PyObject * obj0 = 0 ;
13173 char *kwnames[] = {
13174 (char *) "self", NULL
13175 };
13176
13177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail;
13178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 result = (bool)(arg1)->MetaDown();
13182
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 resultobj = PyInt_FromLong((long)result);
13187 return resultobj;
13188 fail:
13189 return NULL;
13190 }
13191
13192
13193 static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13194 PyObject *resultobj;
13195 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
13196 bool result;
13197 PyObject * obj0 = 0 ;
13198 char *kwnames[] = {
13199 (char *) "self", NULL
13200 };
13201
13202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail;
13203 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13204 {
13205 PyThreadState* __tstate = wxPyBeginAllowThreads();
13206 result = (bool)(arg1)->ShiftDown();
13207
13208 wxPyEndAllowThreads(__tstate);
13209 if (PyErr_Occurred()) SWIG_fail;
13210 }
13211 resultobj = PyInt_FromLong((long)result);
13212 return resultobj;
13213 fail:
13214 return NULL;
13215 }
13216
13217
13218 static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13219 PyObject *resultobj;
13220 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
13221 bool result;
13222 PyObject * obj0 = 0 ;
13223 char *kwnames[] = {
13224 (char *) "self", NULL
13225 };
13226
13227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail;
13228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13229 {
13230 PyThreadState* __tstate = wxPyBeginAllowThreads();
13231 result = (bool)(arg1)->AltDown();
13232
13233 wxPyEndAllowThreads(__tstate);
13234 if (PyErr_Occurred()) SWIG_fail;
13235 }
13236 resultobj = PyInt_FromLong((long)result);
13237 return resultobj;
13238 fail:
13239 return NULL;
13240 }
13241
13242
13243 static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) {
13244 PyObject *obj;
13245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13246 SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj);
13247 Py_INCREF(obj);
13248 return Py_BuildValue((char *)"");
13249 }
13250 static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13251 PyObject *resultobj;
13252 int arg1 ;
13253 wxEventType arg2 ;
13254 wxGrid *arg3 = (wxGrid *) 0 ;
13255 int arg4 = (int) -1 ;
13256 int arg5 = (int) -1 ;
13257 int arg6 = (int) -1 ;
13258 bool arg7 = (bool) False ;
13259 bool arg8 = (bool) False ;
13260 bool arg9 = (bool) False ;
13261 bool arg10 = (bool) False ;
13262 wxGridSizeEvent *result;
13263 PyObject * obj2 = 0 ;
13264 PyObject * obj6 = 0 ;
13265 PyObject * obj7 = 0 ;
13266 PyObject * obj8 = 0 ;
13267 PyObject * obj9 = 0 ;
13268 char *kwnames[] = {
13269 (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
13270 };
13271
13272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO|iiiOOOO:new_GridSizeEvent",kwnames,&arg1,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7,&obj8,&obj9)) goto fail;
13273 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13274 if (obj6) {
13275 {
13276 arg7 = (bool) SPyObj_AsBool(obj6);
13277 if (PyErr_Occurred()) SWIG_fail;
13278 }
13279 }
13280 if (obj7) {
13281 {
13282 arg8 = (bool) SPyObj_AsBool(obj7);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 }
13285 }
13286 if (obj8) {
13287 {
13288 arg9 = (bool) SPyObj_AsBool(obj8);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
13291 }
13292 if (obj9) {
13293 {
13294 arg10 = (bool) SPyObj_AsBool(obj9);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 }
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
13301
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizeEvent, 1);
13306 return resultobj;
13307 fail:
13308 return NULL;
13309 }
13310
13311
13312 static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13313 PyObject *resultobj;
13314 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13315 int result;
13316 PyObject * obj0 = 0 ;
13317 char *kwnames[] = {
13318 (char *) "self", NULL
13319 };
13320
13321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail;
13322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 result = (int)(arg1)->GetRowOrCol();
13326
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = PyInt_FromLong((long)result);
13331 return resultobj;
13332 fail:
13333 return NULL;
13334 }
13335
13336
13337 static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13338 PyObject *resultobj;
13339 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13340 wxPoint result;
13341 PyObject * obj0 = 0 ;
13342 char *kwnames[] = {
13343 (char *) "self", NULL
13344 };
13345
13346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail;
13347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13348 {
13349 PyThreadState* __tstate = wxPyBeginAllowThreads();
13350 result = (arg1)->GetPosition();
13351
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 {
13356 wxPoint * resultptr;
13357 resultptr = new wxPoint((wxPoint &) result);
13358 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13359 }
13360 return resultobj;
13361 fail:
13362 return NULL;
13363 }
13364
13365
13366 static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13367 PyObject *resultobj;
13368 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13369 bool result;
13370 PyObject * obj0 = 0 ;
13371 char *kwnames[] = {
13372 (char *) "self", NULL
13373 };
13374
13375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail;
13376 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13377 {
13378 PyThreadState* __tstate = wxPyBeginAllowThreads();
13379 result = (bool)(arg1)->ControlDown();
13380
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 resultobj = PyInt_FromLong((long)result);
13385 return resultobj;
13386 fail:
13387 return NULL;
13388 }
13389
13390
13391 static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13392 PyObject *resultobj;
13393 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13394 bool result;
13395 PyObject * obj0 = 0 ;
13396 char *kwnames[] = {
13397 (char *) "self", NULL
13398 };
13399
13400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail;
13401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 result = (bool)(arg1)->MetaDown();
13405
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 resultobj = PyInt_FromLong((long)result);
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj;
13418 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13419 bool result;
13420 PyObject * obj0 = 0 ;
13421 char *kwnames[] = {
13422 (char *) "self", NULL
13423 };
13424
13425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail;
13426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 result = (bool)(arg1)->ShiftDown();
13430
13431 wxPyEndAllowThreads(__tstate);
13432 if (PyErr_Occurred()) SWIG_fail;
13433 }
13434 resultobj = PyInt_FromLong((long)result);
13435 return resultobj;
13436 fail:
13437 return NULL;
13438 }
13439
13440
13441 static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13442 PyObject *resultobj;
13443 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13444 bool result;
13445 PyObject * obj0 = 0 ;
13446 char *kwnames[] = {
13447 (char *) "self", NULL
13448 };
13449
13450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail;
13451 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13452 {
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
13454 result = (bool)(arg1)->AltDown();
13455
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = PyInt_FromLong((long)result);
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) {
13467 PyObject *obj;
13468 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13469 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj);
13470 Py_INCREF(obj);
13471 return Py_BuildValue((char *)"");
13472 }
13473 static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13474 PyObject *resultobj;
13475 int arg1 ;
13476 wxEventType arg2 ;
13477 wxGrid *arg3 = (wxGrid *) 0 ;
13478 wxGridCellCoords *arg4 = 0 ;
13479 wxGridCellCoords *arg5 = 0 ;
13480 bool arg6 = (bool) True ;
13481 bool arg7 = (bool) False ;
13482 bool arg8 = (bool) False ;
13483 bool arg9 = (bool) False ;
13484 bool arg10 = (bool) False ;
13485 wxGridRangeSelectEvent *result;
13486 wxGridCellCoords temp4 ;
13487 wxGridCellCoords temp5 ;
13488 PyObject * obj2 = 0 ;
13489 PyObject * obj3 = 0 ;
13490 PyObject * obj4 = 0 ;
13491 PyObject * obj5 = 0 ;
13492 PyObject * obj6 = 0 ;
13493 PyObject * obj7 = 0 ;
13494 PyObject * obj8 = 0 ;
13495 PyObject * obj9 = 0 ;
13496 char *kwnames[] = {
13497 (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
13498 };
13499
13500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&arg1,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13501 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13502 {
13503 arg4 = &temp4;
13504 if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail;
13505 }
13506 {
13507 arg5 = &temp5;
13508 if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail;
13509 }
13510 if (obj5) {
13511 {
13512 arg6 = (bool) SPyObj_AsBool(obj5);
13513 if (PyErr_Occurred()) SWIG_fail;
13514 }
13515 }
13516 if (obj6) {
13517 {
13518 arg7 = (bool) SPyObj_AsBool(obj6);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 }
13522 if (obj7) {
13523 {
13524 arg8 = (bool) SPyObj_AsBool(obj7);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 }
13528 if (obj8) {
13529 {
13530 arg9 = (bool) SPyObj_AsBool(obj8);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 }
13534 if (obj9) {
13535 {
13536 arg10 = (bool) SPyObj_AsBool(obj9);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 }
13540 {
13541 PyThreadState* __tstate = wxPyBeginAllowThreads();
13542 result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10);
13543
13544 wxPyEndAllowThreads(__tstate);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 }
13547 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridRangeSelectEvent, 1);
13548 return resultobj;
13549 fail:
13550 return NULL;
13551 }
13552
13553
13554 static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
13555 PyObject *resultobj;
13556 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13557 wxGridCellCoords result;
13558 PyObject * obj0 = 0 ;
13559 char *kwnames[] = {
13560 (char *) "self", NULL
13561 };
13562
13563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail;
13564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13565 {
13566 PyThreadState* __tstate = wxPyBeginAllowThreads();
13567 result = (arg1)->GetTopLeftCoords();
13568
13569 wxPyEndAllowThreads(__tstate);
13570 if (PyErr_Occurred()) SWIG_fail;
13571 }
13572 {
13573 wxGridCellCoords * resultptr;
13574 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
13575 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
13576 }
13577 return resultobj;
13578 fail:
13579 return NULL;
13580 }
13581
13582
13583 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
13584 PyObject *resultobj;
13585 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13586 wxGridCellCoords result;
13587 PyObject * obj0 = 0 ;
13588 char *kwnames[] = {
13589 (char *) "self", NULL
13590 };
13591
13592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail;
13593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = (arg1)->GetBottomRightCoords();
13597
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 {
13602 wxGridCellCoords * resultptr;
13603 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
13604 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
13605 }
13606 return resultobj;
13607 fail:
13608 return NULL;
13609 }
13610
13611
13612 static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13613 PyObject *resultobj;
13614 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13615 int result;
13616 PyObject * obj0 = 0 ;
13617 char *kwnames[] = {
13618 (char *) "self", NULL
13619 };
13620
13621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail;
13622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13623 {
13624 PyThreadState* __tstate = wxPyBeginAllowThreads();
13625 result = (int)(arg1)->GetTopRow();
13626
13627 wxPyEndAllowThreads(__tstate);
13628 if (PyErr_Occurred()) SWIG_fail;
13629 }
13630 resultobj = PyInt_FromLong((long)result);
13631 return resultobj;
13632 fail:
13633 return NULL;
13634 }
13635
13636
13637 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13638 PyObject *resultobj;
13639 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13640 int result;
13641 PyObject * obj0 = 0 ;
13642 char *kwnames[] = {
13643 (char *) "self", NULL
13644 };
13645
13646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail;
13647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13648 {
13649 PyThreadState* __tstate = wxPyBeginAllowThreads();
13650 result = (int)(arg1)->GetBottomRow();
13651
13652 wxPyEndAllowThreads(__tstate);
13653 if (PyErr_Occurred()) SWIG_fail;
13654 }
13655 resultobj = PyInt_FromLong((long)result);
13656 return resultobj;
13657 fail:
13658 return NULL;
13659 }
13660
13661
13662 static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13663 PyObject *resultobj;
13664 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13665 int result;
13666 PyObject * obj0 = 0 ;
13667 char *kwnames[] = {
13668 (char *) "self", NULL
13669 };
13670
13671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail;
13672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13673 {
13674 PyThreadState* __tstate = wxPyBeginAllowThreads();
13675 result = (int)(arg1)->GetLeftCol();
13676
13677 wxPyEndAllowThreads(__tstate);
13678 if (PyErr_Occurred()) SWIG_fail;
13679 }
13680 resultobj = PyInt_FromLong((long)result);
13681 return resultobj;
13682 fail:
13683 return NULL;
13684 }
13685
13686
13687 static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13688 PyObject *resultobj;
13689 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13690 int result;
13691 PyObject * obj0 = 0 ;
13692 char *kwnames[] = {
13693 (char *) "self", NULL
13694 };
13695
13696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail;
13697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13698 {
13699 PyThreadState* __tstate = wxPyBeginAllowThreads();
13700 result = (int)(arg1)->GetRightCol();
13701
13702 wxPyEndAllowThreads(__tstate);
13703 if (PyErr_Occurred()) SWIG_fail;
13704 }
13705 resultobj = PyInt_FromLong((long)result);
13706 return resultobj;
13707 fail:
13708 return NULL;
13709 }
13710
13711
13712 static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13715 bool result;
13716 PyObject * obj0 = 0 ;
13717 char *kwnames[] = {
13718 (char *) "self", NULL
13719 };
13720
13721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail;
13722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13723 {
13724 PyThreadState* __tstate = wxPyBeginAllowThreads();
13725 result = (bool)(arg1)->Selecting();
13726
13727 wxPyEndAllowThreads(__tstate);
13728 if (PyErr_Occurred()) SWIG_fail;
13729 }
13730 resultobj = PyInt_FromLong((long)result);
13731 return resultobj;
13732 fail:
13733 return NULL;
13734 }
13735
13736
13737 static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13738 PyObject *resultobj;
13739 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13740 bool result;
13741 PyObject * obj0 = 0 ;
13742 char *kwnames[] = {
13743 (char *) "self", NULL
13744 };
13745
13746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail;
13747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = (bool)(arg1)->ControlDown();
13751
13752 wxPyEndAllowThreads(__tstate);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 resultobj = PyInt_FromLong((long)result);
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj;
13764 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13765 bool result;
13766 PyObject * obj0 = 0 ;
13767 char *kwnames[] = {
13768 (char *) "self", NULL
13769 };
13770
13771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail;
13772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13773 {
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
13775 result = (bool)(arg1)->MetaDown();
13776
13777 wxPyEndAllowThreads(__tstate);
13778 if (PyErr_Occurred()) SWIG_fail;
13779 }
13780 resultobj = PyInt_FromLong((long)result);
13781 return resultobj;
13782 fail:
13783 return NULL;
13784 }
13785
13786
13787 static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13788 PyObject *resultobj;
13789 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13790 bool result;
13791 PyObject * obj0 = 0 ;
13792 char *kwnames[] = {
13793 (char *) "self", NULL
13794 };
13795
13796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail;
13797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 result = (bool)(arg1)->ShiftDown();
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 resultobj = PyInt_FromLong((long)result);
13806 return resultobj;
13807 fail:
13808 return NULL;
13809 }
13810
13811
13812 static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj;
13814 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13815 bool result;
13816 PyObject * obj0 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13823 {
13824 PyThreadState* __tstate = wxPyBeginAllowThreads();
13825 result = (bool)(arg1)->AltDown();
13826
13827 wxPyEndAllowThreads(__tstate);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 }
13830 resultobj = PyInt_FromLong((long)result);
13831 return resultobj;
13832 fail:
13833 return NULL;
13834 }
13835
13836
13837 static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) {
13838 PyObject *obj;
13839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13840 SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj);
13841 Py_INCREF(obj);
13842 return Py_BuildValue((char *)"");
13843 }
13844 static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13845 PyObject *resultobj;
13846 int arg1 ;
13847 wxEventType arg2 ;
13848 wxObject *arg3 = (wxObject *) 0 ;
13849 int arg4 ;
13850 int arg5 ;
13851 wxControl *arg6 = (wxControl *) 0 ;
13852 wxGridEditorCreatedEvent *result;
13853 PyObject * obj2 = 0 ;
13854 PyObject * obj5 = 0 ;
13855 char *kwnames[] = {
13856 (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL
13857 };
13858
13859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOiiO:new_GridEditorCreatedEvent",kwnames,&arg1,&arg2,&obj2,&arg4,&arg5,&obj5)) goto fail;
13860 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13861 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13862 {
13863 PyThreadState* __tstate = wxPyBeginAllowThreads();
13864 result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6);
13865
13866 wxPyEndAllowThreads(__tstate);
13867 if (PyErr_Occurred()) SWIG_fail;
13868 }
13869 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEditorCreatedEvent, 1);
13870 return resultobj;
13871 fail:
13872 return NULL;
13873 }
13874
13875
13876 static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13877 PyObject *resultobj;
13878 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13879 int result;
13880 PyObject * obj0 = 0 ;
13881 char *kwnames[] = {
13882 (char *) "self", NULL
13883 };
13884
13885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail;
13886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13887 {
13888 PyThreadState* __tstate = wxPyBeginAllowThreads();
13889 result = (int)(arg1)->GetRow();
13890
13891 wxPyEndAllowThreads(__tstate);
13892 if (PyErr_Occurred()) SWIG_fail;
13893 }
13894 resultobj = PyInt_FromLong((long)result);
13895 return resultobj;
13896 fail:
13897 return NULL;
13898 }
13899
13900
13901 static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13902 PyObject *resultobj;
13903 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13904 int result;
13905 PyObject * obj0 = 0 ;
13906 char *kwnames[] = {
13907 (char *) "self", NULL
13908 };
13909
13910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail;
13911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13912 {
13913 PyThreadState* __tstate = wxPyBeginAllowThreads();
13914 result = (int)(arg1)->GetCol();
13915
13916 wxPyEndAllowThreads(__tstate);
13917 if (PyErr_Occurred()) SWIG_fail;
13918 }
13919 resultobj = PyInt_FromLong((long)result);
13920 return resultobj;
13921 fail:
13922 return NULL;
13923 }
13924
13925
13926 static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
13927 PyObject *resultobj;
13928 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13929 wxControl *result;
13930 PyObject * obj0 = 0 ;
13931 char *kwnames[] = {
13932 (char *) "self", NULL
13933 };
13934
13935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail;
13936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13937 {
13938 PyThreadState* __tstate = wxPyBeginAllowThreads();
13939 result = (wxControl *)(arg1)->GetControl();
13940
13941 wxPyEndAllowThreads(__tstate);
13942 if (PyErr_Occurred()) SWIG_fail;
13943 }
13944 {
13945 resultobj = wxPyMake_wxObject(result);
13946 }
13947 return resultobj;
13948 fail:
13949 return NULL;
13950 }
13951
13952
13953 static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13954 PyObject *resultobj;
13955 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13956 int arg2 ;
13957 PyObject * obj0 = 0 ;
13958 char *kwnames[] = {
13959 (char *) "self",(char *) "row", NULL
13960 };
13961
13962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&arg2)) goto fail;
13963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13964 {
13965 PyThreadState* __tstate = wxPyBeginAllowThreads();
13966 (arg1)->SetRow(arg2);
13967
13968 wxPyEndAllowThreads(__tstate);
13969 if (PyErr_Occurred()) SWIG_fail;
13970 }
13971 Py_INCREF(Py_None); resultobj = Py_None;
13972 return resultobj;
13973 fail:
13974 return NULL;
13975 }
13976
13977
13978 static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13979 PyObject *resultobj;
13980 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13981 int arg2 ;
13982 PyObject * obj0 = 0 ;
13983 char *kwnames[] = {
13984 (char *) "self",(char *) "col", NULL
13985 };
13986
13987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&arg2)) goto fail;
13988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13989 {
13990 PyThreadState* __tstate = wxPyBeginAllowThreads();
13991 (arg1)->SetCol(arg2);
13992
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 Py_INCREF(Py_None); resultobj = Py_None;
13997 return resultobj;
13998 fail:
13999 return NULL;
14000 }
14001
14002
14003 static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
14004 PyObject *resultobj;
14005 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
14006 wxControl *arg2 = (wxControl *) 0 ;
14007 PyObject * obj0 = 0 ;
14008 PyObject * obj1 = 0 ;
14009 char *kwnames[] = {
14010 (char *) "self",(char *) "ctrl", NULL
14011 };
14012
14013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail;
14014 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14015 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 (arg1)->SetControl(arg2);
14019
14020 wxPyEndAllowThreads(__tstate);
14021 if (PyErr_Occurred()) SWIG_fail;
14022 }
14023 Py_INCREF(Py_None); resultobj = Py_None;
14024 return resultobj;
14025 fail:
14026 return NULL;
14027 }
14028
14029
14030 static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) {
14031 PyObject *obj;
14032 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14033 SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj);
14034 Py_INCREF(obj);
14035 return Py_BuildValue((char *)"");
14036 }
14037 static PyMethodDef SwigMethods[] = {
14038 { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
14039 { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS },
14040 { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS },
14041 { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS },
14042 { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS },
14043 { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS },
14044 { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS },
14045 { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS },
14046 { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS },
14047 { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
14048 { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
14049 { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS },
14050 { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS },
14051 { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS },
14052 { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS },
14053 { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS },
14054 { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS },
14055 { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS },
14056 { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS },
14057 { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS },
14058 { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS },
14059 { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS },
14060 { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS },
14061 { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS },
14062 { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS },
14063 { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS },
14064 { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS },
14065 { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS },
14066 { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS },
14067 { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS },
14068 { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS },
14069 { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS },
14070 { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
14071 { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
14072 { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS },
14073 { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS },
14074 { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
14075 { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
14076 { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
14077 { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS },
14078 { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS },
14079 { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS },
14080 { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS },
14081 { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS },
14082 { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS },
14083 { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS },
14084 { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS },
14085 { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
14086 { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS },
14087 { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS },
14088 { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS },
14089 { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS },
14090 { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS },
14091 { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS },
14092 { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
14093 { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS },
14094 { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS },
14095 { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS },
14096 { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
14097 { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS },
14098 { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS },
14099 { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS },
14100 { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS },
14101 { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
14102 { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS },
14103 { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS },
14104 { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
14105 { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS },
14106 { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS },
14107 { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
14108 { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS },
14109 { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS },
14110 { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
14111 { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS },
14112 { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS },
14113 { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
14114 { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS },
14115 { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS },
14116 { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
14117 { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS },
14118 { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS },
14119 { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
14120 { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS },
14121 { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS },
14122 { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
14123 { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS },
14124 { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS },
14125 { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS },
14126 { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS },
14127 { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS },
14128 { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS },
14129 { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS },
14130 { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
14131 { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14132 { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
14133 { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
14134 { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS },
14135 { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS },
14136 { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
14137 { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS },
14138 { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS },
14139 { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS },
14140 { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
14141 { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14142 { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
14143 { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
14144 { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS },
14145 { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS },
14146 { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS },
14147 { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS },
14148 { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
14149 { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14150 { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
14151 { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
14152 { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS },
14153 { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS },
14154 { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS },
14155 { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS },
14156 { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
14157 { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS },
14158 { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS },
14159 { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
14160 { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS },
14161 { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS },
14162 { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS },
14163 { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
14164 { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS },
14165 { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS },
14166 { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS },
14167 { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS },
14168 { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
14169 { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
14170 { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
14171 { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
14172 { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
14173 { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
14174 { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS },
14175 { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS },
14176 { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS },
14177 { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS },
14178 { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS },
14179 { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS },
14180 { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
14181 { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
14182 { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS },
14183 { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS },
14184 { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS },
14185 { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS },
14186 { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
14187 { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
14188 { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS },
14189 { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
14190 { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS },
14191 { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS },
14192 { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
14193 { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS },
14194 { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS },
14195 { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS },
14196 { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS },
14197 { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS },
14198 { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS },
14199 { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS },
14200 { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS },
14201 { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
14202 { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
14203 { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
14204 { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
14205 { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
14206 { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS },
14207 { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS },
14208 { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
14209 { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS },
14210 { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS },
14211 { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS },
14212 { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
14213 { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS },
14214 { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS },
14215 { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
14216 { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
14217 { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS },
14218 { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS },
14219 { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS },
14220 { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS },
14221 { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS },
14222 { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS },
14223 { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS },
14224 { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
14225 { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
14226 { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
14227 { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
14228 { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
14229 { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
14230 { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
14231 { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
14232 { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
14233 { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS },
14234 { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS },
14235 { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS },
14236 { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
14237 { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
14238 { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS },
14239 { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS },
14240 { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS },
14241 { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS },
14242 { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS },
14243 { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS },
14244 { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS },
14245 { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS },
14246 { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS },
14247 { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
14248 { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
14249 { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS },
14250 { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS },
14251 { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS },
14252 { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS },
14253 { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS },
14254 { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS },
14255 { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS },
14256 { (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS },
14257 { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS },
14258 { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS },
14259 { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
14260 { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS },
14261 { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS },
14262 { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
14263 { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
14264 { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS },
14265 { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS },
14266 { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS },
14267 { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS },
14268 { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS },
14269 { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS },
14270 { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS },
14271 { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS },
14272 { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS },
14273 { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS },
14274 { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS },
14275 { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS },
14276 { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS },
14277 { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS },
14278 { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS },
14279 { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS },
14280 { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS },
14281 { (char *)"Grid_Refresh", (PyCFunction) _wrap_Grid_Refresh, METH_VARARGS | METH_KEYWORDS },
14282 { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS },
14283 { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS },
14284 { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS },
14285 { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS },
14286 { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS },
14287 { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS },
14288 { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS },
14289 { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS },
14290 { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS },
14291 { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS },
14292 { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS },
14293 { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS },
14294 { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS },
14295 { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS },
14296 { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS },
14297 { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS },
14298 { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS },
14299 { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS },
14300 { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS },
14301 { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS },
14302 { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS },
14303 { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS },
14304 { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS },
14305 { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS },
14306 { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS },
14307 { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS },
14308 { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS },
14309 { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS },
14310 { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS },
14311 { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS },
14312 { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS },
14313 { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS },
14314 { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS },
14315 { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
14316 { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS },
14317 { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS },
14318 { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14319 { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
14320 { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS },
14321 { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
14322 { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
14323 { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
14324 { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
14325 { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
14326 { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS },
14327 { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
14328 { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
14329 { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
14330 { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
14331 { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS },
14332 { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14333 { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
14334 { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS },
14335 { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
14336 { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
14337 { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
14338 { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
14339 { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
14340 { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS },
14341 { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
14342 { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
14343 { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
14344 { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS },
14345 { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS },
14346 { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS },
14347 { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS },
14348 { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS },
14349 { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS },
14350 { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS },
14351 { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS },
14352 { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS },
14353 { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS },
14354 { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
14355 { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS },
14356 { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS },
14357 { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS },
14358 { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS },
14359 { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS },
14360 { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS },
14361 { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS },
14362 { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
14363 { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS },
14364 { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
14365 { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS },
14366 { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14367 { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14368 { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
14369 { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS },
14370 { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
14371 { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS },
14372 { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
14373 { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS },
14374 { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
14375 { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS },
14376 { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS },
14377 { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
14378 { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS },
14379 { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
14380 { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS },
14381 { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS },
14382 { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS },
14383 { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS },
14384 { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS },
14385 { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS },
14386 { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS },
14387 { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS },
14388 { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS },
14389 { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS },
14390 { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
14391 { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
14392 { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
14393 { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
14394 { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14395 { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14396 { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
14397 { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS },
14398 { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
14399 { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS },
14400 { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
14401 { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS },
14402 { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
14403 { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS },
14404 { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS },
14405 { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
14406 { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS },
14407 { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
14408 { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS },
14409 { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
14410 { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS },
14411 { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
14412 { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS },
14413 { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS },
14414 { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS },
14415 { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
14416 { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
14417 { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS },
14418 { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS },
14419 { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS },
14420 { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS },
14421 { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS },
14422 { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS },
14423 { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS },
14424 { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS },
14425 { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS },
14426 { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS },
14427 { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS },
14428 { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS },
14429 { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS },
14430 { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS },
14431 { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS },
14432 { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS },
14433 { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
14434 { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
14435 { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
14436 { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
14437 { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS },
14438 { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS },
14439 { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS },
14440 { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS },
14441 { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS },
14442 { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS },
14443 { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS },
14444 { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS },
14445 { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS },
14446 { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS },
14447 { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS },
14448 { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS },
14449 { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
14450 { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
14451 { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
14452 { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
14453 { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14454 { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14455 { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14456 { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14457 { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS },
14458 { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS },
14459 { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS },
14460 { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
14461 { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14462 { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14463 { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14464 { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14465 { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS },
14466 { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS },
14467 { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS },
14468 { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS },
14469 { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS },
14470 { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS },
14471 { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS },
14472 { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS },
14473 { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
14474 { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14475 { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14476 { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14477 { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14478 { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS },
14479 { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS },
14480 { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
14481 { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
14482 { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS },
14483 { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS },
14484 { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS },
14485 { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS },
14486 { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS },
14487 { NULL, NULL }
14488 };
14489
14490
14491 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
14492
14493 static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) {
14494 return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x));
14495 }
14496 static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) {
14497 return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x));
14498 }
14499 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) {
14500 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
14501 }
14502 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) {
14503 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
14504 }
14505 static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) {
14506 return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x));
14507 }
14508 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) {
14509 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
14510 }
14511 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) {
14512 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
14513 }
14514 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) {
14515 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
14516 }
14517 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) {
14518 return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
14519 }
14520 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) {
14521 return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
14522 }
14523 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) {
14524 return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
14525 }
14526 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) {
14527 return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
14528 }
14529 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) {
14530 return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
14531 }
14532 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
14533 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
14534 }
14535 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
14536 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
14537 }
14538 static void *_p_wxGridTo_p_wxPanel(void *x) {
14539 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x));
14540 }
14541 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
14542 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
14543 }
14544 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
14545 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
14546 }
14547 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
14548 return (void *)((wxPanel *) ((wxPyPanel *) x));
14549 }
14550 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
14551 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
14552 }
14553 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
14554 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
14555 }
14556 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
14557 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
14558 }
14559 static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) {
14560 return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x));
14561 }
14562 static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) {
14563 return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
14564 }
14565 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
14566 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
14567 }
14568 static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) {
14569 return (void *)((wxNotifyEvent *) ((wxGridEvent *) x));
14570 }
14571 static void *_p_wxGridTo_p_wxScrolledWindow(void *x) {
14572 return (void *)((wxScrolledWindow *) ((wxGrid *) x));
14573 }
14574 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
14575 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
14576 }
14577 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
14578 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
14579 }
14580 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
14581 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
14582 }
14583 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
14584 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
14585 }
14586 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
14587 return (void *)((wxWindow *) ((wxMenuBar *) x));
14588 }
14589 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
14590 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
14591 }
14592 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
14593 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
14594 }
14595 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
14596 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
14597 }
14598 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
14599 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
14600 }
14601 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
14602 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
14603 }
14604 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
14605 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
14606 }
14607 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
14608 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
14609 }
14610 static void *_p_wxPanelTo_p_wxWindow(void *x) {
14611 return (void *)((wxWindow *) ((wxPanel *) x));
14612 }
14613 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
14614 return (void *)((wxWindow *) ((wxStatusBar *) x));
14615 }
14616 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
14617 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
14618 }
14619 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
14620 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
14621 }
14622 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
14623 return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
14624 }
14625 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
14626 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
14627 }
14628 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
14629 return (void *)((wxWindow *) ((wxPopupWindow *) x));
14630 }
14631 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
14632 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
14633 }
14634 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
14635 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
14636 }
14637 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
14638 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
14639 }
14640 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
14641 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
14642 }
14643 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
14644 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
14645 }
14646 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
14647 return (void *)((wxWindow *) ((wxSashWindow *) x));
14648 }
14649 static void *_p_wxControlTo_p_wxWindow(void *x) {
14650 return (void *)((wxWindow *) ((wxControl *) x));
14651 }
14652 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
14653 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
14654 }
14655 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
14656 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
14657 }
14658 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
14659 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
14660 }
14661 static void *_p_wxGridTo_p_wxWindow(void *x) {
14662 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
14663 }
14664 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
14665 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
14666 }
14667 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
14668 return (void *)((wxWindow *) ((wxPyWindow *) x));
14669 }
14670 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
14671 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
14672 }
14673 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
14674 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
14675 }
14676 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
14677 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
14678 }
14679 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
14680 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
14681 }
14682 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
14683 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
14684 }
14685 static void *_p_wxFrameTo_p_wxWindow(void *x) {
14686 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
14687 }
14688 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
14689 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
14690 }
14691 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
14692 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
14693 }
14694 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
14695 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
14696 }
14697 static void *_p_wxDialogTo_p_wxWindow(void *x) {
14698 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
14699 }
14700 static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) {
14701 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
14702 }
14703 static void *_p_wxPrintDialogTo_p_wxWindow(void *x) {
14704 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
14705 }
14706 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
14707 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
14708 }
14709 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
14710 return (void *)((wxControl *) ((wxControlWithItems *) x));
14711 }
14712 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
14713 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
14714 }
14715 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
14716 return (void *)((wxEvent *) ((wxMenuEvent *) x));
14717 }
14718 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
14719 return (void *)((wxEvent *) ((wxCloseEvent *) x));
14720 }
14721 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
14722 return (void *)((wxEvent *) ((wxMouseEvent *) x));
14723 }
14724 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
14725 return (void *)((wxEvent *) ((wxEraseEvent *) x));
14726 }
14727 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
14728 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
14729 }
14730 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
14731 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
14732 }
14733 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
14734 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
14735 }
14736 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
14737 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
14738 }
14739 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
14740 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
14741 }
14742 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
14743 return (void *)((wxEvent *) ((wxPyEvent *) x));
14744 }
14745 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
14746 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
14747 }
14748 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
14749 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
14750 }
14751 static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) {
14752 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
14753 }
14754 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
14755 return (void *)((wxEvent *) ((wxIdleEvent *) x));
14756 }
14757 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
14758 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
14759 }
14760 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
14761 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
14762 }
14763 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
14764 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
14765 }
14766 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
14767 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
14768 }
14769 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
14770 return (void *)((wxEvent *) ((wxActivateEvent *) x));
14771 }
14772 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
14773 return (void *)((wxEvent *) ((wxSizeEvent *) x));
14774 }
14775 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
14776 return (void *)((wxEvent *) ((wxMoveEvent *) x));
14777 }
14778 static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) {
14779 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
14780 }
14781 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
14782 return (void *)((wxEvent *) ((wxPaintEvent *) x));
14783 }
14784 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
14785 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
14786 }
14787 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
14788 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
14789 }
14790 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
14791 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
14792 }
14793 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
14794 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
14795 }
14796 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
14797 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
14798 }
14799 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
14800 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
14801 }
14802 static void *_p_wxGridEventTo_p_wxEvent(void *x) {
14803 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
14804 }
14805 static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) {
14806 return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
14807 }
14808 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
14809 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
14810 }
14811 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
14812 return (void *)((wxEvent *) ((wxFocusEvent *) x));
14813 }
14814 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
14815 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
14816 }
14817 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
14818 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
14819 }
14820 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
14821 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
14822 }
14823 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
14824 return (void *)((wxEvent *) ((wxShowEvent *) x));
14825 }
14826 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
14827 return (void *)((wxEvent *) ((wxCommandEvent *) x));
14828 }
14829 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
14830 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
14831 }
14832 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
14833 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
14834 }
14835 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
14836 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
14837 }
14838 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
14839 return (void *)((wxEvent *) ((wxKeyEvent *) x));
14840 }
14841 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
14842 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
14843 }
14844 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
14845 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
14846 }
14847 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
14848 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
14849 }
14850 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
14851 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
14852 }
14853 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
14854 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
14855 }
14856 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
14857 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
14858 }
14859 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
14860 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
14861 }
14862 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
14863 return (void *)((wxObject *) ((wxSizerItem *) x));
14864 }
14865 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
14866 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
14867 }
14868 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
14869 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
14870 }
14871 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
14872 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
14873 }
14874 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
14875 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
14876 }
14877 static void *_p_wxSizerTo_p_wxObject(void *x) {
14878 return (void *)((wxObject *) ((wxSizer *) x));
14879 }
14880 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
14881 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
14882 }
14883 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
14884 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
14885 }
14886 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
14887 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
14888 }
14889 static void *_p_wxEventTo_p_wxObject(void *x) {
14890 return (void *)((wxObject *) ((wxEvent *) x));
14891 }
14892 static void *_p_wxFontDataTo_p_wxObject(void *x) {
14893 return (void *)((wxObject *) ((wxFontData *) x));
14894 }
14895 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
14896 return (void *)((wxObject *) ((wxPrintData *) x));
14897 }
14898 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
14899 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
14900 }
14901 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
14902 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
14903 }
14904 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
14905 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
14906 }
14907 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
14908 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
14909 }
14910 static void *_p_wxTaskBarIconTo_p_wxObject(void *x) {
14911 return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x));
14912 }
14913 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
14914 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
14915 }
14916 static void *_p_wxGridStringTableTo_p_wxObject(void *x) {
14917 return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x));
14918 }
14919 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
14920 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
14921 }
14922 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
14923 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
14924 }
14925 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
14926 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
14927 }
14928 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
14929 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
14930 }
14931 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
14932 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
14933 }
14934 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
14935 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
14936 }
14937 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
14938 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
14939 }
14940 static void *_p_wxGridEventTo_p_wxObject(void *x) {
14941 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
14942 }
14943 static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) {
14944 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
14945 }
14946 static void *_p_wxControlTo_p_wxObject(void *x) {
14947 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
14948 }
14949 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
14950 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
14951 }
14952 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
14953 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
14954 }
14955 static void *_p_wxFSFileTo_p_wxObject(void *x) {
14956 return (void *)((wxObject *) ((wxFSFile *) x));
14957 }
14958 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
14959 return (void *)((wxObject *) ((wxFindReplaceData *) x));
14960 }
14961 static void *_p_wxGridTo_p_wxObject(void *x) {
14962 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
14963 }
14964 static void *_p_wxPySizerTo_p_wxObject(void *x) {
14965 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
14966 }
14967 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
14968 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
14969 }
14970 static void *_p_wxColourDataTo_p_wxObject(void *x) {
14971 return (void *)((wxObject *) ((wxColourData *) x));
14972 }
14973 static void *_p_wxPyEventTo_p_wxObject(void *x) {
14974 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
14975 }
14976 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
14977 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
14978 }
14979 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
14980 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
14981 }
14982 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
14983 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
14984 }
14985 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
14986 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
14987 }
14988 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
14989 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
14990 }
14991 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
14992 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
14993 }
14994 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
14995 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
14996 }
14997 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
14998 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
14999 }
15000 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
15001 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
15002 }
15003 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
15004 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
15005 }
15006 static void *_p_wxShowEventTo_p_wxObject(void *x) {
15007 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
15008 }
15009 static void *_p_wxPrinterTo_p_wxObject(void *x) {
15010 return (void *)((wxObject *) ((wxPrinter *) x));
15011 }
15012 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
15013 return (void *)((wxObject *) ((wxMenuItem *) x));
15014 }
15015 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
15016 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
15017 }
15018 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
15019 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
15020 }
15021 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
15022 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
15023 }
15024 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
15025 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
15026 }
15027 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
15028 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
15029 }
15030 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
15031 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
15032 }
15033 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
15034 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
15035 }
15036 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
15037 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
15038 }
15039 static void *_p_wxGridSizeEventTo_p_wxObject(void *x) {
15040 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
15041 }
15042 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
15043 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
15044 }
15045 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
15046 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
15047 }
15048 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
15049 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
15050 }
15051 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
15052 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
15053 }
15054 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
15055 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
15056 }
15057 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
15058 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
15059 }
15060 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
15061 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
15062 }
15063 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
15064 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
15065 }
15066 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
15067 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
15068 }
15069 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
15070 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
15071 }
15072 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
15073 return (void *)((wxObject *) ((wxImageHandler *) x));
15074 }
15075 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
15076 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
15077 }
15078 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
15079 return (void *)((wxObject *) ((wxEvtHandler *) x));
15080 }
15081 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
15082 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
15083 }
15084 static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) {
15085 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
15086 }
15087 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
15088 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
15089 }
15090 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
15091 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
15092 }
15093 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
15094 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
15095 }
15096 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
15097 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
15098 }
15099 static void *_p_wxImageTo_p_wxObject(void *x) {
15100 return (void *)((wxObject *) ((wxImage *) x));
15101 }
15102 static void *_p_wxFrameTo_p_wxObject(void *x) {
15103 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
15104 }
15105 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
15106 return (void *)((wxObject *) ((wxPyPrintout *) x));
15107 }
15108 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
15109 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
15110 }
15111 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
15112 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
15113 }
15114 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
15115 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
15116 }
15117 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
15118 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
15119 }
15120 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
15121 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
15122 }
15123 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
15124 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
15125 }
15126 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
15127 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
15128 }
15129 static void *_p_wxWindowTo_p_wxObject(void *x) {
15130 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
15131 }
15132 static void *_p_wxMenuTo_p_wxObject(void *x) {
15133 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
15134 }
15135 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
15136 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
15137 }
15138 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
15139 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
15140 }
15141 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
15142 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
15143 }
15144 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
15145 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
15146 }
15147 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
15148 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
15149 }
15150 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
15151 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
15152 }
15153 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
15154 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
15155 }
15156 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
15157 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
15158 }
15159 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
15160 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
15161 }
15162 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
15163 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
15164 }
15165 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
15166 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
15167 }
15168 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
15169 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
15170 }
15171 static void *_p_wxSashEventTo_p_wxObject(void *x) {
15172 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
15173 }
15174 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
15175 return (void *)((wxObject *) ((wxPrintPreview *) x));
15176 }
15177 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
15178 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
15179 }
15180 static void *_p_wxPanelTo_p_wxObject(void *x) {
15181 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
15182 }
15183 static void *_p_wxDialogTo_p_wxObject(void *x) {
15184 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
15185 }
15186 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
15187 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
15188 }
15189 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
15190 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
15191 }
15192 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
15193 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
15194 }
15195 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
15196 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
15197 }
15198 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
15199 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
15200 }
15201 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
15202 return (void *)((wxObject *) ((wxFileSystem *) x));
15203 }
15204 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
15205 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
15206 }
15207 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
15208 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
15209 }
15210 static void *_p_wxPyAppTo_p_wxObject(void *x) {
15211 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
15212 }
15213 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
15214 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
15215 }
15216 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
15217 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
15218 }
15219 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
15220 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
15221 }
15222 static void *_p_wxGridTableBaseTo_p_wxObject(void *x) {
15223 return (void *)((wxObject *) ((wxGridTableBase *) x));
15224 }
15225 static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) {
15226 return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x));
15227 }
15228 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
15229 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
15230 }
15231 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
15232 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
15233 }
15234 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
15235 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
15236 }
15237 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
15238 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
15239 }
15240 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
15241 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
15242 }
15243 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
15244 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
15245 }
15246 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
15247 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
15248 }
15249 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
15250 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
15251 }
15252 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
15253 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
15254 }
15255 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
15256 return (void *)((wxObject *) ((wxPrintDialogData *) x));
15257 }
15258 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
15259 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
15260 }
15261 static void *_p_wxValidatorTo_p_wxObject(void *x) {
15262 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
15263 }
15264 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
15265 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
15266 }
15267 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
15268 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
15269 }
15270 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
15271 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
15272 }
15273 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
15274 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
15275 }
15276 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
15277 return (void *)((wxEvtHandler *) ((wxValidator *) x));
15278 }
15279 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
15280 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
15281 }
15282 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
15283 return (void *)((wxEvtHandler *) ((wxMenu *) x));
15284 }
15285 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
15286 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
15287 }
15288 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
15289 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
15290 }
15291 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
15292 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
15293 }
15294 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
15295 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
15296 }
15297 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
15298 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
15299 }
15300 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
15301 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
15302 }
15303 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
15304 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
15305 }
15306 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
15307 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
15308 }
15309 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
15310 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
15311 }
15312 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
15313 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
15314 }
15315 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
15316 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
15317 }
15318 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
15319 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
15320 }
15321 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
15322 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
15323 }
15324 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
15325 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
15326 }
15327 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
15328 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
15329 }
15330 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
15331 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
15332 }
15333 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
15334 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
15335 }
15336 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
15337 return (void *)((wxEvtHandler *) ((wxWindow *) x));
15338 }
15339 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
15340 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
15341 }
15342 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
15343 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
15344 }
15345 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
15346 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
15347 }
15348 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
15349 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
15350 }
15351 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
15352 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
15353 }
15354 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
15355 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
15356 }
15357 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
15358 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
15359 }
15360 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
15361 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
15362 }
15363 static void *_p_wxGridTo_p_wxEvtHandler(void *x) {
15364 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
15365 }
15366 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
15367 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
15368 }
15369 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
15370 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
15371 }
15372 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
15373 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
15374 }
15375 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
15376 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
15377 }
15378 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
15379 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
15380 }
15381 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
15382 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
15383 }
15384 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
15385 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
15386 }
15387 static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) {
15388 return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x));
15389 }
15390 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
15391 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
15392 }
15393 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
15394 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
15395 }
15396 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
15397 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
15398 }
15399 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
15400 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
15401 }
15402 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
15403 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
15404 }
15405 static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) {
15406 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
15407 }
15408 static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) {
15409 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
15410 }
15411 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
15412 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
15413 }
15414 static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) {
15415 return (void *)((wxGridTableBase *) ((wxGridStringTable *) x));
15416 }
15417 static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) {
15418 return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x));
15419 }
15420 static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) {
15421 return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x));
15422 }
15423 static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) {
15424 return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x));
15425 }
15426 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) {
15427 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
15428 }
15429 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) {
15430 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
15431 }
15432 static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) {
15433 return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x));
15434 }
15435 static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) {
15436 return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x));
15437 }
15438 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) {
15439 return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
15440 }
15441 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) {
15442 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
15443 }
15444 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) {
15445 return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
15446 }
15447 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) {
15448 return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
15449 }
15450 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) {
15451 return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
15452 }
15453 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
15454 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
15455 }
15456 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
15457 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
15458 }
15459 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
15460 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
15461 }
15462 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
15463 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
15464 }
15465 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
15466 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
15467 }
15468 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
15469 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
15470 }
15471 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
15472 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
15473 }
15474 static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) {
15475 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
15476 }
15477 static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) {
15478 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x));
15479 }
15480 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
15481 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
15482 }
15483 static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) {
15484 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x));
15485 }
15486 static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) {
15487 return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
15488 }
15489 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
15490 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
15491 }
15492 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
15493 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
15494 }
15495 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
15496 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
15497 }
15498 static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) {
15499 return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x));
15500 }
15501 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) {
15502 return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
15503 }
15504 static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0},{"_p_wxGridCellAutoWrapStringRenderer"},{0}};
15505 static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0},{"_p_wxGridCellEnumRenderer"},{0}};
15506 static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0},{"_p_wxGridCellDateTimeRenderer"},{0}};
15507 static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0},{"_p_wxGridCellBoolRenderer"},{0}};
15508 static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0},{"_p_wxGridCellFloatRenderer"},{0}};
15509 static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0},{"_p_wxGridCellNumberRenderer"},{0}};
15510 static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0},{"_p_wxPyGridCellRenderer"},{0}};
15511 static swig_type_info _swigt__p_wxGridCellRenderer[] = {{"_p_wxGridCellRenderer", 0, "wxGridCellRenderer *", 0},{"_p_wxGridCellRenderer"},{"_p_wxPyGridCellRenderer", _p_wxPyGridCellRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellStringRenderer", _p_wxGridCellStringRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer},{"_p_wxGridCellBoolRenderer", _p_wxGridCellBoolRendererTo_p_wxGridCellRenderer},{0}};
15512 static swig_type_info _swigt__p_wxGridCellStringRenderer[] = {{"_p_wxGridCellStringRenderer", 0, "wxGridCellStringRenderer *", 0},{"_p_wxGridCellStringRenderer"},{"_p_wxGridCellNumberRenderer", _p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer},{"_p_wxGridCellFloatRenderer", _p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer},{"_p_wxGridCellDateTimeRenderer", _p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer},{"_p_wxGridCellEnumRenderer", _p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer},{"_p_wxGridCellAutoWrapStringRenderer", _p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer},{0}};
15513 static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0},{"_p_wxGridCellAttr"},{0}};
15514 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
15515 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
15516 static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0},{"_p_wxGridTableMessage"},{0}};
15517 static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0},{"_p_wxGrid"},{0}};
15518 static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{"_p_wxGrid", _p_wxGridTo_p_wxPanel},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel},{0}};
15519 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxNotifyEvent},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxNotifyEvent},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}};
15520 static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0},{"_p_wxGridRangeSelectEvent"},{0}};
15521 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
15522 static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0},{"_p_wxGridCellCoords"},{0}};
15523 static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0},{"_p_wxGrid", _p_wxGridTo_p_wxScrolledWindow},{"_p_wxScrolledWindow"},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow},{0}};
15524 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxGrid", _p_wxGridTo_p_wxWindow},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow},{0}};
15525 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
15526 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}};
15527 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxEvent},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent},{0}};
15528 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxObject},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxObject},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxObject},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxObject},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxFrame", _p_wxFrameTo_p_wxObject},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxGrid", _p_wxGridTo_p_wxObject},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject},{"_p_wxPanel", _p_wxPanelTo_p_wxObject},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject},{"_p_wxDialog", _p_wxDialogTo_p_wxObject},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxGridTableBase", _p_wxGridTableBaseTo_p_wxObject},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}};
15529 static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0},{"_p_wxGridSizeEvent"},{0}};
15530 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
15531 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
15532 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
15533 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxGrid", _p_wxGridTo_p_wxEvtHandler},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler},{0}};
15534 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
15535 static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0},{"_p_wxGridEvent"},{0}};
15536 static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0},{"_p_wxGridEditorCreatedEvent"},{0}};
15537 static swig_type_info _swigt__p_wxGridTableBase[] = {{"_p_wxGridTableBase", 0, "wxGridTableBase *", 0},{"_p_wxGridStringTable", _p_wxGridStringTableTo_p_wxGridTableBase},{"_p_wxGridTableBase"},{"_p_wxPyGridTableBase", _p_wxPyGridTableBaseTo_p_wxGridTableBase},{0}};
15538 static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0},{"_p_wxGridCellFloatEditor"},{0}};
15539 static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0},{"_p_wxGridCellNumberEditor"},{0}};
15540 static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0},{"_p_wxPyGridCellEditor"},{0}};
15541 static swig_type_info _swigt__p_wxGridCellEditor[] = {{"_p_wxGridCellEditor", 0, "wxGridCellEditor *", 0},{"_p_wxGridCellEditor"},{"_p_wxPyGridCellEditor", _p_wxPyGridCellEditorTo_p_wxGridCellEditor},{"_p_wxGridCellTextEditor", _p_wxGridCellTextEditorTo_p_wxGridCellEditor},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellEditor},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellEditor},{"_p_wxGridCellBoolEditor", _p_wxGridCellBoolEditorTo_p_wxGridCellEditor},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor},{"_p_wxGridCellChoiceEditor", _p_wxGridCellChoiceEditorTo_p_wxGridCellEditor},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellEditor},{0}};
15542 static swig_type_info _swigt__p_wxGridCellTextEditor[] = {{"_p_wxGridCellTextEditor", 0, "wxGridCellTextEditor *", 0},{"_p_wxGridCellTextEditor"},{"_p_wxGridCellNumberEditor", _p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor},{"_p_wxGridCellFloatEditor", _p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor},{"_p_wxGridCellAutoWrapStringEditor", _p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor},{0}};
15543 static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0},{"_p_wxGridCellBoolEditor"},{0}};
15544 static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0},{"_p_wxPyGridTableBase"},{0}};
15545 static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0},{"_p_wxGridStringTable"},{0}};
15546 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
15547 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxGridRangeSelectEvent", _p_wxGridRangeSelectEventTo_p_wxCommandEvent},{"_p_wxGridSizeEvent", _p_wxGridSizeEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxGridEvent", _p_wxGridEventTo_p_wxCommandEvent},{"_p_wxGridEditorCreatedEvent", _p_wxGridEditorCreatedEventTo_p_wxCommandEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{0}};
15548 static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0},{"_p_wxGridCellAttrProvider"},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider},{0}};
15549 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}};
15550 static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0},{"_p_wxGridCellChoiceEditor"},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor},{0}};
15551 static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0},{"_p_wxGridCellEnumEditor"},{0}};
15552 static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0},{"_p_wxGridCellAutoWrapStringEditor"},{0}};
15553 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
15554 static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0},{"_p_wxPyGridCellAttrProvider"},{0}};
15555
15556 static swig_type_info *swig_types_initial[] = {
15557 _swigt__p_wxGridCellAutoWrapStringRenderer,
15558 _swigt__p_wxGridCellEnumRenderer,
15559 _swigt__p_wxGridCellDateTimeRenderer,
15560 _swigt__p_wxGridCellBoolRenderer,
15561 _swigt__p_wxGridCellFloatRenderer,
15562 _swigt__p_wxGridCellNumberRenderer,
15563 _swigt__p_wxPyGridCellRenderer,
15564 _swigt__p_wxGridCellRenderer,
15565 _swigt__p_wxGridCellStringRenderer,
15566 _swigt__p_wxGridCellAttr,
15567 _swigt__p_wxColour,
15568 _swigt__p_wxDC,
15569 _swigt__p_wxGridTableMessage,
15570 _swigt__p_wxGrid,
15571 _swigt__p_wxPanel,
15572 _swigt__p_wxNotifyEvent,
15573 _swigt__p_wxGridRangeSelectEvent,
15574 _swigt__p_wxSize,
15575 _swigt__p_wxGridCellCoords,
15576 _swigt__p_wxScrolledWindow,
15577 _swigt__p_wxWindow,
15578 _swigt__p_wxFont,
15579 _swigt__p_wxControl,
15580 _swigt__p_wxEvent,
15581 _swigt__p_wxObject,
15582 _swigt__p_wxGridSizeEvent,
15583 _swigt__p_wxRect,
15584 _swigt__p_long,
15585 _swigt__p_wxString,
15586 _swigt__p_wxEvtHandler,
15587 _swigt__p_wxPoint,
15588 _swigt__p_wxGridEvent,
15589 _swigt__p_wxGridEditorCreatedEvent,
15590 _swigt__p_wxGridTableBase,
15591 _swigt__p_wxGridCellFloatEditor,
15592 _swigt__p_wxGridCellNumberEditor,
15593 _swigt__p_wxPyGridCellEditor,
15594 _swigt__p_wxGridCellEditor,
15595 _swigt__p_wxGridCellTextEditor,
15596 _swigt__p_wxGridCellBoolEditor,
15597 _swigt__p_wxPyGridTableBase,
15598 _swigt__p_wxGridStringTable,
15599 _swigt__p_wxArrayString,
15600 _swigt__p_wxCommandEvent,
15601 _swigt__p_wxGridCellAttrProvider,
15602 _swigt__p_wxKeyEvent,
15603 _swigt__p_wxGridCellChoiceEditor,
15604 _swigt__p_wxGridCellEnumEditor,
15605 _swigt__p_wxGridCellAutoWrapStringEditor,
15606 _swigt__p_int,
15607 _swigt__p_wxPyGridCellAttrProvider,
15608 0
15609 };
15610
15611
15612 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
15613
15614 static swig_const_info swig_const_table[] = {
15615 { SWIG_PY_STRING, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", 0},
15616 { SWIG_PY_STRING, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", 0},
15617 { SWIG_PY_STRING, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", 0},
15618 { SWIG_PY_STRING, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", 0},
15619 { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", 0},
15620 { SWIG_PY_STRING, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", 0},
15621 { SWIG_PY_STRING, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", 0},
15622 { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", 0},
15623 { SWIG_PY_STRING, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", 0},
15624 { SWIG_PY_INT, (char *)"GridCellAttr_Any", (long) wxGridCellAttr::Any, 0, 0, 0},
15625 { SWIG_PY_INT, (char *)"GridCellAttr_Default", (long) wxGridCellAttr::Default, 0, 0, 0},
15626 { SWIG_PY_INT, (char *)"GridCellAttr_Cell", (long) wxGridCellAttr::Cell, 0, 0, 0},
15627 { SWIG_PY_INT, (char *)"GridCellAttr_Row", (long) wxGridCellAttr::Row, 0, 0, 0},
15628 { SWIG_PY_INT, (char *)"GridCellAttr_Col", (long) wxGridCellAttr::Col, 0, 0, 0},
15629 { SWIG_PY_INT, (char *)"GridCellAttr_Merged", (long) wxGridCellAttr::Merged, 0, 0, 0},
15630 { SWIG_PY_INT, (char *)"GRIDTABLE_REQUEST_VIEW_GET_VALUES", (long) wxGRIDTABLE_REQUEST_VIEW_GET_VALUES, 0, 0, 0},
15631 { SWIG_PY_INT, (char *)"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", (long) wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES, 0, 0, 0},
15632 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_INSERTED", (long) wxGRIDTABLE_NOTIFY_ROWS_INSERTED, 0, 0, 0},
15633 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_APPENDED", (long) wxGRIDTABLE_NOTIFY_ROWS_APPENDED, 0, 0, 0},
15634 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_DELETED", (long) wxGRIDTABLE_NOTIFY_ROWS_DELETED, 0, 0, 0},
15635 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_INSERTED", (long) wxGRIDTABLE_NOTIFY_COLS_INSERTED, 0, 0, 0},
15636 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_APPENDED", (long) wxGRIDTABLE_NOTIFY_COLS_APPENDED, 0, 0, 0},
15637 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_DELETED", (long) wxGRIDTABLE_NOTIFY_COLS_DELETED, 0, 0, 0},
15638 { SWIG_PY_INT, (char *)"Grid_wxGridSelectCells", (long) wxGrid::wxGridSelectCells, 0, 0, 0},
15639 { SWIG_PY_INT, (char *)"Grid_wxGridSelectRows", (long) wxGrid::wxGridSelectRows, 0, 0, 0},
15640 { SWIG_PY_INT, (char *)"Grid_wxGridSelectColumns", (long) wxGrid::wxGridSelectColumns, 0, 0, 0},
15641 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_LEFT_CLICK", (long) wxEVT_GRID_CELL_LEFT_CLICK, 0, 0, 0},
15642 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_RIGHT_CLICK", (long) wxEVT_GRID_CELL_RIGHT_CLICK, 0, 0, 0},
15643 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_LEFT_DCLICK", (long) wxEVT_GRID_CELL_LEFT_DCLICK, 0, 0, 0},
15644 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_RIGHT_DCLICK", (long) wxEVT_GRID_CELL_RIGHT_DCLICK, 0, 0, 0},
15645 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_LEFT_CLICK", (long) wxEVT_GRID_LABEL_LEFT_CLICK, 0, 0, 0},
15646 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_RIGHT_CLICK", (long) wxEVT_GRID_LABEL_RIGHT_CLICK, 0, 0, 0},
15647 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_LEFT_DCLICK", (long) wxEVT_GRID_LABEL_LEFT_DCLICK, 0, 0, 0},
15648 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_RIGHT_DCLICK", (long) wxEVT_GRID_LABEL_RIGHT_DCLICK, 0, 0, 0},
15649 { SWIG_PY_INT, (char *)"wxEVT_GRID_ROW_SIZE", (long) wxEVT_GRID_ROW_SIZE, 0, 0, 0},
15650 { SWIG_PY_INT, (char *)"wxEVT_GRID_COL_SIZE", (long) wxEVT_GRID_COL_SIZE, 0, 0, 0},
15651 { SWIG_PY_INT, (char *)"wxEVT_GRID_RANGE_SELECT", (long) wxEVT_GRID_RANGE_SELECT, 0, 0, 0},
15652 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_CHANGE", (long) wxEVT_GRID_CELL_CHANGE, 0, 0, 0},
15653 { SWIG_PY_INT, (char *)"wxEVT_GRID_SELECT_CELL", (long) wxEVT_GRID_SELECT_CELL, 0, 0, 0},
15654 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_SHOWN", (long) wxEVT_GRID_EDITOR_SHOWN, 0, 0, 0},
15655 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_HIDDEN", (long) wxEVT_GRID_EDITOR_HIDDEN, 0, 0, 0},
15656 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_CREATED", (long) wxEVT_GRID_EDITOR_CREATED, 0, 0, 0},
15657 {0}};
15658
15659 #ifdef __cplusplus
15660 }
15661 #endif
15662
15663 #ifdef __cplusplus
15664 extern "C"
15665 #endif
15666 SWIGEXPORT(void) SWIG_init(void) {
15667 static PyObject *SWIG_globals = 0;
15668 static int typeinit = 0;
15669 PyObject *m, *d;
15670 int i;
15671 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
15672 m = Py_InitModule((char *) SWIG_name, SwigMethods);
15673 d = PyModule_GetDict(m);
15674
15675 if (!typeinit) {
15676 for (i = 0; swig_types_initial[i]; i++) {
15677 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
15678 }
15679 typeinit = 1;
15680 }
15681 SWIG_InstallConstants(d,swig_const_table);
15682
15683 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
15684 SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set);
15685 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set);
15686 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set);
15687 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK));
15688 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK));
15689 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK));
15690 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK));
15691 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK));
15692 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK));
15693 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK));
15694 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK));
15695 PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE));
15696 PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE));
15697 PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT));
15698 PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE));
15699 PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL));
15700 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN));
15701 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN));
15702 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED));
15703
15704
15705 }
15706