]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/grid_wrap.cpp
renamed wxWave to wxSound
[wxWidgets.git] / wxPython / src / msw / 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 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0]
234 #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1]
235 #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2]
236 #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3]
237 #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4]
238 #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5]
239 #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6]
240 #define SWIGTYPE_p_wxGridCellRenderer swig_types[7]
241 #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8]
242 #define SWIGTYPE_p_wxGridCellAttr swig_types[9]
243 #define SWIGTYPE_p_wxColour swig_types[10]
244 #define SWIGTYPE_p_wxDC swig_types[11]
245 #define SWIGTYPE_p_wxGridTableMessage swig_types[12]
246 #define SWIGTYPE_p_wxGrid swig_types[13]
247 #define SWIGTYPE_p_char swig_types[14]
248 #define SWIGTYPE_p_wxPanel swig_types[15]
249 #define SWIGTYPE_p_wxNotifyEvent swig_types[16]
250 #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[17]
251 #define SWIGTYPE_p_wxSize swig_types[18]
252 #define SWIGTYPE_p_wxGridCellCoords swig_types[19]
253 #define SWIGTYPE_p_wxScrolledWindow swig_types[20]
254 #define SWIGTYPE_p_wxWindow swig_types[21]
255 #define SWIGTYPE_p_wxFont swig_types[22]
256 #define SWIGTYPE_p_wxControl swig_types[23]
257 #define SWIGTYPE_p_wxEvent swig_types[24]
258 #define SWIGTYPE_p_wxObject swig_types[25]
259 #define SWIGTYPE_p_wxGridSizeEvent swig_types[26]
260 #define SWIGTYPE_p_wxRect swig_types[27]
261 #define SWIGTYPE_p_long swig_types[28]
262 #define SWIGTYPE_p_wxString swig_types[29]
263 #define SWIGTYPE_p_wxEvtHandler swig_types[30]
264 #define SWIGTYPE_p_wxPoint swig_types[31]
265 #define SWIGTYPE_p_wxGridEvent swig_types[32]
266 #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[33]
267 #define SWIGTYPE_p_wxGridTableBase swig_types[34]
268 #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[35]
269 #define SWIGTYPE_p_wxPyGridCellEditor swig_types[36]
270 #define SWIGTYPE_p_wxGridCellEditor swig_types[37]
271 #define SWIGTYPE_p_wxGridCellTextEditor swig_types[38]
272 #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[39]
273 #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[40]
274 #define SWIGTYPE_p_wxPyGridTableBase swig_types[41]
275 #define SWIGTYPE_p_wxGridStringTable swig_types[42]
276 #define SWIGTYPE_p_wxArrayString swig_types[43]
277 #define SWIGTYPE_p_wxCommandEvent swig_types[44]
278 #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[45]
279 #define SWIGTYPE_p_wxKeyEvent swig_types[46]
280 #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[47]
281 #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[48]
282 #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[49]
283 #define SWIGTYPE_p_int swig_types[50]
284 #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[51]
285 static swig_type_info *swig_types[53];
286
287 /* -------- TYPES TABLE (END) -------- */
288
289
290 /*-----------------------------------------------
291 @(target):= _grid.so
292 ------------------------------------------------*/
293 #define SWIG_init init_grid
294
295 #define SWIG_name "_grid"
296
297 #include <limits.h>
298 #include <float.h>
299 #include <string.h>
300
301 #ifndef SWIGSTATIC
302 #ifdef __cplusplus
303 #define SWIGSTATIC(a) static inline a
304 #else
305 #define SWIGSTATIC(a) static a
306 #endif
307 #endif
308
309 #ifndef numeric_cast
310 #ifdef __cplusplus
311 #ifdef HAVE_NUMERIC_CAST
312 #define numeric_cast(type,a) numeric_cast<type>(a)
313 #else
314 #define numeric_cast(type,a) static_cast<type>(a)
315 #endif
316 #else
317 #define numeric_cast(type,a) (type)(a)
318 #endif
319 #endif
320
321
322
323 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
324 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
325 #define SWIG_PyObj_FromShort PyInt_FromLong
326 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
327 #define SWIG_PyObj_FromInt PyInt_FromLong
328 #define SWIG_PyObj_FromLong PyInt_FromLong
329 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
330 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
331 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
332 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
333
334
335 #include "wx/wxPython/wxPython.h"
336 #include "wx/wxPython/pyclasses.h"
337 #include "wx/wxPython/printfw.h"
338
339 #include <wx/grid.h>
340 #include <wx/generic/gridctrl.h>
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344 static const wxString wxPyPanelNameStr(wxPanelNameStr);
345 static const wxString wxPyDateTimeFormatStr(wxT("%c"));
346
347
348 #define wxPyMake_TEMPLATE(TYPE) \
349 PyObject* wxPyMake_##TYPE(TYPE* source) { \
350 PyObject* target = NULL; \
351 if (source) { \
352 /* Check if there is already a pointer to a Python object in the \
353 OOR data that we can use. */ \
354 wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \
355 if (data) { \
356 target = data->m_obj; \
357 Py_INCREF(target); \
358 } \
359 /* Otherwise make a new wrapper for it the old fashioned way and \
360 give it the OOR treatment */ \
361 if (! target) { \
362 target = wxPyConstructObject(source, wxT(#TYPE), False); \
363 if (target) \
364 source->SetClientObject(new wxPyOORClientData(target)); \
365 } \
366 } else { /* source was NULL so return None. */ \
367 Py_INCREF(Py_None); target = Py_None; \
368 } \
369 return target; \
370 } \
371
372
373 wxPyMake_TEMPLATE(wxGridCellRenderer)
374 wxPyMake_TEMPLATE(wxGridCellEditor)
375 wxPyMake_TEMPLATE(wxGridCellAttr)
376 wxPyMake_TEMPLATE(wxGridCellAttrProvider)
377 wxPyMake_TEMPLATE(wxGridTableBase)
378
379
380
381 #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \
382 wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
383 wxGridCellAttr* rval = NULL; \
384 bool found; \
385 wxPyBeginBlockThreads(); \
386 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
387 PyObject* ro; \
388 wxGridCellAttr* ptr; \
389 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \
390 if (ro) { \
391 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \
392 rval = ptr; \
393 Py_DECREF(ro); \
394 } \
395 } \
396 wxPyEndBlockThreads(); \
397 if (! found) \
398 rval = PCLASS::CBNAME(a, b, c); \
399 return rval; \
400 } \
401 wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
402 return PCLASS::CBNAME(a, b, c); \
403 }
404
405
406
407 #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \
408 void CBNAME(wxGridCellAttr *attr, int a, int b) { \
409 wxPyBeginBlockThreads(); \
410 bool found; \
411 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
412 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
413 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \
414 Py_DECREF(obj); \
415 } \
416 wxPyEndBlockThreads(); \
417 if (! found) \
418 PCLASS::CBNAME(attr, a, b); \
419 } \
420 void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \
421 PCLASS::CBNAME(attr, a, b); \
422 }
423
424
425
426 #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \
427 void CBNAME(wxGridCellAttr *attr, int val) { \
428 wxPyBeginBlockThreads(); \
429 bool found; \
430 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
431 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
432 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \
433 Py_DECREF(obj); \
434 } \
435 wxPyEndBlockThreads(); \
436 if (! found) \
437 PCLASS::CBNAME(attr, val); \
438 } \
439 void base_##CBNAME(wxGridCellAttr *attr, int val) { \
440 PCLASS::CBNAME(attr, val); \
441 }
442
443
444
445 #define PYCALLBACK_INT__pure(CBNAME) \
446 int CBNAME() { \
447 wxPyBeginBlockThreads(); \
448 int rval = 0; \
449 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
450 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
451 wxPyEndBlockThreads(); \
452 return rval; \
453 }
454
455
456
457 #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \
458 bool CBNAME(int a, int b) { \
459 wxPyBeginBlockThreads(); \
460 bool rval = 0; \
461 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
462 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \
463 wxPyEndBlockThreads(); \
464 return rval; \
465 }
466
467
468 #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \
469 wxString CBNAME(int a, int b) { \
470 wxPyBeginBlockThreads(); \
471 wxString rval; \
472 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
473 PyObject* ro; \
474 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
475 if (ro) { \
476 rval = Py2wxString(ro); \
477 Py_DECREF(ro); \
478 } \
479 } \
480 wxPyEndBlockThreads(); \
481 return rval; \
482 }
483
484
485 #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \
486 void CBNAME(int a, int b, const wxString& c) { \
487 wxPyBeginBlockThreads(); \
488 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
489 PyObject* s = wx2PyString(c); \
490 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
491 Py_DECREF(s); \
492 } \
493 wxPyEndBlockThreads(); \
494 }
495
496
497 #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \
498 wxString CBNAME(int a, int b) { \
499 bool found; \
500 wxPyBeginBlockThreads(); \
501 wxString rval; \
502 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
503 PyObject* ro; \
504 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
505 if (ro) { \
506 rval = Py2wxString(ro); \
507 Py_DECREF(ro); \
508 } \
509 } \
510 wxPyEndBlockThreads(); \
511 if (! found) \
512 rval = PCLASS::CBNAME(a, b); \
513 return rval; \
514 } \
515 wxString base_##CBNAME(int a, int b) { \
516 return PCLASS::CBNAME(a, b); \
517 }
518
519
520 #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \
521 bool CBNAME(int a, int b, const wxString& c) { \
522 bool rval = 0; \
523 bool found; \
524 wxPyBeginBlockThreads(); \
525 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
526 PyObject* s = wx2PyString(c); \
527 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
528 Py_DECREF(s); \
529 } \
530 wxPyEndBlockThreads(); \
531 if (! found) \
532 rval = PCLASS::CBNAME(a,b,c); \
533 return rval; \
534 } \
535 bool base_##CBNAME(int a, int b, const wxString& c) { \
536 return PCLASS::CBNAME(a,b,c); \
537 }
538
539
540
541
542 #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \
543 long CBNAME(int a, int b) { \
544 long rval; \
545 bool found; \
546 wxPyBeginBlockThreads(); \
547 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
548 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
549 wxPyEndBlockThreads(); \
550 if (! found) \
551 rval = PCLASS::CBNAME(a,b); \
552 return rval; \
553 } \
554 long base_##CBNAME(int a, int b) { \
555 return PCLASS::CBNAME(a,b); \
556 }
557
558
559
560 #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \
561 bool CBNAME(int a, int b) { \
562 bool rval = 0; \
563 bool found; \
564 wxPyBeginBlockThreads(); \
565 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
566 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
567 wxPyEndBlockThreads(); \
568 if (! found) \
569 rval = PCLASS::CBNAME(a,b); \
570 return rval; \
571 } \
572 bool base_##CBNAME(int a, int b) { \
573 return PCLASS::CBNAME(a,b); \
574 }
575
576
577
578 #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \
579 double CBNAME(int a, int b) { \
580 bool found; \
581 wxPyBeginBlockThreads(); \
582 double rval; \
583 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
584 PyObject* ro; \
585 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
586 if (ro) { \
587 PyObject* str = PyObject_Str(ro); \
588 rval = PyFloat_AsDouble(str); \
589 Py_DECREF(ro); Py_DECREF(str); \
590 } \
591 } \
592 wxPyEndBlockThreads(); \
593 if (! found) \
594 rval = PCLASS::CBNAME(a, b); \
595 return rval; \
596 } \
597 double base_##CBNAME(int a, int b) { \
598 return PCLASS::CBNAME(a, b); \
599 }
600
601
602
603 #define PYCALLBACK__(PCLASS, CBNAME) \
604 void CBNAME() { \
605 bool found; \
606 wxPyBeginBlockThreads(); \
607 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
608 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
609 wxPyEndBlockThreads(); \
610 if (! found) \
611 PCLASS::CBNAME(); \
612 } \
613 void base_##CBNAME() { \
614 PCLASS::CBNAME(); \
615 }
616
617
618
619
620 #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \
621 bool CBNAME(size_t a, size_t b) { \
622 bool rval = 0; \
623 bool found; \
624 wxPyBeginBlockThreads(); \
625 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
626 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
627 wxPyEndBlockThreads(); \
628 if (! found) \
629 rval = PCLASS::CBNAME(a,b); \
630 return rval; \
631 } \
632 bool base_##CBNAME(size_t a, size_t b) { \
633 return PCLASS::CBNAME(a,b); \
634 }
635
636
637
638 #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \
639 bool CBNAME(size_t a) { \
640 bool rval = 0; \
641 bool found; \
642 wxPyBeginBlockThreads(); \
643 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
644 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \
645 wxPyEndBlockThreads(); \
646 if (! found) \
647 rval = PCLASS::CBNAME(a); \
648 return rval; \
649 } \
650 bool base_##CBNAME(size_t a) { \
651 return PCLASS::CBNAME(a); \
652 }
653
654
655 #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \
656 wxString CBNAME(int a) { \
657 bool found; \
658 wxPyBeginBlockThreads(); \
659 wxString rval; \
660 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
661 PyObject* ro; \
662 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \
663 if (ro) { \
664 rval = Py2wxString(ro); \
665 Py_DECREF(ro); \
666 } \
667 } \
668 wxPyEndBlockThreads(); \
669 if (! found) \
670 rval = PCLASS::CBNAME(a); \
671 return rval; \
672 } \
673 wxString base_##CBNAME(int a) { \
674 return PCLASS::CBNAME(a); \
675 }
676
677
678 #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \
679 void CBNAME(int a, const wxString& c) { \
680 bool found; \
681 wxPyBeginBlockThreads(); \
682 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
683 PyObject* s = wx2PyString(c); \
684 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \
685 Py_DECREF(s); \
686 } \
687 wxPyEndBlockThreads(); \
688 if (! found) \
689 PCLASS::CBNAME(a,c); \
690 } \
691 void base_##CBNAME(int a, const wxString& c) { \
692 PCLASS::CBNAME(a,c); \
693 }
694
695
696
697
698 #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \
699 bool CBNAME() { \
700 bool rval = 0; \
701 bool found; \
702 wxPyBeginBlockThreads(); \
703 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
704 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
705 wxPyEndBlockThreads(); \
706 if (! found) \
707 rval = PCLASS::CBNAME(); \
708 return rval; \
709 } \
710 bool base_##CBNAME() { \
711 return PCLASS::CBNAME(); \
712 }
713
714
715
716 #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \
717 void CBNAME(size_t a, int b) { \
718 bool found; \
719 wxPyBeginBlockThreads(); \
720 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
721 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
722 wxPyEndBlockThreads(); \
723 if (! found) \
724 PCLASS::CBNAME(a,b); \
725 } \
726 void base_##CBNAME(size_t a, int b) { \
727 PCLASS::CBNAME(a,b); \
728 }
729
730
731
732
733 #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \
734 void CBNAME(int a, int b, long c) { \
735 bool found; \
736 wxPyBeginBlockThreads(); \
737 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
738 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
739 wxPyEndBlockThreads(); \
740 if (! found) \
741 PCLASS::CBNAME(a,b,c); \
742 } \
743 void base_##CBNAME(int a, int b, long c) { \
744 PCLASS::CBNAME(a,b,c); \
745 }
746
747
748
749
750 #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \
751 void CBNAME(int a, int b, double c) { \
752 bool found; \
753 wxPyBeginBlockThreads(); \
754 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
755 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \
756 wxPyEndBlockThreads(); \
757 if (! found) \
758 PCLASS::CBNAME(a,b,c); \
759 } \
760 void base_##CBNAME(int a, int b, double c) { \
761 PCLASS::CBNAME(a,b,c); \
762 }
763
764
765
766 #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \
767 void CBNAME(int a, int b, bool c) { \
768 bool found; \
769 wxPyBeginBlockThreads(); \
770 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
771 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
772 wxPyEndBlockThreads(); \
773 if (! found) \
774 PCLASS::CBNAME(a,b,c); \
775 } \
776 void base_##CBNAME(int a, int b, bool c) { \
777 PCLASS::CBNAME(a,b,c); \
778 }
779
780
781
782
783
784 void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){
785 self->SetClientObject(new wxPyOORClientData(_self));
786 }
787
788 SWIGSTATIC(int)
789 SWIG_PyObj_AsInt(PyObject *obj)
790 {
791 return numeric_cast(int,
792 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
793 }
794
795
796 SWIGSTATIC(bool)
797 SWIG_PyObj_AsBool(PyObject *obj)
798 {
799 return PyObject_IsTrue(obj) ? true : false;
800 }
801
802
803 class wxPyGridCellRenderer : public wxGridCellRenderer
804 {
805 public:
806 wxPyGridCellRenderer() : wxGridCellRenderer() {};
807
808 // Implement Python callback aware virtual methods
809 void Draw(wxGrid& grid, wxGridCellAttr& attr,
810 wxDC& dc, const wxRect& rect,
811 int row, int col, bool isSelected) {
812 wxPyBeginBlockThreads();
813 if (wxPyCBH_findCallback(m_myInst, "Draw")) {
814 PyObject* go = wxPyMake_wxObject(&grid);
815 PyObject* dco = wxPyMake_wxObject(&dc);
816 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
817 PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0);
818
819 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro,
820 row, col, isSelected));
821 Py_DECREF(go);
822 Py_DECREF(ao);
823 Py_DECREF(dco);
824 Py_DECREF(ro);
825 }
826 wxPyEndBlockThreads();
827 }
828
829 wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
830 int row, int col) {
831 wxSize rval;
832 wxPyBeginBlockThreads();
833 if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) {
834 PyObject* ro;
835 wxSize* ptr;
836 PyObject* go = wxPyMake_wxObject(&grid);
837 PyObject* dco = wxPyMake_wxObject(&dc);
838 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
839
840 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)",
841 go, ao, dco,
842 row, col));
843 Py_DECREF(go);
844 Py_DECREF(ao);
845 Py_DECREF(dco);
846
847 if (ro) {
848 const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object.";
849 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) {
850 rval = *ptr;
851 }
852 else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) {
853 PyObject* o1 = PySequence_GetItem(ro, 0);
854 PyObject* o2 = PySequence_GetItem(ro, 1);
855 if (PyNumber_Check(o1) && PyNumber_Check(o2))
856 rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2));
857 else
858 PyErr_SetString(PyExc_TypeError, errmsg);
859 Py_DECREF(o1);
860 Py_DECREF(o2);
861 }
862 else {
863 PyErr_SetString(PyExc_TypeError, errmsg);
864 }
865 Py_DECREF(ro);
866 }
867 }
868 wxPyEndBlockThreads();
869 return rval;
870 }
871
872
873 wxGridCellRenderer *Clone() const {
874 wxGridCellRenderer* rval = NULL;
875 wxPyBeginBlockThreads();
876 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
877 PyObject* ro;
878 wxGridCellRenderer* ptr;
879 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
880 if (ro) {
881 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer")))
882 rval = ptr;
883 Py_DECREF(ro);
884 }
885 }
886 wxPyEndBlockThreads();
887 return rval;
888 }
889
890 DEC_PYCALLBACK__STRING(SetParameters);
891
892 PYPRIVATE;
893 };
894
895 IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters);
896
897
898 void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){
899 self->SetClientObject(new wxPyOORClientData(_self));
900 }
901
902 SWIGSTATIC(PyObject*)
903 SWIG_PyObj_FromBool(bool value)
904 {
905 PyObject *obj = value ? Py_True : Py_False;
906 Py_INCREF(obj);
907 return obj;
908 }
909
910
911 class wxPyGridCellEditor : public wxGridCellEditor
912 {
913 public:
914 wxPyGridCellEditor() : wxGridCellEditor() {}
915
916 void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) {
917 wxPyBeginBlockThreads();
918 if (wxPyCBH_findCallback(m_myInst, "Create")) {
919 PyObject* po = wxPyMake_wxObject(parent);
920 PyObject* eo = wxPyMake_wxObject(evtHandler);
921
922 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo));
923 Py_DECREF(po);
924 Py_DECREF(eo);
925 }
926 wxPyEndBlockThreads();
927 }
928
929
930 void BeginEdit(int row, int col, wxGrid* grid) {
931 wxPyBeginBlockThreads();
932 if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) {
933 PyObject* go = wxPyMake_wxObject(grid);
934 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
935 Py_DECREF(go);
936 }
937 wxPyEndBlockThreads();
938 }
939
940
941 bool EndEdit(int row, int col, wxGrid* grid) {
942 bool rv = False;
943 wxPyBeginBlockThreads();
944 if (wxPyCBH_findCallback(m_myInst, "EndEdit")) {
945 PyObject* go = wxPyMake_wxObject(grid);
946 rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
947 Py_DECREF(go);
948 }
949 wxPyEndBlockThreads();
950 return rv;
951 }
952
953
954 wxGridCellEditor* Clone() const {
955 wxGridCellEditor* rval = NULL;
956 wxPyBeginBlockThreads();
957 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
958 PyObject* ro;
959 wxGridCellEditor* ptr;
960 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
961 if (ro) {
962 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor")))
963 rval = ptr;
964 Py_DECREF(ro);
965 }
966 }
967 wxPyEndBlockThreads();
968 return rval;
969 }
970
971
972 void Show(bool show, wxGridCellAttr *attr) {
973 bool found;
974 wxPyBeginBlockThreads();
975 if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) {
976 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
977 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao));
978 Py_DECREF(ao);
979 }
980 wxPyEndBlockThreads();
981 if (! found)
982 wxGridCellEditor::Show(show, attr);
983 }
984 void base_Show(bool show, wxGridCellAttr *attr) {
985 wxGridCellEditor::Show(show, attr);
986 }
987
988
989 void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
990 bool found;
991 wxPyBeginBlockThreads();
992 if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) {
993 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
994 PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0);
995
996 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao));
997
998 Py_DECREF(ro);
999 Py_DECREF(ao);
1000 }
1001 wxPyEndBlockThreads();
1002 if (! found)
1003 wxGridCellEditor::PaintBackground(rectCell, attr);
1004 }
1005 void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
1006 wxGridCellEditor::PaintBackground(rectCell, attr);
1007 }
1008
1009
1010 DEC_PYCALLBACK___pure(Reset);
1011 DEC_PYCALLBACK__constany(SetSize, wxRect);
1012 DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent);
1013 DEC_PYCALLBACK__any(StartingKey, wxKeyEvent);
1014 DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent);
1015 DEC_PYCALLBACK__(StartingClick);
1016 DEC_PYCALLBACK__(Destroy);
1017 DEC_PYCALLBACK__STRING(SetParameters);
1018 DEC_PYCALLBACK_STRING__constpure(GetValue);
1019
1020 PYPRIVATE;
1021 };
1022
1023
1024 IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters);
1025 IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset);
1026 IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect);
1027 IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent);
1028 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent);
1029 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
1030 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
1031 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy);
1032 IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue);
1033
1034
1035 void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){
1036 self->SetClientObject(new wxPyOORClientData(_self));
1037 }
1038
1039 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
1040 PyObject* o2;
1041 PyObject* o3;
1042
1043 if (!target) {
1044 target = o;
1045 } else if (target == Py_None) {
1046 Py_DECREF(Py_None);
1047 target = o;
1048 } else {
1049 if (!PyTuple_Check(target)) {
1050 o2 = target;
1051 target = PyTuple_New(1);
1052 PyTuple_SetItem(target, 0, o2);
1053 }
1054 o3 = PyTuple_New(1);
1055 PyTuple_SetItem(o3, 0, o);
1056
1057 o2 = target;
1058 target = PySequence_Concat(o2, o3);
1059 Py_DECREF(o2);
1060 Py_DECREF(o3);
1061 }
1062 return target;
1063 }
1064
1065 void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){
1066 self->SetClientObject(new wxPyOORClientData(_self));
1067 }
1068
1069 class wxPyGridCellAttrProvider : public wxGridCellAttrProvider
1070 {
1071 public:
1072 wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {};
1073
1074 PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr);
1075 PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr);
1076 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr);
1077 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr);
1078
1079 PYPRIVATE;
1080 };
1081
1082 void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){
1083 self->SetClientObject(new wxPyOORClientData(_self));
1084 }
1085
1086 SWIGSTATIC(long)
1087 SWIG_PyObj_AsLong(PyObject * obj)
1088 {
1089 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
1090 }
1091
1092
1093 SWIGSTATIC(double)
1094 SWIG_PyObj_AsDouble(PyObject *obj)
1095 {
1096 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
1097 #if HAVE_LONG_LONG
1098 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
1099 #else
1100 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
1101 #endif
1102 if (PyErr_Occurred()) {
1103 PyErr_Clear();
1104 PyErr_SetString(PyExc_TypeError, "a double is expected");
1105 }
1106 }
1107
1108
1109 class wxPyGridTableBase : public wxGridTableBase
1110 {
1111 public:
1112 wxPyGridTableBase() : wxGridTableBase() {}
1113
1114 PYCALLBACK_INT__pure(GetNumberRows);
1115 PYCALLBACK_INT__pure(GetNumberCols);
1116 PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell);
1117 PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName);
1118 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs);
1119 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs);
1120 PYCALLBACK__(wxGridTableBase, Clear);
1121 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows);
1122 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows);
1123 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols);
1124 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols);
1125 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows);
1126 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols);
1127 PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue);
1128 PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue);
1129 PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue);
1130 PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue);
1131 PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes);
1132 PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr);
1133 PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr);
1134 PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr);
1135 PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr);
1136
1137
1138 wxString GetValue(int row, int col) {
1139 wxPyBeginBlockThreads();
1140 wxString rval;
1141 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1142 PyObject* ro;
1143 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col));
1144 if (ro) {
1145 rval = Py2wxString(ro);
1146 Py_DECREF(ro);
1147 }
1148 }
1149 wxPyEndBlockThreads();
1150 return rval;
1151 }
1152
1153 void SetValue(int row, int col, const wxString& val) {
1154 wxPyBeginBlockThreads();
1155 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1156 PyObject* s = wx2PyString(val);
1157 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s));
1158 Py_DECREF(s);
1159 }
1160 wxPyEndBlockThreads();
1161 }
1162
1163
1164 // Map the Get/Set methods for the standard non-string types to
1165 // the GetValue and SetValue python methods.
1166 long GetValueAsLong( int row, int col ) {
1167 long rval = 0;
1168 wxPyBeginBlockThreads();
1169 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1170 PyObject* ro;
1171 PyObject* num;
1172 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1173 if (ro && PyNumber_Check(ro)) {
1174 num = PyNumber_Int(ro);
1175 if (num) {
1176 rval = PyInt_AsLong(num);
1177 Py_DECREF(num);
1178 }
1179 Py_DECREF(ro);
1180 }
1181 }
1182 wxPyEndBlockThreads();
1183 return rval;
1184 }
1185
1186 double GetValueAsDouble( int row, int col ) {
1187 double rval = 0.0;
1188 wxPyBeginBlockThreads();
1189 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1190 PyObject* ro;
1191 PyObject* num;
1192 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1193 if (ro && PyNumber_Check(ro)) {
1194 num = PyNumber_Float(ro);
1195 if (num) {
1196 rval = PyFloat_AsDouble(num);
1197 Py_DECREF(num);
1198 }
1199 Py_DECREF(ro);
1200 }
1201 }
1202 wxPyEndBlockThreads();
1203 return rval;
1204 }
1205
1206 bool GetValueAsBool( int row, int col ) {
1207 return (bool)GetValueAsLong(row, col);
1208 }
1209
1210 void SetValueAsLong( int row, int col, long value ) {
1211 wxPyBeginBlockThreads();
1212 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1213 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value));
1214 }
1215 wxPyEndBlockThreads();
1216 }
1217
1218 void SetValueAsDouble( int row, int col, double value ) {
1219 wxPyBeginBlockThreads();
1220 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1221 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value));
1222 }
1223 wxPyEndBlockThreads();
1224 }
1225
1226 void SetValueAsBool( int row, int col, bool value ) {
1227 SetValueAsLong( row, col, (long)value );
1228 }
1229
1230
1231 PYPRIVATE;
1232 };
1233
1234 void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; }
1235 PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){
1236 PyObject* tup = PyTuple_New(2);
1237 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1238 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1239 return tup;
1240 }
1241
1242 bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) {
1243
1244 // If source is an object instance then it may already be the right type
1245 if (wxPySwigInstance_Check(source)) {
1246 wxGridCellCoords* ptr;
1247 if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1248 goto error;
1249 *obj = ptr;
1250 return True;
1251 }
1252 // otherwise a 2-tuple of integers is expected
1253 else if (PySequence_Check(source) && PyObject_Length(source) == 2) {
1254 PyObject* o1 = PySequence_GetItem(source, 0);
1255 PyObject* o2 = PySequence_GetItem(source, 1);
1256 if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) {
1257 Py_DECREF(o1);
1258 Py_DECREF(o2);
1259 goto error;
1260 }
1261 **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2));
1262 Py_DECREF(o1);
1263 Py_DECREF(o2);
1264 return True;
1265 }
1266
1267 error:
1268 PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object.");
1269 return False;
1270 }
1271
1272
1273 bool wxGridCellCoords_typecheck(PyObject* source) {
1274 void* ptr;
1275
1276 if (wxPySwigInstance_Check(source) &&
1277 wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1278 return True;
1279
1280 PyErr_Clear();
1281 if (PySequence_Check(source) && PySequence_Length(source) == 2)
1282 return True;
1283
1284 return False;
1285 }
1286
1287
1288 PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source)
1289 {
1290 PyObject* list = PyList_New(0);
1291 size_t idx;
1292 for (idx = 0; idx < source.GetCount(); idx += 1) {
1293 wxGridCellCoords& coord = source.Item(idx);
1294 PyObject* tup = PyTuple_New(2);
1295 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow()));
1296 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol()));
1297 PyList_Append(list, tup);
1298 Py_DECREF(tup);
1299 }
1300 return list;
1301 }
1302
1303
1304 typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES;
1305
1306 wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){
1307 wxGridCellCoords rv;
1308 self->XYToCell(x, y, rv);
1309 return rv;
1310 }
1311 #ifdef __cplusplus
1312 extern "C" {
1313 #endif
1314 static int _wrap_DateTimeFormatStr_set(PyObject *) {
1315 PyErr_SetString(PyExc_TypeError,"Variable DateTimeFormatStr is read-only.");
1316 return 1;
1317 }
1318
1319
1320 static PyObject *_wrap_DateTimeFormatStr_get() {
1321 PyObject *pyobj;
1322
1323 {
1324 #if wxUSE_UNICODE
1325 pyobj = PyUnicode_FromWideChar((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len());
1326 #else
1327 pyobj = PyString_FromStringAndSize((&wxPyDateTimeFormatStr)->c_str(), (&wxPyDateTimeFormatStr)->Len());
1328 #endif
1329 }
1330 return pyobj;
1331 }
1332
1333
1334 static int _wrap_GridNoCellCoords_set(PyObject *) {
1335 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only.");
1336 return 1;
1337 }
1338
1339
1340 static PyObject *_wrap_GridNoCellCoords_get() {
1341 PyObject *pyobj;
1342
1343 pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellCoords, SWIGTYPE_p_wxGridCellCoords, 0);
1344 return pyobj;
1345 }
1346
1347
1348 static int _wrap_GridNoCellRect_set(PyObject *) {
1349 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only.");
1350 return 1;
1351 }
1352
1353
1354 static PyObject *_wrap_GridNoCellRect_get() {
1355 PyObject *pyobj;
1356
1357 pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellRect, SWIGTYPE_p_wxRect, 0);
1358 return pyobj;
1359 }
1360
1361
1362 static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1363 PyObject *resultobj;
1364 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1365 PyObject *arg2 = (PyObject *) 0 ;
1366 PyObject * obj0 = 0 ;
1367 PyObject * obj1 = 0 ;
1368 char *kwnames[] = {
1369 (char *) "self",(char *) "_self", NULL
1370 };
1371
1372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
1373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1374 arg2 = obj1;
1375 {
1376 PyThreadState* __tstate = wxPyBeginAllowThreads();
1377 wxGridCellRenderer__setOORInfo(arg1,arg2);
1378
1379 wxPyEndAllowThreads(__tstate);
1380 if (PyErr_Occurred()) SWIG_fail;
1381 }
1382 Py_INCREF(Py_None); resultobj = Py_None;
1383 return resultobj;
1384 fail:
1385 return NULL;
1386 }
1387
1388
1389 static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1390 PyObject *resultobj;
1391 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1392 wxString *arg2 = 0 ;
1393 bool temp2 = False ;
1394 PyObject * obj0 = 0 ;
1395 PyObject * obj1 = 0 ;
1396 char *kwnames[] = {
1397 (char *) "self",(char *) "params", NULL
1398 };
1399
1400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1401 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1402 {
1403 arg2 = wxString_in_helper(obj1);
1404 if (arg2 == NULL) SWIG_fail;
1405 temp2 = True;
1406 }
1407 {
1408 PyThreadState* __tstate = wxPyBeginAllowThreads();
1409 (arg1)->SetParameters((wxString const &)*arg2);
1410
1411 wxPyEndAllowThreads(__tstate);
1412 if (PyErr_Occurred()) SWIG_fail;
1413 }
1414 Py_INCREF(Py_None); resultobj = Py_None;
1415 {
1416 if (temp2)
1417 delete arg2;
1418 }
1419 return resultobj;
1420 fail:
1421 {
1422 if (temp2)
1423 delete arg2;
1424 }
1425 return NULL;
1426 }
1427
1428
1429 static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1430 PyObject *resultobj;
1431 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1432 PyObject * obj0 = 0 ;
1433 char *kwnames[] = {
1434 (char *) "self", NULL
1435 };
1436
1437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail;
1438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1439 {
1440 PyThreadState* __tstate = wxPyBeginAllowThreads();
1441 (arg1)->IncRef();
1442
1443 wxPyEndAllowThreads(__tstate);
1444 if (PyErr_Occurred()) SWIG_fail;
1445 }
1446 Py_INCREF(Py_None); resultobj = Py_None;
1447 return resultobj;
1448 fail:
1449 return NULL;
1450 }
1451
1452
1453 static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1454 PyObject *resultobj;
1455 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1456 PyObject * obj0 = 0 ;
1457 char *kwnames[] = {
1458 (char *) "self", NULL
1459 };
1460
1461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail;
1462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1463 {
1464 PyThreadState* __tstate = wxPyBeginAllowThreads();
1465 (arg1)->DecRef();
1466
1467 wxPyEndAllowThreads(__tstate);
1468 if (PyErr_Occurred()) SWIG_fail;
1469 }
1470 Py_INCREF(Py_None); resultobj = Py_None;
1471 return resultobj;
1472 fail:
1473 return NULL;
1474 }
1475
1476
1477 static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
1478 PyObject *resultobj;
1479 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1480 wxGrid *arg2 = 0 ;
1481 wxGridCellAttr *arg3 = 0 ;
1482 wxDC *arg4 = 0 ;
1483 wxRect *arg5 = 0 ;
1484 int arg6 ;
1485 int arg7 ;
1486 bool arg8 ;
1487 wxRect temp5 ;
1488 PyObject * obj0 = 0 ;
1489 PyObject * obj1 = 0 ;
1490 PyObject * obj2 = 0 ;
1491 PyObject * obj3 = 0 ;
1492 PyObject * obj4 = 0 ;
1493 PyObject * obj5 = 0 ;
1494 PyObject * obj6 = 0 ;
1495 PyObject * obj7 = 0 ;
1496 char *kwnames[] = {
1497 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL
1498 };
1499
1500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1502 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1503 if (arg2 == NULL) {
1504 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1505 }
1506 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1507 if (arg3 == NULL) {
1508 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1509 }
1510 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1511 if (arg4 == NULL) {
1512 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1513 }
1514 {
1515 arg5 = &temp5;
1516 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
1517 }
1518 {
1519 arg6 = (int) SWIG_PyObj_AsInt(obj5);
1520 if (PyErr_Occurred()) SWIG_fail;
1521 }
1522 {
1523 arg7 = (int) SWIG_PyObj_AsInt(obj6);
1524 if (PyErr_Occurred()) SWIG_fail;
1525 }
1526 {
1527 arg8 = (bool) SWIG_PyObj_AsBool(obj7);
1528 if (PyErr_Occurred()) SWIG_fail;
1529 }
1530 {
1531 PyThreadState* __tstate = wxPyBeginAllowThreads();
1532 (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8);
1533
1534 wxPyEndAllowThreads(__tstate);
1535 if (PyErr_Occurred()) SWIG_fail;
1536 }
1537 Py_INCREF(Py_None); resultobj = Py_None;
1538 return resultobj;
1539 fail:
1540 return NULL;
1541 }
1542
1543
1544 static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1545 PyObject *resultobj;
1546 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1547 wxGrid *arg2 = 0 ;
1548 wxGridCellAttr *arg3 = 0 ;
1549 wxDC *arg4 = 0 ;
1550 int arg5 ;
1551 int arg6 ;
1552 wxSize result;
1553 PyObject * obj0 = 0 ;
1554 PyObject * obj1 = 0 ;
1555 PyObject * obj2 = 0 ;
1556 PyObject * obj3 = 0 ;
1557 PyObject * obj4 = 0 ;
1558 PyObject * obj5 = 0 ;
1559 char *kwnames[] = {
1560 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL
1561 };
1562
1563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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 = (int) SWIG_PyObj_AsInt(obj4);
1579 if (PyErr_Occurred()) SWIG_fail;
1580 }
1581 {
1582 arg6 = (int) SWIG_PyObj_AsInt(obj5);
1583 if (PyErr_Occurred()) SWIG_fail;
1584 }
1585 {
1586 PyThreadState* __tstate = wxPyBeginAllowThreads();
1587 result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6);
1588
1589 wxPyEndAllowThreads(__tstate);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 }
1592 {
1593 wxSize * resultptr;
1594 resultptr = new wxSize((wxSize &) result);
1595 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1596 }
1597 return resultobj;
1598 fail:
1599 return NULL;
1600 }
1601
1602
1603 static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
1604 PyObject *resultobj;
1605 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1606 wxGridCellRenderer *result;
1607 PyObject * obj0 = 0 ;
1608 char *kwnames[] = {
1609 (char *) "self", NULL
1610 };
1611
1612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail;
1613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1614 {
1615 PyThreadState* __tstate = wxPyBeginAllowThreads();
1616 result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone();
1617
1618 wxPyEndAllowThreads(__tstate);
1619 if (PyErr_Occurred()) SWIG_fail;
1620 }
1621 {
1622 resultobj = wxPyMake_wxGridCellRenderer(result);
1623 }
1624 return resultobj;
1625 fail:
1626 return NULL;
1627 }
1628
1629
1630 static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1631 PyObject *obj;
1632 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1633 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj);
1634 Py_INCREF(obj);
1635 return Py_BuildValue((char *)"");
1636 }
1637 static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1638 PyObject *resultobj;
1639 wxPyGridCellRenderer *result;
1640 char *kwnames[] = {
1641 NULL
1642 };
1643
1644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail;
1645 {
1646 PyThreadState* __tstate = wxPyBeginAllowThreads();
1647 result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer();
1648
1649 wxPyEndAllowThreads(__tstate);
1650 if (PyErr_Occurred()) SWIG_fail;
1651 }
1652 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellRenderer, 1);
1653 return resultobj;
1654 fail:
1655 return NULL;
1656 }
1657
1658
1659 static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1660 PyObject *resultobj;
1661 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1662 PyObject *arg2 = (PyObject *) 0 ;
1663 PyObject *arg3 = (PyObject *) 0 ;
1664 PyObject * obj0 = 0 ;
1665 PyObject * obj1 = 0 ;
1666 PyObject * obj2 = 0 ;
1667 char *kwnames[] = {
1668 (char *) "self",(char *) "self",(char *) "_class", NULL
1669 };
1670
1671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
1672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1673 arg2 = obj1;
1674 arg3 = obj2;
1675 {
1676 PyThreadState* __tstate = wxPyBeginAllowThreads();
1677 (arg1)->_setCallbackInfo(arg2,arg3);
1678
1679 wxPyEndAllowThreads(__tstate);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 Py_INCREF(Py_None); resultobj = Py_None;
1683 return resultobj;
1684 fail:
1685 return NULL;
1686 }
1687
1688
1689 static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1690 PyObject *resultobj;
1691 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1692 wxString *arg2 = 0 ;
1693 bool temp2 = False ;
1694 PyObject * obj0 = 0 ;
1695 PyObject * obj1 = 0 ;
1696 char *kwnames[] = {
1697 (char *) "self",(char *) "params", NULL
1698 };
1699
1700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1702 {
1703 arg2 = wxString_in_helper(obj1);
1704 if (arg2 == NULL) SWIG_fail;
1705 temp2 = True;
1706 }
1707 {
1708 PyThreadState* __tstate = wxPyBeginAllowThreads();
1709 (arg1)->base_SetParameters((wxString const &)*arg2);
1710
1711 wxPyEndAllowThreads(__tstate);
1712 if (PyErr_Occurred()) SWIG_fail;
1713 }
1714 Py_INCREF(Py_None); resultobj = Py_None;
1715 {
1716 if (temp2)
1717 delete arg2;
1718 }
1719 return resultobj;
1720 fail:
1721 {
1722 if (temp2)
1723 delete arg2;
1724 }
1725 return NULL;
1726 }
1727
1728
1729 static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1730 PyObject *obj;
1731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1732 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj);
1733 Py_INCREF(obj);
1734 return Py_BuildValue((char *)"");
1735 }
1736 static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1737 PyObject *resultobj;
1738 wxGridCellStringRenderer *result;
1739 char *kwnames[] = {
1740 NULL
1741 };
1742
1743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail;
1744 {
1745 PyThreadState* __tstate = wxPyBeginAllowThreads();
1746 result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer();
1747
1748 wxPyEndAllowThreads(__tstate);
1749 if (PyErr_Occurred()) SWIG_fail;
1750 }
1751 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellStringRenderer, 1);
1752 return resultobj;
1753 fail:
1754 return NULL;
1755 }
1756
1757
1758 static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) {
1759 PyObject *obj;
1760 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1761 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj);
1762 Py_INCREF(obj);
1763 return Py_BuildValue((char *)"");
1764 }
1765 static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1766 PyObject *resultobj;
1767 wxGridCellNumberRenderer *result;
1768 char *kwnames[] = {
1769 NULL
1770 };
1771
1772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail;
1773 {
1774 PyThreadState* __tstate = wxPyBeginAllowThreads();
1775 result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer();
1776
1777 wxPyEndAllowThreads(__tstate);
1778 if (PyErr_Occurred()) SWIG_fail;
1779 }
1780 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberRenderer, 1);
1781 return resultobj;
1782 fail:
1783 return NULL;
1784 }
1785
1786
1787 static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) {
1788 PyObject *obj;
1789 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1790 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj);
1791 Py_INCREF(obj);
1792 return Py_BuildValue((char *)"");
1793 }
1794 static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1795 PyObject *resultobj;
1796 int arg1 = (int) -1 ;
1797 int arg2 = (int) -1 ;
1798 wxGridCellFloatRenderer *result;
1799 PyObject * obj0 = 0 ;
1800 PyObject * obj1 = 0 ;
1801 char *kwnames[] = {
1802 (char *) "width",(char *) "precision", NULL
1803 };
1804
1805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellFloatRenderer",kwnames,&obj0,&obj1)) goto fail;
1806 if (obj0) {
1807 {
1808 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1809 if (PyErr_Occurred()) SWIG_fail;
1810 }
1811 }
1812 if (obj1) {
1813 {
1814 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1815 if (PyErr_Occurred()) SWIG_fail;
1816 }
1817 }
1818 {
1819 PyThreadState* __tstate = wxPyBeginAllowThreads();
1820 result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2);
1821
1822 wxPyEndAllowThreads(__tstate);
1823 if (PyErr_Occurred()) SWIG_fail;
1824 }
1825 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatRenderer, 1);
1826 return resultobj;
1827 fail:
1828 return NULL;
1829 }
1830
1831
1832 static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1833 PyObject *resultobj;
1834 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1835 int result;
1836 PyObject * obj0 = 0 ;
1837 char *kwnames[] = {
1838 (char *) "self", NULL
1839 };
1840
1841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail;
1842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1843 {
1844 PyThreadState* __tstate = wxPyBeginAllowThreads();
1845 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth();
1846
1847 wxPyEndAllowThreads(__tstate);
1848 if (PyErr_Occurred()) SWIG_fail;
1849 }
1850 resultobj = SWIG_PyObj_FromInt((int)result);
1851 return resultobj;
1852 fail:
1853 return NULL;
1854 }
1855
1856
1857 static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1858 PyObject *resultobj;
1859 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1860 int arg2 ;
1861 PyObject * obj0 = 0 ;
1862 PyObject * obj1 = 0 ;
1863 char *kwnames[] = {
1864 (char *) "self",(char *) "width", NULL
1865 };
1866
1867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1869 {
1870 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1871 if (PyErr_Occurred()) SWIG_fail;
1872 }
1873 {
1874 PyThreadState* __tstate = wxPyBeginAllowThreads();
1875 (arg1)->SetWidth(arg2);
1876
1877 wxPyEndAllowThreads(__tstate);
1878 if (PyErr_Occurred()) SWIG_fail;
1879 }
1880 Py_INCREF(Py_None); resultobj = Py_None;
1881 return resultobj;
1882 fail:
1883 return NULL;
1884 }
1885
1886
1887 static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
1888 PyObject *resultobj;
1889 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1890 int result;
1891 PyObject * obj0 = 0 ;
1892 char *kwnames[] = {
1893 (char *) "self", NULL
1894 };
1895
1896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail;
1897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1898 {
1899 PyThreadState* __tstate = wxPyBeginAllowThreads();
1900 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision();
1901
1902 wxPyEndAllowThreads(__tstate);
1903 if (PyErr_Occurred()) SWIG_fail;
1904 }
1905 resultobj = SWIG_PyObj_FromInt((int)result);
1906 return resultobj;
1907 fail:
1908 return NULL;
1909 }
1910
1911
1912 static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
1913 PyObject *resultobj;
1914 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1915 int arg2 ;
1916 PyObject * obj0 = 0 ;
1917 PyObject * obj1 = 0 ;
1918 char *kwnames[] = {
1919 (char *) "self",(char *) "precision", NULL
1920 };
1921
1922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&obj1)) goto fail;
1923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1924 {
1925 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1926 if (PyErr_Occurred()) SWIG_fail;
1927 }
1928 {
1929 PyThreadState* __tstate = wxPyBeginAllowThreads();
1930 (arg1)->SetPrecision(arg2);
1931
1932 wxPyEndAllowThreads(__tstate);
1933 if (PyErr_Occurred()) SWIG_fail;
1934 }
1935 Py_INCREF(Py_None); resultobj = Py_None;
1936 return resultobj;
1937 fail:
1938 return NULL;
1939 }
1940
1941
1942 static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) {
1943 PyObject *obj;
1944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1945 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj);
1946 Py_INCREF(obj);
1947 return Py_BuildValue((char *)"");
1948 }
1949 static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1950 PyObject *resultobj;
1951 wxGridCellBoolRenderer *result;
1952 char *kwnames[] = {
1953 NULL
1954 };
1955
1956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail;
1957 {
1958 PyThreadState* __tstate = wxPyBeginAllowThreads();
1959 result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer();
1960
1961 wxPyEndAllowThreads(__tstate);
1962 if (PyErr_Occurred()) SWIG_fail;
1963 }
1964 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolRenderer, 1);
1965 return resultobj;
1966 fail:
1967 return NULL;
1968 }
1969
1970
1971 static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) {
1972 PyObject *obj;
1973 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1974 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj);
1975 Py_INCREF(obj);
1976 return Py_BuildValue((char *)"");
1977 }
1978 static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject *resultobj;
1980 wxString arg1 = (wxString) wxPyDateTimeFormatStr ;
1981 wxString arg2 = (wxString) wxPyDateTimeFormatStr ;
1982 wxGridCellDateTimeRenderer *result;
1983 PyObject * obj0 = 0 ;
1984 PyObject * obj1 = 0 ;
1985 char *kwnames[] = {
1986 (char *) "outformat",(char *) "informat", NULL
1987 };
1988
1989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail;
1990 if (obj0) {
1991 {
1992 wxString* sptr = wxString_in_helper(obj0);
1993 if (sptr == NULL) SWIG_fail;
1994 arg1 = *sptr;
1995 delete sptr;
1996 }
1997 }
1998 if (obj1) {
1999 {
2000 wxString* sptr = wxString_in_helper(obj1);
2001 if (sptr == NULL) SWIG_fail;
2002 arg2 = *sptr;
2003 delete sptr;
2004 }
2005 }
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2);
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellDateTimeRenderer, 1);
2014 return resultobj;
2015 fail:
2016 return NULL;
2017 }
2018
2019
2020 static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) {
2021 PyObject *obj;
2022 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2023 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj);
2024 Py_INCREF(obj);
2025 return Py_BuildValue((char *)"");
2026 }
2027 static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2028 PyObject *resultobj;
2029 wxString const &arg1_defvalue = wxPyEmptyString ;
2030 wxString *arg1 = (wxString *) &arg1_defvalue ;
2031 wxGridCellEnumRenderer *result;
2032 bool temp1 = False ;
2033 PyObject * obj0 = 0 ;
2034 char *kwnames[] = {
2035 (char *) "choices", NULL
2036 };
2037
2038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail;
2039 if (obj0) {
2040 {
2041 arg1 = wxString_in_helper(obj0);
2042 if (arg1 == NULL) SWIG_fail;
2043 temp1 = True;
2044 }
2045 }
2046 {
2047 PyThreadState* __tstate = wxPyBeginAllowThreads();
2048 result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1);
2049
2050 wxPyEndAllowThreads(__tstate);
2051 if (PyErr_Occurred()) SWIG_fail;
2052 }
2053 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumRenderer, 1);
2054 {
2055 if (temp1)
2056 delete arg1;
2057 }
2058 return resultobj;
2059 fail:
2060 {
2061 if (temp1)
2062 delete arg1;
2063 }
2064 return NULL;
2065 }
2066
2067
2068 static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) {
2069 PyObject *obj;
2070 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2071 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj);
2072 Py_INCREF(obj);
2073 return Py_BuildValue((char *)"");
2074 }
2075 static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
2076 PyObject *resultobj;
2077 wxGridCellAutoWrapStringRenderer *result;
2078 char *kwnames[] = {
2079 NULL
2080 };
2081
2082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail;
2083 {
2084 PyThreadState* __tstate = wxPyBeginAllowThreads();
2085 result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer();
2086
2087 wxPyEndAllowThreads(__tstate);
2088 if (PyErr_Occurred()) SWIG_fail;
2089 }
2090 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1);
2091 return resultobj;
2092 fail:
2093 return NULL;
2094 }
2095
2096
2097 static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) {
2098 PyObject *obj;
2099 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2100 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj);
2101 Py_INCREF(obj);
2102 return Py_BuildValue((char *)"");
2103 }
2104 static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2105 PyObject *resultobj;
2106 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2107 PyObject *arg2 = (PyObject *) 0 ;
2108 PyObject * obj0 = 0 ;
2109 PyObject * obj1 = 0 ;
2110 char *kwnames[] = {
2111 (char *) "self",(char *) "_self", NULL
2112 };
2113
2114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
2115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2116 arg2 = obj1;
2117 {
2118 PyThreadState* __tstate = wxPyBeginAllowThreads();
2119 wxGridCellEditor__setOORInfo(arg1,arg2);
2120
2121 wxPyEndAllowThreads(__tstate);
2122 if (PyErr_Occurred()) SWIG_fail;
2123 }
2124 Py_INCREF(Py_None); resultobj = Py_None;
2125 return resultobj;
2126 fail:
2127 return NULL;
2128 }
2129
2130
2131 static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) {
2132 PyObject *resultobj;
2133 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2134 bool result;
2135 PyObject * obj0 = 0 ;
2136 char *kwnames[] = {
2137 (char *) "self", NULL
2138 };
2139
2140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail;
2141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2142 {
2143 PyThreadState* __tstate = wxPyBeginAllowThreads();
2144 result = (bool)(arg1)->IsCreated();
2145
2146 wxPyEndAllowThreads(__tstate);
2147 if (PyErr_Occurred()) SWIG_fail;
2148 }
2149 resultobj = SWIG_PyObj_FromBool((bool)result);
2150 return resultobj;
2151 fail:
2152 return NULL;
2153 }
2154
2155
2156 static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2157 PyObject *resultobj;
2158 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2159 wxControl *result;
2160 PyObject * obj0 = 0 ;
2161 char *kwnames[] = {
2162 (char *) "self", NULL
2163 };
2164
2165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail;
2166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2167 {
2168 PyThreadState* __tstate = wxPyBeginAllowThreads();
2169 result = (wxControl *)(arg1)->GetControl();
2170
2171 wxPyEndAllowThreads(__tstate);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 {
2175 resultobj = wxPyMake_wxObject(result);
2176 }
2177 return resultobj;
2178 fail:
2179 return NULL;
2180 }
2181
2182
2183 static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2184 PyObject *resultobj;
2185 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2186 wxControl *arg2 = (wxControl *) 0 ;
2187 PyObject * obj0 = 0 ;
2188 PyObject * obj1 = 0 ;
2189 char *kwnames[] = {
2190 (char *) "self",(char *) "control", NULL
2191 };
2192
2193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail;
2194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2195 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2196 {
2197 PyThreadState* __tstate = wxPyBeginAllowThreads();
2198 (arg1)->SetControl(arg2);
2199
2200 wxPyEndAllowThreads(__tstate);
2201 if (PyErr_Occurred()) SWIG_fail;
2202 }
2203 Py_INCREF(Py_None); resultobj = Py_None;
2204 return resultobj;
2205 fail:
2206 return NULL;
2207 }
2208
2209
2210 static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2211 PyObject *resultobj;
2212 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2213 wxGridCellAttr *result;
2214 PyObject * obj0 = 0 ;
2215 char *kwnames[] = {
2216 (char *) "self", NULL
2217 };
2218
2219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail;
2220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2221 {
2222 PyThreadState* __tstate = wxPyBeginAllowThreads();
2223 result = (wxGridCellAttr *)(arg1)->GetCellAttr();
2224
2225 wxPyEndAllowThreads(__tstate);
2226 if (PyErr_Occurred()) SWIG_fail;
2227 }
2228 {
2229 resultobj = wxPyMake_wxGridCellAttr(result);
2230 }
2231 return resultobj;
2232 fail:
2233 return NULL;
2234 }
2235
2236
2237 static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2238 PyObject *resultobj;
2239 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2240 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
2241 PyObject * obj0 = 0 ;
2242 PyObject * obj1 = 0 ;
2243 char *kwnames[] = {
2244 (char *) "self",(char *) "attr", NULL
2245 };
2246
2247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail;
2248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2249 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2250 {
2251 PyThreadState* __tstate = wxPyBeginAllowThreads();
2252 (arg1)->SetCellAttr(arg2);
2253
2254 wxPyEndAllowThreads(__tstate);
2255 if (PyErr_Occurred()) SWIG_fail;
2256 }
2257 Py_INCREF(Py_None); resultobj = Py_None;
2258 return resultobj;
2259 fail:
2260 return NULL;
2261 }
2262
2263
2264 static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
2265 PyObject *resultobj;
2266 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2267 wxString *arg2 = 0 ;
2268 bool temp2 = False ;
2269 PyObject * obj0 = 0 ;
2270 PyObject * obj1 = 0 ;
2271 char *kwnames[] = {
2272 (char *) "self",(char *) "params", NULL
2273 };
2274
2275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail;
2276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2277 {
2278 arg2 = wxString_in_helper(obj1);
2279 if (arg2 == NULL) SWIG_fail;
2280 temp2 = True;
2281 }
2282 {
2283 PyThreadState* __tstate = wxPyBeginAllowThreads();
2284 (arg1)->SetParameters((wxString const &)*arg2);
2285
2286 wxPyEndAllowThreads(__tstate);
2287 if (PyErr_Occurred()) SWIG_fail;
2288 }
2289 Py_INCREF(Py_None); resultobj = Py_None;
2290 {
2291 if (temp2)
2292 delete arg2;
2293 }
2294 return resultobj;
2295 fail:
2296 {
2297 if (temp2)
2298 delete arg2;
2299 }
2300 return NULL;
2301 }
2302
2303
2304 static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2305 PyObject *resultobj;
2306 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2307 PyObject * obj0 = 0 ;
2308 char *kwnames[] = {
2309 (char *) "self", NULL
2310 };
2311
2312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail;
2313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2314 {
2315 PyThreadState* __tstate = wxPyBeginAllowThreads();
2316 (arg1)->IncRef();
2317
2318 wxPyEndAllowThreads(__tstate);
2319 if (PyErr_Occurred()) SWIG_fail;
2320 }
2321 Py_INCREF(Py_None); resultobj = Py_None;
2322 return resultobj;
2323 fail:
2324 return NULL;
2325 }
2326
2327
2328 static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2329 PyObject *resultobj;
2330 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2331 PyObject * obj0 = 0 ;
2332 char *kwnames[] = {
2333 (char *) "self", NULL
2334 };
2335
2336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail;
2337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2338 {
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
2340 (arg1)->DecRef();
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
2345 Py_INCREF(Py_None); resultobj = Py_None;
2346 return resultobj;
2347 fail:
2348 return NULL;
2349 }
2350
2351
2352 static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2353 PyObject *resultobj;
2354 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2355 wxWindow *arg2 = (wxWindow *) 0 ;
2356 int arg3 ;
2357 wxEvtHandler *arg4 = (wxEvtHandler *) 0 ;
2358 PyObject * obj0 = 0 ;
2359 PyObject * obj1 = 0 ;
2360 PyObject * obj2 = 0 ;
2361 PyObject * obj3 = 0 ;
2362 char *kwnames[] = {
2363 (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL
2364 };
2365
2366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2368 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2369 {
2370 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2371 if (PyErr_Occurred()) SWIG_fail;
2372 }
2373 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2374 {
2375 PyThreadState* __tstate = wxPyBeginAllowThreads();
2376 (arg1)->Create(arg2,arg3,arg4);
2377
2378 wxPyEndAllowThreads(__tstate);
2379 if (PyErr_Occurred()) SWIG_fail;
2380 }
2381 Py_INCREF(Py_None); resultobj = Py_None;
2382 return resultobj;
2383 fail:
2384 return NULL;
2385 }
2386
2387
2388 static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2389 PyObject *resultobj;
2390 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2391 int arg2 ;
2392 int arg3 ;
2393 wxGrid *arg4 = (wxGrid *) 0 ;
2394 PyObject * obj0 = 0 ;
2395 PyObject * obj1 = 0 ;
2396 PyObject * obj2 = 0 ;
2397 PyObject * obj3 = 0 ;
2398 char *kwnames[] = {
2399 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2400 };
2401
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_BeginEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2404 {
2405 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 {
2409 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 }
2412 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2413 {
2414 PyThreadState* __tstate = wxPyBeginAllowThreads();
2415 (arg1)->BeginEdit(arg2,arg3,arg4);
2416
2417 wxPyEndAllowThreads(__tstate);
2418 if (PyErr_Occurred()) SWIG_fail;
2419 }
2420 Py_INCREF(Py_None); resultobj = Py_None;
2421 return resultobj;
2422 fail:
2423 return NULL;
2424 }
2425
2426
2427 static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2428 PyObject *resultobj;
2429 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2430 int arg2 ;
2431 int arg3 ;
2432 wxGrid *arg4 = (wxGrid *) 0 ;
2433 bool result;
2434 PyObject * obj0 = 0 ;
2435 PyObject * obj1 = 0 ;
2436 PyObject * obj2 = 0 ;
2437 PyObject * obj3 = 0 ;
2438 char *kwnames[] = {
2439 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2440 };
2441
2442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellEditor_EndEdit",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2444 {
2445 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2446 if (PyErr_Occurred()) SWIG_fail;
2447 }
2448 {
2449 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2450 if (PyErr_Occurred()) SWIG_fail;
2451 }
2452 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2453 {
2454 PyThreadState* __tstate = wxPyBeginAllowThreads();
2455 result = (bool)(arg1)->EndEdit(arg2,arg3,arg4);
2456
2457 wxPyEndAllowThreads(__tstate);
2458 if (PyErr_Occurred()) SWIG_fail;
2459 }
2460 resultobj = SWIG_PyObj_FromBool((bool)result);
2461 return resultobj;
2462 fail:
2463 return NULL;
2464 }
2465
2466
2467 static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
2468 PyObject *resultobj;
2469 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2470 PyObject * obj0 = 0 ;
2471 char *kwnames[] = {
2472 (char *) "self", NULL
2473 };
2474
2475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail;
2476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2477 {
2478 PyThreadState* __tstate = wxPyBeginAllowThreads();
2479 (arg1)->Reset();
2480
2481 wxPyEndAllowThreads(__tstate);
2482 if (PyErr_Occurred()) SWIG_fail;
2483 }
2484 Py_INCREF(Py_None); resultobj = Py_None;
2485 return resultobj;
2486 fail:
2487 return NULL;
2488 }
2489
2490
2491 static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
2492 PyObject *resultobj;
2493 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2494 wxGridCellEditor *result;
2495 PyObject * obj0 = 0 ;
2496 char *kwnames[] = {
2497 (char *) "self", NULL
2498 };
2499
2500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail;
2501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2502 {
2503 PyThreadState* __tstate = wxPyBeginAllowThreads();
2504 result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone();
2505
2506 wxPyEndAllowThreads(__tstate);
2507 if (PyErr_Occurred()) SWIG_fail;
2508 }
2509 {
2510 resultobj = wxPyMake_wxGridCellEditor(result);
2511 }
2512 return resultobj;
2513 fail:
2514 return NULL;
2515 }
2516
2517
2518 static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2519 PyObject *resultobj;
2520 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2521 wxRect *arg2 = 0 ;
2522 wxRect temp2 ;
2523 PyObject * obj0 = 0 ;
2524 PyObject * obj1 = 0 ;
2525 char *kwnames[] = {
2526 (char *) "self",(char *) "rect", NULL
2527 };
2528
2529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail;
2530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2531 {
2532 arg2 = &temp2;
2533 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2534 }
2535 {
2536 PyThreadState* __tstate = wxPyBeginAllowThreads();
2537 (arg1)->SetSize((wxRect const &)*arg2);
2538
2539 wxPyEndAllowThreads(__tstate);
2540 if (PyErr_Occurred()) SWIG_fail;
2541 }
2542 Py_INCREF(Py_None); resultobj = Py_None;
2543 return resultobj;
2544 fail:
2545 return NULL;
2546 }
2547
2548
2549 static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2550 PyObject *resultobj;
2551 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2552 bool arg2 ;
2553 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2554 PyObject * obj0 = 0 ;
2555 PyObject * obj1 = 0 ;
2556 PyObject * obj2 = 0 ;
2557 char *kwnames[] = {
2558 (char *) "self",(char *) "show",(char *) "attr", NULL
2559 };
2560
2561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2563 {
2564 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2565 if (PyErr_Occurred()) SWIG_fail;
2566 }
2567 if (obj2) {
2568 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2569 }
2570 {
2571 PyThreadState* __tstate = wxPyBeginAllowThreads();
2572 (arg1)->Show(arg2,arg3);
2573
2574 wxPyEndAllowThreads(__tstate);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 Py_INCREF(Py_None); resultobj = Py_None;
2578 return resultobj;
2579 fail:
2580 return NULL;
2581 }
2582
2583
2584 static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2585 PyObject *resultobj;
2586 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2587 wxRect *arg2 = 0 ;
2588 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2589 wxRect temp2 ;
2590 PyObject * obj0 = 0 ;
2591 PyObject * obj1 = 0 ;
2592 PyObject * obj2 = 0 ;
2593 char *kwnames[] = {
2594 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2595 };
2596
2597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2599 {
2600 arg2 = &temp2;
2601 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2602 }
2603 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2604 {
2605 PyThreadState* __tstate = wxPyBeginAllowThreads();
2606 (arg1)->PaintBackground((wxRect const &)*arg2,arg3);
2607
2608 wxPyEndAllowThreads(__tstate);
2609 if (PyErr_Occurred()) SWIG_fail;
2610 }
2611 Py_INCREF(Py_None); resultobj = Py_None;
2612 return resultobj;
2613 fail:
2614 return NULL;
2615 }
2616
2617
2618 static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2619 PyObject *resultobj;
2620 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2621 wxKeyEvent *arg2 = 0 ;
2622 bool result;
2623 PyObject * obj0 = 0 ;
2624 PyObject * obj1 = 0 ;
2625 char *kwnames[] = {
2626 (char *) "self",(char *) "event", NULL
2627 };
2628
2629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2631 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2632 if (arg2 == NULL) {
2633 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2634 }
2635 {
2636 PyThreadState* __tstate = wxPyBeginAllowThreads();
2637 result = (bool)(arg1)->IsAcceptedKey(*arg2);
2638
2639 wxPyEndAllowThreads(__tstate);
2640 if (PyErr_Occurred()) SWIG_fail;
2641 }
2642 resultobj = SWIG_PyObj_FromBool((bool)result);
2643 return resultobj;
2644 fail:
2645 return NULL;
2646 }
2647
2648
2649 static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2650 PyObject *resultobj;
2651 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2652 wxKeyEvent *arg2 = 0 ;
2653 PyObject * obj0 = 0 ;
2654 PyObject * obj1 = 0 ;
2655 char *kwnames[] = {
2656 (char *) "self",(char *) "event", NULL
2657 };
2658
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2661 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2662 if (arg2 == NULL) {
2663 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2664 }
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 (arg1)->StartingKey(*arg2);
2668
2669 wxPyEndAllowThreads(__tstate);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 Py_INCREF(Py_None); resultobj = Py_None;
2673 return resultobj;
2674 fail:
2675 return NULL;
2676 }
2677
2678
2679 static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2680 PyObject *resultobj;
2681 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2682 PyObject * obj0 = 0 ;
2683 char *kwnames[] = {
2684 (char *) "self", NULL
2685 };
2686
2687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail;
2688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2689 {
2690 PyThreadState* __tstate = wxPyBeginAllowThreads();
2691 (arg1)->StartingClick();
2692
2693 wxPyEndAllowThreads(__tstate);
2694 if (PyErr_Occurred()) SWIG_fail;
2695 }
2696 Py_INCREF(Py_None); resultobj = Py_None;
2697 return resultobj;
2698 fail:
2699 return NULL;
2700 }
2701
2702
2703 static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject *resultobj;
2705 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2706 wxKeyEvent *arg2 = 0 ;
2707 PyObject * obj0 = 0 ;
2708 PyObject * obj1 = 0 ;
2709 char *kwnames[] = {
2710 (char *) "self",(char *) "event", NULL
2711 };
2712
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
2714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2715 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2716 if (arg2 == NULL) {
2717 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2718 }
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 (arg1)->HandleReturn(*arg2);
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 Py_INCREF(Py_None); resultobj = Py_None;
2727 return resultobj;
2728 fail:
2729 return NULL;
2730 }
2731
2732
2733 static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2734 PyObject *resultobj;
2735 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2736 PyObject * obj0 = 0 ;
2737 char *kwnames[] = {
2738 (char *) "self", NULL
2739 };
2740
2741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail;
2742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2743 {
2744 PyThreadState* __tstate = wxPyBeginAllowThreads();
2745 (arg1)->Destroy();
2746
2747 wxPyEndAllowThreads(__tstate);
2748 if (PyErr_Occurred()) SWIG_fail;
2749 }
2750 Py_INCREF(Py_None); resultobj = Py_None;
2751 return resultobj;
2752 fail:
2753 return NULL;
2754 }
2755
2756
2757 static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) {
2758 PyObject *obj;
2759 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2760 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj);
2761 Py_INCREF(obj);
2762 return Py_BuildValue((char *)"");
2763 }
2764 static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2765 PyObject *resultobj;
2766 wxPyGridCellEditor *result;
2767 char *kwnames[] = {
2768 NULL
2769 };
2770
2771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail;
2772 {
2773 PyThreadState* __tstate = wxPyBeginAllowThreads();
2774 result = (wxPyGridCellEditor *)new wxPyGridCellEditor();
2775
2776 wxPyEndAllowThreads(__tstate);
2777 if (PyErr_Occurred()) SWIG_fail;
2778 }
2779 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellEditor, 1);
2780 return resultobj;
2781 fail:
2782 return NULL;
2783 }
2784
2785
2786 static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2787 PyObject *resultobj;
2788 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2789 PyObject *arg2 = (PyObject *) 0 ;
2790 PyObject *arg3 = (PyObject *) 0 ;
2791 PyObject * obj0 = 0 ;
2792 PyObject * obj1 = 0 ;
2793 PyObject * obj2 = 0 ;
2794 char *kwnames[] = {
2795 (char *) "self",(char *) "self",(char *) "_class", NULL
2796 };
2797
2798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
2799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2800 arg2 = obj1;
2801 arg3 = obj2;
2802 {
2803 PyThreadState* __tstate = wxPyBeginAllowThreads();
2804 (arg1)->_setCallbackInfo(arg2,arg3);
2805
2806 wxPyEndAllowThreads(__tstate);
2807 if (PyErr_Occurred()) SWIG_fail;
2808 }
2809 Py_INCREF(Py_None); resultobj = Py_None;
2810 return resultobj;
2811 fail:
2812 return NULL;
2813 }
2814
2815
2816 static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2817 PyObject *resultobj;
2818 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2819 wxRect *arg2 = 0 ;
2820 wxRect temp2 ;
2821 PyObject * obj0 = 0 ;
2822 PyObject * obj1 = 0 ;
2823 char *kwnames[] = {
2824 (char *) "self",(char *) "rect", NULL
2825 };
2826
2827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail;
2828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2829 {
2830 arg2 = &temp2;
2831 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2832 }
2833 {
2834 PyThreadState* __tstate = wxPyBeginAllowThreads();
2835 (arg1)->base_SetSize((wxRect const &)*arg2);
2836
2837 wxPyEndAllowThreads(__tstate);
2838 if (PyErr_Occurred()) SWIG_fail;
2839 }
2840 Py_INCREF(Py_None); resultobj = Py_None;
2841 return resultobj;
2842 fail:
2843 return NULL;
2844 }
2845
2846
2847 static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2848 PyObject *resultobj;
2849 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2850 bool arg2 ;
2851 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2852 PyObject * obj0 = 0 ;
2853 PyObject * obj1 = 0 ;
2854 PyObject * obj2 = 0 ;
2855 char *kwnames[] = {
2856 (char *) "self",(char *) "show",(char *) "attr", NULL
2857 };
2858
2859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2861 {
2862 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 if (obj2) {
2866 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2867 }
2868 {
2869 PyThreadState* __tstate = wxPyBeginAllowThreads();
2870 (arg1)->base_Show(arg2,arg3);
2871
2872 wxPyEndAllowThreads(__tstate);
2873 if (PyErr_Occurred()) SWIG_fail;
2874 }
2875 Py_INCREF(Py_None); resultobj = Py_None;
2876 return resultobj;
2877 fail:
2878 return NULL;
2879 }
2880
2881
2882 static PyObject *_wrap_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2883 PyObject *resultobj;
2884 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2885 wxRect *arg2 = 0 ;
2886 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2887 wxRect temp2 ;
2888 PyObject * obj0 = 0 ;
2889 PyObject * obj1 = 0 ;
2890 PyObject * obj2 = 0 ;
2891 char *kwnames[] = {
2892 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2893 };
2894
2895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2897 {
2898 arg2 = &temp2;
2899 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2900 }
2901 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2902 {
2903 PyThreadState* __tstate = wxPyBeginAllowThreads();
2904 (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3);
2905
2906 wxPyEndAllowThreads(__tstate);
2907 if (PyErr_Occurred()) SWIG_fail;
2908 }
2909 Py_INCREF(Py_None); resultobj = Py_None;
2910 return resultobj;
2911 fail:
2912 return NULL;
2913 }
2914
2915
2916 static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2917 PyObject *resultobj;
2918 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2919 wxKeyEvent *arg2 = 0 ;
2920 bool result;
2921 PyObject * obj0 = 0 ;
2922 PyObject * obj1 = 0 ;
2923 char *kwnames[] = {
2924 (char *) "self",(char *) "event", NULL
2925 };
2926
2927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2929 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2930 if (arg2 == NULL) {
2931 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2932 }
2933 {
2934 PyThreadState* __tstate = wxPyBeginAllowThreads();
2935 result = (bool)(arg1)->base_IsAcceptedKey(*arg2);
2936
2937 wxPyEndAllowThreads(__tstate);
2938 if (PyErr_Occurred()) SWIG_fail;
2939 }
2940 resultobj = SWIG_PyObj_FromBool((bool)result);
2941 return resultobj;
2942 fail:
2943 return NULL;
2944 }
2945
2946
2947 static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2948 PyObject *resultobj;
2949 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2950 wxKeyEvent *arg2 = 0 ;
2951 PyObject * obj0 = 0 ;
2952 PyObject * obj1 = 0 ;
2953 char *kwnames[] = {
2954 (char *) "self",(char *) "event", NULL
2955 };
2956
2957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2959 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2960 if (arg2 == NULL) {
2961 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2962 }
2963 {
2964 PyThreadState* __tstate = wxPyBeginAllowThreads();
2965 (arg1)->base_StartingKey(*arg2);
2966
2967 wxPyEndAllowThreads(__tstate);
2968 if (PyErr_Occurred()) SWIG_fail;
2969 }
2970 Py_INCREF(Py_None); resultobj = Py_None;
2971 return resultobj;
2972 fail:
2973 return NULL;
2974 }
2975
2976
2977 static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2978 PyObject *resultobj;
2979 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2980 PyObject * obj0 = 0 ;
2981 char *kwnames[] = {
2982 (char *) "self", NULL
2983 };
2984
2985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail;
2986 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2987 {
2988 PyThreadState* __tstate = wxPyBeginAllowThreads();
2989 (arg1)->base_StartingClick();
2990
2991 wxPyEndAllowThreads(__tstate);
2992 if (PyErr_Occurred()) SWIG_fail;
2993 }
2994 Py_INCREF(Py_None); resultobj = Py_None;
2995 return resultobj;
2996 fail:
2997 return NULL;
2998 }
2999
3000
3001 static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
3002 PyObject *resultobj;
3003 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3004 wxKeyEvent *arg2 = 0 ;
3005 PyObject * obj0 = 0 ;
3006 PyObject * obj1 = 0 ;
3007 char *kwnames[] = {
3008 (char *) "self",(char *) "event", NULL
3009 };
3010
3011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
3012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3013 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3014 if (arg2 == NULL) {
3015 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3016 }
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 (arg1)->base_HandleReturn(*arg2);
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) SWIG_fail;
3023 }
3024 Py_INCREF(Py_None); resultobj = Py_None;
3025 return resultobj;
3026 fail:
3027 return NULL;
3028 }
3029
3030
3031 static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
3032 PyObject *resultobj;
3033 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3034 PyObject * obj0 = 0 ;
3035 char *kwnames[] = {
3036 (char *) "self", NULL
3037 };
3038
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail;
3040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3041 {
3042 PyThreadState* __tstate = wxPyBeginAllowThreads();
3043 (arg1)->base_Destroy();
3044
3045 wxPyEndAllowThreads(__tstate);
3046 if (PyErr_Occurred()) SWIG_fail;
3047 }
3048 Py_INCREF(Py_None); resultobj = Py_None;
3049 return resultobj;
3050 fail:
3051 return NULL;
3052 }
3053
3054
3055 static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
3056 PyObject *resultobj;
3057 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
3058 wxString *arg2 = 0 ;
3059 bool temp2 = False ;
3060 PyObject * obj0 = 0 ;
3061 PyObject * obj1 = 0 ;
3062 char *kwnames[] = {
3063 (char *) "self",(char *) "params", NULL
3064 };
3065
3066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
3067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3068 {
3069 arg2 = wxString_in_helper(obj1);
3070 if (arg2 == NULL) SWIG_fail;
3071 temp2 = True;
3072 }
3073 {
3074 PyThreadState* __tstate = wxPyBeginAllowThreads();
3075 (arg1)->base_SetParameters((wxString const &)*arg2);
3076
3077 wxPyEndAllowThreads(__tstate);
3078 if (PyErr_Occurred()) SWIG_fail;
3079 }
3080 Py_INCREF(Py_None); resultobj = Py_None;
3081 {
3082 if (temp2)
3083 delete arg2;
3084 }
3085 return resultobj;
3086 fail:
3087 {
3088 if (temp2)
3089 delete arg2;
3090 }
3091 return NULL;
3092 }
3093
3094
3095 static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) {
3096 PyObject *obj;
3097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3098 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj);
3099 Py_INCREF(obj);
3100 return Py_BuildValue((char *)"");
3101 }
3102 static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3103 PyObject *resultobj;
3104 wxGridCellTextEditor *result;
3105 char *kwnames[] = {
3106 NULL
3107 };
3108
3109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail;
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 result = (wxGridCellTextEditor *)new wxGridCellTextEditor();
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellTextEditor, 1);
3118 return resultobj;
3119 fail:
3120 return NULL;
3121 }
3122
3123
3124 static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3125 PyObject *resultobj;
3126 wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ;
3127 wxString result;
3128 PyObject * obj0 = 0 ;
3129 char *kwnames[] = {
3130 (char *) "self", NULL
3131 };
3132
3133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail;
3134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellTextEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3135 {
3136 PyThreadState* __tstate = wxPyBeginAllowThreads();
3137 result = (arg1)->GetValue();
3138
3139 wxPyEndAllowThreads(__tstate);
3140 if (PyErr_Occurred()) SWIG_fail;
3141 }
3142 {
3143 #if wxUSE_UNICODE
3144 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3145 #else
3146 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3147 #endif
3148 }
3149 return resultobj;
3150 fail:
3151 return NULL;
3152 }
3153
3154
3155 static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) {
3156 PyObject *obj;
3157 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3158 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj);
3159 Py_INCREF(obj);
3160 return Py_BuildValue((char *)"");
3161 }
3162 static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3163 PyObject *resultobj;
3164 int arg1 = (int) -1 ;
3165 int arg2 = (int) -1 ;
3166 wxGridCellNumberEditor *result;
3167 PyObject * obj0 = 0 ;
3168 PyObject * obj1 = 0 ;
3169 char *kwnames[] = {
3170 (char *) "min",(char *) "max", NULL
3171 };
3172
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellNumberEditor",kwnames,&obj0,&obj1)) goto fail;
3174 if (obj0) {
3175 {
3176 arg1 = (int) SWIG_PyObj_AsInt(obj0);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 }
3180 if (obj1) {
3181 {
3182 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3183 if (PyErr_Occurred()) SWIG_fail;
3184 }
3185 }
3186 {
3187 PyThreadState* __tstate = wxPyBeginAllowThreads();
3188 result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2);
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberEditor, 1);
3194 return resultobj;
3195 fail:
3196 return NULL;
3197 }
3198
3199
3200 static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3201 PyObject *resultobj;
3202 wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ;
3203 wxString result;
3204 PyObject * obj0 = 0 ;
3205 char *kwnames[] = {
3206 (char *) "self", NULL
3207 };
3208
3209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail;
3210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellNumberEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3211 {
3212 PyThreadState* __tstate = wxPyBeginAllowThreads();
3213 result = (arg1)->GetValue();
3214
3215 wxPyEndAllowThreads(__tstate);
3216 if (PyErr_Occurred()) SWIG_fail;
3217 }
3218 {
3219 #if wxUSE_UNICODE
3220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3221 #else
3222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3223 #endif
3224 }
3225 return resultobj;
3226 fail:
3227 return NULL;
3228 }
3229
3230
3231 static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) {
3232 PyObject *obj;
3233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3234 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj);
3235 Py_INCREF(obj);
3236 return Py_BuildValue((char *)"");
3237 }
3238 static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3239 PyObject *resultobj;
3240 wxGridCellFloatEditor *result;
3241 char *kwnames[] = {
3242 NULL
3243 };
3244
3245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail;
3246 {
3247 PyThreadState* __tstate = wxPyBeginAllowThreads();
3248 result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor();
3249
3250 wxPyEndAllowThreads(__tstate);
3251 if (PyErr_Occurred()) SWIG_fail;
3252 }
3253 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatEditor, 1);
3254 return resultobj;
3255 fail:
3256 return NULL;
3257 }
3258
3259
3260 static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3261 PyObject *resultobj;
3262 wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ;
3263 wxString result;
3264 PyObject * obj0 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "self", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail;
3270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3271 {
3272 PyThreadState* __tstate = wxPyBeginAllowThreads();
3273 result = (arg1)->GetValue();
3274
3275 wxPyEndAllowThreads(__tstate);
3276 if (PyErr_Occurred()) SWIG_fail;
3277 }
3278 {
3279 #if wxUSE_UNICODE
3280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3281 #else
3282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3283 #endif
3284 }
3285 return resultobj;
3286 fail:
3287 return NULL;
3288 }
3289
3290
3291 static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) {
3292 PyObject *obj;
3293 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3294 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj);
3295 Py_INCREF(obj);
3296 return Py_BuildValue((char *)"");
3297 }
3298 static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3299 PyObject *resultobj;
3300 wxGridCellBoolEditor *result;
3301 char *kwnames[] = {
3302 NULL
3303 };
3304
3305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail;
3306 {
3307 PyThreadState* __tstate = wxPyBeginAllowThreads();
3308 result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor();
3309
3310 wxPyEndAllowThreads(__tstate);
3311 if (PyErr_Occurred()) SWIG_fail;
3312 }
3313 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolEditor, 1);
3314 return resultobj;
3315 fail:
3316 return NULL;
3317 }
3318
3319
3320 static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3321 PyObject *resultobj;
3322 wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ;
3323 wxString result;
3324 PyObject * obj0 = 0 ;
3325 char *kwnames[] = {
3326 (char *) "self", NULL
3327 };
3328
3329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail;
3330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellBoolEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3331 {
3332 PyThreadState* __tstate = wxPyBeginAllowThreads();
3333 result = (arg1)->GetValue();
3334
3335 wxPyEndAllowThreads(__tstate);
3336 if (PyErr_Occurred()) SWIG_fail;
3337 }
3338 {
3339 #if wxUSE_UNICODE
3340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3341 #else
3342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3343 #endif
3344 }
3345 return resultobj;
3346 fail:
3347 return NULL;
3348 }
3349
3350
3351 static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) {
3352 PyObject *obj;
3353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3354 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj);
3355 Py_INCREF(obj);
3356 return Py_BuildValue((char *)"");
3357 }
3358 static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3359 PyObject *resultobj;
3360 int arg1 = (int) 0 ;
3361 wxString *arg2 = (wxString *) NULL ;
3362 bool arg3 = (bool) False ;
3363 wxGridCellChoiceEditor *result;
3364 PyObject * obj0 = 0 ;
3365 PyObject * obj1 = 0 ;
3366 char *kwnames[] = {
3367 (char *) "choices",(char *) "allowOthers", NULL
3368 };
3369
3370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail;
3371 if (obj0) {
3372 {
3373 arg1 = PyList_Size(obj0);
3374 arg2 = wxString_LIST_helper(obj0);
3375 if (arg2 == NULL) SWIG_fail;
3376 }
3377 }
3378 if (obj1) {
3379 {
3380 arg3 = (bool) SWIG_PyObj_AsBool(obj1);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 }
3384 {
3385 PyThreadState* __tstate = wxPyBeginAllowThreads();
3386 result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3);
3387
3388 wxPyEndAllowThreads(__tstate);
3389 if (PyErr_Occurred()) SWIG_fail;
3390 }
3391 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellChoiceEditor, 1);
3392 {
3393 if (arg2) delete [] arg2;
3394 }
3395 return resultobj;
3396 fail:
3397 {
3398 if (arg2) delete [] arg2;
3399 }
3400 return NULL;
3401 }
3402
3403
3404 static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3405 PyObject *resultobj;
3406 wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ;
3407 wxString result;
3408 PyObject * obj0 = 0 ;
3409 char *kwnames[] = {
3410 (char *) "self", NULL
3411 };
3412
3413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail;
3414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellChoiceEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3415 {
3416 PyThreadState* __tstate = wxPyBeginAllowThreads();
3417 result = (arg1)->GetValue();
3418
3419 wxPyEndAllowThreads(__tstate);
3420 if (PyErr_Occurred()) SWIG_fail;
3421 }
3422 {
3423 #if wxUSE_UNICODE
3424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3425 #else
3426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3427 #endif
3428 }
3429 return resultobj;
3430 fail:
3431 return NULL;
3432 }
3433
3434
3435 static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) {
3436 PyObject *obj;
3437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3438 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj);
3439 Py_INCREF(obj);
3440 return Py_BuildValue((char *)"");
3441 }
3442 static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3443 PyObject *resultobj;
3444 wxString const &arg1_defvalue = wxPyEmptyString ;
3445 wxString *arg1 = (wxString *) &arg1_defvalue ;
3446 wxGridCellEnumEditor *result;
3447 bool temp1 = False ;
3448 PyObject * obj0 = 0 ;
3449 char *kwnames[] = {
3450 (char *) "choices", NULL
3451 };
3452
3453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail;
3454 if (obj0) {
3455 {
3456 arg1 = wxString_in_helper(obj0);
3457 if (arg1 == NULL) SWIG_fail;
3458 temp1 = True;
3459 }
3460 }
3461 {
3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
3463 result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1);
3464
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) SWIG_fail;
3467 }
3468 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumEditor, 1);
3469 {
3470 if (temp1)
3471 delete arg1;
3472 }
3473 return resultobj;
3474 fail:
3475 {
3476 if (temp1)
3477 delete arg1;
3478 }
3479 return NULL;
3480 }
3481
3482
3483 static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3484 PyObject *resultobj;
3485 wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ;
3486 wxString result;
3487 PyObject * obj0 = 0 ;
3488 char *kwnames[] = {
3489 (char *) "self", NULL
3490 };
3491
3492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail;
3493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEnumEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3494 {
3495 PyThreadState* __tstate = wxPyBeginAllowThreads();
3496 result = (arg1)->GetValue();
3497
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 }
3501 {
3502 #if wxUSE_UNICODE
3503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3504 #else
3505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3506 #endif
3507 }
3508 return resultobj;
3509 fail:
3510 return NULL;
3511 }
3512
3513
3514 static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) {
3515 PyObject *obj;
3516 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3517 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj);
3518 Py_INCREF(obj);
3519 return Py_BuildValue((char *)"");
3520 }
3521 static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject *resultobj;
3523 wxGridCellAutoWrapStringEditor *result;
3524 char *kwnames[] = {
3525 NULL
3526 };
3527
3528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail;
3529 {
3530 PyThreadState* __tstate = wxPyBeginAllowThreads();
3531 result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor();
3532
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1);
3537 return resultobj;
3538 fail:
3539 return NULL;
3540 }
3541
3542
3543 static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj;
3545 wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ;
3546 wxString result;
3547 PyObject * obj0 = 0 ;
3548 char *kwnames[] = {
3549 (char *) "self", NULL
3550 };
3551
3552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail;
3553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAutoWrapStringEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3554 {
3555 PyThreadState* __tstate = wxPyBeginAllowThreads();
3556 result = (arg1)->GetValue();
3557
3558 wxPyEndAllowThreads(__tstate);
3559 if (PyErr_Occurred()) SWIG_fail;
3560 }
3561 {
3562 #if wxUSE_UNICODE
3563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3564 #else
3565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3566 #endif
3567 }
3568 return resultobj;
3569 fail:
3570 return NULL;
3571 }
3572
3573
3574 static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) {
3575 PyObject *obj;
3576 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3577 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj);
3578 Py_INCREF(obj);
3579 return Py_BuildValue((char *)"");
3580 }
3581 static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3582 PyObject *resultobj;
3583 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3584 PyObject *arg2 = (PyObject *) 0 ;
3585 PyObject * obj0 = 0 ;
3586 PyObject * obj1 = 0 ;
3587 char *kwnames[] = {
3588 (char *) "self",(char *) "_self", NULL
3589 };
3590
3591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
3592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3593 arg2 = obj1;
3594 {
3595 PyThreadState* __tstate = wxPyBeginAllowThreads();
3596 wxGridCellAttr__setOORInfo(arg1,arg2);
3597
3598 wxPyEndAllowThreads(__tstate);
3599 if (PyErr_Occurred()) SWIG_fail;
3600 }
3601 Py_INCREF(Py_None); resultobj = Py_None;
3602 return resultobj;
3603 fail:
3604 return NULL;
3605 }
3606
3607
3608 static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
3609 PyObject *resultobj;
3610 wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ;
3611 wxGridCellAttr *result;
3612 PyObject * obj0 = 0 ;
3613 char *kwnames[] = {
3614 (char *) "attrDefault", NULL
3615 };
3616
3617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail;
3618 if (obj0) {
3619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3620 }
3621 {
3622 PyThreadState* __tstate = wxPyBeginAllowThreads();
3623 result = (wxGridCellAttr *)new wxGridCellAttr(arg1);
3624
3625 wxPyEndAllowThreads(__tstate);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 }
3628 {
3629 resultobj = wxPyMake_wxGridCellAttr(result);
3630 }
3631 return resultobj;
3632 fail:
3633 return NULL;
3634 }
3635
3636
3637 static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
3638 PyObject *resultobj;
3639 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3640 wxGridCellAttr *result;
3641 PyObject * obj0 = 0 ;
3642 char *kwnames[] = {
3643 (char *) "self", NULL
3644 };
3645
3646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail;
3647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone();
3651
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 {
3656 resultobj = wxPyMake_wxGridCellAttr(result);
3657 }
3658 return resultobj;
3659 fail:
3660 return NULL;
3661 }
3662
3663
3664 static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) {
3665 PyObject *resultobj;
3666 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3667 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
3668 PyObject * obj0 = 0 ;
3669 PyObject * obj1 = 0 ;
3670 char *kwnames[] = {
3671 (char *) "self",(char *) "mergefrom", NULL
3672 };
3673
3674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail;
3675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3676 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3677 {
3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
3679 (arg1)->MergeWith(arg2);
3680
3681 wxPyEndAllowThreads(__tstate);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
3684 Py_INCREF(Py_None); resultobj = Py_None;
3685 return resultobj;
3686 fail:
3687 return NULL;
3688 }
3689
3690
3691 static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3692 PyObject *resultobj;
3693 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3694 PyObject * obj0 = 0 ;
3695 char *kwnames[] = {
3696 (char *) "self", NULL
3697 };
3698
3699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail;
3700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3701 {
3702 PyThreadState* __tstate = wxPyBeginAllowThreads();
3703 (arg1)->IncRef();
3704
3705 wxPyEndAllowThreads(__tstate);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 }
3708 Py_INCREF(Py_None); resultobj = Py_None;
3709 return resultobj;
3710 fail:
3711 return NULL;
3712 }
3713
3714
3715 static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3716 PyObject *resultobj;
3717 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3718 PyObject * obj0 = 0 ;
3719 char *kwnames[] = {
3720 (char *) "self", NULL
3721 };
3722
3723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail;
3724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3725 {
3726 PyThreadState* __tstate = wxPyBeginAllowThreads();
3727 (arg1)->DecRef();
3728
3729 wxPyEndAllowThreads(__tstate);
3730 if (PyErr_Occurred()) SWIG_fail;
3731 }
3732 Py_INCREF(Py_None); resultobj = Py_None;
3733 return resultobj;
3734 fail:
3735 return NULL;
3736 }
3737
3738
3739 static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3740 PyObject *resultobj;
3741 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3742 wxColour *arg2 = 0 ;
3743 wxColour temp2 ;
3744 PyObject * obj0 = 0 ;
3745 PyObject * obj1 = 0 ;
3746 char *kwnames[] = {
3747 (char *) "self",(char *) "colText", NULL
3748 };
3749
3750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
3751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3752 {
3753 arg2 = &temp2;
3754 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3755 }
3756 {
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 (arg1)->SetTextColour((wxColour const &)*arg2);
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 Py_INCREF(Py_None); resultobj = Py_None;
3764 return resultobj;
3765 fail:
3766 return NULL;
3767 }
3768
3769
3770 static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3771 PyObject *resultobj;
3772 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3773 wxColour *arg2 = 0 ;
3774 wxColour temp2 ;
3775 PyObject * obj0 = 0 ;
3776 PyObject * obj1 = 0 ;
3777 char *kwnames[] = {
3778 (char *) "self",(char *) "colBack", NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
3782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3783 {
3784 arg2 = &temp2;
3785 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3786 }
3787 {
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 Py_INCREF(Py_None); resultobj = Py_None;
3795 return resultobj;
3796 fail:
3797 return NULL;
3798 }
3799
3800
3801 static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3802 PyObject *resultobj;
3803 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3804 wxFont *arg2 = 0 ;
3805 PyObject * obj0 = 0 ;
3806 PyObject * obj1 = 0 ;
3807 char *kwnames[] = {
3808 (char *) "self",(char *) "font", NULL
3809 };
3810
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
3812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3813 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3814 if (arg2 == NULL) {
3815 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3816 }
3817 {
3818 PyThreadState* __tstate = wxPyBeginAllowThreads();
3819 (arg1)->SetFont((wxFont const &)*arg2);
3820
3821 wxPyEndAllowThreads(__tstate);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 }
3824 Py_INCREF(Py_None); resultobj = Py_None;
3825 return resultobj;
3826 fail:
3827 return NULL;
3828 }
3829
3830
3831 static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
3832 PyObject *resultobj;
3833 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3834 int arg2 ;
3835 int arg3 ;
3836 PyObject * obj0 = 0 ;
3837 PyObject * obj1 = 0 ;
3838 PyObject * obj2 = 0 ;
3839 char *kwnames[] = {
3840 (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL
3841 };
3842
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
3844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3845 {
3846 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3847 if (PyErr_Occurred()) SWIG_fail;
3848 }
3849 {
3850 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 (arg1)->SetAlignment(arg2,arg3);
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 Py_INCREF(Py_None); resultobj = Py_None;
3861 return resultobj;
3862 fail:
3863 return NULL;
3864 }
3865
3866
3867 static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj;
3869 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3870 int arg2 ;
3871 int arg3 ;
3872 PyObject * obj0 = 0 ;
3873 PyObject * obj1 = 0 ;
3874 PyObject * obj2 = 0 ;
3875 char *kwnames[] = {
3876 (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL
3877 };
3878
3879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttr_SetSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
3880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3881 {
3882 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 {
3886 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3887 if (PyErr_Occurred()) SWIG_fail;
3888 }
3889 {
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 (arg1)->SetSize(arg2,arg3);
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 Py_INCREF(Py_None); resultobj = Py_None;
3897 return resultobj;
3898 fail:
3899 return NULL;
3900 }
3901
3902
3903 static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
3904 PyObject *resultobj;
3905 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3906 bool arg2 = (bool) True ;
3907 PyObject * obj0 = 0 ;
3908 PyObject * obj1 = 0 ;
3909 char *kwnames[] = {
3910 (char *) "self",(char *) "allow", NULL
3911 };
3912
3913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail;
3914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3915 if (obj1) {
3916 {
3917 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
3918 if (PyErr_Occurred()) SWIG_fail;
3919 }
3920 }
3921 {
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 (arg1)->SetOverflow(arg2);
3924
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) SWIG_fail;
3927 }
3928 Py_INCREF(Py_None); resultobj = Py_None;
3929 return resultobj;
3930 fail:
3931 return NULL;
3932 }
3933
3934
3935 static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
3936 PyObject *resultobj;
3937 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3938 bool arg2 = (bool) True ;
3939 PyObject * obj0 = 0 ;
3940 PyObject * obj1 = 0 ;
3941 char *kwnames[] = {
3942 (char *) "self",(char *) "isReadOnly", NULL
3943 };
3944
3945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail;
3946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3947 if (obj1) {
3948 {
3949 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
3950 if (PyErr_Occurred()) SWIG_fail;
3951 }
3952 }
3953 {
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 (arg1)->SetReadOnly(arg2);
3956
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 Py_INCREF(Py_None); resultobj = Py_None;
3961 return resultobj;
3962 fail:
3963 return NULL;
3964 }
3965
3966
3967 static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
3968 PyObject *resultobj;
3969 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3970 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
3971 PyObject * obj0 = 0 ;
3972 PyObject * obj1 = 0 ;
3973 char *kwnames[] = {
3974 (char *) "self",(char *) "renderer", NULL
3975 };
3976
3977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail;
3978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3979 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 (arg1)->SetRenderer(arg2);
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 Py_INCREF(Py_None); resultobj = Py_None;
3988 return resultobj;
3989 fail:
3990 return NULL;
3991 }
3992
3993
3994 static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3997 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
3998 PyObject * obj0 = 0 ;
3999 PyObject * obj1 = 0 ;
4000 char *kwnames[] = {
4001 (char *) "self",(char *) "editor", NULL
4002 };
4003
4004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail;
4005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4006 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4007 {
4008 PyThreadState* __tstate = wxPyBeginAllowThreads();
4009 (arg1)->SetEditor(arg2);
4010
4011 wxPyEndAllowThreads(__tstate);
4012 if (PyErr_Occurred()) SWIG_fail;
4013 }
4014 Py_INCREF(Py_None); resultobj = Py_None;
4015 return resultobj;
4016 fail:
4017 return NULL;
4018 }
4019
4020
4021 static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
4022 PyObject *resultobj;
4023 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4024 int arg2 ;
4025 PyObject * obj0 = 0 ;
4026 PyObject * obj1 = 0 ;
4027 char *kwnames[] = {
4028 (char *) "self",(char *) "kind", NULL
4029 };
4030
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetKind",kwnames,&obj0,&obj1)) goto fail;
4032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4033 {
4034 arg2 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj1);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 {
4038 PyThreadState* __tstate = wxPyBeginAllowThreads();
4039 (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2);
4040
4041 wxPyEndAllowThreads(__tstate);
4042 if (PyErr_Occurred()) SWIG_fail;
4043 }
4044 Py_INCREF(Py_None); resultobj = Py_None;
4045 return resultobj;
4046 fail:
4047 return NULL;
4048 }
4049
4050
4051 static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4052 PyObject *resultobj;
4053 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4054 bool result;
4055 PyObject * obj0 = 0 ;
4056 char *kwnames[] = {
4057 (char *) "self", NULL
4058 };
4059
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail;
4061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4062 {
4063 PyThreadState* __tstate = wxPyBeginAllowThreads();
4064 result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour();
4065
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 resultobj = SWIG_PyObj_FromBool((bool)result);
4070 return resultobj;
4071 fail:
4072 return NULL;
4073 }
4074
4075
4076 static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4077 PyObject *resultobj;
4078 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4079 bool result;
4080 PyObject * obj0 = 0 ;
4081 char *kwnames[] = {
4082 (char *) "self", NULL
4083 };
4084
4085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
4086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour();
4090
4091 wxPyEndAllowThreads(__tstate);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
4094 resultobj = SWIG_PyObj_FromBool((bool)result);
4095 return resultobj;
4096 fail:
4097 return NULL;
4098 }
4099
4100
4101 static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4102 PyObject *resultobj;
4103 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4104 bool result;
4105 PyObject * obj0 = 0 ;
4106 char *kwnames[] = {
4107 (char *) "self", NULL
4108 };
4109
4110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail;
4111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4112 {
4113 PyThreadState* __tstate = wxPyBeginAllowThreads();
4114 result = (bool)((wxGridCellAttr const *)arg1)->HasFont();
4115
4116 wxPyEndAllowThreads(__tstate);
4117 if (PyErr_Occurred()) SWIG_fail;
4118 }
4119 resultobj = SWIG_PyObj_FromBool((bool)result);
4120 return resultobj;
4121 fail:
4122 return NULL;
4123 }
4124
4125
4126 static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4127 PyObject *resultobj;
4128 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4129 bool result;
4130 PyObject * obj0 = 0 ;
4131 char *kwnames[] = {
4132 (char *) "self", NULL
4133 };
4134
4135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail;
4136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment();
4140
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 }
4144 resultobj = SWIG_PyObj_FromBool((bool)result);
4145 return resultobj;
4146 fail:
4147 return NULL;
4148 }
4149
4150
4151 static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4152 PyObject *resultobj;
4153 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4154 bool result;
4155 PyObject * obj0 = 0 ;
4156 char *kwnames[] = {
4157 (char *) "self", NULL
4158 };
4159
4160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail;
4161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4162 {
4163 PyThreadState* __tstate = wxPyBeginAllowThreads();
4164 result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer();
4165
4166 wxPyEndAllowThreads(__tstate);
4167 if (PyErr_Occurred()) SWIG_fail;
4168 }
4169 resultobj = SWIG_PyObj_FromBool((bool)result);
4170 return resultobj;
4171 fail:
4172 return NULL;
4173 }
4174
4175
4176 static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4177 PyObject *resultobj;
4178 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4179 bool result;
4180 PyObject * obj0 = 0 ;
4181 char *kwnames[] = {
4182 (char *) "self", NULL
4183 };
4184
4185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail;
4186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4187 {
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 result = (bool)((wxGridCellAttr const *)arg1)->HasEditor();
4190
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 }
4194 resultobj = SWIG_PyObj_FromBool((bool)result);
4195 return resultobj;
4196 fail:
4197 return NULL;
4198 }
4199
4200
4201 static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) {
4202 PyObject *resultobj;
4203 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4204 bool result;
4205 PyObject * obj0 = 0 ;
4206 char *kwnames[] = {
4207 (char *) "self", NULL
4208 };
4209
4210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail;
4211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode();
4215
4216 wxPyEndAllowThreads(__tstate);
4217 if (PyErr_Occurred()) SWIG_fail;
4218 }
4219 resultobj = SWIG_PyObj_FromBool((bool)result);
4220 return resultobj;
4221 fail:
4222 return NULL;
4223 }
4224
4225
4226 static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
4227 PyObject *resultobj;
4228 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4229 bool result;
4230 PyObject * obj0 = 0 ;
4231 char *kwnames[] = {
4232 (char *) "self", NULL
4233 };
4234
4235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail;
4236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4237 {
4238 PyThreadState* __tstate = wxPyBeginAllowThreads();
4239 result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode();
4240
4241 wxPyEndAllowThreads(__tstate);
4242 if (PyErr_Occurred()) SWIG_fail;
4243 }
4244 resultobj = SWIG_PyObj_FromBool((bool)result);
4245 return resultobj;
4246 fail:
4247 return NULL;
4248 }
4249
4250
4251 static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4252 PyObject *resultobj;
4253 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4254 wxColour result;
4255 PyObject * obj0 = 0 ;
4256 char *kwnames[] = {
4257 (char *) "self", NULL
4258 };
4259
4260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail;
4261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 result = ((wxGridCellAttr const *)arg1)->GetTextColour();
4265
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 {
4270 wxColour * resultptr;
4271 resultptr = new wxColour((wxColour &) result);
4272 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
4273 }
4274 return resultobj;
4275 fail:
4276 return NULL;
4277 }
4278
4279
4280 static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4281 PyObject *resultobj;
4282 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4283 wxColour result;
4284 PyObject * obj0 = 0 ;
4285 char *kwnames[] = {
4286 (char *) "self", NULL
4287 };
4288
4289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
4290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour();
4294
4295 wxPyEndAllowThreads(__tstate);
4296 if (PyErr_Occurred()) SWIG_fail;
4297 }
4298 {
4299 wxColour * resultptr;
4300 resultptr = new wxColour((wxColour &) result);
4301 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
4302 }
4303 return resultobj;
4304 fail:
4305 return NULL;
4306 }
4307
4308
4309 static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4310 PyObject *resultobj;
4311 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4312 wxFont result;
4313 PyObject * obj0 = 0 ;
4314 char *kwnames[] = {
4315 (char *) "self", NULL
4316 };
4317
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail;
4319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4320 {
4321 PyThreadState* __tstate = wxPyBeginAllowThreads();
4322 result = ((wxGridCellAttr const *)arg1)->GetFont();
4323
4324 wxPyEndAllowThreads(__tstate);
4325 if (PyErr_Occurred()) SWIG_fail;
4326 }
4327 {
4328 wxFont * resultptr;
4329 resultptr = new wxFont((wxFont &) result);
4330 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
4331 }
4332 return resultobj;
4333 fail:
4334 return NULL;
4335 }
4336
4337
4338 static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4339 PyObject *resultobj;
4340 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4341 int *arg2 = (int *) 0 ;
4342 int *arg3 = (int *) 0 ;
4343 int temp2 ;
4344 int temp3 ;
4345 PyObject * obj0 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self", NULL
4348 };
4349
4350 arg2 = &temp2;
4351 arg3 = &temp3;
4352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail;
4353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4354 {
4355 PyThreadState* __tstate = wxPyBeginAllowThreads();
4356 ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3);
4357
4358 wxPyEndAllowThreads(__tstate);
4359 if (PyErr_Occurred()) SWIG_fail;
4360 }
4361 Py_INCREF(Py_None); resultobj = Py_None;
4362 {
4363 PyObject *o = PyInt_FromLong((long) (*arg2));
4364 resultobj = t_output_helper(resultobj,o);
4365 }
4366 {
4367 PyObject *o = PyInt_FromLong((long) (*arg3));
4368 resultobj = t_output_helper(resultobj,o);
4369 }
4370 return resultobj;
4371 fail:
4372 return NULL;
4373 }
4374
4375
4376 static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4377 PyObject *resultobj;
4378 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4379 int *arg2 = (int *) 0 ;
4380 int *arg3 = (int *) 0 ;
4381 int temp2 ;
4382 int temp3 ;
4383 PyObject * obj0 = 0 ;
4384 char *kwnames[] = {
4385 (char *) "self", NULL
4386 };
4387
4388 arg2 = &temp2;
4389 arg3 = &temp3;
4390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail;
4391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
4394 ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3);
4395
4396 wxPyEndAllowThreads(__tstate);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 Py_INCREF(Py_None); resultobj = Py_None;
4400 {
4401 PyObject *o = PyInt_FromLong((long) (*arg2));
4402 resultobj = t_output_helper(resultobj,o);
4403 }
4404 {
4405 PyObject *o = PyInt_FromLong((long) (*arg3));
4406 resultobj = t_output_helper(resultobj,o);
4407 }
4408 return resultobj;
4409 fail:
4410 return NULL;
4411 }
4412
4413
4414 static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
4415 PyObject *resultobj;
4416 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4417 bool result;
4418 PyObject * obj0 = 0 ;
4419 char *kwnames[] = {
4420 (char *) "self", NULL
4421 };
4422
4423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail;
4424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow();
4428
4429 wxPyEndAllowThreads(__tstate);
4430 if (PyErr_Occurred()) SWIG_fail;
4431 }
4432 resultobj = SWIG_PyObj_FromBool((bool)result);
4433 return resultobj;
4434 fail:
4435 return NULL;
4436 }
4437
4438
4439 static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4440 PyObject *resultobj;
4441 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4442 wxGrid *arg2 = (wxGrid *) 0 ;
4443 int arg3 ;
4444 int arg4 ;
4445 wxGridCellRenderer *result;
4446 PyObject * obj0 = 0 ;
4447 PyObject * obj1 = 0 ;
4448 PyObject * obj2 = 0 ;
4449 PyObject * obj3 = 0 ;
4450 char *kwnames[] = {
4451 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4452 };
4453
4454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4456 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4457 {
4458 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4459 if (PyErr_Occurred()) SWIG_fail;
4460 }
4461 {
4462 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 {
4466 PyThreadState* __tstate = wxPyBeginAllowThreads();
4467 result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4);
4468
4469 wxPyEndAllowThreads(__tstate);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 }
4472 {
4473 resultobj = wxPyMake_wxGridCellRenderer(result);
4474 }
4475 return resultobj;
4476 fail:
4477 return NULL;
4478 }
4479
4480
4481 static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4482 PyObject *resultobj;
4483 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4484 wxGrid *arg2 = (wxGrid *) 0 ;
4485 int arg3 ;
4486 int arg4 ;
4487 wxGridCellEditor *result;
4488 PyObject * obj0 = 0 ;
4489 PyObject * obj1 = 0 ;
4490 PyObject * obj2 = 0 ;
4491 PyObject * obj3 = 0 ;
4492 char *kwnames[] = {
4493 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4494 };
4495
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4498 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4499 {
4500 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4501 if (PyErr_Occurred()) SWIG_fail;
4502 }
4503 {
4504 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4505 if (PyErr_Occurred()) SWIG_fail;
4506 }
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4);
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 {
4515 resultobj = wxPyMake_wxGridCellEditor(result);
4516 }
4517 return resultobj;
4518 fail:
4519 return NULL;
4520 }
4521
4522
4523 static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj;
4525 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4526 bool result;
4527 PyObject * obj0 = 0 ;
4528 char *kwnames[] = {
4529 (char *) "self", NULL
4530 };
4531
4532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail;
4533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4534 {
4535 PyThreadState* __tstate = wxPyBeginAllowThreads();
4536 result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly();
4537
4538 wxPyEndAllowThreads(__tstate);
4539 if (PyErr_Occurred()) SWIG_fail;
4540 }
4541 resultobj = SWIG_PyObj_FromBool((bool)result);
4542 return resultobj;
4543 fail:
4544 return NULL;
4545 }
4546
4547
4548 static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4549 PyObject *resultobj;
4550 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4551 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4552 PyObject * obj0 = 0 ;
4553 PyObject * obj1 = 0 ;
4554 char *kwnames[] = {
4555 (char *) "self",(char *) "defAttr", NULL
4556 };
4557
4558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail;
4559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4560 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4561 {
4562 PyThreadState* __tstate = wxPyBeginAllowThreads();
4563 (arg1)->SetDefAttr(arg2);
4564
4565 wxPyEndAllowThreads(__tstate);
4566 if (PyErr_Occurred()) SWIG_fail;
4567 }
4568 Py_INCREF(Py_None); resultobj = Py_None;
4569 return resultobj;
4570 fail:
4571 return NULL;
4572 }
4573
4574
4575 static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) {
4576 PyObject *obj;
4577 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4578 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj);
4579 Py_INCREF(obj);
4580 return Py_BuildValue((char *)"");
4581 }
4582 static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4583 PyObject *resultobj;
4584 wxGridCellAttrProvider *result;
4585 char *kwnames[] = {
4586 NULL
4587 };
4588
4589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail;
4590 {
4591 PyThreadState* __tstate = wxPyBeginAllowThreads();
4592 result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider();
4593
4594 wxPyEndAllowThreads(__tstate);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 {
4598 resultobj = wxPyMake_wxGridCellAttrProvider(result);
4599 }
4600 return resultobj;
4601 fail:
4602 return NULL;
4603 }
4604
4605
4606 static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4607 PyObject *resultobj;
4608 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4609 PyObject *arg2 = (PyObject *) 0 ;
4610 PyObject * obj0 = 0 ;
4611 PyObject * obj1 = 0 ;
4612 char *kwnames[] = {
4613 (char *) "self",(char *) "_self", NULL
4614 };
4615
4616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4618 arg2 = obj1;
4619 {
4620 PyThreadState* __tstate = wxPyBeginAllowThreads();
4621 wxGridCellAttrProvider__setOORInfo(arg1,arg2);
4622
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 Py_INCREF(Py_None); resultobj = Py_None;
4627 return resultobj;
4628 fail:
4629 return NULL;
4630 }
4631
4632
4633 static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4634 PyObject *resultobj;
4635 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4636 int arg2 ;
4637 int arg3 ;
4638 int arg4 ;
4639 wxGridCellAttr *result;
4640 PyObject * obj0 = 0 ;
4641 PyObject * obj1 = 0 ;
4642 PyObject * obj2 = 0 ;
4643 PyObject * obj3 = 0 ;
4644 char *kwnames[] = {
4645 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4646 };
4647
4648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4650 {
4651 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 {
4655 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 {
4659 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3);
4660 if (PyErr_Occurred()) SWIG_fail;
4661 }
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4665
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 {
4670 resultobj = wxPyMake_wxGridCellAttr(result);
4671 }
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4679 PyObject *resultobj;
4680 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4681 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4682 int arg3 ;
4683 int arg4 ;
4684 PyObject * obj0 = 0 ;
4685 PyObject * obj1 = 0 ;
4686 PyObject * obj2 = 0 ;
4687 PyObject * obj3 = 0 ;
4688 char *kwnames[] = {
4689 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4690 };
4691
4692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4694 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4695 {
4696 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 {
4700 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 {
4704 PyThreadState* __tstate = wxPyBeginAllowThreads();
4705 (arg1)->SetAttr(arg2,arg3,arg4);
4706
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) SWIG_fail;
4709 }
4710 Py_INCREF(Py_None); resultobj = Py_None;
4711 return resultobj;
4712 fail:
4713 return NULL;
4714 }
4715
4716
4717 static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4718 PyObject *resultobj;
4719 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4720 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4721 int arg3 ;
4722 PyObject * obj0 = 0 ;
4723 PyObject * obj1 = 0 ;
4724 PyObject * obj2 = 0 ;
4725 char *kwnames[] = {
4726 (char *) "self",(char *) "attr",(char *) "row", NULL
4727 };
4728
4729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
4730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4731 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4732 {
4733 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4734 if (PyErr_Occurred()) SWIG_fail;
4735 }
4736 {
4737 PyThreadState* __tstate = wxPyBeginAllowThreads();
4738 (arg1)->SetRowAttr(arg2,arg3);
4739
4740 wxPyEndAllowThreads(__tstate);
4741 if (PyErr_Occurred()) SWIG_fail;
4742 }
4743 Py_INCREF(Py_None); resultobj = Py_None;
4744 return resultobj;
4745 fail:
4746 return NULL;
4747 }
4748
4749
4750 static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4751 PyObject *resultobj;
4752 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4753 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4754 int arg3 ;
4755 PyObject * obj0 = 0 ;
4756 PyObject * obj1 = 0 ;
4757 PyObject * obj2 = 0 ;
4758 char *kwnames[] = {
4759 (char *) "self",(char *) "attr",(char *) "col", NULL
4760 };
4761
4762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
4763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4764 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4765 {
4766 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 (arg1)->SetColAttr(arg2,arg3);
4772
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 Py_INCREF(Py_None); resultobj = Py_None;
4777 return resultobj;
4778 fail:
4779 return NULL;
4780 }
4781
4782
4783 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) {
4784 PyObject *resultobj;
4785 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4786 size_t arg2 ;
4787 int arg3 ;
4788 PyObject * obj0 = 0 ;
4789 PyObject * obj1 = 0 ;
4790 PyObject * obj2 = 0 ;
4791 char *kwnames[] = {
4792 (char *) "self",(char *) "pos",(char *) "numRows", NULL
4793 };
4794
4795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
4796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4797 {
4798 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
4799 if (PyErr_Occurred()) SWIG_fail;
4800 }
4801 {
4802 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 }
4805 {
4806 PyThreadState* __tstate = wxPyBeginAllowThreads();
4807 (arg1)->UpdateAttrRows(arg2,arg3);
4808
4809 wxPyEndAllowThreads(__tstate);
4810 if (PyErr_Occurred()) SWIG_fail;
4811 }
4812 Py_INCREF(Py_None); resultobj = Py_None;
4813 return resultobj;
4814 fail:
4815 return NULL;
4816 }
4817
4818
4819 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) {
4820 PyObject *resultobj;
4821 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4822 size_t arg2 ;
4823 int arg3 ;
4824 PyObject * obj0 = 0 ;
4825 PyObject * obj1 = 0 ;
4826 PyObject * obj2 = 0 ;
4827 char *kwnames[] = {
4828 (char *) "self",(char *) "pos",(char *) "numCols", NULL
4829 };
4830
4831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
4832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4833 {
4834 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
4835 if (PyErr_Occurred()) SWIG_fail;
4836 }
4837 {
4838 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4839 if (PyErr_Occurred()) SWIG_fail;
4840 }
4841 {
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 (arg1)->UpdateAttrCols(arg2,arg3);
4844
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 Py_INCREF(Py_None); resultobj = Py_None;
4849 return resultobj;
4850 fail:
4851 return NULL;
4852 }
4853
4854
4855 static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
4856 PyObject *obj;
4857 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4858 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj);
4859 Py_INCREF(obj);
4860 return Py_BuildValue((char *)"");
4861 }
4862 static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4863 PyObject *resultobj;
4864 wxPyGridCellAttrProvider *result;
4865 char *kwnames[] = {
4866 NULL
4867 };
4868
4869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail;
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider();
4873
4874 wxPyEndAllowThreads(__tstate);
4875 if (PyErr_Occurred()) SWIG_fail;
4876 }
4877 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellAttrProvider, 1);
4878 return resultobj;
4879 fail:
4880 return NULL;
4881 }
4882
4883
4884 static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4885 PyObject *resultobj;
4886 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4887 PyObject *arg2 = (PyObject *) 0 ;
4888 PyObject *arg3 = (PyObject *) 0 ;
4889 PyObject * obj0 = 0 ;
4890 PyObject * obj1 = 0 ;
4891 PyObject * obj2 = 0 ;
4892 char *kwnames[] = {
4893 (char *) "self",(char *) "self",(char *) "_class", NULL
4894 };
4895
4896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
4897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4898 arg2 = obj1;
4899 arg3 = obj2;
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 (arg1)->_setCallbackInfo(arg2,arg3);
4903
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 Py_INCREF(Py_None); resultobj = Py_None;
4908 return resultobj;
4909 fail:
4910 return NULL;
4911 }
4912
4913
4914 static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj;
4916 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4917 int arg2 ;
4918 int arg3 ;
4919 int arg4 ;
4920 wxGridCellAttr *result;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 PyObject * obj2 = 0 ;
4924 PyObject * obj3 = 0 ;
4925 char *kwnames[] = {
4926 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4927 };
4928
4929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4931 {
4932 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 {
4936 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 {
4940 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3);
4941 if (PyErr_Occurred()) SWIG_fail;
4942 }
4943 {
4944 PyThreadState* __tstate = wxPyBeginAllowThreads();
4945 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4946
4947 wxPyEndAllowThreads(__tstate);
4948 if (PyErr_Occurred()) SWIG_fail;
4949 }
4950 {
4951 resultobj = wxPyMake_wxGridCellAttr(result);
4952 }
4953 return resultobj;
4954 fail:
4955 return NULL;
4956 }
4957
4958
4959 static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4960 PyObject *resultobj;
4961 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4962 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4963 int arg3 ;
4964 int arg4 ;
4965 PyObject * obj0 = 0 ;
4966 PyObject * obj1 = 0 ;
4967 PyObject * obj2 = 0 ;
4968 PyObject * obj3 = 0 ;
4969 char *kwnames[] = {
4970 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4971 };
4972
4973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4975 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4976 {
4977 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 {
4981 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4982 if (PyErr_Occurred()) SWIG_fail;
4983 }
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 (arg1)->base_SetAttr(arg2,arg3,arg4);
4987
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
4991 Py_INCREF(Py_None); resultobj = Py_None;
4992 return resultobj;
4993 fail:
4994 return NULL;
4995 }
4996
4997
4998 static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4999 PyObject *resultobj;
5000 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5001 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5002 int arg3 ;
5003 PyObject * obj0 = 0 ;
5004 PyObject * obj1 = 0 ;
5005 PyObject * obj2 = 0 ;
5006 char *kwnames[] = {
5007 (char *) "self",(char *) "attr",(char *) "row", NULL
5008 };
5009
5010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
5011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5012 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5013 {
5014 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5015 if (PyErr_Occurred()) SWIG_fail;
5016 }
5017 {
5018 PyThreadState* __tstate = wxPyBeginAllowThreads();
5019 (arg1)->base_SetRowAttr(arg2,arg3);
5020
5021 wxPyEndAllowThreads(__tstate);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 Py_INCREF(Py_None); resultobj = Py_None;
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5032 PyObject *resultobj;
5033 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
5034 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5035 int arg3 ;
5036 PyObject * obj0 = 0 ;
5037 PyObject * obj1 = 0 ;
5038 PyObject * obj2 = 0 ;
5039 char *kwnames[] = {
5040 (char *) "self",(char *) "attr",(char *) "col", NULL
5041 };
5042
5043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
5044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5045 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5046 {
5047 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 }
5050 {
5051 PyThreadState* __tstate = wxPyBeginAllowThreads();
5052 (arg1)->base_SetColAttr(arg2,arg3);
5053
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 Py_INCREF(Py_None); resultobj = Py_None;
5058 return resultobj;
5059 fail:
5060 return NULL;
5061 }
5062
5063
5064 static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
5065 PyObject *obj;
5066 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5067 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj);
5068 Py_INCREF(obj);
5069 return Py_BuildValue((char *)"");
5070 }
5071 static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5074 PyObject *arg2 = (PyObject *) 0 ;
5075 PyObject * obj0 = 0 ;
5076 PyObject * obj1 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "self",(char *) "_self", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
5082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5083 arg2 = obj1;
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 wxGridTableBase__setOORInfo(arg1,arg2);
5087
5088 wxPyEndAllowThreads(__tstate);
5089 if (PyErr_Occurred()) SWIG_fail;
5090 }
5091 Py_INCREF(Py_None); resultobj = Py_None;
5092 return resultobj;
5093 fail:
5094 return NULL;
5095 }
5096
5097
5098 static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5099 PyObject *resultobj;
5100 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5101 wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ;
5102 PyObject * obj0 = 0 ;
5103 PyObject * obj1 = 0 ;
5104 char *kwnames[] = {
5105 (char *) "self",(char *) "attrProvider", NULL
5106 };
5107
5108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail;
5109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5110 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 (arg1)->SetAttrProvider(arg2);
5114
5115 wxPyEndAllowThreads(__tstate);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 Py_INCREF(Py_None); resultobj = Py_None;
5119 return resultobj;
5120 fail:
5121 return NULL;
5122 }
5123
5124
5125 static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj;
5127 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5128 wxGridCellAttrProvider *result;
5129 PyObject * obj0 = 0 ;
5130 char *kwnames[] = {
5131 (char *) "self", NULL
5132 };
5133
5134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail;
5135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5136 {
5137 PyThreadState* __tstate = wxPyBeginAllowThreads();
5138 result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider();
5139
5140 wxPyEndAllowThreads(__tstate);
5141 if (PyErr_Occurred()) SWIG_fail;
5142 }
5143 {
5144 resultobj = wxPyMake_wxGridCellAttrProvider(result);
5145 }
5146 return resultobj;
5147 fail:
5148 return NULL;
5149 }
5150
5151
5152 static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) {
5153 PyObject *resultobj;
5154 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5155 wxGrid *arg2 = (wxGrid *) 0 ;
5156 PyObject * obj0 = 0 ;
5157 PyObject * obj1 = 0 ;
5158 char *kwnames[] = {
5159 (char *) "self",(char *) "grid", NULL
5160 };
5161
5162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail;
5163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5164 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5165 {
5166 PyThreadState* __tstate = wxPyBeginAllowThreads();
5167 (arg1)->SetView(arg2);
5168
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 Py_INCREF(Py_None); resultobj = Py_None;
5173 return resultobj;
5174 fail:
5175 return NULL;
5176 }
5177
5178
5179 static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) {
5180 PyObject *resultobj;
5181 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5182 wxGrid *result;
5183 PyObject * obj0 = 0 ;
5184 char *kwnames[] = {
5185 (char *) "self", NULL
5186 };
5187
5188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail;
5189 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5190 {
5191 PyThreadState* __tstate = wxPyBeginAllowThreads();
5192 result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView();
5193
5194 wxPyEndAllowThreads(__tstate);
5195 if (PyErr_Occurred()) SWIG_fail;
5196 }
5197 {
5198 resultobj = wxPyMake_wxObject(result);
5199 }
5200 return resultobj;
5201 fail:
5202 return NULL;
5203 }
5204
5205
5206 static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5207 PyObject *resultobj;
5208 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5209 int result;
5210 PyObject * obj0 = 0 ;
5211 char *kwnames[] = {
5212 (char *) "self", NULL
5213 };
5214
5215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail;
5216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5217 {
5218 PyThreadState* __tstate = wxPyBeginAllowThreads();
5219 result = (int)(arg1)->GetNumberRows();
5220
5221 wxPyEndAllowThreads(__tstate);
5222 if (PyErr_Occurred()) SWIG_fail;
5223 }
5224 resultobj = SWIG_PyObj_FromInt((int)result);
5225 return resultobj;
5226 fail:
5227 return NULL;
5228 }
5229
5230
5231 static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5232 PyObject *resultobj;
5233 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5234 int result;
5235 PyObject * obj0 = 0 ;
5236 char *kwnames[] = {
5237 (char *) "self", NULL
5238 };
5239
5240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail;
5241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5242 {
5243 PyThreadState* __tstate = wxPyBeginAllowThreads();
5244 result = (int)(arg1)->GetNumberCols();
5245
5246 wxPyEndAllowThreads(__tstate);
5247 if (PyErr_Occurred()) SWIG_fail;
5248 }
5249 resultobj = SWIG_PyObj_FromInt((int)result);
5250 return resultobj;
5251 fail:
5252 return NULL;
5253 }
5254
5255
5256 static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) {
5257 PyObject *resultobj;
5258 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5259 int arg2 ;
5260 int arg3 ;
5261 bool result;
5262 PyObject * obj0 = 0 ;
5263 PyObject * obj1 = 0 ;
5264 PyObject * obj2 = 0 ;
5265 char *kwnames[] = {
5266 (char *) "self",(char *) "row",(char *) "col", NULL
5267 };
5268
5269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_IsEmptyCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
5270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5271 {
5272 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5273 if (PyErr_Occurred()) SWIG_fail;
5274 }
5275 {
5276 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5277 if (PyErr_Occurred()) SWIG_fail;
5278 }
5279 {
5280 PyThreadState* __tstate = wxPyBeginAllowThreads();
5281 result = (bool)(arg1)->IsEmptyCell(arg2,arg3);
5282
5283 wxPyEndAllowThreads(__tstate);
5284 if (PyErr_Occurred()) SWIG_fail;
5285 }
5286 resultobj = SWIG_PyObj_FromBool((bool)result);
5287 return resultobj;
5288 fail:
5289 return NULL;
5290 }
5291
5292
5293 static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj;
5295 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5296 int arg2 ;
5297 int arg3 ;
5298 wxString result;
5299 PyObject * obj0 = 0 ;
5300 PyObject * obj1 = 0 ;
5301 PyObject * obj2 = 0 ;
5302 char *kwnames[] = {
5303 (char *) "self",(char *) "row",(char *) "col", NULL
5304 };
5305
5306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
5307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5308 {
5309 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 {
5313 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 {
5317 PyThreadState* __tstate = wxPyBeginAllowThreads();
5318 result = (arg1)->GetValue(arg2,arg3);
5319
5320 wxPyEndAllowThreads(__tstate);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 }
5323 {
5324 #if wxUSE_UNICODE
5325 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5326 #else
5327 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5328 #endif
5329 }
5330 return resultobj;
5331 fail:
5332 return NULL;
5333 }
5334
5335
5336 static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5337 PyObject *resultobj;
5338 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5339 int arg2 ;
5340 int arg3 ;
5341 wxString *arg4 = 0 ;
5342 bool temp4 = False ;
5343 PyObject * obj0 = 0 ;
5344 PyObject * obj1 = 0 ;
5345 PyObject * obj2 = 0 ;
5346 PyObject * obj3 = 0 ;
5347 char *kwnames[] = {
5348 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5349 };
5350
5351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5353 {
5354 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5355 if (PyErr_Occurred()) SWIG_fail;
5356 }
5357 {
5358 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 }
5361 {
5362 arg4 = wxString_in_helper(obj3);
5363 if (arg4 == NULL) SWIG_fail;
5364 temp4 = True;
5365 }
5366 {
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4);
5369
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 }
5373 Py_INCREF(Py_None); resultobj = Py_None;
5374 {
5375 if (temp4)
5376 delete arg4;
5377 }
5378 return resultobj;
5379 fail:
5380 {
5381 if (temp4)
5382 delete arg4;
5383 }
5384 return NULL;
5385 }
5386
5387
5388 static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
5389 PyObject *resultobj;
5390 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5391 int arg2 ;
5392 int arg3 ;
5393 wxString result;
5394 PyObject * obj0 = 0 ;
5395 PyObject * obj1 = 0 ;
5396 PyObject * obj2 = 0 ;
5397 char *kwnames[] = {
5398 (char *) "self",(char *) "row",(char *) "col", NULL
5399 };
5400
5401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail;
5402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5403 {
5404 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 {
5408 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 {
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = (arg1)->GetTypeName(arg2,arg3);
5414
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 {
5419 #if wxUSE_UNICODE
5420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5421 #else
5422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5423 #endif
5424 }
5425 return resultobj;
5426 fail:
5427 return NULL;
5428 }
5429
5430
5431 static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5432 PyObject *resultobj;
5433 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5434 int arg2 ;
5435 int arg3 ;
5436 wxString *arg4 = 0 ;
5437 bool result;
5438 bool temp4 = False ;
5439 PyObject * obj0 = 0 ;
5440 PyObject * obj1 = 0 ;
5441 PyObject * obj2 = 0 ;
5442 PyObject * obj3 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5449 {
5450 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5451 if (PyErr_Occurred()) SWIG_fail;
5452 }
5453 {
5454 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 }
5457 {
5458 arg4 = wxString_in_helper(obj3);
5459 if (arg4 == NULL) SWIG_fail;
5460 temp4 = True;
5461 }
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 resultobj = SWIG_PyObj_FromBool((bool)result);
5470 {
5471 if (temp4)
5472 delete arg4;
5473 }
5474 return resultobj;
5475 fail:
5476 {
5477 if (temp4)
5478 delete arg4;
5479 }
5480 return NULL;
5481 }
5482
5483
5484 static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5485 PyObject *resultobj;
5486 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5487 int arg2 ;
5488 int arg3 ;
5489 wxString *arg4 = 0 ;
5490 bool result;
5491 bool temp4 = False ;
5492 PyObject * obj0 = 0 ;
5493 PyObject * obj1 = 0 ;
5494 PyObject * obj2 = 0 ;
5495 PyObject * obj3 = 0 ;
5496 char *kwnames[] = {
5497 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5498 };
5499
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5502 {
5503 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5504 if (PyErr_Occurred()) SWIG_fail;
5505 }
5506 {
5507 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 {
5511 arg4 = wxString_in_helper(obj3);
5512 if (arg4 == NULL) SWIG_fail;
5513 temp4 = True;
5514 }
5515 {
5516 PyThreadState* __tstate = wxPyBeginAllowThreads();
5517 result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
5518
5519 wxPyEndAllowThreads(__tstate);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 }
5522 resultobj = SWIG_PyObj_FromBool((bool)result);
5523 {
5524 if (temp4)
5525 delete arg4;
5526 }
5527 return resultobj;
5528 fail:
5529 {
5530 if (temp4)
5531 delete arg4;
5532 }
5533 return NULL;
5534 }
5535
5536
5537 static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5538 PyObject *resultobj;
5539 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5540 int arg2 ;
5541 int arg3 ;
5542 long result;
5543 PyObject * obj0 = 0 ;
5544 PyObject * obj1 = 0 ;
5545 PyObject * obj2 = 0 ;
5546 char *kwnames[] = {
5547 (char *) "self",(char *) "row",(char *) "col", NULL
5548 };
5549
5550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsLong",kwnames,&obj0,&obj1,&obj2)) goto fail;
5551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5552 {
5553 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5554 if (PyErr_Occurred()) SWIG_fail;
5555 }
5556 {
5557 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 {
5561 PyThreadState* __tstate = wxPyBeginAllowThreads();
5562 result = (long)(arg1)->GetValueAsLong(arg2,arg3);
5563
5564 wxPyEndAllowThreads(__tstate);
5565 if (PyErr_Occurred()) SWIG_fail;
5566 }
5567 resultobj = SWIG_PyObj_FromLong((long)result);
5568 return resultobj;
5569 fail:
5570 return NULL;
5571 }
5572
5573
5574 static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5575 PyObject *resultobj;
5576 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5577 int arg2 ;
5578 int arg3 ;
5579 double result;
5580 PyObject * obj0 = 0 ;
5581 PyObject * obj1 = 0 ;
5582 PyObject * obj2 = 0 ;
5583 char *kwnames[] = {
5584 (char *) "self",(char *) "row",(char *) "col", NULL
5585 };
5586
5587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsDouble",kwnames,&obj0,&obj1,&obj2)) goto fail;
5588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5589 {
5590 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5591 if (PyErr_Occurred()) SWIG_fail;
5592 }
5593 {
5594 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 {
5598 PyThreadState* __tstate = wxPyBeginAllowThreads();
5599 result = (double)(arg1)->GetValueAsDouble(arg2,arg3);
5600
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_PyObj_FromDouble((double)result);
5605 return resultobj;
5606 fail:
5607 return NULL;
5608 }
5609
5610
5611 static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5612 PyObject *resultobj;
5613 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5614 int arg2 ;
5615 int arg3 ;
5616 bool result;
5617 PyObject * obj0 = 0 ;
5618 PyObject * obj1 = 0 ;
5619 PyObject * obj2 = 0 ;
5620 char *kwnames[] = {
5621 (char *) "self",(char *) "row",(char *) "col", NULL
5622 };
5623
5624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_GetValueAsBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
5625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5626 {
5627 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 {
5631 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 {
5635 PyThreadState* __tstate = wxPyBeginAllowThreads();
5636 result = (bool)(arg1)->GetValueAsBool(arg2,arg3);
5637
5638 wxPyEndAllowThreads(__tstate);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 }
5641 resultobj = SWIG_PyObj_FromBool((bool)result);
5642 return resultobj;
5643 fail:
5644 return NULL;
5645 }
5646
5647
5648 static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5649 PyObject *resultobj;
5650 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5651 int arg2 ;
5652 int arg3 ;
5653 long arg4 ;
5654 PyObject * obj0 = 0 ;
5655 PyObject * obj1 = 0 ;
5656 PyObject * obj2 = 0 ;
5657 PyObject * obj3 = 0 ;
5658 char *kwnames[] = {
5659 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5660 };
5661
5662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsLong",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5664 {
5665 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5666 if (PyErr_Occurred()) SWIG_fail;
5667 }
5668 {
5669 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 {
5673 arg4 = (long) SWIG_PyObj_AsLong(obj3);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 {
5677 PyThreadState* __tstate = wxPyBeginAllowThreads();
5678 (arg1)->SetValueAsLong(arg2,arg3,arg4);
5679
5680 wxPyEndAllowThreads(__tstate);
5681 if (PyErr_Occurred()) SWIG_fail;
5682 }
5683 Py_INCREF(Py_None); resultobj = Py_None;
5684 return resultobj;
5685 fail:
5686 return NULL;
5687 }
5688
5689
5690 static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5691 PyObject *resultobj;
5692 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5693 int arg2 ;
5694 int arg3 ;
5695 double arg4 ;
5696 PyObject * obj0 = 0 ;
5697 PyObject * obj1 = 0 ;
5698 PyObject * obj2 = 0 ;
5699 PyObject * obj3 = 0 ;
5700 char *kwnames[] = {
5701 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5702 };
5703
5704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsDouble",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5706 {
5707 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 {
5711 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 {
5715 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 {
5719 PyThreadState* __tstate = wxPyBeginAllowThreads();
5720 (arg1)->SetValueAsDouble(arg2,arg3,arg4);
5721
5722 wxPyEndAllowThreads(__tstate);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 Py_INCREF(Py_None); resultobj = Py_None;
5726 return resultobj;
5727 fail:
5728 return NULL;
5729 }
5730
5731
5732 static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj;
5734 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5735 int arg2 ;
5736 int arg3 ;
5737 bool arg4 ;
5738 PyObject * obj0 = 0 ;
5739 PyObject * obj1 = 0 ;
5740 PyObject * obj2 = 0 ;
5741 PyObject * obj3 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetValueAsBool",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5748 {
5749 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 {
5753 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 {
5757 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
5758 if (PyErr_Occurred()) SWIG_fail;
5759 }
5760 {
5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
5762 (arg1)->SetValueAsBool(arg2,arg3,arg4);
5763
5764 wxPyEndAllowThreads(__tstate);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 Py_INCREF(Py_None); resultobj = Py_None;
5768 return resultobj;
5769 fail:
5770 return NULL;
5771 }
5772
5773
5774 static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5775 PyObject *resultobj;
5776 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5777 PyObject * obj0 = 0 ;
5778 char *kwnames[] = {
5779 (char *) "self", NULL
5780 };
5781
5782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail;
5783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 (arg1)->Clear();
5787
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 Py_INCREF(Py_None); resultobj = Py_None;
5792 return resultobj;
5793 fail:
5794 return NULL;
5795 }
5796
5797
5798 static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5799 PyObject *resultobj;
5800 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5801 size_t arg2 = (size_t) 0 ;
5802 size_t arg3 = (size_t) 1 ;
5803 bool result;
5804 PyObject * obj0 = 0 ;
5805 PyObject * obj1 = 0 ;
5806 PyObject * obj2 = 0 ;
5807 char *kwnames[] = {
5808 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5809 };
5810
5811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5813 if (obj1) {
5814 {
5815 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
5816 if (PyErr_Occurred()) SWIG_fail;
5817 }
5818 }
5819 if (obj2) {
5820 {
5821 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
5822 if (PyErr_Occurred()) SWIG_fail;
5823 }
5824 }
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = (bool)(arg1)->InsertRows(arg2,arg3);
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 resultobj = SWIG_PyObj_FromBool((bool)result);
5833 return resultobj;
5834 fail:
5835 return NULL;
5836 }
5837
5838
5839 static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj;
5841 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5842 size_t arg2 = (size_t) 1 ;
5843 bool result;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 char *kwnames[] = {
5847 (char *) "self",(char *) "numRows", NULL
5848 };
5849
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail;
5851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5852 if (obj1) {
5853 {
5854 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
5855 if (PyErr_Occurred()) SWIG_fail;
5856 }
5857 }
5858 {
5859 PyThreadState* __tstate = wxPyBeginAllowThreads();
5860 result = (bool)(arg1)->AppendRows(arg2);
5861
5862 wxPyEndAllowThreads(__tstate);
5863 if (PyErr_Occurred()) SWIG_fail;
5864 }
5865 resultobj = SWIG_PyObj_FromBool((bool)result);
5866 return resultobj;
5867 fail:
5868 return NULL;
5869 }
5870
5871
5872 static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5873 PyObject *resultobj;
5874 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5875 size_t arg2 = (size_t) 0 ;
5876 size_t arg3 = (size_t) 1 ;
5877 bool result;
5878 PyObject * obj0 = 0 ;
5879 PyObject * obj1 = 0 ;
5880 PyObject * obj2 = 0 ;
5881 char *kwnames[] = {
5882 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5883 };
5884
5885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5887 if (obj1) {
5888 {
5889 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 }
5893 if (obj2) {
5894 {
5895 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 }
5899 {
5900 PyThreadState* __tstate = wxPyBeginAllowThreads();
5901 result = (bool)(arg1)->DeleteRows(arg2,arg3);
5902
5903 wxPyEndAllowThreads(__tstate);
5904 if (PyErr_Occurred()) SWIG_fail;
5905 }
5906 resultobj = SWIG_PyObj_FromBool((bool)result);
5907 return resultobj;
5908 fail:
5909 return NULL;
5910 }
5911
5912
5913 static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5914 PyObject *resultobj;
5915 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5916 size_t arg2 = (size_t) 0 ;
5917 size_t arg3 = (size_t) 1 ;
5918 bool result;
5919 PyObject * obj0 = 0 ;
5920 PyObject * obj1 = 0 ;
5921 PyObject * obj2 = 0 ;
5922 char *kwnames[] = {
5923 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5924 };
5925
5926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5928 if (obj1) {
5929 {
5930 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
5931 if (PyErr_Occurred()) SWIG_fail;
5932 }
5933 }
5934 if (obj2) {
5935 {
5936 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
5937 if (PyErr_Occurred()) SWIG_fail;
5938 }
5939 }
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 result = (bool)(arg1)->InsertCols(arg2,arg3);
5943
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_PyObj_FromBool((bool)result);
5948 return resultobj;
5949 fail:
5950 return NULL;
5951 }
5952
5953
5954 static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj;
5956 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5957 size_t arg2 = (size_t) 1 ;
5958 bool result;
5959 PyObject * obj0 = 0 ;
5960 PyObject * obj1 = 0 ;
5961 char *kwnames[] = {
5962 (char *) "self",(char *) "numCols", NULL
5963 };
5964
5965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail;
5966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5967 if (obj1) {
5968 {
5969 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 }
5972 }
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (bool)(arg1)->AppendCols(arg2);
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 resultobj = SWIG_PyObj_FromBool((bool)result);
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj;
5989 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5990 size_t arg2 = (size_t) 0 ;
5991 size_t arg3 = (size_t) 1 ;
5992 bool result;
5993 PyObject * obj0 = 0 ;
5994 PyObject * obj1 = 0 ;
5995 PyObject * obj2 = 0 ;
5996 char *kwnames[] = {
5997 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5998 };
5999
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6002 if (obj1) {
6003 {
6004 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
6005 if (PyErr_Occurred()) SWIG_fail;
6006 }
6007 }
6008 if (obj2) {
6009 {
6010 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 }
6014 {
6015 PyThreadState* __tstate = wxPyBeginAllowThreads();
6016 result = (bool)(arg1)->DeleteCols(arg2,arg3);
6017
6018 wxPyEndAllowThreads(__tstate);
6019 if (PyErr_Occurred()) SWIG_fail;
6020 }
6021 resultobj = SWIG_PyObj_FromBool((bool)result);
6022 return resultobj;
6023 fail:
6024 return NULL;
6025 }
6026
6027
6028 static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6029 PyObject *resultobj;
6030 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6031 int arg2 ;
6032 wxString result;
6033 PyObject * obj0 = 0 ;
6034 PyObject * obj1 = 0 ;
6035 char *kwnames[] = {
6036 (char *) "self",(char *) "row", NULL
6037 };
6038
6039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
6040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6041 {
6042 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 result = (arg1)->GetRowLabelValue(arg2);
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 {
6053 #if wxUSE_UNICODE
6054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6055 #else
6056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6057 #endif
6058 }
6059 return resultobj;
6060 fail:
6061 return NULL;
6062 }
6063
6064
6065 static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6066 PyObject *resultobj;
6067 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6068 int arg2 ;
6069 wxString result;
6070 PyObject * obj0 = 0 ;
6071 PyObject * obj1 = 0 ;
6072 char *kwnames[] = {
6073 (char *) "self",(char *) "col", NULL
6074 };
6075
6076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
6077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6078 {
6079 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6080 if (PyErr_Occurred()) SWIG_fail;
6081 }
6082 {
6083 PyThreadState* __tstate = wxPyBeginAllowThreads();
6084 result = (arg1)->GetColLabelValue(arg2);
6085
6086 wxPyEndAllowThreads(__tstate);
6087 if (PyErr_Occurred()) SWIG_fail;
6088 }
6089 {
6090 #if wxUSE_UNICODE
6091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6092 #else
6093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6094 #endif
6095 }
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj;
6104 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6105 int arg2 ;
6106 wxString *arg3 = 0 ;
6107 bool temp3 = False ;
6108 PyObject * obj0 = 0 ;
6109 PyObject * obj1 = 0 ;
6110 PyObject * obj2 = 0 ;
6111 char *kwnames[] = {
6112 (char *) "self",(char *) "row",(char *) "value", NULL
6113 };
6114
6115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
6116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6117 {
6118 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 {
6122 arg3 = wxString_in_helper(obj2);
6123 if (arg3 == NULL) SWIG_fail;
6124 temp3 = True;
6125 }
6126 {
6127 PyThreadState* __tstate = wxPyBeginAllowThreads();
6128 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
6129
6130 wxPyEndAllowThreads(__tstate);
6131 if (PyErr_Occurred()) SWIG_fail;
6132 }
6133 Py_INCREF(Py_None); resultobj = Py_None;
6134 {
6135 if (temp3)
6136 delete arg3;
6137 }
6138 return resultobj;
6139 fail:
6140 {
6141 if (temp3)
6142 delete arg3;
6143 }
6144 return NULL;
6145 }
6146
6147
6148 static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6149 PyObject *resultobj;
6150 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6151 int arg2 ;
6152 wxString *arg3 = 0 ;
6153 bool temp3 = False ;
6154 PyObject * obj0 = 0 ;
6155 PyObject * obj1 = 0 ;
6156 PyObject * obj2 = 0 ;
6157 char *kwnames[] = {
6158 (char *) "self",(char *) "col",(char *) "value", NULL
6159 };
6160
6161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
6162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6163 {
6164 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6165 if (PyErr_Occurred()) SWIG_fail;
6166 }
6167 {
6168 arg3 = wxString_in_helper(obj2);
6169 if (arg3 == NULL) SWIG_fail;
6170 temp3 = True;
6171 }
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
6175
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 Py_INCREF(Py_None); resultobj = Py_None;
6180 {
6181 if (temp3)
6182 delete arg3;
6183 }
6184 return resultobj;
6185 fail:
6186 {
6187 if (temp3)
6188 delete arg3;
6189 }
6190 return NULL;
6191 }
6192
6193
6194 static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6195 PyObject *resultobj;
6196 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6197 bool result;
6198 PyObject * obj0 = 0 ;
6199 char *kwnames[] = {
6200 (char *) "self", NULL
6201 };
6202
6203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail;
6204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6205 {
6206 PyThreadState* __tstate = wxPyBeginAllowThreads();
6207 result = (bool)(arg1)->CanHaveAttributes();
6208
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 resultobj = SWIG_PyObj_FromBool((bool)result);
6213 return resultobj;
6214 fail:
6215 return NULL;
6216 }
6217
6218
6219 static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6220 PyObject *resultobj;
6221 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6222 int arg2 ;
6223 int arg3 ;
6224 int arg4 ;
6225 wxGridCellAttr *result;
6226 PyObject * obj0 = 0 ;
6227 PyObject * obj1 = 0 ;
6228 PyObject * obj2 = 0 ;
6229 PyObject * obj3 = 0 ;
6230 char *kwnames[] = {
6231 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
6232 };
6233
6234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6236 {
6237 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6238 if (PyErr_Occurred()) SWIG_fail;
6239 }
6240 {
6241 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 {
6245 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3);
6246 if (PyErr_Occurred()) SWIG_fail;
6247 }
6248 {
6249 PyThreadState* __tstate = wxPyBeginAllowThreads();
6250 result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
6251
6252 wxPyEndAllowThreads(__tstate);
6253 if (PyErr_Occurred()) SWIG_fail;
6254 }
6255 {
6256 resultobj = wxPyMake_wxGridCellAttr(result);
6257 }
6258 return resultobj;
6259 fail:
6260 return NULL;
6261 }
6262
6263
6264 static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj;
6266 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6267 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6268 int arg3 ;
6269 int arg4 ;
6270 PyObject * obj0 = 0 ;
6271 PyObject * obj1 = 0 ;
6272 PyObject * obj2 = 0 ;
6273 PyObject * obj3 = 0 ;
6274 char *kwnames[] = {
6275 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
6276 };
6277
6278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6280 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6281 {
6282 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 {
6286 arg4 = (int) SWIG_PyObj_AsInt(obj3);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 }
6289 {
6290 PyThreadState* __tstate = wxPyBeginAllowThreads();
6291 (arg1)->SetAttr(arg2,arg3,arg4);
6292
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 Py_INCREF(Py_None); resultobj = Py_None;
6297 return resultobj;
6298 fail:
6299 return NULL;
6300 }
6301
6302
6303 static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj;
6305 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6306 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6307 int arg3 ;
6308 PyObject * obj0 = 0 ;
6309 PyObject * obj1 = 0 ;
6310 PyObject * obj2 = 0 ;
6311 char *kwnames[] = {
6312 (char *) "self",(char *) "attr",(char *) "row", NULL
6313 };
6314
6315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
6316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6317 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6318 {
6319 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6320 if (PyErr_Occurred()) SWIG_fail;
6321 }
6322 {
6323 PyThreadState* __tstate = wxPyBeginAllowThreads();
6324 (arg1)->SetRowAttr(arg2,arg3);
6325
6326 wxPyEndAllowThreads(__tstate);
6327 if (PyErr_Occurred()) SWIG_fail;
6328 }
6329 Py_INCREF(Py_None); resultobj = Py_None;
6330 return resultobj;
6331 fail:
6332 return NULL;
6333 }
6334
6335
6336 static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6337 PyObject *resultobj;
6338 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6339 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6340 int arg3 ;
6341 PyObject * obj0 = 0 ;
6342 PyObject * obj1 = 0 ;
6343 PyObject * obj2 = 0 ;
6344 char *kwnames[] = {
6345 (char *) "self",(char *) "attr",(char *) "col", NULL
6346 };
6347
6348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
6349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6350 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6351 {
6352 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 {
6356 PyThreadState* __tstate = wxPyBeginAllowThreads();
6357 (arg1)->SetColAttr(arg2,arg3);
6358
6359 wxPyEndAllowThreads(__tstate);
6360 if (PyErr_Occurred()) SWIG_fail;
6361 }
6362 Py_INCREF(Py_None); resultobj = Py_None;
6363 return resultobj;
6364 fail:
6365 return NULL;
6366 }
6367
6368
6369 static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) {
6370 PyObject *obj;
6371 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6372 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj);
6373 Py_INCREF(obj);
6374 return Py_BuildValue((char *)"");
6375 }
6376 static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) {
6377 PyObject *resultobj;
6378 wxPyGridTableBase *result;
6379 char *kwnames[] = {
6380 NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail;
6384 {
6385 PyThreadState* __tstate = wxPyBeginAllowThreads();
6386 result = (wxPyGridTableBase *)new wxPyGridTableBase();
6387
6388 wxPyEndAllowThreads(__tstate);
6389 if (PyErr_Occurred()) SWIG_fail;
6390 }
6391 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridTableBase, 1);
6392 return resultobj;
6393 fail:
6394 return NULL;
6395 }
6396
6397
6398 static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6399 PyObject *resultobj;
6400 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6401 PyObject *arg2 = (PyObject *) 0 ;
6402 PyObject *arg3 = (PyObject *) 0 ;
6403 PyObject * obj0 = 0 ;
6404 PyObject * obj1 = 0 ;
6405 PyObject * obj2 = 0 ;
6406 char *kwnames[] = {
6407 (char *) "self",(char *) "self",(char *) "_class", NULL
6408 };
6409
6410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6412 arg2 = obj1;
6413 arg3 = obj2;
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->_setCallbackInfo(arg2,arg3);
6417
6418 wxPyEndAllowThreads(__tstate);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 Py_INCREF(Py_None); resultobj = Py_None;
6422 return resultobj;
6423 fail:
6424 return NULL;
6425 }
6426
6427
6428 static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6429 PyObject *resultobj;
6430 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6431 PyObject * obj0 = 0 ;
6432 char *kwnames[] = {
6433 (char *) "self", NULL
6434 };
6435
6436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail;
6437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6438 {
6439 PyThreadState* __tstate = wxPyBeginAllowThreads();
6440 wxPyGridTableBase_Destroy(arg1);
6441
6442 wxPyEndAllowThreads(__tstate);
6443 if (PyErr_Occurred()) SWIG_fail;
6444 }
6445 Py_INCREF(Py_None); resultobj = Py_None;
6446 return resultobj;
6447 fail:
6448 return NULL;
6449 }
6450
6451
6452 static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
6453 PyObject *resultobj;
6454 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6455 int arg2 ;
6456 int arg3 ;
6457 wxString result;
6458 PyObject * obj0 = 0 ;
6459 PyObject * obj1 = 0 ;
6460 PyObject * obj2 = 0 ;
6461 char *kwnames[] = {
6462 (char *) "self",(char *) "row",(char *) "col", NULL
6463 };
6464
6465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&obj1,&obj2)) goto fail;
6466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6467 {
6468 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 {
6472 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6473 if (PyErr_Occurred()) SWIG_fail;
6474 }
6475 {
6476 PyThreadState* __tstate = wxPyBeginAllowThreads();
6477 result = (arg1)->base_GetTypeName(arg2,arg3);
6478
6479 wxPyEndAllowThreads(__tstate);
6480 if (PyErr_Occurred()) SWIG_fail;
6481 }
6482 {
6483 #if wxUSE_UNICODE
6484 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6485 #else
6486 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6487 #endif
6488 }
6489 return resultobj;
6490 fail:
6491 return NULL;
6492 }
6493
6494
6495 static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
6496 PyObject *resultobj;
6497 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6498 int arg2 ;
6499 int arg3 ;
6500 wxString *arg4 = 0 ;
6501 bool result;
6502 bool temp4 = False ;
6503 PyObject * obj0 = 0 ;
6504 PyObject * obj1 = 0 ;
6505 PyObject * obj2 = 0 ;
6506 PyObject * obj3 = 0 ;
6507 char *kwnames[] = {
6508 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
6509 };
6510
6511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6513 {
6514 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6515 if (PyErr_Occurred()) SWIG_fail;
6516 }
6517 {
6518 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6519 if (PyErr_Occurred()) SWIG_fail;
6520 }
6521 {
6522 arg4 = wxString_in_helper(obj3);
6523 if (arg4 == NULL) SWIG_fail;
6524 temp4 = True;
6525 }
6526 {
6527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6528 result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
6529
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 resultobj = SWIG_PyObj_FromBool((bool)result);
6534 {
6535 if (temp4)
6536 delete arg4;
6537 }
6538 return resultobj;
6539 fail:
6540 {
6541 if (temp4)
6542 delete arg4;
6543 }
6544 return NULL;
6545 }
6546
6547
6548 static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
6549 PyObject *resultobj;
6550 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6551 int arg2 ;
6552 int arg3 ;
6553 wxString *arg4 = 0 ;
6554 bool result;
6555 bool temp4 = False ;
6556 PyObject * obj0 = 0 ;
6557 PyObject * obj1 = 0 ;
6558 PyObject * obj2 = 0 ;
6559 PyObject * obj3 = 0 ;
6560 char *kwnames[] = {
6561 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
6562 };
6563
6564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6566 {
6567 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6568 if (PyErr_Occurred()) SWIG_fail;
6569 }
6570 {
6571 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6572 if (PyErr_Occurred()) SWIG_fail;
6573 }
6574 {
6575 arg4 = wxString_in_helper(obj3);
6576 if (arg4 == NULL) SWIG_fail;
6577 temp4 = True;
6578 }
6579 {
6580 PyThreadState* __tstate = wxPyBeginAllowThreads();
6581 result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
6582
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 resultobj = SWIG_PyObj_FromBool((bool)result);
6587 {
6588 if (temp4)
6589 delete arg4;
6590 }
6591 return resultobj;
6592 fail:
6593 {
6594 if (temp4)
6595 delete arg4;
6596 }
6597 return NULL;
6598 }
6599
6600
6601 static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6602 PyObject *resultobj;
6603 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6604 PyObject * obj0 = 0 ;
6605 char *kwnames[] = {
6606 (char *) "self", NULL
6607 };
6608
6609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail;
6610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6611 {
6612 PyThreadState* __tstate = wxPyBeginAllowThreads();
6613 (arg1)->base_Clear();
6614
6615 wxPyEndAllowThreads(__tstate);
6616 if (PyErr_Occurred()) SWIG_fail;
6617 }
6618 Py_INCREF(Py_None); resultobj = Py_None;
6619 return resultobj;
6620 fail:
6621 return NULL;
6622 }
6623
6624
6625 static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6626 PyObject *resultobj;
6627 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6628 size_t arg2 = (size_t) 0 ;
6629 size_t arg3 = (size_t) 1 ;
6630 bool result;
6631 PyObject * obj0 = 0 ;
6632 PyObject * obj1 = 0 ;
6633 PyObject * obj2 = 0 ;
6634 char *kwnames[] = {
6635 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6636 };
6637
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6640 if (obj1) {
6641 {
6642 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 }
6646 if (obj2) {
6647 {
6648 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 }
6651 }
6652 {
6653 PyThreadState* __tstate = wxPyBeginAllowThreads();
6654 result = (bool)(arg1)->base_InsertRows(arg2,arg3);
6655
6656 wxPyEndAllowThreads(__tstate);
6657 if (PyErr_Occurred()) SWIG_fail;
6658 }
6659 resultobj = SWIG_PyObj_FromBool((bool)result);
6660 return resultobj;
6661 fail:
6662 return NULL;
6663 }
6664
6665
6666 static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6667 PyObject *resultobj;
6668 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6669 size_t arg2 = (size_t) 1 ;
6670 bool result;
6671 PyObject * obj0 = 0 ;
6672 PyObject * obj1 = 0 ;
6673 char *kwnames[] = {
6674 (char *) "self",(char *) "numRows", NULL
6675 };
6676
6677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail;
6678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6679 if (obj1) {
6680 {
6681 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
6682 if (PyErr_Occurred()) SWIG_fail;
6683 }
6684 }
6685 {
6686 PyThreadState* __tstate = wxPyBeginAllowThreads();
6687 result = (bool)(arg1)->base_AppendRows(arg2);
6688
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 resultobj = SWIG_PyObj_FromBool((bool)result);
6693 return resultobj;
6694 fail:
6695 return NULL;
6696 }
6697
6698
6699 static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6700 PyObject *resultobj;
6701 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6702 size_t arg2 = (size_t) 0 ;
6703 size_t arg3 = (size_t) 1 ;
6704 bool result;
6705 PyObject * obj0 = 0 ;
6706 PyObject * obj1 = 0 ;
6707 PyObject * obj2 = 0 ;
6708 char *kwnames[] = {
6709 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6710 };
6711
6712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6714 if (obj1) {
6715 {
6716 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 }
6719 }
6720 if (obj2) {
6721 {
6722 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
6723 if (PyErr_Occurred()) SWIG_fail;
6724 }
6725 }
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 result = (bool)(arg1)->base_DeleteRows(arg2,arg3);
6729
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 resultobj = SWIG_PyObj_FromBool((bool)result);
6734 return resultobj;
6735 fail:
6736 return NULL;
6737 }
6738
6739
6740 static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6743 size_t arg2 = (size_t) 0 ;
6744 size_t arg3 = (size_t) 1 ;
6745 bool result;
6746 PyObject * obj0 = 0 ;
6747 PyObject * obj1 = 0 ;
6748 PyObject * obj2 = 0 ;
6749 char *kwnames[] = {
6750 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6751 };
6752
6753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6755 if (obj1) {
6756 {
6757 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 }
6761 if (obj2) {
6762 {
6763 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
6764 if (PyErr_Occurred()) SWIG_fail;
6765 }
6766 }
6767 {
6768 PyThreadState* __tstate = wxPyBeginAllowThreads();
6769 result = (bool)(arg1)->base_InsertCols(arg2,arg3);
6770
6771 wxPyEndAllowThreads(__tstate);
6772 if (PyErr_Occurred()) SWIG_fail;
6773 }
6774 resultobj = SWIG_PyObj_FromBool((bool)result);
6775 return resultobj;
6776 fail:
6777 return NULL;
6778 }
6779
6780
6781 static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6782 PyObject *resultobj;
6783 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6784 size_t arg2 = (size_t) 1 ;
6785 bool result;
6786 PyObject * obj0 = 0 ;
6787 PyObject * obj1 = 0 ;
6788 char *kwnames[] = {
6789 (char *) "self",(char *) "numCols", NULL
6790 };
6791
6792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail;
6793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6794 if (obj1) {
6795 {
6796 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
6797 if (PyErr_Occurred()) SWIG_fail;
6798 }
6799 }
6800 {
6801 PyThreadState* __tstate = wxPyBeginAllowThreads();
6802 result = (bool)(arg1)->base_AppendCols(arg2);
6803
6804 wxPyEndAllowThreads(__tstate);
6805 if (PyErr_Occurred()) SWIG_fail;
6806 }
6807 resultobj = SWIG_PyObj_FromBool((bool)result);
6808 return resultobj;
6809 fail:
6810 return NULL;
6811 }
6812
6813
6814 static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6815 PyObject *resultobj;
6816 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6817 size_t arg2 = (size_t) 0 ;
6818 size_t arg3 = (size_t) 1 ;
6819 bool result;
6820 PyObject * obj0 = 0 ;
6821 PyObject * obj1 = 0 ;
6822 PyObject * obj2 = 0 ;
6823 char *kwnames[] = {
6824 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6825 };
6826
6827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6829 if (obj1) {
6830 {
6831 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
6832 if (PyErr_Occurred()) SWIG_fail;
6833 }
6834 }
6835 if (obj2) {
6836 {
6837 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 }
6841 {
6842 PyThreadState* __tstate = wxPyBeginAllowThreads();
6843 result = (bool)(arg1)->base_DeleteCols(arg2,arg3);
6844
6845 wxPyEndAllowThreads(__tstate);
6846 if (PyErr_Occurred()) SWIG_fail;
6847 }
6848 resultobj = SWIG_PyObj_FromBool((bool)result);
6849 return resultobj;
6850 fail:
6851 return NULL;
6852 }
6853
6854
6855 static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6856 PyObject *resultobj;
6857 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6858 int arg2 ;
6859 wxString result;
6860 PyObject * obj0 = 0 ;
6861 PyObject * obj1 = 0 ;
6862 char *kwnames[] = {
6863 (char *) "self",(char *) "row", NULL
6864 };
6865
6866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
6867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6868 {
6869 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6870 if (PyErr_Occurred()) SWIG_fail;
6871 }
6872 {
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 result = (arg1)->base_GetRowLabelValue(arg2);
6875
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 {
6880 #if wxUSE_UNICODE
6881 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6882 #else
6883 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6884 #endif
6885 }
6886 return resultobj;
6887 fail:
6888 return NULL;
6889 }
6890
6891
6892 static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj;
6894 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6895 int arg2 ;
6896 wxString result;
6897 PyObject * obj0 = 0 ;
6898 PyObject * obj1 = 0 ;
6899 char *kwnames[] = {
6900 (char *) "self",(char *) "col", NULL
6901 };
6902
6903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
6904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6905 {
6906 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6907 if (PyErr_Occurred()) SWIG_fail;
6908 }
6909 {
6910 PyThreadState* __tstate = wxPyBeginAllowThreads();
6911 result = (arg1)->base_GetColLabelValue(arg2);
6912
6913 wxPyEndAllowThreads(__tstate);
6914 if (PyErr_Occurred()) SWIG_fail;
6915 }
6916 {
6917 #if wxUSE_UNICODE
6918 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6919 #else
6920 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6921 #endif
6922 }
6923 return resultobj;
6924 fail:
6925 return NULL;
6926 }
6927
6928
6929 static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj;
6931 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6932 int arg2 ;
6933 wxString *arg3 = 0 ;
6934 bool temp3 = False ;
6935 PyObject * obj0 = 0 ;
6936 PyObject * obj1 = 0 ;
6937 PyObject * obj2 = 0 ;
6938 char *kwnames[] = {
6939 (char *) "self",(char *) "row",(char *) "value", NULL
6940 };
6941
6942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
6943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6944 {
6945 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6946 if (PyErr_Occurred()) SWIG_fail;
6947 }
6948 {
6949 arg3 = wxString_in_helper(obj2);
6950 if (arg3 == NULL) SWIG_fail;
6951 temp3 = True;
6952 }
6953 {
6954 PyThreadState* __tstate = wxPyBeginAllowThreads();
6955 (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3);
6956
6957 wxPyEndAllowThreads(__tstate);
6958 if (PyErr_Occurred()) SWIG_fail;
6959 }
6960 Py_INCREF(Py_None); resultobj = Py_None;
6961 {
6962 if (temp3)
6963 delete arg3;
6964 }
6965 return resultobj;
6966 fail:
6967 {
6968 if (temp3)
6969 delete arg3;
6970 }
6971 return NULL;
6972 }
6973
6974
6975 static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6976 PyObject *resultobj;
6977 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6978 int arg2 ;
6979 wxString *arg3 = 0 ;
6980 bool temp3 = False ;
6981 PyObject * obj0 = 0 ;
6982 PyObject * obj1 = 0 ;
6983 PyObject * obj2 = 0 ;
6984 char *kwnames[] = {
6985 (char *) "self",(char *) "col",(char *) "value", NULL
6986 };
6987
6988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
6989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6990 {
6991 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 {
6995 arg3 = wxString_in_helper(obj2);
6996 if (arg3 == NULL) SWIG_fail;
6997 temp3 = True;
6998 }
6999 {
7000 PyThreadState* __tstate = wxPyBeginAllowThreads();
7001 (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3);
7002
7003 wxPyEndAllowThreads(__tstate);
7004 if (PyErr_Occurred()) SWIG_fail;
7005 }
7006 Py_INCREF(Py_None); resultobj = Py_None;
7007 {
7008 if (temp3)
7009 delete arg3;
7010 }
7011 return resultobj;
7012 fail:
7013 {
7014 if (temp3)
7015 delete arg3;
7016 }
7017 return NULL;
7018 }
7019
7020
7021 static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
7022 PyObject *resultobj;
7023 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7024 bool result;
7025 PyObject * obj0 = 0 ;
7026 char *kwnames[] = {
7027 (char *) "self", NULL
7028 };
7029
7030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail;
7031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 result = (bool)(arg1)->base_CanHaveAttributes();
7035
7036 wxPyEndAllowThreads(__tstate);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 resultobj = SWIG_PyObj_FromBool((bool)result);
7040 return resultobj;
7041 fail:
7042 return NULL;
7043 }
7044
7045
7046 static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj;
7048 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7049 int arg2 ;
7050 int arg3 ;
7051 int arg4 ;
7052 wxGridCellAttr *result;
7053 PyObject * obj0 = 0 ;
7054 PyObject * obj1 = 0 ;
7055 PyObject * obj2 = 0 ;
7056 PyObject * obj3 = 0 ;
7057 char *kwnames[] = {
7058 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
7059 };
7060
7061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_GetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7063 {
7064 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 {
7068 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7069 if (PyErr_Occurred()) SWIG_fail;
7070 }
7071 {
7072 arg4 = (wxGridCellAttr::wxAttrKind) SWIG_PyObj_AsInt(obj3);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 {
7076 PyThreadState* __tstate = wxPyBeginAllowThreads();
7077 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
7078
7079 wxPyEndAllowThreads(__tstate);
7080 if (PyErr_Occurred()) SWIG_fail;
7081 }
7082 {
7083 resultobj = wxPyMake_wxGridCellAttr(result);
7084 }
7085 return resultobj;
7086 fail:
7087 return NULL;
7088 }
7089
7090
7091 static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7092 PyObject *resultobj;
7093 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7094 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7095 int arg3 ;
7096 int arg4 ;
7097 PyObject * obj0 = 0 ;
7098 PyObject * obj1 = 0 ;
7099 PyObject * obj2 = 0 ;
7100 PyObject * obj3 = 0 ;
7101 char *kwnames[] = {
7102 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
7103 };
7104
7105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7107 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7108 {
7109 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 {
7113 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 (arg1)->base_SetAttr(arg2,arg3,arg4);
7119
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 Py_INCREF(Py_None); resultobj = Py_None;
7124 return resultobj;
7125 fail:
7126 return NULL;
7127 }
7128
7129
7130 static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7131 PyObject *resultobj;
7132 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7133 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7134 int arg3 ;
7135 PyObject * obj0 = 0 ;
7136 PyObject * obj1 = 0 ;
7137 PyObject * obj2 = 0 ;
7138 char *kwnames[] = {
7139 (char *) "self",(char *) "attr",(char *) "row", NULL
7140 };
7141
7142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
7143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7144 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7145 {
7146 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
7149 {
7150 PyThreadState* __tstate = wxPyBeginAllowThreads();
7151 (arg1)->base_SetRowAttr(arg2,arg3);
7152
7153 wxPyEndAllowThreads(__tstate);
7154 if (PyErr_Occurred()) SWIG_fail;
7155 }
7156 Py_INCREF(Py_None); resultobj = Py_None;
7157 return resultobj;
7158 fail:
7159 return NULL;
7160 }
7161
7162
7163 static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
7164 PyObject *resultobj;
7165 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
7166 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
7167 int arg3 ;
7168 PyObject * obj0 = 0 ;
7169 PyObject * obj1 = 0 ;
7170 PyObject * obj2 = 0 ;
7171 char *kwnames[] = {
7172 (char *) "self",(char *) "attr",(char *) "col", NULL
7173 };
7174
7175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
7176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7177 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7178 {
7179 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7180 if (PyErr_Occurred()) SWIG_fail;
7181 }
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 (arg1)->base_SetColAttr(arg2,arg3);
7185
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 Py_INCREF(Py_None); resultobj = Py_None;
7190 return resultobj;
7191 fail:
7192 return NULL;
7193 }
7194
7195
7196 static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) {
7197 PyObject *obj;
7198 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7199 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj);
7200 Py_INCREF(obj);
7201 return Py_BuildValue((char *)"");
7202 }
7203 static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7204 PyObject *resultobj;
7205 int arg1 = (int) 0 ;
7206 int arg2 = (int) 0 ;
7207 wxGridStringTable *result;
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 char *kwnames[] = {
7211 (char *) "numRows",(char *) "numCols", NULL
7212 };
7213
7214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridStringTable",kwnames,&obj0,&obj1)) goto fail;
7215 if (obj0) {
7216 {
7217 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7218 if (PyErr_Occurred()) SWIG_fail;
7219 }
7220 }
7221 if (obj1) {
7222 {
7223 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7224 if (PyErr_Occurred()) SWIG_fail;
7225 }
7226 }
7227 {
7228 PyThreadState* __tstate = wxPyBeginAllowThreads();
7229 result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2);
7230
7231 wxPyEndAllowThreads(__tstate);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridStringTable, 1);
7235 return resultobj;
7236 fail:
7237 return NULL;
7238 }
7239
7240
7241 static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) {
7242 PyObject *obj;
7243 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7244 SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj);
7245 Py_INCREF(obj);
7246 return Py_BuildValue((char *)"");
7247 }
7248 static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj;
7250 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
7251 int arg2 ;
7252 int arg3 = (int) -1 ;
7253 int arg4 = (int) -1 ;
7254 wxGridTableMessage *result;
7255 PyObject * obj0 = 0 ;
7256 PyObject * obj1 = 0 ;
7257 PyObject * obj2 = 0 ;
7258 PyObject * obj3 = 0 ;
7259 char *kwnames[] = {
7260 (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL
7261 };
7262
7263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_GridTableMessage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7265 {
7266 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7267 if (PyErr_Occurred()) SWIG_fail;
7268 }
7269 if (obj2) {
7270 {
7271 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7272 if (PyErr_Occurred()) SWIG_fail;
7273 }
7274 }
7275 if (obj3) {
7276 {
7277 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 }
7281 {
7282 PyThreadState* __tstate = wxPyBeginAllowThreads();
7283 result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4);
7284
7285 wxPyEndAllowThreads(__tstate);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridTableMessage, 1);
7289 return resultobj;
7290 fail:
7291 return NULL;
7292 }
7293
7294
7295 static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7296 PyObject *resultobj;
7297 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7298 PyObject * obj0 = 0 ;
7299 char *kwnames[] = {
7300 (char *) "self", NULL
7301 };
7302
7303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail;
7304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 delete arg1;
7308
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 Py_INCREF(Py_None); resultobj = Py_None;
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj;
7321 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7322 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
7323 PyObject * obj0 = 0 ;
7324 PyObject * obj1 = 0 ;
7325 char *kwnames[] = {
7326 (char *) "self",(char *) "table", NULL
7327 };
7328
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail;
7330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7331 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 (arg1)->SetTableObject(arg2);
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 Py_INCREF(Py_None); resultobj = Py_None;
7340 return resultobj;
7341 fail:
7342 return NULL;
7343 }
7344
7345
7346 static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
7347 PyObject *resultobj;
7348 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7349 wxGridTableBase *result;
7350 PyObject * obj0 = 0 ;
7351 char *kwnames[] = {
7352 (char *) "self", NULL
7353 };
7354
7355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail;
7356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7357 {
7358 PyThreadState* __tstate = wxPyBeginAllowThreads();
7359 result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject();
7360
7361 wxPyEndAllowThreads(__tstate);
7362 if (PyErr_Occurred()) SWIG_fail;
7363 }
7364 {
7365 resultobj = wxPyMake_wxGridTableBase(result);
7366 }
7367 return resultobj;
7368 fail:
7369 return NULL;
7370 }
7371
7372
7373 static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject *resultobj;
7375 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7376 int arg2 ;
7377 PyObject * obj0 = 0 ;
7378 PyObject * obj1 = 0 ;
7379 char *kwnames[] = {
7380 (char *) "self",(char *) "id", NULL
7381 };
7382
7383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetId",kwnames,&obj0,&obj1)) goto fail;
7384 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7385 {
7386 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 {
7390 PyThreadState* __tstate = wxPyBeginAllowThreads();
7391 (arg1)->SetId(arg2);
7392
7393 wxPyEndAllowThreads(__tstate);
7394 if (PyErr_Occurred()) SWIG_fail;
7395 }
7396 Py_INCREF(Py_None); resultobj = Py_None;
7397 return resultobj;
7398 fail:
7399 return NULL;
7400 }
7401
7402
7403 static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
7404 PyObject *resultobj;
7405 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7406 int result;
7407 PyObject * obj0 = 0 ;
7408 char *kwnames[] = {
7409 (char *) "self", NULL
7410 };
7411
7412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail;
7413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7414 {
7415 PyThreadState* __tstate = wxPyBeginAllowThreads();
7416 result = (int)(arg1)->GetId();
7417
7418 wxPyEndAllowThreads(__tstate);
7419 if (PyErr_Occurred()) SWIG_fail;
7420 }
7421 resultobj = SWIG_PyObj_FromInt((int)result);
7422 return resultobj;
7423 fail:
7424 return NULL;
7425 }
7426
7427
7428 static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj;
7430 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7431 int arg2 ;
7432 PyObject * obj0 = 0 ;
7433 PyObject * obj1 = 0 ;
7434 char *kwnames[] = {
7435 (char *) "self",(char *) "comInt1", NULL
7436 };
7437
7438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt",kwnames,&obj0,&obj1)) goto fail;
7439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7440 {
7441 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7442 if (PyErr_Occurred()) SWIG_fail;
7443 }
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 (arg1)->SetCommandInt(arg2);
7447
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) SWIG_fail;
7450 }
7451 Py_INCREF(Py_None); resultobj = Py_None;
7452 return resultobj;
7453 fail:
7454 return NULL;
7455 }
7456
7457
7458 static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
7459 PyObject *resultobj;
7460 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7461 int result;
7462 PyObject * obj0 = 0 ;
7463 char *kwnames[] = {
7464 (char *) "self", NULL
7465 };
7466
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail;
7468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7469 {
7470 PyThreadState* __tstate = wxPyBeginAllowThreads();
7471 result = (int)(arg1)->GetCommandInt();
7472
7473 wxPyEndAllowThreads(__tstate);
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 resultobj = SWIG_PyObj_FromInt((int)result);
7477 return resultobj;
7478 fail:
7479 return NULL;
7480 }
7481
7482
7483 static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
7484 PyObject *resultobj;
7485 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7486 int arg2 ;
7487 PyObject * obj0 = 0 ;
7488 PyObject * obj1 = 0 ;
7489 char *kwnames[] = {
7490 (char *) "self",(char *) "comInt2", NULL
7491 };
7492
7493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetCommandInt2",kwnames,&obj0,&obj1)) goto fail;
7494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7495 {
7496 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 {
7500 PyThreadState* __tstate = wxPyBeginAllowThreads();
7501 (arg1)->SetCommandInt2(arg2);
7502
7503 wxPyEndAllowThreads(__tstate);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 }
7506 Py_INCREF(Py_None); resultobj = Py_None;
7507 return resultobj;
7508 fail:
7509 return NULL;
7510 }
7511
7512
7513 static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
7514 PyObject *resultobj;
7515 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
7516 int result;
7517 PyObject * obj0 = 0 ;
7518 char *kwnames[] = {
7519 (char *) "self", NULL
7520 };
7521
7522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail;
7523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7524 {
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 result = (int)(arg1)->GetCommandInt2();
7527
7528 wxPyEndAllowThreads(__tstate);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 resultobj = SWIG_PyObj_FromInt((int)result);
7532 return resultobj;
7533 fail:
7534 return NULL;
7535 }
7536
7537
7538 static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) {
7539 PyObject *obj;
7540 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7541 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj);
7542 Py_INCREF(obj);
7543 return Py_BuildValue((char *)"");
7544 }
7545 static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
7546 PyObject *resultobj;
7547 int arg1 = (int) -1 ;
7548 int arg2 = (int) -1 ;
7549 wxGridCellCoords *result;
7550 PyObject * obj0 = 0 ;
7551 PyObject * obj1 = 0 ;
7552 char *kwnames[] = {
7553 (char *) "r",(char *) "c", NULL
7554 };
7555
7556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellCoords",kwnames,&obj0,&obj1)) goto fail;
7557 if (obj0) {
7558 {
7559 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7560 if (PyErr_Occurred()) SWIG_fail;
7561 }
7562 }
7563 if (obj1) {
7564 {
7565 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 }
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2);
7572
7573 wxPyEndAllowThreads(__tstate);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellCoords, 1);
7577 return resultobj;
7578 fail:
7579 return NULL;
7580 }
7581
7582
7583 static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
7584 PyObject *resultobj;
7585 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7586 PyObject * obj0 = 0 ;
7587 char *kwnames[] = {
7588 (char *) "self", NULL
7589 };
7590
7591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail;
7592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7593 {
7594 PyThreadState* __tstate = wxPyBeginAllowThreads();
7595 delete arg1;
7596
7597 wxPyEndAllowThreads(__tstate);
7598 if (PyErr_Occurred()) SWIG_fail;
7599 }
7600 Py_INCREF(Py_None); resultobj = Py_None;
7601 return resultobj;
7602 fail:
7603 return NULL;
7604 }
7605
7606
7607 static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
7608 PyObject *resultobj;
7609 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7610 int result;
7611 PyObject * obj0 = 0 ;
7612 char *kwnames[] = {
7613 (char *) "self", NULL
7614 };
7615
7616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail;
7617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7618 {
7619 PyThreadState* __tstate = wxPyBeginAllowThreads();
7620 result = (int)((wxGridCellCoords const *)arg1)->GetRow();
7621
7622 wxPyEndAllowThreads(__tstate);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 resultobj = SWIG_PyObj_FromInt((int)result);
7626 return resultobj;
7627 fail:
7628 return NULL;
7629 }
7630
7631
7632 static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
7633 PyObject *resultobj;
7634 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7635 int arg2 ;
7636 PyObject * obj0 = 0 ;
7637 PyObject * obj1 = 0 ;
7638 char *kwnames[] = {
7639 (char *) "self",(char *) "n", NULL
7640 };
7641
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetRow",kwnames,&obj0,&obj1)) goto fail;
7643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7644 {
7645 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7646 if (PyErr_Occurred()) SWIG_fail;
7647 }
7648 {
7649 PyThreadState* __tstate = wxPyBeginAllowThreads();
7650 (arg1)->SetRow(arg2);
7651
7652 wxPyEndAllowThreads(__tstate);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 }
7655 Py_INCREF(Py_None); resultobj = Py_None;
7656 return resultobj;
7657 fail:
7658 return NULL;
7659 }
7660
7661
7662 static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
7663 PyObject *resultobj;
7664 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7665 int result;
7666 PyObject * obj0 = 0 ;
7667 char *kwnames[] = {
7668 (char *) "self", NULL
7669 };
7670
7671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail;
7672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 result = (int)((wxGridCellCoords const *)arg1)->GetCol();
7676
7677 wxPyEndAllowThreads(__tstate);
7678 if (PyErr_Occurred()) SWIG_fail;
7679 }
7680 resultobj = SWIG_PyObj_FromInt((int)result);
7681 return resultobj;
7682 fail:
7683 return NULL;
7684 }
7685
7686
7687 static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
7688 PyObject *resultobj;
7689 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7690 int arg2 ;
7691 PyObject * obj0 = 0 ;
7692 PyObject * obj1 = 0 ;
7693 char *kwnames[] = {
7694 (char *) "self",(char *) "n", NULL
7695 };
7696
7697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords_SetCol",kwnames,&obj0,&obj1)) goto fail;
7698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7699 {
7700 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 }
7703 {
7704 PyThreadState* __tstate = wxPyBeginAllowThreads();
7705 (arg1)->SetCol(arg2);
7706
7707 wxPyEndAllowThreads(__tstate);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 }
7710 Py_INCREF(Py_None); resultobj = Py_None;
7711 return resultobj;
7712 fail:
7713 return NULL;
7714 }
7715
7716
7717 static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7718 PyObject *resultobj;
7719 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7720 int arg2 ;
7721 int arg3 ;
7722 PyObject * obj0 = 0 ;
7723 PyObject * obj1 = 0 ;
7724 PyObject * obj2 = 0 ;
7725 char *kwnames[] = {
7726 (char *) "self",(char *) "row",(char *) "col", NULL
7727 };
7728
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellCoords_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
7730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7731 {
7732 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 {
7736 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 {
7740 PyThreadState* __tstate = wxPyBeginAllowThreads();
7741 (arg1)->Set(arg2,arg3);
7742
7743 wxPyEndAllowThreads(__tstate);
7744 if (PyErr_Occurred()) SWIG_fail;
7745 }
7746 Py_INCREF(Py_None); resultobj = Py_None;
7747 return resultobj;
7748 fail:
7749 return NULL;
7750 }
7751
7752
7753 static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj;
7755 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7756 wxGridCellCoords *arg2 = 0 ;
7757 bool result;
7758 PyObject * obj0 = 0 ;
7759 PyObject * obj1 = 0 ;
7760 char *kwnames[] = {
7761 (char *) "self",(char *) "other", NULL
7762 };
7763
7764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail;
7765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7766 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7767 if (arg2 == NULL) {
7768 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7769 }
7770 {
7771 PyThreadState* __tstate = wxPyBeginAllowThreads();
7772 result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2);
7773
7774 wxPyEndAllowThreads(__tstate);
7775 if (PyErr_Occurred()) SWIG_fail;
7776 }
7777 resultobj = SWIG_PyObj_FromBool((bool)result);
7778 return resultobj;
7779 fail:
7780 return NULL;
7781 }
7782
7783
7784 static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj;
7786 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7787 wxGridCellCoords *arg2 = 0 ;
7788 bool result;
7789 PyObject * obj0 = 0 ;
7790 PyObject * obj1 = 0 ;
7791 char *kwnames[] = {
7792 (char *) "self",(char *) "other", NULL
7793 };
7794
7795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail;
7796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7797 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7798 if (arg2 == NULL) {
7799 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7800 }
7801 {
7802 PyThreadState* __tstate = wxPyBeginAllowThreads();
7803 result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2);
7804
7805 wxPyEndAllowThreads(__tstate);
7806 if (PyErr_Occurred()) SWIG_fail;
7807 }
7808 resultobj = SWIG_PyObj_FromBool((bool)result);
7809 return resultobj;
7810 fail:
7811 return NULL;
7812 }
7813
7814
7815 static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7816 PyObject *resultobj;
7817 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7818 PyObject *result;
7819 PyObject * obj0 = 0 ;
7820 char *kwnames[] = {
7821 (char *) "self", NULL
7822 };
7823
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail;
7825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 result = (PyObject *)wxGridCellCoords_asTuple(arg1);
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 resultobj = result;
7834 return resultobj;
7835 fail:
7836 return NULL;
7837 }
7838
7839
7840 static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) {
7841 PyObject *obj;
7842 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7843 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj);
7844 Py_INCREF(obj);
7845 return Py_BuildValue((char *)"");
7846 }
7847 static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) {
7848 PyObject *resultobj;
7849 wxWindow *arg1 = (wxWindow *) 0 ;
7850 int arg2 ;
7851 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7852 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7853 wxSize const &arg4_defvalue = wxDefaultSize ;
7854 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7855 long arg5 = (long) wxWANTS_CHARS ;
7856 wxString const &arg6_defvalue = wxPyPanelNameStr ;
7857 wxString *arg6 = (wxString *) &arg6_defvalue ;
7858 wxGrid *result;
7859 wxPoint temp3 ;
7860 wxSize temp4 ;
7861 bool temp6 = False ;
7862 PyObject * obj0 = 0 ;
7863 PyObject * obj1 = 0 ;
7864 PyObject * obj2 = 0 ;
7865 PyObject * obj3 = 0 ;
7866 PyObject * obj4 = 0 ;
7867 PyObject * obj5 = 0 ;
7868 char *kwnames[] = {
7869 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7870 };
7871
7872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Grid",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
7873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7874 {
7875 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7876 if (PyErr_Occurred()) SWIG_fail;
7877 }
7878 if (obj2) {
7879 {
7880 arg3 = &temp3;
7881 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7882 }
7883 }
7884 if (obj3) {
7885 {
7886 arg4 = &temp4;
7887 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7888 }
7889 }
7890 if (obj4) {
7891 {
7892 arg5 = (long) SWIG_PyObj_AsLong(obj4);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 }
7896 if (obj5) {
7897 {
7898 arg6 = wxString_in_helper(obj5);
7899 if (arg6 == NULL) SWIG_fail;
7900 temp6 = True;
7901 }
7902 }
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7906
7907 wxPyEndAllowThreads(__tstate);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 {
7911 resultobj = wxPyMake_wxObject(result);
7912 }
7913 {
7914 if (temp6)
7915 delete arg6;
7916 }
7917 return resultobj;
7918 fail:
7919 {
7920 if (temp6)
7921 delete arg6;
7922 }
7923 return NULL;
7924 }
7925
7926
7927 static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj;
7929 wxGrid *arg1 = (wxGrid *) 0 ;
7930 int arg2 ;
7931 int arg3 ;
7932 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
7933 bool result;
7934 PyObject * obj0 = 0 ;
7935 PyObject * obj1 = 0 ;
7936 PyObject * obj2 = 0 ;
7937 PyObject * obj3 = 0 ;
7938 char *kwnames[] = {
7939 (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL
7940 };
7941
7942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_CreateGrid",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7944 {
7945 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 {
7949 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7950 if (PyErr_Occurred()) SWIG_fail;
7951 }
7952 if (obj3) {
7953 {
7954 arg4 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj3);
7955 if (PyErr_Occurred()) SWIG_fail;
7956 }
7957 }
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4);
7961
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 resultobj = SWIG_PyObj_FromBool((bool)result);
7966 return resultobj;
7967 fail:
7968 return NULL;
7969 }
7970
7971
7972 static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7973 PyObject *resultobj;
7974 wxGrid *arg1 = (wxGrid *) 0 ;
7975 WXGRIDSELECTIONMODES arg2 ;
7976 PyObject * obj0 = 0 ;
7977 PyObject * obj1 = 0 ;
7978 char *kwnames[] = {
7979 (char *) "self",(char *) "selmode", NULL
7980 };
7981
7982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionMode",kwnames,&obj0,&obj1)) goto fail;
7983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7984 {
7985 arg2 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj1);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 (arg1)->SetSelectionMode(arg2);
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
7995 Py_INCREF(Py_None); resultobj = Py_None;
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8003 PyObject *resultobj;
8004 wxGrid *arg1 = (wxGrid *) 0 ;
8005 WXGRIDSELECTIONMODES result;
8006 PyObject * obj0 = 0 ;
8007 char *kwnames[] = {
8008 (char *) "self", NULL
8009 };
8010
8011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail;
8012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8013 {
8014 PyThreadState* __tstate = wxPyBeginAllowThreads();
8015 result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode();
8016
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 resultobj = SWIG_PyObj_FromInt((int)result);
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8028 PyObject *resultobj;
8029 wxGrid *arg1 = (wxGrid *) 0 ;
8030 int result;
8031 PyObject * obj0 = 0 ;
8032 char *kwnames[] = {
8033 (char *) "self", NULL
8034 };
8035
8036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail;
8037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8038 {
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = (int)(arg1)->GetNumberRows();
8041
8042 wxPyEndAllowThreads(__tstate);
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 resultobj = SWIG_PyObj_FromInt((int)result);
8046 return resultobj;
8047 fail:
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxGrid *arg1 = (wxGrid *) 0 ;
8055 int result;
8056 PyObject * obj0 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail;
8062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8063 {
8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
8065 result = (int)(arg1)->GetNumberCols();
8066
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = SWIG_PyObj_FromInt((int)result);
8071 return resultobj;
8072 fail:
8073 return NULL;
8074 }
8075
8076
8077 static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8078 PyObject *resultobj;
8079 wxGrid *arg1 = (wxGrid *) 0 ;
8080 wxGridTableMessage *arg2 = 0 ;
8081 bool result;
8082 PyObject * obj0 = 0 ;
8083 PyObject * obj1 = 0 ;
8084 char *kwnames[] = {
8085 (char *) "self","arg2", NULL
8086 };
8087
8088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail;
8089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8090 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8091 if (arg2 == NULL) {
8092 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8093 }
8094 {
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 result = (bool)(arg1)->ProcessTableMessage(*arg2);
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 resultobj = SWIG_PyObj_FromBool((bool)result);
8102 return resultobj;
8103 fail:
8104 return NULL;
8105 }
8106
8107
8108 static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj;
8110 wxGrid *arg1 = (wxGrid *) 0 ;
8111 wxGridTableBase *result;
8112 PyObject * obj0 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "self", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail;
8118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8119 {
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable();
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 {
8127 resultobj = wxPyMake_wxGridTableBase(result);
8128 }
8129 return resultobj;
8130 fail:
8131 return NULL;
8132 }
8133
8134
8135 static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
8136 PyObject *resultobj;
8137 wxGrid *arg1 = (wxGrid *) 0 ;
8138 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
8139 bool arg3 = (bool) False ;
8140 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
8141 bool result;
8142 PyObject * obj0 = 0 ;
8143 PyObject * obj1 = 0 ;
8144 PyObject * obj2 = 0 ;
8145 PyObject * obj3 = 0 ;
8146 char *kwnames[] = {
8147 (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL
8148 };
8149
8150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8152 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8153 if (obj2) {
8154 {
8155 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 }
8158 }
8159 if (obj3) {
8160 {
8161 arg4 = (WXGRIDSELECTIONMODES) SWIG_PyObj_AsInt(obj3);
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 }
8165 {
8166 PyThreadState* __tstate = wxPyBeginAllowThreads();
8167 result = (bool)(arg1)->SetTable(arg2,arg3,arg4);
8168
8169 wxPyEndAllowThreads(__tstate);
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 resultobj = SWIG_PyObj_FromBool((bool)result);
8173 return resultobj;
8174 fail:
8175 return NULL;
8176 }
8177
8178
8179 static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
8180 PyObject *resultobj;
8181 wxGrid *arg1 = (wxGrid *) 0 ;
8182 PyObject * obj0 = 0 ;
8183 char *kwnames[] = {
8184 (char *) "self", NULL
8185 };
8186
8187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail;
8188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8189 {
8190 PyThreadState* __tstate = wxPyBeginAllowThreads();
8191 (arg1)->ClearGrid();
8192
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 Py_INCREF(Py_None); resultobj = Py_None;
8197 return resultobj;
8198 fail:
8199 return NULL;
8200 }
8201
8202
8203 static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8204 PyObject *resultobj;
8205 wxGrid *arg1 = (wxGrid *) 0 ;
8206 int arg2 = (int) 0 ;
8207 int arg3 = (int) 1 ;
8208 bool arg4 = (bool) True ;
8209 bool result;
8210 PyObject * obj0 = 0 ;
8211 PyObject * obj1 = 0 ;
8212 PyObject * obj2 = 0 ;
8213 PyObject * obj3 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8220 if (obj1) {
8221 {
8222 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8223 if (PyErr_Occurred()) SWIG_fail;
8224 }
8225 }
8226 if (obj2) {
8227 {
8228 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 }
8232 if (obj3) {
8233 {
8234 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 }
8238 {
8239 PyThreadState* __tstate = wxPyBeginAllowThreads();
8240 result = (bool)(arg1)->InsertRows(arg2,arg3,arg4);
8241
8242 wxPyEndAllowThreads(__tstate);
8243 if (PyErr_Occurred()) SWIG_fail;
8244 }
8245 resultobj = SWIG_PyObj_FromBool((bool)result);
8246 return resultobj;
8247 fail:
8248 return NULL;
8249 }
8250
8251
8252 static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8253 PyObject *resultobj;
8254 wxGrid *arg1 = (wxGrid *) 0 ;
8255 int arg2 = (int) 1 ;
8256 bool arg3 = (bool) True ;
8257 bool result;
8258 PyObject * obj0 = 0 ;
8259 PyObject * obj1 = 0 ;
8260 PyObject * obj2 = 0 ;
8261 char *kwnames[] = {
8262 (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL
8263 };
8264
8265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
8266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8267 if (obj1) {
8268 {
8269 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8270 if (PyErr_Occurred()) SWIG_fail;
8271 }
8272 }
8273 if (obj2) {
8274 {
8275 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8276 if (PyErr_Occurred()) SWIG_fail;
8277 }
8278 }
8279 {
8280 PyThreadState* __tstate = wxPyBeginAllowThreads();
8281 result = (bool)(arg1)->AppendRows(arg2,arg3);
8282
8283 wxPyEndAllowThreads(__tstate);
8284 if (PyErr_Occurred()) SWIG_fail;
8285 }
8286 resultobj = SWIG_PyObj_FromBool((bool)result);
8287 return resultobj;
8288 fail:
8289 return NULL;
8290 }
8291
8292
8293 static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj;
8295 wxGrid *arg1 = (wxGrid *) 0 ;
8296 int arg2 = (int) 0 ;
8297 int arg3 = (int) 1 ;
8298 bool arg4 = (bool) True ;
8299 bool result;
8300 PyObject * obj0 = 0 ;
8301 PyObject * obj1 = 0 ;
8302 PyObject * obj2 = 0 ;
8303 PyObject * obj3 = 0 ;
8304 char *kwnames[] = {
8305 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
8306 };
8307
8308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteRows",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8309 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8310 if (obj1) {
8311 {
8312 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8313 if (PyErr_Occurred()) SWIG_fail;
8314 }
8315 }
8316 if (obj2) {
8317 {
8318 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 }
8322 if (obj3) {
8323 {
8324 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 }
8328 {
8329 PyThreadState* __tstate = wxPyBeginAllowThreads();
8330 result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4);
8331
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 resultobj = SWIG_PyObj_FromBool((bool)result);
8336 return resultobj;
8337 fail:
8338 return NULL;
8339 }
8340
8341
8342 static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8343 PyObject *resultobj;
8344 wxGrid *arg1 = (wxGrid *) 0 ;
8345 int arg2 = (int) 0 ;
8346 int arg3 = (int) 1 ;
8347 bool arg4 = (bool) True ;
8348 bool result;
8349 PyObject * obj0 = 0 ;
8350 PyObject * obj1 = 0 ;
8351 PyObject * obj2 = 0 ;
8352 PyObject * obj3 = 0 ;
8353 char *kwnames[] = {
8354 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
8355 };
8356
8357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_InsertCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8359 if (obj1) {
8360 {
8361 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8362 if (PyErr_Occurred()) SWIG_fail;
8363 }
8364 }
8365 if (obj2) {
8366 {
8367 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 }
8371 if (obj3) {
8372 {
8373 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 }
8377 {
8378 PyThreadState* __tstate = wxPyBeginAllowThreads();
8379 result = (bool)(arg1)->InsertCols(arg2,arg3,arg4);
8380
8381 wxPyEndAllowThreads(__tstate);
8382 if (PyErr_Occurred()) SWIG_fail;
8383 }
8384 resultobj = SWIG_PyObj_FromBool((bool)result);
8385 return resultobj;
8386 fail:
8387 return NULL;
8388 }
8389
8390
8391 static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8392 PyObject *resultobj;
8393 wxGrid *arg1 = (wxGrid *) 0 ;
8394 int arg2 = (int) 1 ;
8395 bool arg3 = (bool) True ;
8396 bool result;
8397 PyObject * obj0 = 0 ;
8398 PyObject * obj1 = 0 ;
8399 PyObject * obj2 = 0 ;
8400 char *kwnames[] = {
8401 (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL
8402 };
8403
8404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_AppendCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
8405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8406 if (obj1) {
8407 {
8408 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8409 if (PyErr_Occurred()) SWIG_fail;
8410 }
8411 }
8412 if (obj2) {
8413 {
8414 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8415 if (PyErr_Occurred()) SWIG_fail;
8416 }
8417 }
8418 {
8419 PyThreadState* __tstate = wxPyBeginAllowThreads();
8420 result = (bool)(arg1)->AppendCols(arg2,arg3);
8421
8422 wxPyEndAllowThreads(__tstate);
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 resultobj = SWIG_PyObj_FromBool((bool)result);
8426 return resultobj;
8427 fail:
8428 return NULL;
8429 }
8430
8431
8432 static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
8433 PyObject *resultobj;
8434 wxGrid *arg1 = (wxGrid *) 0 ;
8435 int arg2 = (int) 0 ;
8436 int arg3 = (int) 1 ;
8437 bool arg4 = (bool) True ;
8438 bool result;
8439 PyObject * obj0 = 0 ;
8440 PyObject * obj1 = 0 ;
8441 PyObject * obj2 = 0 ;
8442 PyObject * obj3 = 0 ;
8443 char *kwnames[] = {
8444 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
8445 };
8446
8447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Grid_DeleteCols",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8449 if (obj1) {
8450 {
8451 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 }
8455 if (obj2) {
8456 {
8457 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8458 if (PyErr_Occurred()) SWIG_fail;
8459 }
8460 }
8461 if (obj3) {
8462 {
8463 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 }
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4);
8470
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 resultobj = SWIG_PyObj_FromBool((bool)result);
8475 return resultobj;
8476 fail:
8477 return NULL;
8478 }
8479
8480
8481 static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj;
8483 wxGrid *arg1 = (wxGrid *) 0 ;
8484 wxDC *arg2 = 0 ;
8485 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
8486 PyObject * obj0 = 0 ;
8487 PyObject * obj1 = 0 ;
8488 PyObject * obj2 = 0 ;
8489 char *kwnames[] = {
8490 (char *) "self",(char *) "dc",(char *) "attr", NULL
8491 };
8492
8493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
8494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8495 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8496 if (arg2 == NULL) {
8497 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8498 }
8499 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8500 {
8501 PyThreadState* __tstate = wxPyBeginAllowThreads();
8502 (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3);
8503
8504 wxPyEndAllowThreads(__tstate);
8505 if (PyErr_Occurred()) SWIG_fail;
8506 }
8507 Py_INCREF(Py_None); resultobj = Py_None;
8508 return resultobj;
8509 fail:
8510 return NULL;
8511 }
8512
8513
8514 static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
8515 PyObject *resultobj;
8516 wxGrid *arg1 = (wxGrid *) 0 ;
8517 wxDC *arg2 = 0 ;
8518 wxString *arg3 = 0 ;
8519 wxRect *arg4 = 0 ;
8520 int arg5 = (int) wxLEFT ;
8521 int arg6 = (int) wxTOP ;
8522 int arg7 = (int) wxHORIZONTAL ;
8523 bool temp3 = False ;
8524 wxRect temp4 ;
8525 PyObject * obj0 = 0 ;
8526 PyObject * obj1 = 0 ;
8527 PyObject * obj2 = 0 ;
8528 PyObject * obj3 = 0 ;
8529 PyObject * obj4 = 0 ;
8530 PyObject * obj5 = 0 ;
8531 PyObject * obj6 = 0 ;
8532 char *kwnames[] = {
8533 (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL
8534 };
8535
8536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8538 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8539 if (arg2 == NULL) {
8540 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8541 }
8542 {
8543 arg3 = wxString_in_helper(obj2);
8544 if (arg3 == NULL) SWIG_fail;
8545 temp3 = True;
8546 }
8547 {
8548 arg4 = &temp4;
8549 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
8550 }
8551 if (obj4) {
8552 {
8553 arg5 = (int) SWIG_PyObj_AsInt(obj4);
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 }
8557 if (obj5) {
8558 {
8559 arg6 = (int) SWIG_PyObj_AsInt(obj5);
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 }
8563 if (obj6) {
8564 {
8565 arg7 = (int) SWIG_PyObj_AsInt(obj6);
8566 if (PyErr_Occurred()) SWIG_fail;
8567 }
8568 }
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 Py_INCREF(Py_None); resultobj = Py_None;
8577 {
8578 if (temp3)
8579 delete arg3;
8580 }
8581 return resultobj;
8582 fail:
8583 {
8584 if (temp3)
8585 delete arg3;
8586 }
8587 return NULL;
8588 }
8589
8590
8591 static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8592 PyObject *resultobj;
8593 wxGrid *arg1 = (wxGrid *) 0 ;
8594 wxDC *arg2 = 0 ;
8595 wxArrayString *arg3 = 0 ;
8596 long *arg4 = (long *) 0 ;
8597 long *arg5 = (long *) 0 ;
8598 long temp4 ;
8599 long temp5 ;
8600 PyObject * obj0 = 0 ;
8601 PyObject * obj1 = 0 ;
8602 PyObject * obj2 = 0 ;
8603 char *kwnames[] = {
8604 (char *) "self",(char *) "dc",(char *) "lines", NULL
8605 };
8606
8607 arg4 = &temp4;
8608 arg5 = &temp5;
8609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
8610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8611 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8612 if (arg2 == NULL) {
8613 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8614 }
8615 {
8616 if (! PySequence_Check(obj2)) {
8617 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8618 SWIG_fail;
8619 }
8620 arg3 = new wxArrayString;
8621 int i, len=PySequence_Length(obj2);
8622 for (i=0; i<len; i++) {
8623 PyObject* item = PySequence_GetItem(obj2, i);
8624 #if wxUSE_UNICODE
8625 PyObject* str = PyObject_Unicode(item);
8626 #else
8627 PyObject* str = PyObject_Str(item);
8628 #endif
8629 arg3->Add(Py2wxString(str));
8630 Py_DECREF(item);
8631 Py_DECREF(str);
8632 }
8633 }
8634 {
8635 PyThreadState* __tstate = wxPyBeginAllowThreads();
8636 (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5);
8637
8638 wxPyEndAllowThreads(__tstate);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 Py_INCREF(Py_None); resultobj = Py_None;
8642 {
8643 PyObject *o = PyInt_FromLong((long) (*arg4));
8644 resultobj = t_output_helper(resultobj,o);
8645 }
8646 {
8647 PyObject *o = PyInt_FromLong((long) (*arg5));
8648 resultobj = t_output_helper(resultobj,o);
8649 }
8650 {
8651 if (arg3) delete arg3;
8652 }
8653 return resultobj;
8654 fail:
8655 {
8656 if (arg3) delete arg3;
8657 }
8658 return NULL;
8659 }
8660
8661
8662 static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
8663 PyObject *resultobj;
8664 wxGrid *arg1 = (wxGrid *) 0 ;
8665 PyObject * obj0 = 0 ;
8666 char *kwnames[] = {
8667 (char *) "self", NULL
8668 };
8669
8670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail;
8671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8672 {
8673 PyThreadState* __tstate = wxPyBeginAllowThreads();
8674 (arg1)->BeginBatch();
8675
8676 wxPyEndAllowThreads(__tstate);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 }
8679 Py_INCREF(Py_None); resultobj = Py_None;
8680 return resultobj;
8681 fail:
8682 return NULL;
8683 }
8684
8685
8686 static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
8687 PyObject *resultobj;
8688 wxGrid *arg1 = (wxGrid *) 0 ;
8689 PyObject * obj0 = 0 ;
8690 char *kwnames[] = {
8691 (char *) "self", NULL
8692 };
8693
8694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail;
8695 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8696 {
8697 PyThreadState* __tstate = wxPyBeginAllowThreads();
8698 (arg1)->EndBatch();
8699
8700 wxPyEndAllowThreads(__tstate);
8701 if (PyErr_Occurred()) SWIG_fail;
8702 }
8703 Py_INCREF(Py_None); resultobj = Py_None;
8704 return resultobj;
8705 fail:
8706 return NULL;
8707 }
8708
8709
8710 static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8711 PyObject *resultobj;
8712 wxGrid *arg1 = (wxGrid *) 0 ;
8713 int result;
8714 PyObject * obj0 = 0 ;
8715 char *kwnames[] = {
8716 (char *) "self", NULL
8717 };
8718
8719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail;
8720 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 result = (int)(arg1)->GetBatchCount();
8724
8725 wxPyEndAllowThreads(__tstate);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 }
8728 resultobj = SWIG_PyObj_FromInt((int)result);
8729 return resultobj;
8730 fail:
8731 return NULL;
8732 }
8733
8734
8735 static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) {
8736 PyObject *resultobj;
8737 wxGrid *arg1 = (wxGrid *) 0 ;
8738 PyObject * obj0 = 0 ;
8739 char *kwnames[] = {
8740 (char *) "self", NULL
8741 };
8742
8743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail;
8744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8745 {
8746 PyThreadState* __tstate = wxPyBeginAllowThreads();
8747 (arg1)->ForceRefresh();
8748
8749 wxPyEndAllowThreads(__tstate);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8752 Py_INCREF(Py_None); resultobj = Py_None;
8753 return resultobj;
8754 fail:
8755 return NULL;
8756 }
8757
8758
8759 static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj;
8761 wxGrid *arg1 = (wxGrid *) 0 ;
8762 bool arg2 = (bool) True ;
8763 wxRect *arg3 = (wxRect *) NULL ;
8764 PyObject * obj0 = 0 ;
8765 PyObject * obj1 = 0 ;
8766 PyObject * obj2 = 0 ;
8767 char *kwnames[] = {
8768 (char *) "self",(char *) "eraseb",(char *) "rect", NULL
8769 };
8770
8771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
8772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8773 if (obj1) {
8774 {
8775 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 }
8779 if (obj2) {
8780 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8781 }
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 (arg1)->Refresh(arg2,(wxRect const *)arg3);
8785
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 Py_INCREF(Py_None); resultobj = Py_None;
8790 return resultobj;
8791 fail:
8792 return NULL;
8793 }
8794
8795
8796 static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
8797 PyObject *resultobj;
8798 wxGrid *arg1 = (wxGrid *) 0 ;
8799 bool result;
8800 PyObject * obj0 = 0 ;
8801 char *kwnames[] = {
8802 (char *) "self", NULL
8803 };
8804
8805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail;
8806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 result = (bool)(arg1)->IsEditable();
8810
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 resultobj = SWIG_PyObj_FromBool((bool)result);
8815 return resultobj;
8816 fail:
8817 return NULL;
8818 }
8819
8820
8821 static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj;
8823 wxGrid *arg1 = (wxGrid *) 0 ;
8824 bool arg2 ;
8825 PyObject * obj0 = 0 ;
8826 PyObject * obj1 = 0 ;
8827 char *kwnames[] = {
8828 (char *) "self",(char *) "edit", NULL
8829 };
8830
8831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail;
8832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8833 {
8834 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 {
8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
8839 (arg1)->EnableEditing(arg2);
8840
8841 wxPyEndAllowThreads(__tstate);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 }
8844 Py_INCREF(Py_None); resultobj = Py_None;
8845 return resultobj;
8846 fail:
8847 return NULL;
8848 }
8849
8850
8851 static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8852 PyObject *resultobj;
8853 wxGrid *arg1 = (wxGrid *) 0 ;
8854 bool arg2 = (bool) True ;
8855 PyObject * obj0 = 0 ;
8856 PyObject * obj1 = 0 ;
8857 char *kwnames[] = {
8858 (char *) "self",(char *) "enable", NULL
8859 };
8860
8861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail;
8862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8863 if (obj1) {
8864 {
8865 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8866 if (PyErr_Occurred()) SWIG_fail;
8867 }
8868 }
8869 {
8870 PyThreadState* __tstate = wxPyBeginAllowThreads();
8871 (arg1)->EnableCellEditControl(arg2);
8872
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 Py_INCREF(Py_None); resultobj = Py_None;
8877 return resultobj;
8878 fail:
8879 return NULL;
8880 }
8881
8882
8883 static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8884 PyObject *resultobj;
8885 wxGrid *arg1 = (wxGrid *) 0 ;
8886 PyObject * obj0 = 0 ;
8887 char *kwnames[] = {
8888 (char *) "self", NULL
8889 };
8890
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail;
8892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 (arg1)->DisableCellEditControl();
8896
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 Py_INCREF(Py_None); resultobj = Py_None;
8901 return resultobj;
8902 fail:
8903 return NULL;
8904 }
8905
8906
8907 static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8908 PyObject *resultobj;
8909 wxGrid *arg1 = (wxGrid *) 0 ;
8910 bool result;
8911 PyObject * obj0 = 0 ;
8912 char *kwnames[] = {
8913 (char *) "self", NULL
8914 };
8915
8916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail;
8917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8918 {
8919 PyThreadState* __tstate = wxPyBeginAllowThreads();
8920 result = (bool)((wxGrid const *)arg1)->CanEnableCellControl();
8921
8922 wxPyEndAllowThreads(__tstate);
8923 if (PyErr_Occurred()) SWIG_fail;
8924 }
8925 resultobj = SWIG_PyObj_FromBool((bool)result);
8926 return resultobj;
8927 fail:
8928 return NULL;
8929 }
8930
8931
8932 static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8933 PyObject *resultobj;
8934 wxGrid *arg1 = (wxGrid *) 0 ;
8935 bool result;
8936 PyObject * obj0 = 0 ;
8937 char *kwnames[] = {
8938 (char *) "self", NULL
8939 };
8940
8941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail;
8942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8943 {
8944 PyThreadState* __tstate = wxPyBeginAllowThreads();
8945 result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled();
8946
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 resultobj = SWIG_PyObj_FromBool((bool)result);
8951 return resultobj;
8952 fail:
8953 return NULL;
8954 }
8955
8956
8957 static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) {
8958 PyObject *resultobj;
8959 wxGrid *arg1 = (wxGrid *) 0 ;
8960 bool result;
8961 PyObject * obj0 = 0 ;
8962 char *kwnames[] = {
8963 (char *) "self", NULL
8964 };
8965
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail;
8967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8968 {
8969 PyThreadState* __tstate = wxPyBeginAllowThreads();
8970 result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown();
8971
8972 wxPyEndAllowThreads(__tstate);
8973 if (PyErr_Occurred()) SWIG_fail;
8974 }
8975 resultobj = SWIG_PyObj_FromBool((bool)result);
8976 return resultobj;
8977 fail:
8978 return NULL;
8979 }
8980
8981
8982 static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
8983 PyObject *resultobj;
8984 wxGrid *arg1 = (wxGrid *) 0 ;
8985 bool result;
8986 PyObject * obj0 = 0 ;
8987 char *kwnames[] = {
8988 (char *) "self", NULL
8989 };
8990
8991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail;
8992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly();
8996
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 resultobj = SWIG_PyObj_FromBool((bool)result);
9001 return resultobj;
9002 fail:
9003 return NULL;
9004 }
9005
9006
9007 static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9008 PyObject *resultobj;
9009 wxGrid *arg1 = (wxGrid *) 0 ;
9010 PyObject * obj0 = 0 ;
9011 char *kwnames[] = {
9012 (char *) "self", NULL
9013 };
9014
9015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",kwnames,&obj0)) goto fail;
9016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9017 {
9018 PyThreadState* __tstate = wxPyBeginAllowThreads();
9019 (arg1)->ShowCellEditControl();
9020
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 Py_INCREF(Py_None); resultobj = Py_None;
9025 return resultobj;
9026 fail:
9027 return NULL;
9028 }
9029
9030
9031 static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
9032 PyObject *resultobj;
9033 wxGrid *arg1 = (wxGrid *) 0 ;
9034 PyObject * obj0 = 0 ;
9035 char *kwnames[] = {
9036 (char *) "self", NULL
9037 };
9038
9039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail;
9040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9041 {
9042 PyThreadState* __tstate = wxPyBeginAllowThreads();
9043 (arg1)->HideCellEditControl();
9044
9045 wxPyEndAllowThreads(__tstate);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 }
9048 Py_INCREF(Py_None); resultobj = Py_None;
9049 return resultobj;
9050 fail:
9051 return NULL;
9052 }
9053
9054
9055 static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9056 PyObject *resultobj;
9057 wxGrid *arg1 = (wxGrid *) 0 ;
9058 PyObject * obj0 = 0 ;
9059 char *kwnames[] = {
9060 (char *) "self", NULL
9061 };
9062
9063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail;
9064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9065 {
9066 PyThreadState* __tstate = wxPyBeginAllowThreads();
9067 (arg1)->SaveEditControlValue();
9068
9069 wxPyEndAllowThreads(__tstate);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 Py_INCREF(Py_None); resultobj = Py_None;
9073 return resultobj;
9074 fail:
9075 return NULL;
9076 }
9077
9078
9079 static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) {
9080 PyObject *resultobj;
9081 wxGrid *arg1 = (wxGrid *) 0 ;
9082 int arg2 ;
9083 int arg3 ;
9084 wxGridCellCoords result;
9085 PyObject * obj0 = 0 ;
9086 PyObject * obj1 = 0 ;
9087 PyObject * obj2 = 0 ;
9088 char *kwnames[] = {
9089 (char *) "self",(char *) "x",(char *) "y", NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_XYToCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9094 {
9095 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
9098 {
9099 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 }
9102 {
9103 PyThreadState* __tstate = wxPyBeginAllowThreads();
9104 result = wxGrid_XYToCell(arg1,arg2,arg3);
9105
9106 wxPyEndAllowThreads(__tstate);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
9109 {
9110 wxGridCellCoords * resultptr;
9111 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
9112 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
9113 }
9114 return resultobj;
9115 fail:
9116 return NULL;
9117 }
9118
9119
9120 static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj;
9122 wxGrid *arg1 = (wxGrid *) 0 ;
9123 int arg2 ;
9124 int result;
9125 PyObject * obj0 = 0 ;
9126 PyObject * obj1 = 0 ;
9127 char *kwnames[] = {
9128 (char *) "self",(char *) "y", NULL
9129 };
9130
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToRow",kwnames,&obj0,&obj1)) goto fail;
9132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9133 {
9134 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 {
9138 PyThreadState* __tstate = wxPyBeginAllowThreads();
9139 result = (int)(arg1)->YToRow(arg2);
9140
9141 wxPyEndAllowThreads(__tstate);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 resultobj = SWIG_PyObj_FromInt((int)result);
9145 return resultobj;
9146 fail:
9147 return NULL;
9148 }
9149
9150
9151 static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9152 PyObject *resultobj;
9153 wxGrid *arg1 = (wxGrid *) 0 ;
9154 int arg2 ;
9155 int result;
9156 PyObject * obj0 = 0 ;
9157 PyObject * obj1 = 0 ;
9158 char *kwnames[] = {
9159 (char *) "self",(char *) "x", NULL
9160 };
9161
9162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToCol",kwnames,&obj0,&obj1)) goto fail;
9163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9164 {
9165 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 result = (int)(arg1)->XToCol(arg2);
9171
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 resultobj = SWIG_PyObj_FromInt((int)result);
9176 return resultobj;
9177 fail:
9178 return NULL;
9179 }
9180
9181
9182 static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9183 PyObject *resultobj;
9184 wxGrid *arg1 = (wxGrid *) 0 ;
9185 int arg2 ;
9186 int result;
9187 PyObject * obj0 = 0 ;
9188 PyObject * obj1 = 0 ;
9189 char *kwnames[] = {
9190 (char *) "self",(char *) "y", NULL
9191 };
9192
9193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_YToEdgeOfRow",kwnames,&obj0,&obj1)) goto fail;
9194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9195 {
9196 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9197 if (PyErr_Occurred()) SWIG_fail;
9198 }
9199 {
9200 PyThreadState* __tstate = wxPyBeginAllowThreads();
9201 result = (int)(arg1)->YToEdgeOfRow(arg2);
9202
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = SWIG_PyObj_FromInt((int)result);
9207 return resultobj;
9208 fail:
9209 return NULL;
9210 }
9211
9212
9213 static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj;
9215 wxGrid *arg1 = (wxGrid *) 0 ;
9216 int arg2 ;
9217 int result;
9218 PyObject * obj0 = 0 ;
9219 PyObject * obj1 = 0 ;
9220 char *kwnames[] = {
9221 (char *) "self",(char *) "x", NULL
9222 };
9223
9224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_XToEdgeOfCol",kwnames,&obj0,&obj1)) goto fail;
9225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9226 {
9227 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 {
9231 PyThreadState* __tstate = wxPyBeginAllowThreads();
9232 result = (int)(arg1)->XToEdgeOfCol(arg2);
9233
9234 wxPyEndAllowThreads(__tstate);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 }
9237 resultobj = SWIG_PyObj_FromInt((int)result);
9238 return resultobj;
9239 fail:
9240 return NULL;
9241 }
9242
9243
9244 static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9245 PyObject *resultobj;
9246 wxGrid *arg1 = (wxGrid *) 0 ;
9247 int arg2 ;
9248 int arg3 ;
9249 wxRect result;
9250 PyObject * obj0 = 0 ;
9251 PyObject * obj1 = 0 ;
9252 PyObject * obj2 = 0 ;
9253 char *kwnames[] = {
9254 (char *) "self",(char *) "row",(char *) "col", NULL
9255 };
9256
9257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_CellToRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
9258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9259 {
9260 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 {
9264 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9265 if (PyErr_Occurred()) SWIG_fail;
9266 }
9267 {
9268 PyThreadState* __tstate = wxPyBeginAllowThreads();
9269 result = (arg1)->CellToRect(arg2,arg3);
9270
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) SWIG_fail;
9273 }
9274 {
9275 wxRect * resultptr;
9276 resultptr = new wxRect((wxRect &) result);
9277 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
9278 }
9279 return resultobj;
9280 fail:
9281 return NULL;
9282 }
9283
9284
9285 static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) {
9286 PyObject *resultobj;
9287 wxGrid *arg1 = (wxGrid *) 0 ;
9288 int result;
9289 PyObject * obj0 = 0 ;
9290 char *kwnames[] = {
9291 (char *) "self", NULL
9292 };
9293
9294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail;
9295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9296 {
9297 PyThreadState* __tstate = wxPyBeginAllowThreads();
9298 result = (int)(arg1)->GetGridCursorRow();
9299
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 resultobj = SWIG_PyObj_FromInt((int)result);
9304 return resultobj;
9305 fail:
9306 return NULL;
9307 }
9308
9309
9310 static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) {
9311 PyObject *resultobj;
9312 wxGrid *arg1 = (wxGrid *) 0 ;
9313 int result;
9314 PyObject * obj0 = 0 ;
9315 char *kwnames[] = {
9316 (char *) "self", NULL
9317 };
9318
9319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail;
9320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9321 {
9322 PyThreadState* __tstate = wxPyBeginAllowThreads();
9323 result = (int)(arg1)->GetGridCursorCol();
9324
9325 wxPyEndAllowThreads(__tstate);
9326 if (PyErr_Occurred()) SWIG_fail;
9327 }
9328 resultobj = SWIG_PyObj_FromInt((int)result);
9329 return resultobj;
9330 fail:
9331 return NULL;
9332 }
9333
9334
9335 static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
9336 PyObject *resultobj;
9337 wxGrid *arg1 = (wxGrid *) 0 ;
9338 int arg2 ;
9339 int arg3 ;
9340 bool arg4 = (bool) True ;
9341 bool result;
9342 PyObject * obj0 = 0 ;
9343 PyObject * obj1 = 0 ;
9344 PyObject * obj2 = 0 ;
9345 PyObject * obj3 = 0 ;
9346 char *kwnames[] = {
9347 (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL
9348 };
9349
9350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_IsVisible",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9352 {
9353 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 {
9357 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
9360 if (obj3) {
9361 {
9362 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 }
9366 {
9367 PyThreadState* __tstate = wxPyBeginAllowThreads();
9368 result = (bool)(arg1)->IsVisible(arg2,arg3,arg4);
9369
9370 wxPyEndAllowThreads(__tstate);
9371 if (PyErr_Occurred()) SWIG_fail;
9372 }
9373 resultobj = SWIG_PyObj_FromBool((bool)result);
9374 return resultobj;
9375 fail:
9376 return NULL;
9377 }
9378
9379
9380 static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
9381 PyObject *resultobj;
9382 wxGrid *arg1 = (wxGrid *) 0 ;
9383 int arg2 ;
9384 int arg3 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 PyObject * obj2 = 0 ;
9388 char *kwnames[] = {
9389 (char *) "self",(char *) "row",(char *) "col", NULL
9390 };
9391
9392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_MakeCellVisible",kwnames,&obj0,&obj1,&obj2)) goto fail;
9393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9394 {
9395 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9396 if (PyErr_Occurred()) SWIG_fail;
9397 }
9398 {
9399 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->MakeCellVisible(arg2,arg3);
9405
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 Py_INCREF(Py_None); resultobj = Py_None;
9410 return resultobj;
9411 fail:
9412 return NULL;
9413 }
9414
9415
9416 static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj;
9418 wxGrid *arg1 = (wxGrid *) 0 ;
9419 int arg2 ;
9420 int arg3 ;
9421 PyObject * obj0 = 0 ;
9422 PyObject * obj1 = 0 ;
9423 PyObject * obj2 = 0 ;
9424 char *kwnames[] = {
9425 (char *) "self",(char *) "row",(char *) "col", NULL
9426 };
9427
9428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetGridCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
9429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9430 {
9431 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 {
9435 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 {
9439 PyThreadState* __tstate = wxPyBeginAllowThreads();
9440 (arg1)->SetGridCursor(arg2,arg3);
9441
9442 wxPyEndAllowThreads(__tstate);
9443 if (PyErr_Occurred()) SWIG_fail;
9444 }
9445 Py_INCREF(Py_None); resultobj = Py_None;
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj;
9454 wxGrid *arg1 = (wxGrid *) 0 ;
9455 bool arg2 ;
9456 bool result;
9457 PyObject * obj0 = 0 ;
9458 PyObject * obj1 = 0 ;
9459 char *kwnames[] = {
9460 (char *) "self",(char *) "expandSelection", NULL
9461 };
9462
9463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail;
9464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9465 {
9466 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 result = (bool)(arg1)->MoveCursorUp(arg2);
9472
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_PyObj_FromBool((bool)result);
9477 return resultobj;
9478 fail:
9479 return NULL;
9480 }
9481
9482
9483 static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj;
9485 wxGrid *arg1 = (wxGrid *) 0 ;
9486 bool arg2 ;
9487 bool result;
9488 PyObject * obj0 = 0 ;
9489 PyObject * obj1 = 0 ;
9490 char *kwnames[] = {
9491 (char *) "self",(char *) "expandSelection", NULL
9492 };
9493
9494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail;
9495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9496 {
9497 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 result = (bool)(arg1)->MoveCursorDown(arg2);
9503
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) SWIG_fail;
9506 }
9507 resultobj = SWIG_PyObj_FromBool((bool)result);
9508 return resultobj;
9509 fail:
9510 return NULL;
9511 }
9512
9513
9514 static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
9515 PyObject *resultobj;
9516 wxGrid *arg1 = (wxGrid *) 0 ;
9517 bool arg2 ;
9518 bool result;
9519 PyObject * obj0 = 0 ;
9520 PyObject * obj1 = 0 ;
9521 char *kwnames[] = {
9522 (char *) "self",(char *) "expandSelection", NULL
9523 };
9524
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail;
9526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9527 {
9528 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
9529 if (PyErr_Occurred()) SWIG_fail;
9530 }
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 result = (bool)(arg1)->MoveCursorLeft(arg2);
9534
9535 wxPyEndAllowThreads(__tstate);
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 resultobj = SWIG_PyObj_FromBool((bool)result);
9539 return resultobj;
9540 fail:
9541 return NULL;
9542 }
9543
9544
9545 static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj;
9547 wxGrid *arg1 = (wxGrid *) 0 ;
9548 bool arg2 ;
9549 bool result;
9550 PyObject * obj0 = 0 ;
9551 PyObject * obj1 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "self",(char *) "expandSelection", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail;
9557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9558 {
9559 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
9560 if (PyErr_Occurred()) SWIG_fail;
9561 }
9562 {
9563 PyThreadState* __tstate = wxPyBeginAllowThreads();
9564 result = (bool)(arg1)->MoveCursorRight(arg2);
9565
9566 wxPyEndAllowThreads(__tstate);
9567 if (PyErr_Occurred()) SWIG_fail;
9568 }
9569 resultobj = SWIG_PyObj_FromBool((bool)result);
9570 return resultobj;
9571 fail:
9572 return NULL;
9573 }
9574
9575
9576 static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
9577 PyObject *resultobj;
9578 wxGrid *arg1 = (wxGrid *) 0 ;
9579 bool result;
9580 PyObject * obj0 = 0 ;
9581 char *kwnames[] = {
9582 (char *) "self", NULL
9583 };
9584
9585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail;
9586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9587 {
9588 PyThreadState* __tstate = wxPyBeginAllowThreads();
9589 result = (bool)(arg1)->MovePageDown();
9590
9591 wxPyEndAllowThreads(__tstate);
9592 if (PyErr_Occurred()) SWIG_fail;
9593 }
9594 resultobj = SWIG_PyObj_FromBool((bool)result);
9595 return resultobj;
9596 fail:
9597 return NULL;
9598 }
9599
9600
9601 static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
9602 PyObject *resultobj;
9603 wxGrid *arg1 = (wxGrid *) 0 ;
9604 bool result;
9605 PyObject * obj0 = 0 ;
9606 char *kwnames[] = {
9607 (char *) "self", NULL
9608 };
9609
9610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail;
9611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9612 {
9613 PyThreadState* __tstate = wxPyBeginAllowThreads();
9614 result = (bool)(arg1)->MovePageUp();
9615
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 resultobj = SWIG_PyObj_FromBool((bool)result);
9620 return resultobj;
9621 fail:
9622 return NULL;
9623 }
9624
9625
9626 static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9627 PyObject *resultobj;
9628 wxGrid *arg1 = (wxGrid *) 0 ;
9629 bool arg2 ;
9630 bool result;
9631 PyObject * obj0 = 0 ;
9632 PyObject * obj1 = 0 ;
9633 char *kwnames[] = {
9634 (char *) "self",(char *) "expandSelection", NULL
9635 };
9636
9637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail;
9638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9639 {
9640 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 result = (bool)(arg1)->MoveCursorUpBlock(arg2);
9646
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = SWIG_PyObj_FromBool((bool)result);
9651 return resultobj;
9652 fail:
9653 return NULL;
9654 }
9655
9656
9657 static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9658 PyObject *resultobj;
9659 wxGrid *arg1 = (wxGrid *) 0 ;
9660 bool arg2 ;
9661 bool result;
9662 PyObject * obj0 = 0 ;
9663 PyObject * obj1 = 0 ;
9664 char *kwnames[] = {
9665 (char *) "self",(char *) "expandSelection", NULL
9666 };
9667
9668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail;
9669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9670 {
9671 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 {
9675 PyThreadState* __tstate = wxPyBeginAllowThreads();
9676 result = (bool)(arg1)->MoveCursorDownBlock(arg2);
9677
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 resultobj = SWIG_PyObj_FromBool((bool)result);
9682 return resultobj;
9683 fail:
9684 return NULL;
9685 }
9686
9687
9688 static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj;
9690 wxGrid *arg1 = (wxGrid *) 0 ;
9691 bool arg2 ;
9692 bool result;
9693 PyObject * obj0 = 0 ;
9694 PyObject * obj1 = 0 ;
9695 char *kwnames[] = {
9696 (char *) "self",(char *) "expandSelection", NULL
9697 };
9698
9699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail;
9700 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9701 {
9702 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
9703 if (PyErr_Occurred()) SWIG_fail;
9704 }
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 result = (bool)(arg1)->MoveCursorLeftBlock(arg2);
9708
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_PyObj_FromBool((bool)result);
9713 return resultobj;
9714 fail:
9715 return NULL;
9716 }
9717
9718
9719 static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
9720 PyObject *resultobj;
9721 wxGrid *arg1 = (wxGrid *) 0 ;
9722 bool arg2 ;
9723 bool result;
9724 PyObject * obj0 = 0 ;
9725 PyObject * obj1 = 0 ;
9726 char *kwnames[] = {
9727 (char *) "self",(char *) "expandSelection", NULL
9728 };
9729
9730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail;
9731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9732 {
9733 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
9734 if (PyErr_Occurred()) SWIG_fail;
9735 }
9736 {
9737 PyThreadState* __tstate = wxPyBeginAllowThreads();
9738 result = (bool)(arg1)->MoveCursorRightBlock(arg2);
9739
9740 wxPyEndAllowThreads(__tstate);
9741 if (PyErr_Occurred()) SWIG_fail;
9742 }
9743 resultobj = SWIG_PyObj_FromBool((bool)result);
9744 return resultobj;
9745 fail:
9746 return NULL;
9747 }
9748
9749
9750 static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj;
9752 wxGrid *arg1 = (wxGrid *) 0 ;
9753 int result;
9754 PyObject * obj0 = 0 ;
9755 char *kwnames[] = {
9756 (char *) "self", NULL
9757 };
9758
9759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail;
9760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 result = (int)(arg1)->GetDefaultRowLabelSize();
9764
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_PyObj_FromInt((int)result);
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj;
9777 wxGrid *arg1 = (wxGrid *) 0 ;
9778 int result;
9779 PyObject * obj0 = 0 ;
9780 char *kwnames[] = {
9781 (char *) "self", NULL
9782 };
9783
9784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail;
9785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9786 {
9787 PyThreadState* __tstate = wxPyBeginAllowThreads();
9788 result = (int)(arg1)->GetRowLabelSize();
9789
9790 wxPyEndAllowThreads(__tstate);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 resultobj = SWIG_PyObj_FromInt((int)result);
9794 return resultobj;
9795 fail:
9796 return NULL;
9797 }
9798
9799
9800 static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9801 PyObject *resultobj;
9802 wxGrid *arg1 = (wxGrid *) 0 ;
9803 int result;
9804 PyObject * obj0 = 0 ;
9805 char *kwnames[] = {
9806 (char *) "self", NULL
9807 };
9808
9809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail;
9810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9811 {
9812 PyThreadState* __tstate = wxPyBeginAllowThreads();
9813 result = (int)(arg1)->GetDefaultColLabelSize();
9814
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 resultobj = SWIG_PyObj_FromInt((int)result);
9819 return resultobj;
9820 fail:
9821 return NULL;
9822 }
9823
9824
9825 static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9826 PyObject *resultobj;
9827 wxGrid *arg1 = (wxGrid *) 0 ;
9828 int result;
9829 PyObject * obj0 = 0 ;
9830 char *kwnames[] = {
9831 (char *) "self", NULL
9832 };
9833
9834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail;
9835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9836 {
9837 PyThreadState* __tstate = wxPyBeginAllowThreads();
9838 result = (int)(arg1)->GetColLabelSize();
9839
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 resultobj = SWIG_PyObj_FromInt((int)result);
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9851 PyObject *resultobj;
9852 wxGrid *arg1 = (wxGrid *) 0 ;
9853 wxColour result;
9854 PyObject * obj0 = 0 ;
9855 char *kwnames[] = {
9856 (char *) "self", NULL
9857 };
9858
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail;
9860 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9861 {
9862 PyThreadState* __tstate = wxPyBeginAllowThreads();
9863 result = (arg1)->GetLabelBackgroundColour();
9864
9865 wxPyEndAllowThreads(__tstate);
9866 if (PyErr_Occurred()) SWIG_fail;
9867 }
9868 {
9869 wxColour * resultptr;
9870 resultptr = new wxColour((wxColour &) result);
9871 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9872 }
9873 return resultobj;
9874 fail:
9875 return NULL;
9876 }
9877
9878
9879 static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9880 PyObject *resultobj;
9881 wxGrid *arg1 = (wxGrid *) 0 ;
9882 wxColour result;
9883 PyObject * obj0 = 0 ;
9884 char *kwnames[] = {
9885 (char *) "self", NULL
9886 };
9887
9888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail;
9889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 result = (arg1)->GetLabelTextColour();
9893
9894 wxPyEndAllowThreads(__tstate);
9895 if (PyErr_Occurred()) SWIG_fail;
9896 }
9897 {
9898 wxColour * resultptr;
9899 resultptr = new wxColour((wxColour &) result);
9900 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9901 }
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9909 PyObject *resultobj;
9910 wxGrid *arg1 = (wxGrid *) 0 ;
9911 wxFont result;
9912 PyObject * obj0 = 0 ;
9913 char *kwnames[] = {
9914 (char *) "self", NULL
9915 };
9916
9917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail;
9918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9919 {
9920 PyThreadState* __tstate = wxPyBeginAllowThreads();
9921 result = (arg1)->GetLabelFont();
9922
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 {
9927 wxFont * resultptr;
9928 resultptr = new wxFont((wxFont &) result);
9929 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
9930 }
9931 return resultobj;
9932 fail:
9933 return NULL;
9934 }
9935
9936
9937 static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9938 PyObject *resultobj;
9939 wxGrid *arg1 = (wxGrid *) 0 ;
9940 int *arg2 = (int *) 0 ;
9941 int *arg3 = (int *) 0 ;
9942 int temp2 ;
9943 int temp3 ;
9944 PyObject * obj0 = 0 ;
9945 char *kwnames[] = {
9946 (char *) "self", NULL
9947 };
9948
9949 arg2 = &temp2;
9950 arg3 = &temp3;
9951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail;
9952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9953 {
9954 PyThreadState* __tstate = wxPyBeginAllowThreads();
9955 (arg1)->GetRowLabelAlignment(arg2,arg3);
9956
9957 wxPyEndAllowThreads(__tstate);
9958 if (PyErr_Occurred()) SWIG_fail;
9959 }
9960 Py_INCREF(Py_None); resultobj = Py_None;
9961 {
9962 PyObject *o = PyInt_FromLong((long) (*arg2));
9963 resultobj = t_output_helper(resultobj,o);
9964 }
9965 {
9966 PyObject *o = PyInt_FromLong((long) (*arg3));
9967 resultobj = t_output_helper(resultobj,o);
9968 }
9969 return resultobj;
9970 fail:
9971 return NULL;
9972 }
9973
9974
9975 static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9976 PyObject *resultobj;
9977 wxGrid *arg1 = (wxGrid *) 0 ;
9978 int *arg2 = (int *) 0 ;
9979 int *arg3 = (int *) 0 ;
9980 int temp2 ;
9981 int temp3 ;
9982 PyObject * obj0 = 0 ;
9983 char *kwnames[] = {
9984 (char *) "self", NULL
9985 };
9986
9987 arg2 = &temp2;
9988 arg3 = &temp3;
9989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail;
9990 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9991 {
9992 PyThreadState* __tstate = wxPyBeginAllowThreads();
9993 (arg1)->GetColLabelAlignment(arg2,arg3);
9994
9995 wxPyEndAllowThreads(__tstate);
9996 if (PyErr_Occurred()) SWIG_fail;
9997 }
9998 Py_INCREF(Py_None); resultobj = Py_None;
9999 {
10000 PyObject *o = PyInt_FromLong((long) (*arg2));
10001 resultobj = t_output_helper(resultobj,o);
10002 }
10003 {
10004 PyObject *o = PyInt_FromLong((long) (*arg3));
10005 resultobj = t_output_helper(resultobj,o);
10006 }
10007 return resultobj;
10008 fail:
10009 return NULL;
10010 }
10011
10012
10013 static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10014 PyObject *resultobj;
10015 wxGrid *arg1 = (wxGrid *) 0 ;
10016 int result;
10017 PyObject * obj0 = 0 ;
10018 char *kwnames[] = {
10019 (char *) "self", NULL
10020 };
10021
10022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail;
10023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10024 {
10025 PyThreadState* __tstate = wxPyBeginAllowThreads();
10026 result = (int)(arg1)->GetColLabelTextOrientation();
10027
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
10031 resultobj = SWIG_PyObj_FromInt((int)result);
10032 return resultobj;
10033 fail:
10034 return NULL;
10035 }
10036
10037
10038 static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj;
10040 wxGrid *arg1 = (wxGrid *) 0 ;
10041 int arg2 ;
10042 wxString result;
10043 PyObject * obj0 = 0 ;
10044 PyObject * obj1 = 0 ;
10045 char *kwnames[] = {
10046 (char *) "self",(char *) "row", NULL
10047 };
10048
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowLabelValue",kwnames,&obj0,&obj1)) goto fail;
10050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10051 {
10052 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
10057 result = (arg1)->GetRowLabelValue(arg2);
10058
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 {
10063 #if wxUSE_UNICODE
10064 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10065 #else
10066 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10067 #endif
10068 }
10069 return resultobj;
10070 fail:
10071 return NULL;
10072 }
10073
10074
10075 static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10076 PyObject *resultobj;
10077 wxGrid *arg1 = (wxGrid *) 0 ;
10078 int arg2 ;
10079 wxString result;
10080 PyObject * obj0 = 0 ;
10081 PyObject * obj1 = 0 ;
10082 char *kwnames[] = {
10083 (char *) "self",(char *) "col", NULL
10084 };
10085
10086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColLabelValue",kwnames,&obj0,&obj1)) goto fail;
10087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10088 {
10089 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 {
10093 PyThreadState* __tstate = wxPyBeginAllowThreads();
10094 result = (arg1)->GetColLabelValue(arg2);
10095
10096 wxPyEndAllowThreads(__tstate);
10097 if (PyErr_Occurred()) SWIG_fail;
10098 }
10099 {
10100 #if wxUSE_UNICODE
10101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10102 #else
10103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10104 #endif
10105 }
10106 return resultobj;
10107 fail:
10108 return NULL;
10109 }
10110
10111
10112 static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10113 PyObject *resultobj;
10114 wxGrid *arg1 = (wxGrid *) 0 ;
10115 wxColour result;
10116 PyObject * obj0 = 0 ;
10117 char *kwnames[] = {
10118 (char *) "self", NULL
10119 };
10120
10121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail;
10122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10123 {
10124 PyThreadState* __tstate = wxPyBeginAllowThreads();
10125 result = (arg1)->GetGridLineColour();
10126
10127 wxPyEndAllowThreads(__tstate);
10128 if (PyErr_Occurred()) SWIG_fail;
10129 }
10130 {
10131 wxColour * resultptr;
10132 resultptr = new wxColour((wxColour &) result);
10133 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10134 }
10135 return resultobj;
10136 fail:
10137 return NULL;
10138 }
10139
10140
10141 static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10142 PyObject *resultobj;
10143 wxGrid *arg1 = (wxGrid *) 0 ;
10144 wxColour result;
10145 PyObject * obj0 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10152 {
10153 PyThreadState* __tstate = wxPyBeginAllowThreads();
10154 result = (arg1)->GetCellHighlightColour();
10155
10156 wxPyEndAllowThreads(__tstate);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
10159 {
10160 wxColour * resultptr;
10161 resultptr = new wxColour((wxColour &) result);
10162 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10163 }
10164 return resultobj;
10165 fail:
10166 return NULL;
10167 }
10168
10169
10170 static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10171 PyObject *resultobj;
10172 wxGrid *arg1 = (wxGrid *) 0 ;
10173 int result;
10174 PyObject * obj0 = 0 ;
10175 char *kwnames[] = {
10176 (char *) "self", NULL
10177 };
10178
10179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail;
10180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10181 {
10182 PyThreadState* __tstate = wxPyBeginAllowThreads();
10183 result = (int)(arg1)->GetCellHighlightPenWidth();
10184
10185 wxPyEndAllowThreads(__tstate);
10186 if (PyErr_Occurred()) SWIG_fail;
10187 }
10188 resultobj = SWIG_PyObj_FromInt((int)result);
10189 return resultobj;
10190 fail:
10191 return NULL;
10192 }
10193
10194
10195 static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10196 PyObject *resultobj;
10197 wxGrid *arg1 = (wxGrid *) 0 ;
10198 int result;
10199 PyObject * obj0 = 0 ;
10200 char *kwnames[] = {
10201 (char *) "self", NULL
10202 };
10203
10204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail;
10205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10206 {
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 result = (int)(arg1)->GetCellHighlightROPenWidth();
10209
10210 wxPyEndAllowThreads(__tstate);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 }
10213 resultobj = SWIG_PyObj_FromInt((int)result);
10214 return resultobj;
10215 fail:
10216 return NULL;
10217 }
10218
10219
10220 static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10221 PyObject *resultobj;
10222 wxGrid *arg1 = (wxGrid *) 0 ;
10223 int arg2 ;
10224 PyObject * obj0 = 0 ;
10225 PyObject * obj1 = 0 ;
10226 char *kwnames[] = {
10227 (char *) "self",(char *) "width", NULL
10228 };
10229
10230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowLabelSize",kwnames,&obj0,&obj1)) goto fail;
10231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10232 {
10233 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10234 if (PyErr_Occurred()) SWIG_fail;
10235 }
10236 {
10237 PyThreadState* __tstate = wxPyBeginAllowThreads();
10238 (arg1)->SetRowLabelSize(arg2);
10239
10240 wxPyEndAllowThreads(__tstate);
10241 if (PyErr_Occurred()) SWIG_fail;
10242 }
10243 Py_INCREF(Py_None); resultobj = Py_None;
10244 return resultobj;
10245 fail:
10246 return NULL;
10247 }
10248
10249
10250 static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10251 PyObject *resultobj;
10252 wxGrid *arg1 = (wxGrid *) 0 ;
10253 int arg2 ;
10254 PyObject * obj0 = 0 ;
10255 PyObject * obj1 = 0 ;
10256 char *kwnames[] = {
10257 (char *) "self",(char *) "height", NULL
10258 };
10259
10260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelSize",kwnames,&obj0,&obj1)) goto fail;
10261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10262 {
10263 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10264 if (PyErr_Occurred()) SWIG_fail;
10265 }
10266 {
10267 PyThreadState* __tstate = wxPyBeginAllowThreads();
10268 (arg1)->SetColLabelSize(arg2);
10269
10270 wxPyEndAllowThreads(__tstate);
10271 if (PyErr_Occurred()) SWIG_fail;
10272 }
10273 Py_INCREF(Py_None); resultobj = Py_None;
10274 return resultobj;
10275 fail:
10276 return NULL;
10277 }
10278
10279
10280 static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10281 PyObject *resultobj;
10282 wxGrid *arg1 = (wxGrid *) 0 ;
10283 wxColour *arg2 = 0 ;
10284 wxColour temp2 ;
10285 PyObject * obj0 = 0 ;
10286 PyObject * obj1 = 0 ;
10287 char *kwnames[] = {
10288 (char *) "self","arg2", NULL
10289 };
10290
10291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
10292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10293 {
10294 arg2 = &temp2;
10295 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10296 }
10297 {
10298 PyThreadState* __tstate = wxPyBeginAllowThreads();
10299 (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2);
10300
10301 wxPyEndAllowThreads(__tstate);
10302 if (PyErr_Occurred()) SWIG_fail;
10303 }
10304 Py_INCREF(Py_None); resultobj = Py_None;
10305 return resultobj;
10306 fail:
10307 return NULL;
10308 }
10309
10310
10311 static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10312 PyObject *resultobj;
10313 wxGrid *arg1 = (wxGrid *) 0 ;
10314 wxColour *arg2 = 0 ;
10315 wxColour temp2 ;
10316 PyObject * obj0 = 0 ;
10317 PyObject * obj1 = 0 ;
10318 char *kwnames[] = {
10319 (char *) "self","arg2", NULL
10320 };
10321
10322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail;
10323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10324 {
10325 arg2 = &temp2;
10326 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10327 }
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 (arg1)->SetLabelTextColour((wxColour const &)*arg2);
10331
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 Py_INCREF(Py_None); resultobj = Py_None;
10336 return resultobj;
10337 fail:
10338 return NULL;
10339 }
10340
10341
10342 static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj;
10344 wxGrid *arg1 = (wxGrid *) 0 ;
10345 wxFont *arg2 = 0 ;
10346 PyObject * obj0 = 0 ;
10347 PyObject * obj1 = 0 ;
10348 char *kwnames[] = {
10349 (char *) "self","arg2", NULL
10350 };
10351
10352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail;
10353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10354 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10355 if (arg2 == NULL) {
10356 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10357 }
10358 {
10359 PyThreadState* __tstate = wxPyBeginAllowThreads();
10360 (arg1)->SetLabelFont((wxFont const &)*arg2);
10361
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 Py_INCREF(Py_None); resultobj = Py_None;
10366 return resultobj;
10367 fail:
10368 return NULL;
10369 }
10370
10371
10372 static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10373 PyObject *resultobj;
10374 wxGrid *arg1 = (wxGrid *) 0 ;
10375 int arg2 ;
10376 int arg3 ;
10377 PyObject * obj0 = 0 ;
10378 PyObject * obj1 = 0 ;
10379 PyObject * obj2 = 0 ;
10380 char *kwnames[] = {
10381 (char *) "self",(char *) "horiz",(char *) "vert", NULL
10382 };
10383
10384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
10385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10386 {
10387 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 {
10391 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 (arg1)->SetRowLabelAlignment(arg2,arg3);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 Py_INCREF(Py_None); resultobj = Py_None;
10402 return resultobj;
10403 fail:
10404 return NULL;
10405 }
10406
10407
10408 static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10409 PyObject *resultobj;
10410 wxGrid *arg1 = (wxGrid *) 0 ;
10411 int arg2 ;
10412 int arg3 ;
10413 PyObject * obj0 = 0 ;
10414 PyObject * obj1 = 0 ;
10415 PyObject * obj2 = 0 ;
10416 char *kwnames[] = {
10417 (char *) "self",(char *) "horiz",(char *) "vert", NULL
10418 };
10419
10420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
10421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10422 {
10423 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10424 if (PyErr_Occurred()) SWIG_fail;
10425 }
10426 {
10427 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 (arg1)->SetColLabelAlignment(arg2,arg3);
10433
10434 wxPyEndAllowThreads(__tstate);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
10437 Py_INCREF(Py_None); resultobj = Py_None;
10438 return resultobj;
10439 fail:
10440 return NULL;
10441 }
10442
10443
10444 static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
10445 PyObject *resultobj;
10446 wxGrid *arg1 = (wxGrid *) 0 ;
10447 int arg2 ;
10448 PyObject * obj0 = 0 ;
10449 PyObject * obj1 = 0 ;
10450 char *kwnames[] = {
10451 (char *) "self",(char *) "textOrientation", NULL
10452 };
10453
10454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColLabelTextOrientation",kwnames,&obj0,&obj1)) goto fail;
10455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10456 {
10457 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10458 if (PyErr_Occurred()) SWIG_fail;
10459 }
10460 {
10461 PyThreadState* __tstate = wxPyBeginAllowThreads();
10462 (arg1)->SetColLabelTextOrientation(arg2);
10463
10464 wxPyEndAllowThreads(__tstate);
10465 if (PyErr_Occurred()) SWIG_fail;
10466 }
10467 Py_INCREF(Py_None); resultobj = Py_None;
10468 return resultobj;
10469 fail:
10470 return NULL;
10471 }
10472
10473
10474 static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10475 PyObject *resultobj;
10476 wxGrid *arg1 = (wxGrid *) 0 ;
10477 int arg2 ;
10478 wxString *arg3 = 0 ;
10479 bool temp3 = False ;
10480 PyObject * obj0 = 0 ;
10481 PyObject * obj1 = 0 ;
10482 PyObject * obj2 = 0 ;
10483 char *kwnames[] = {
10484 (char *) "self",(char *) "row","arg3", NULL
10485 };
10486
10487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
10488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10489 {
10490 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 {
10494 arg3 = wxString_in_helper(obj2);
10495 if (arg3 == NULL) SWIG_fail;
10496 temp3 = True;
10497 }
10498 {
10499 PyThreadState* __tstate = wxPyBeginAllowThreads();
10500 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
10501
10502 wxPyEndAllowThreads(__tstate);
10503 if (PyErr_Occurred()) SWIG_fail;
10504 }
10505 Py_INCREF(Py_None); resultobj = Py_None;
10506 {
10507 if (temp3)
10508 delete arg3;
10509 }
10510 return resultobj;
10511 fail:
10512 {
10513 if (temp3)
10514 delete arg3;
10515 }
10516 return NULL;
10517 }
10518
10519
10520 static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
10521 PyObject *resultobj;
10522 wxGrid *arg1 = (wxGrid *) 0 ;
10523 int arg2 ;
10524 wxString *arg3 = 0 ;
10525 bool temp3 = False ;
10526 PyObject * obj0 = 0 ;
10527 PyObject * obj1 = 0 ;
10528 PyObject * obj2 = 0 ;
10529 char *kwnames[] = {
10530 (char *) "self",(char *) "col","arg3", NULL
10531 };
10532
10533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColLabelValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
10534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10535 {
10536 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 {
10540 arg3 = wxString_in_helper(obj2);
10541 if (arg3 == NULL) SWIG_fail;
10542 temp3 = True;
10543 }
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
10547
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 Py_INCREF(Py_None); resultobj = Py_None;
10552 {
10553 if (temp3)
10554 delete arg3;
10555 }
10556 return resultobj;
10557 fail:
10558 {
10559 if (temp3)
10560 delete arg3;
10561 }
10562 return NULL;
10563 }
10564
10565
10566 static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10567 PyObject *resultobj;
10568 wxGrid *arg1 = (wxGrid *) 0 ;
10569 wxColour *arg2 = 0 ;
10570 wxColour temp2 ;
10571 PyObject * obj0 = 0 ;
10572 PyObject * obj1 = 0 ;
10573 char *kwnames[] = {
10574 (char *) "self","arg2", NULL
10575 };
10576
10577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail;
10578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10579 {
10580 arg2 = &temp2;
10581 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10582 }
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 (arg1)->SetGridLineColour((wxColour const &)*arg2);
10586
10587 wxPyEndAllowThreads(__tstate);
10588 if (PyErr_Occurred()) SWIG_fail;
10589 }
10590 Py_INCREF(Py_None); resultobj = Py_None;
10591 return resultobj;
10592 fail:
10593 return NULL;
10594 }
10595
10596
10597 static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10598 PyObject *resultobj;
10599 wxGrid *arg1 = (wxGrid *) 0 ;
10600 wxColour *arg2 = 0 ;
10601 wxColour temp2 ;
10602 PyObject * obj0 = 0 ;
10603 PyObject * obj1 = 0 ;
10604 char *kwnames[] = {
10605 (char *) "self","arg2", NULL
10606 };
10607
10608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail;
10609 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10610 {
10611 arg2 = &temp2;
10612 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10613 }
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 (arg1)->SetCellHighlightColour((wxColour const &)*arg2);
10617
10618 wxPyEndAllowThreads(__tstate);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 Py_INCREF(Py_None); resultobj = Py_None;
10622 return resultobj;
10623 fail:
10624 return NULL;
10625 }
10626
10627
10628 static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10629 PyObject *resultobj;
10630 wxGrid *arg1 = (wxGrid *) 0 ;
10631 int arg2 ;
10632 PyObject * obj0 = 0 ;
10633 PyObject * obj1 = 0 ;
10634 char *kwnames[] = {
10635 (char *) "self",(char *) "width", NULL
10636 };
10637
10638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&obj1)) goto fail;
10639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10640 {
10641 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 (arg1)->SetCellHighlightPenWidth(arg2);
10647
10648 wxPyEndAllowThreads(__tstate);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 Py_INCREF(Py_None); resultobj = Py_None;
10652 return resultobj;
10653 fail:
10654 return NULL;
10655 }
10656
10657
10658 static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10659 PyObject *resultobj;
10660 wxGrid *arg1 = (wxGrid *) 0 ;
10661 int arg2 ;
10662 PyObject * obj0 = 0 ;
10663 PyObject * obj1 = 0 ;
10664 char *kwnames[] = {
10665 (char *) "self",(char *) "width", NULL
10666 };
10667
10668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&obj1)) goto fail;
10669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10670 {
10671 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 {
10675 PyThreadState* __tstate = wxPyBeginAllowThreads();
10676 (arg1)->SetCellHighlightROPenWidth(arg2);
10677
10678 wxPyEndAllowThreads(__tstate);
10679 if (PyErr_Occurred()) SWIG_fail;
10680 }
10681 Py_INCREF(Py_None); resultobj = Py_None;
10682 return resultobj;
10683 fail:
10684 return NULL;
10685 }
10686
10687
10688 static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10689 PyObject *resultobj;
10690 wxGrid *arg1 = (wxGrid *) 0 ;
10691 bool arg2 = (bool) True ;
10692 PyObject * obj0 = 0 ;
10693 PyObject * obj1 = 0 ;
10694 char *kwnames[] = {
10695 (char *) "self",(char *) "enable", NULL
10696 };
10697
10698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail;
10699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10700 if (obj1) {
10701 {
10702 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 }
10705 }
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 (arg1)->EnableDragRowSize(arg2);
10709
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 Py_INCREF(Py_None); resultobj = Py_None;
10714 return resultobj;
10715 fail:
10716 return NULL;
10717 }
10718
10719
10720 static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj;
10722 wxGrid *arg1 = (wxGrid *) 0 ;
10723 PyObject * obj0 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "self", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail;
10729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
10732 (arg1)->DisableDragRowSize();
10733
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 Py_INCREF(Py_None); resultobj = Py_None;
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj;
10746 wxGrid *arg1 = (wxGrid *) 0 ;
10747 bool result;
10748 PyObject * obj0 = 0 ;
10749 char *kwnames[] = {
10750 (char *) "self", NULL
10751 };
10752
10753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail;
10754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10755 {
10756 PyThreadState* __tstate = wxPyBeginAllowThreads();
10757 result = (bool)(arg1)->CanDragRowSize();
10758
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 resultobj = SWIG_PyObj_FromBool((bool)result);
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj;
10771 wxGrid *arg1 = (wxGrid *) 0 ;
10772 bool arg2 = (bool) True ;
10773 PyObject * obj0 = 0 ;
10774 PyObject * obj1 = 0 ;
10775 char *kwnames[] = {
10776 (char *) "self",(char *) "enable", NULL
10777 };
10778
10779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail;
10780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10781 if (obj1) {
10782 {
10783 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
10784 if (PyErr_Occurred()) SWIG_fail;
10785 }
10786 }
10787 {
10788 PyThreadState* __tstate = wxPyBeginAllowThreads();
10789 (arg1)->EnableDragColSize(arg2);
10790
10791 wxPyEndAllowThreads(__tstate);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 Py_INCREF(Py_None); resultobj = Py_None;
10795 return resultobj;
10796 fail:
10797 return NULL;
10798 }
10799
10800
10801 static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10802 PyObject *resultobj;
10803 wxGrid *arg1 = (wxGrid *) 0 ;
10804 PyObject * obj0 = 0 ;
10805 char *kwnames[] = {
10806 (char *) "self", NULL
10807 };
10808
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail;
10810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10811 {
10812 PyThreadState* __tstate = wxPyBeginAllowThreads();
10813 (arg1)->DisableDragColSize();
10814
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 }
10818 Py_INCREF(Py_None); resultobj = Py_None;
10819 return resultobj;
10820 fail:
10821 return NULL;
10822 }
10823
10824
10825 static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10826 PyObject *resultobj;
10827 wxGrid *arg1 = (wxGrid *) 0 ;
10828 bool result;
10829 PyObject * obj0 = 0 ;
10830 char *kwnames[] = {
10831 (char *) "self", NULL
10832 };
10833
10834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail;
10835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 result = (bool)(arg1)->CanDragColSize();
10839
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 resultobj = SWIG_PyObj_FromBool((bool)result);
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj;
10852 wxGrid *arg1 = (wxGrid *) 0 ;
10853 bool arg2 = (bool) True ;
10854 PyObject * obj0 = 0 ;
10855 PyObject * obj1 = 0 ;
10856 char *kwnames[] = {
10857 (char *) "self",(char *) "enable", NULL
10858 };
10859
10860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail;
10861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10862 if (obj1) {
10863 {
10864 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
10865 if (PyErr_Occurred()) SWIG_fail;
10866 }
10867 }
10868 {
10869 PyThreadState* __tstate = wxPyBeginAllowThreads();
10870 (arg1)->EnableDragGridSize(arg2);
10871
10872 wxPyEndAllowThreads(__tstate);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 }
10875 Py_INCREF(Py_None); resultobj = Py_None;
10876 return resultobj;
10877 fail:
10878 return NULL;
10879 }
10880
10881
10882 static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10883 PyObject *resultobj;
10884 wxGrid *arg1 = (wxGrid *) 0 ;
10885 PyObject * obj0 = 0 ;
10886 char *kwnames[] = {
10887 (char *) "self", NULL
10888 };
10889
10890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail;
10891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10892 {
10893 PyThreadState* __tstate = wxPyBeginAllowThreads();
10894 (arg1)->DisableDragGridSize();
10895
10896 wxPyEndAllowThreads(__tstate);
10897 if (PyErr_Occurred()) SWIG_fail;
10898 }
10899 Py_INCREF(Py_None); resultobj = Py_None;
10900 return resultobj;
10901 fail:
10902 return NULL;
10903 }
10904
10905
10906 static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10907 PyObject *resultobj;
10908 wxGrid *arg1 = (wxGrid *) 0 ;
10909 bool result;
10910 PyObject * obj0 = 0 ;
10911 char *kwnames[] = {
10912 (char *) "self", NULL
10913 };
10914
10915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail;
10916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 result = (bool)(arg1)->CanDragGridSize();
10920
10921 wxPyEndAllowThreads(__tstate);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 }
10924 resultobj = SWIG_PyObj_FromBool((bool)result);
10925 return resultobj;
10926 fail:
10927 return NULL;
10928 }
10929
10930
10931 static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj;
10933 wxGrid *arg1 = (wxGrid *) 0 ;
10934 int arg2 ;
10935 int arg3 ;
10936 wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ;
10937 PyObject * obj0 = 0 ;
10938 PyObject * obj1 = 0 ;
10939 PyObject * obj2 = 0 ;
10940 PyObject * obj3 = 0 ;
10941 char *kwnames[] = {
10942 (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL
10943 };
10944
10945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10947 {
10948 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 {
10952 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 (arg1)->SetAttr(arg2,arg3,arg4);
10959
10960 wxPyEndAllowThreads(__tstate);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 }
10963 Py_INCREF(Py_None); resultobj = Py_None;
10964 return resultobj;
10965 fail:
10966 return NULL;
10967 }
10968
10969
10970 static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
10971 PyObject *resultobj;
10972 wxGrid *arg1 = (wxGrid *) 0 ;
10973 int arg2 ;
10974 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
10975 PyObject * obj0 = 0 ;
10976 PyObject * obj1 = 0 ;
10977 PyObject * obj2 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self",(char *) "row",(char *) "attr", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10984 {
10985 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10989 {
10990 PyThreadState* __tstate = wxPyBeginAllowThreads();
10991 (arg1)->SetRowAttr(arg2,arg3);
10992
10993 wxPyEndAllowThreads(__tstate);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 Py_INCREF(Py_None); resultobj = Py_None;
10997 return resultobj;
10998 fail:
10999 return NULL;
11000 }
11001
11002
11003 static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
11004 PyObject *resultobj;
11005 wxGrid *arg1 = (wxGrid *) 0 ;
11006 int arg2 ;
11007 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
11008 PyObject * obj0 = 0 ;
11009 PyObject * obj1 = 0 ;
11010 PyObject * obj2 = 0 ;
11011 char *kwnames[] = {
11012 (char *) "self",(char *) "col",(char *) "attr", NULL
11013 };
11014
11015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
11016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11017 {
11018 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 }
11021 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11022 {
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 (arg1)->SetColAttr(arg2,arg3);
11025
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 Py_INCREF(Py_None); resultobj = Py_None;
11030 return resultobj;
11031 fail:
11032 return NULL;
11033 }
11034
11035
11036 static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) {
11037 PyObject *resultobj;
11038 wxGrid *arg1 = (wxGrid *) 0 ;
11039 int arg2 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 char *kwnames[] = {
11043 (char *) "self",(char *) "col", NULL
11044 };
11045
11046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatBool",kwnames,&obj0,&obj1)) goto fail;
11047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11048 {
11049 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 {
11053 PyThreadState* __tstate = wxPyBeginAllowThreads();
11054 (arg1)->SetColFormatBool(arg2);
11055
11056 wxPyEndAllowThreads(__tstate);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 Py_INCREF(Py_None); resultobj = Py_None;
11060 return resultobj;
11061 fail:
11062 return NULL;
11063 }
11064
11065
11066 static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
11067 PyObject *resultobj;
11068 wxGrid *arg1 = (wxGrid *) 0 ;
11069 int arg2 ;
11070 PyObject * obj0 = 0 ;
11071 PyObject * obj1 = 0 ;
11072 char *kwnames[] = {
11073 (char *) "self",(char *) "col", NULL
11074 };
11075
11076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColFormatNumber",kwnames,&obj0,&obj1)) goto fail;
11077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11078 {
11079 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 }
11082 {
11083 PyThreadState* __tstate = wxPyBeginAllowThreads();
11084 (arg1)->SetColFormatNumber(arg2);
11085
11086 wxPyEndAllowThreads(__tstate);
11087 if (PyErr_Occurred()) SWIG_fail;
11088 }
11089 Py_INCREF(Py_None); resultobj = Py_None;
11090 return resultobj;
11091 fail:
11092 return NULL;
11093 }
11094
11095
11096 static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
11097 PyObject *resultobj;
11098 wxGrid *arg1 = (wxGrid *) 0 ;
11099 int arg2 ;
11100 int arg3 = (int) -1 ;
11101 int arg4 = (int) -1 ;
11102 PyObject * obj0 = 0 ;
11103 PyObject * obj1 = 0 ;
11104 PyObject * obj2 = 0 ;
11105 PyObject * obj3 = 0 ;
11106 char *kwnames[] = {
11107 (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL
11108 };
11109
11110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Grid_SetColFormatFloat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11112 {
11113 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 }
11116 if (obj2) {
11117 {
11118 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 }
11121 }
11122 if (obj3) {
11123 {
11124 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 }
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 (arg1)->SetColFormatFloat(arg2,arg3,arg4);
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 Py_INCREF(Py_None); resultobj = Py_None;
11136 return resultobj;
11137 fail:
11138 return NULL;
11139 }
11140
11141
11142 static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj;
11144 wxGrid *arg1 = (wxGrid *) 0 ;
11145 int arg2 ;
11146 wxString *arg3 = 0 ;
11147 bool temp3 = False ;
11148 PyObject * obj0 = 0 ;
11149 PyObject * obj1 = 0 ;
11150 PyObject * obj2 = 0 ;
11151 char *kwnames[] = {
11152 (char *) "self",(char *) "col",(char *) "typeName", NULL
11153 };
11154
11155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColFormatCustom",kwnames,&obj0,&obj1,&obj2)) goto fail;
11156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11157 {
11158 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 {
11162 arg3 = wxString_in_helper(obj2);
11163 if (arg3 == NULL) SWIG_fail;
11164 temp3 = True;
11165 }
11166 {
11167 PyThreadState* __tstate = wxPyBeginAllowThreads();
11168 (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3);
11169
11170 wxPyEndAllowThreads(__tstate);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 Py_INCREF(Py_None); resultobj = Py_None;
11174 {
11175 if (temp3)
11176 delete arg3;
11177 }
11178 return resultobj;
11179 fail:
11180 {
11181 if (temp3)
11182 delete arg3;
11183 }
11184 return NULL;
11185 }
11186
11187
11188 static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11189 PyObject *resultobj;
11190 wxGrid *arg1 = (wxGrid *) 0 ;
11191 bool arg2 = (bool) True ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 char *kwnames[] = {
11195 (char *) "self",(char *) "enable", NULL
11196 };
11197
11198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail;
11199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11200 if (obj1) {
11201 {
11202 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 }
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 (arg1)->EnableGridLines(arg2);
11209
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 Py_INCREF(Py_None); resultobj = Py_None;
11214 return resultobj;
11215 fail:
11216 return NULL;
11217 }
11218
11219
11220 static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11221 PyObject *resultobj;
11222 wxGrid *arg1 = (wxGrid *) 0 ;
11223 bool result;
11224 PyObject * obj0 = 0 ;
11225 char *kwnames[] = {
11226 (char *) "self", NULL
11227 };
11228
11229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail;
11230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11231 {
11232 PyThreadState* __tstate = wxPyBeginAllowThreads();
11233 result = (bool)(arg1)->GridLinesEnabled();
11234
11235 wxPyEndAllowThreads(__tstate);
11236 if (PyErr_Occurred()) SWIG_fail;
11237 }
11238 resultobj = SWIG_PyObj_FromBool((bool)result);
11239 return resultobj;
11240 fail:
11241 return NULL;
11242 }
11243
11244
11245 static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11246 PyObject *resultobj;
11247 wxGrid *arg1 = (wxGrid *) 0 ;
11248 int result;
11249 PyObject * obj0 = 0 ;
11250 char *kwnames[] = {
11251 (char *) "self", NULL
11252 };
11253
11254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail;
11255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11256 {
11257 PyThreadState* __tstate = wxPyBeginAllowThreads();
11258 result = (int)(arg1)->GetDefaultRowSize();
11259
11260 wxPyEndAllowThreads(__tstate);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 }
11263 resultobj = SWIG_PyObj_FromInt((int)result);
11264 return resultobj;
11265 fail:
11266 return NULL;
11267 }
11268
11269
11270 static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11271 PyObject *resultobj;
11272 wxGrid *arg1 = (wxGrid *) 0 ;
11273 int arg2 ;
11274 int result;
11275 PyObject * obj0 = 0 ;
11276 PyObject * obj1 = 0 ;
11277 char *kwnames[] = {
11278 (char *) "self",(char *) "row", NULL
11279 };
11280
11281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetRowSize",kwnames,&obj0,&obj1)) goto fail;
11282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11283 {
11284 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 result = (int)(arg1)->GetRowSize(arg2);
11290
11291 wxPyEndAllowThreads(__tstate);
11292 if (PyErr_Occurred()) SWIG_fail;
11293 }
11294 resultobj = SWIG_PyObj_FromInt((int)result);
11295 return resultobj;
11296 fail:
11297 return NULL;
11298 }
11299
11300
11301 static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11302 PyObject *resultobj;
11303 wxGrid *arg1 = (wxGrid *) 0 ;
11304 int result;
11305 PyObject * obj0 = 0 ;
11306 char *kwnames[] = {
11307 (char *) "self", NULL
11308 };
11309
11310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail;
11311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11312 {
11313 PyThreadState* __tstate = wxPyBeginAllowThreads();
11314 result = (int)(arg1)->GetDefaultColSize();
11315
11316 wxPyEndAllowThreads(__tstate);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 }
11319 resultobj = SWIG_PyObj_FromInt((int)result);
11320 return resultobj;
11321 fail:
11322 return NULL;
11323 }
11324
11325
11326 static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11327 PyObject *resultobj;
11328 wxGrid *arg1 = (wxGrid *) 0 ;
11329 int arg2 ;
11330 int result;
11331 PyObject * obj0 = 0 ;
11332 PyObject * obj1 = 0 ;
11333 char *kwnames[] = {
11334 (char *) "self",(char *) "col", NULL
11335 };
11336
11337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetColSize",kwnames,&obj0,&obj1)) goto fail;
11338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11339 {
11340 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 result = (int)(arg1)->GetColSize(arg2);
11346
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 resultobj = SWIG_PyObj_FromInt((int)result);
11351 return resultobj;
11352 fail:
11353 return NULL;
11354 }
11355
11356
11357 static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11358 PyObject *resultobj;
11359 wxGrid *arg1 = (wxGrid *) 0 ;
11360 wxColour result;
11361 PyObject * obj0 = 0 ;
11362 char *kwnames[] = {
11363 (char *) "self", NULL
11364 };
11365
11366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail;
11367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (arg1)->GetDefaultCellBackgroundColour();
11371
11372 wxPyEndAllowThreads(__tstate);
11373 if (PyErr_Occurred()) SWIG_fail;
11374 }
11375 {
11376 wxColour * resultptr;
11377 resultptr = new wxColour((wxColour &) result);
11378 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
11379 }
11380 return resultobj;
11381 fail:
11382 return NULL;
11383 }
11384
11385
11386 static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11387 PyObject *resultobj;
11388 wxGrid *arg1 = (wxGrid *) 0 ;
11389 int arg2 ;
11390 int arg3 ;
11391 wxColour result;
11392 PyObject * obj0 = 0 ;
11393 PyObject * obj1 = 0 ;
11394 PyObject * obj2 = 0 ;
11395 char *kwnames[] = {
11396 (char *) "self",(char *) "row",(char *) "col", NULL
11397 };
11398
11399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
11400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11401 {
11402 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11403 if (PyErr_Occurred()) SWIG_fail;
11404 }
11405 {
11406 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (arg1)->GetCellBackgroundColour(arg2,arg3);
11412
11413 wxPyEndAllowThreads(__tstate);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 }
11416 {
11417 wxColour * resultptr;
11418 resultptr = new wxColour((wxColour &) result);
11419 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
11420 }
11421 return resultobj;
11422 fail:
11423 return NULL;
11424 }
11425
11426
11427 static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11428 PyObject *resultobj;
11429 wxGrid *arg1 = (wxGrid *) 0 ;
11430 wxColour result;
11431 PyObject * obj0 = 0 ;
11432 char *kwnames[] = {
11433 (char *) "self", NULL
11434 };
11435
11436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail;
11437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11438 {
11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
11440 result = (arg1)->GetDefaultCellTextColour();
11441
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 {
11446 wxColour * resultptr;
11447 resultptr = new wxColour((wxColour &) result);
11448 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
11449 }
11450 return resultobj;
11451 fail:
11452 return NULL;
11453 }
11454
11455
11456 static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11457 PyObject *resultobj;
11458 wxGrid *arg1 = (wxGrid *) 0 ;
11459 int arg2 ;
11460 int arg3 ;
11461 wxColour result;
11462 PyObject * obj0 = 0 ;
11463 PyObject * obj1 = 0 ;
11464 PyObject * obj2 = 0 ;
11465 char *kwnames[] = {
11466 (char *) "self",(char *) "row",(char *) "col", NULL
11467 };
11468
11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
11470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11471 {
11472 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 {
11476 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 PyThreadState* __tstate = wxPyBeginAllowThreads();
11481 result = (arg1)->GetCellTextColour(arg2,arg3);
11482
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 {
11487 wxColour * resultptr;
11488 resultptr = new wxColour((wxColour &) result);
11489 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
11490 }
11491 return resultobj;
11492 fail:
11493 return NULL;
11494 }
11495
11496
11497 static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11498 PyObject *resultobj;
11499 wxGrid *arg1 = (wxGrid *) 0 ;
11500 wxFont result;
11501 PyObject * obj0 = 0 ;
11502 char *kwnames[] = {
11503 (char *) "self", NULL
11504 };
11505
11506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail;
11507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 result = (arg1)->GetDefaultCellFont();
11511
11512 wxPyEndAllowThreads(__tstate);
11513 if (PyErr_Occurred()) SWIG_fail;
11514 }
11515 {
11516 wxFont * resultptr;
11517 resultptr = new wxFont((wxFont &) result);
11518 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
11519 }
11520 return resultobj;
11521 fail:
11522 return NULL;
11523 }
11524
11525
11526 static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11527 PyObject *resultobj;
11528 wxGrid *arg1 = (wxGrid *) 0 ;
11529 int arg2 ;
11530 int arg3 ;
11531 wxFont result;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11534 PyObject * obj2 = 0 ;
11535 char *kwnames[] = {
11536 (char *) "self",(char *) "row",(char *) "col", NULL
11537 };
11538
11539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
11540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11541 {
11542 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11543 if (PyErr_Occurred()) SWIG_fail;
11544 }
11545 {
11546 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 {
11550 PyThreadState* __tstate = wxPyBeginAllowThreads();
11551 result = (arg1)->GetCellFont(arg2,arg3);
11552
11553 wxPyEndAllowThreads(__tstate);
11554 if (PyErr_Occurred()) SWIG_fail;
11555 }
11556 {
11557 wxFont * resultptr;
11558 resultptr = new wxFont((wxFont &) result);
11559 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
11560 }
11561 return resultobj;
11562 fail:
11563 return NULL;
11564 }
11565
11566
11567 static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11568 PyObject *resultobj;
11569 wxGrid *arg1 = (wxGrid *) 0 ;
11570 int *arg2 = (int *) 0 ;
11571 int *arg3 = (int *) 0 ;
11572 int temp2 ;
11573 int temp3 ;
11574 PyObject * obj0 = 0 ;
11575 char *kwnames[] = {
11576 (char *) "self", NULL
11577 };
11578
11579 arg2 = &temp2;
11580 arg3 = &temp3;
11581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail;
11582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 (arg1)->GetDefaultCellAlignment(arg2,arg3);
11586
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 Py_INCREF(Py_None); resultobj = Py_None;
11591 {
11592 PyObject *o = PyInt_FromLong((long) (*arg2));
11593 resultobj = t_output_helper(resultobj,o);
11594 }
11595 {
11596 PyObject *o = PyInt_FromLong((long) (*arg3));
11597 resultobj = t_output_helper(resultobj,o);
11598 }
11599 return resultobj;
11600 fail:
11601 return NULL;
11602 }
11603
11604
11605 static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11606 PyObject *resultobj;
11607 wxGrid *arg1 = (wxGrid *) 0 ;
11608 int arg2 ;
11609 int arg3 ;
11610 int *arg4 = (int *) 0 ;
11611 int *arg5 = (int *) 0 ;
11612 int temp4 ;
11613 int temp5 ;
11614 PyObject * obj0 = 0 ;
11615 PyObject * obj1 = 0 ;
11616 PyObject * obj2 = 0 ;
11617 char *kwnames[] = {
11618 (char *) "self",(char *) "row",(char *) "col", NULL
11619 };
11620
11621 arg4 = &temp4;
11622 arg5 = &temp5;
11623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
11624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11625 {
11626 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 }
11629 {
11630 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11631 if (PyErr_Occurred()) SWIG_fail;
11632 }
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5);
11636
11637 wxPyEndAllowThreads(__tstate);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 }
11640 Py_INCREF(Py_None); resultobj = Py_None;
11641 {
11642 PyObject *o = PyInt_FromLong((long) (*arg4));
11643 resultobj = t_output_helper(resultobj,o);
11644 }
11645 {
11646 PyObject *o = PyInt_FromLong((long) (*arg5));
11647 resultobj = t_output_helper(resultobj,o);
11648 }
11649 return resultobj;
11650 fail:
11651 return NULL;
11652 }
11653
11654
11655 static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11656 PyObject *resultobj;
11657 wxGrid *arg1 = (wxGrid *) 0 ;
11658 bool result;
11659 PyObject * obj0 = 0 ;
11660 char *kwnames[] = {
11661 (char *) "self", NULL
11662 };
11663
11664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail;
11665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11666 {
11667 PyThreadState* __tstate = wxPyBeginAllowThreads();
11668 result = (bool)(arg1)->GetDefaultCellOverflow();
11669
11670 wxPyEndAllowThreads(__tstate);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 }
11673 resultobj = SWIG_PyObj_FromBool((bool)result);
11674 return resultobj;
11675 fail:
11676 return NULL;
11677 }
11678
11679
11680 static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11681 PyObject *resultobj;
11682 wxGrid *arg1 = (wxGrid *) 0 ;
11683 int arg2 ;
11684 int arg3 ;
11685 bool result;
11686 PyObject * obj0 = 0 ;
11687 PyObject * obj1 = 0 ;
11688 PyObject * obj2 = 0 ;
11689 char *kwnames[] = {
11690 (char *) "self",(char *) "row",(char *) "col", NULL
11691 };
11692
11693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellOverflow",kwnames,&obj0,&obj1,&obj2)) goto fail;
11694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11695 {
11696 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11697 if (PyErr_Occurred()) SWIG_fail;
11698 }
11699 {
11700 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11701 if (PyErr_Occurred()) SWIG_fail;
11702 }
11703 {
11704 PyThreadState* __tstate = wxPyBeginAllowThreads();
11705 result = (bool)(arg1)->GetCellOverflow(arg2,arg3);
11706
11707 wxPyEndAllowThreads(__tstate);
11708 if (PyErr_Occurred()) SWIG_fail;
11709 }
11710 resultobj = SWIG_PyObj_FromBool((bool)result);
11711 return resultobj;
11712 fail:
11713 return NULL;
11714 }
11715
11716
11717 static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11718 PyObject *resultobj;
11719 wxGrid *arg1 = (wxGrid *) 0 ;
11720 int arg2 ;
11721 int arg3 ;
11722 int *arg4 = (int *) 0 ;
11723 int *arg5 = (int *) 0 ;
11724 int temp4 ;
11725 int temp5 ;
11726 PyObject * obj0 = 0 ;
11727 PyObject * obj1 = 0 ;
11728 PyObject * obj2 = 0 ;
11729 char *kwnames[] = {
11730 (char *) "self",(char *) "row",(char *) "col", NULL
11731 };
11732
11733 arg4 = &temp4;
11734 arg5 = &temp5;
11735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11737 {
11738 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 {
11742 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 {
11746 PyThreadState* __tstate = wxPyBeginAllowThreads();
11747 (arg1)->GetCellSize(arg2,arg3,arg4,arg5);
11748
11749 wxPyEndAllowThreads(__tstate);
11750 if (PyErr_Occurred()) SWIG_fail;
11751 }
11752 Py_INCREF(Py_None); resultobj = Py_None;
11753 {
11754 PyObject *o = PyInt_FromLong((long) (*arg4));
11755 resultobj = t_output_helper(resultobj,o);
11756 }
11757 {
11758 PyObject *o = PyInt_FromLong((long) (*arg5));
11759 resultobj = t_output_helper(resultobj,o);
11760 }
11761 return resultobj;
11762 fail:
11763 return NULL;
11764 }
11765
11766
11767 static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11768 PyObject *resultobj;
11769 wxGrid *arg1 = (wxGrid *) 0 ;
11770 int arg2 ;
11771 bool arg3 = (bool) False ;
11772 PyObject * obj0 = 0 ;
11773 PyObject * obj1 = 0 ;
11774 PyObject * obj2 = 0 ;
11775 char *kwnames[] = {
11776 (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL
11777 };
11778
11779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11781 {
11782 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
11785 if (obj2) {
11786 {
11787 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 }
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 (arg1)->SetDefaultRowSize(arg2,arg3);
11794
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 Py_INCREF(Py_None); resultobj = Py_None;
11799 return resultobj;
11800 fail:
11801 return NULL;
11802 }
11803
11804
11805 static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11806 PyObject *resultobj;
11807 wxGrid *arg1 = (wxGrid *) 0 ;
11808 int arg2 ;
11809 int arg3 ;
11810 PyObject * obj0 = 0 ;
11811 PyObject * obj1 = 0 ;
11812 PyObject * obj2 = 0 ;
11813 char *kwnames[] = {
11814 (char *) "self",(char *) "row",(char *) "height", NULL
11815 };
11816
11817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11819 {
11820 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 {
11824 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11825 if (PyErr_Occurred()) SWIG_fail;
11826 }
11827 {
11828 PyThreadState* __tstate = wxPyBeginAllowThreads();
11829 (arg1)->SetRowSize(arg2,arg3);
11830
11831 wxPyEndAllowThreads(__tstate);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 }
11834 Py_INCREF(Py_None); resultobj = Py_None;
11835 return resultobj;
11836 fail:
11837 return NULL;
11838 }
11839
11840
11841 static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11842 PyObject *resultobj;
11843 wxGrid *arg1 = (wxGrid *) 0 ;
11844 int arg2 ;
11845 bool arg3 = (bool) False ;
11846 PyObject * obj0 = 0 ;
11847 PyObject * obj1 = 0 ;
11848 PyObject * obj2 = 0 ;
11849 char *kwnames[] = {
11850 (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL
11851 };
11852
11853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SetDefaultColSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11855 {
11856 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11857 if (PyErr_Occurred()) SWIG_fail;
11858 }
11859 if (obj2) {
11860 {
11861 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 }
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 (arg1)->SetDefaultColSize(arg2,arg3);
11868
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 Py_INCREF(Py_None); resultobj = Py_None;
11873 return resultobj;
11874 fail:
11875 return NULL;
11876 }
11877
11878
11879 static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11880 PyObject *resultobj;
11881 wxGrid *arg1 = (wxGrid *) 0 ;
11882 int arg2 ;
11883 int arg3 ;
11884 PyObject * obj0 = 0 ;
11885 PyObject * obj1 = 0 ;
11886 PyObject * obj2 = 0 ;
11887 char *kwnames[] = {
11888 (char *) "self",(char *) "col",(char *) "width", NULL
11889 };
11890
11891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11893 {
11894 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 }
11897 {
11898 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 {
11902 PyThreadState* __tstate = wxPyBeginAllowThreads();
11903 (arg1)->SetColSize(arg2,arg3);
11904
11905 wxPyEndAllowThreads(__tstate);
11906 if (PyErr_Occurred()) SWIG_fail;
11907 }
11908 Py_INCREF(Py_None); resultobj = Py_None;
11909 return resultobj;
11910 fail:
11911 return NULL;
11912 }
11913
11914
11915 static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
11916 PyObject *resultobj;
11917 wxGrid *arg1 = (wxGrid *) 0 ;
11918 int arg2 ;
11919 bool arg3 = (bool) True ;
11920 PyObject * obj0 = 0 ;
11921 PyObject * obj1 = 0 ;
11922 PyObject * obj2 = 0 ;
11923 char *kwnames[] = {
11924 (char *) "self",(char *) "col",(char *) "setAsMin", NULL
11925 };
11926
11927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
11928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11929 {
11930 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11931 if (PyErr_Occurred()) SWIG_fail;
11932 }
11933 if (obj2) {
11934 {
11935 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 }
11939 {
11940 PyThreadState* __tstate = wxPyBeginAllowThreads();
11941 (arg1)->AutoSizeColumn(arg2,arg3);
11942
11943 wxPyEndAllowThreads(__tstate);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 }
11946 Py_INCREF(Py_None); resultobj = Py_None;
11947 return resultobj;
11948 fail:
11949 return NULL;
11950 }
11951
11952
11953 static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) {
11954 PyObject *resultobj;
11955 wxGrid *arg1 = (wxGrid *) 0 ;
11956 int arg2 ;
11957 bool arg3 = (bool) True ;
11958 PyObject * obj0 = 0 ;
11959 PyObject * obj1 = 0 ;
11960 PyObject * obj2 = 0 ;
11961 char *kwnames[] = {
11962 (char *) "self",(char *) "row",(char *) "setAsMin", NULL
11963 };
11964
11965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_AutoSizeRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
11966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11967 {
11968 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 }
11971 if (obj2) {
11972 {
11973 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
11974 if (PyErr_Occurred()) SWIG_fail;
11975 }
11976 }
11977 {
11978 PyThreadState* __tstate = wxPyBeginAllowThreads();
11979 (arg1)->AutoSizeRow(arg2,arg3);
11980
11981 wxPyEndAllowThreads(__tstate);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 Py_INCREF(Py_None); resultobj = Py_None;
11985 return resultobj;
11986 fail:
11987 return NULL;
11988 }
11989
11990
11991 static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
11992 PyObject *resultobj;
11993 wxGrid *arg1 = (wxGrid *) 0 ;
11994 bool arg2 = (bool) True ;
11995 PyObject * obj0 = 0 ;
11996 PyObject * obj1 = 0 ;
11997 char *kwnames[] = {
11998 (char *) "self",(char *) "setAsMin", NULL
11999 };
12000
12001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail;
12002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12003 if (obj1) {
12004 {
12005 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 }
12009 {
12010 PyThreadState* __tstate = wxPyBeginAllowThreads();
12011 (arg1)->AutoSizeColumns(arg2);
12012
12013 wxPyEndAllowThreads(__tstate);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 Py_INCREF(Py_None); resultobj = Py_None;
12017 return resultobj;
12018 fail:
12019 return NULL;
12020 }
12021
12022
12023 static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) {
12024 PyObject *resultobj;
12025 wxGrid *arg1 = (wxGrid *) 0 ;
12026 bool arg2 = (bool) True ;
12027 PyObject * obj0 = 0 ;
12028 PyObject * obj1 = 0 ;
12029 char *kwnames[] = {
12030 (char *) "self",(char *) "setAsMin", NULL
12031 };
12032
12033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail;
12034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12035 if (obj1) {
12036 {
12037 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
12038 if (PyErr_Occurred()) SWIG_fail;
12039 }
12040 }
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 (arg1)->AutoSizeRows(arg2);
12044
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 Py_INCREF(Py_None); resultobj = Py_None;
12049 return resultobj;
12050 fail:
12051 return NULL;
12052 }
12053
12054
12055 static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12056 PyObject *resultobj;
12057 wxGrid *arg1 = (wxGrid *) 0 ;
12058 PyObject * obj0 = 0 ;
12059 char *kwnames[] = {
12060 (char *) "self", NULL
12061 };
12062
12063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail;
12064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12065 {
12066 PyThreadState* __tstate = wxPyBeginAllowThreads();
12067 (arg1)->AutoSize();
12068
12069 wxPyEndAllowThreads(__tstate);
12070 if (PyErr_Occurred()) SWIG_fail;
12071 }
12072 Py_INCREF(Py_None); resultobj = Py_None;
12073 return resultobj;
12074 fail:
12075 return NULL;
12076 }
12077
12078
12079 static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12080 PyObject *resultobj;
12081 wxGrid *arg1 = (wxGrid *) 0 ;
12082 int arg2 ;
12083 PyObject * obj0 = 0 ;
12084 PyObject * obj1 = 0 ;
12085 char *kwnames[] = {
12086 (char *) "self",(char *) "row", NULL
12087 };
12088
12089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&obj1)) goto fail;
12090 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12091 {
12092 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 {
12096 PyThreadState* __tstate = wxPyBeginAllowThreads();
12097 (arg1)->AutoSizeRowLabelSize(arg2);
12098
12099 wxPyEndAllowThreads(__tstate);
12100 if (PyErr_Occurred()) SWIG_fail;
12101 }
12102 Py_INCREF(Py_None); resultobj = Py_None;
12103 return resultobj;
12104 fail:
12105 return NULL;
12106 }
12107
12108
12109 static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12110 PyObject *resultobj;
12111 wxGrid *arg1 = (wxGrid *) 0 ;
12112 int arg2 ;
12113 PyObject * obj0 = 0 ;
12114 PyObject * obj1 = 0 ;
12115 char *kwnames[] = {
12116 (char *) "self",(char *) "col", NULL
12117 };
12118
12119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_AutoSizeColLabelSize",kwnames,&obj0,&obj1)) goto fail;
12120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12121 {
12122 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12123 if (PyErr_Occurred()) SWIG_fail;
12124 }
12125 {
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 (arg1)->AutoSizeColLabelSize(arg2);
12128
12129 wxPyEndAllowThreads(__tstate);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 Py_INCREF(Py_None); resultobj = Py_None;
12133 return resultobj;
12134 fail:
12135 return NULL;
12136 }
12137
12138
12139 static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12140 PyObject *resultobj;
12141 wxGrid *arg1 = (wxGrid *) 0 ;
12142 int arg2 ;
12143 int arg3 ;
12144 PyObject * obj0 = 0 ;
12145 PyObject * obj1 = 0 ;
12146 PyObject * obj2 = 0 ;
12147 char *kwnames[] = {
12148 (char *) "self",(char *) "col",(char *) "width", NULL
12149 };
12150
12151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetColMinimalWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
12152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12153 {
12154 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 {
12158 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 {
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 (arg1)->SetColMinimalWidth(arg2,arg3);
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_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12176 PyObject *resultobj;
12177 wxGrid *arg1 = (wxGrid *) 0 ;
12178 int arg2 ;
12179 int arg3 ;
12180 PyObject * obj0 = 0 ;
12181 PyObject * obj1 = 0 ;
12182 PyObject * obj2 = 0 ;
12183 char *kwnames[] = {
12184 (char *) "self",(char *) "row",(char *) "width", NULL
12185 };
12186
12187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetRowMinimalHeight",kwnames,&obj0,&obj1,&obj2)) goto fail;
12188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12189 {
12190 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 {
12194 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 {
12198 PyThreadState* __tstate = wxPyBeginAllowThreads();
12199 (arg1)->SetRowMinimalHeight(arg2,arg3);
12200
12201 wxPyEndAllowThreads(__tstate);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 Py_INCREF(Py_None); resultobj = Py_None;
12205 return resultobj;
12206 fail:
12207 return NULL;
12208 }
12209
12210
12211 static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12212 PyObject *resultobj;
12213 wxGrid *arg1 = (wxGrid *) 0 ;
12214 int arg2 ;
12215 PyObject * obj0 = 0 ;
12216 PyObject * obj1 = 0 ;
12217 char *kwnames[] = {
12218 (char *) "self",(char *) "width", NULL
12219 };
12220
12221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&obj1)) goto fail;
12222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12223 {
12224 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12225 if (PyErr_Occurred()) SWIG_fail;
12226 }
12227 {
12228 PyThreadState* __tstate = wxPyBeginAllowThreads();
12229 (arg1)->SetColMinimalAcceptableWidth(arg2);
12230
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 Py_INCREF(Py_None); resultobj = Py_None;
12235 return resultobj;
12236 fail:
12237 return NULL;
12238 }
12239
12240
12241 static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12242 PyObject *resultobj;
12243 wxGrid *arg1 = (wxGrid *) 0 ;
12244 int arg2 ;
12245 PyObject * obj0 = 0 ;
12246 PyObject * obj1 = 0 ;
12247 char *kwnames[] = {
12248 (char *) "self",(char *) "width", NULL
12249 };
12250
12251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&obj1)) goto fail;
12252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12253 {
12254 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12255 if (PyErr_Occurred()) SWIG_fail;
12256 }
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
12259 (arg1)->SetRowMinimalAcceptableHeight(arg2);
12260
12261 wxPyEndAllowThreads(__tstate);
12262 if (PyErr_Occurred()) SWIG_fail;
12263 }
12264 Py_INCREF(Py_None); resultobj = Py_None;
12265 return resultobj;
12266 fail:
12267 return NULL;
12268 }
12269
12270
12271 static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12272 PyObject *resultobj;
12273 wxGrid *arg1 = (wxGrid *) 0 ;
12274 int result;
12275 PyObject * obj0 = 0 ;
12276 char *kwnames[] = {
12277 (char *) "self", NULL
12278 };
12279
12280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail;
12281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12282 {
12283 PyThreadState* __tstate = wxPyBeginAllowThreads();
12284 result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth();
12285
12286 wxPyEndAllowThreads(__tstate);
12287 if (PyErr_Occurred()) SWIG_fail;
12288 }
12289 resultobj = SWIG_PyObj_FromInt((int)result);
12290 return resultobj;
12291 fail:
12292 return NULL;
12293 }
12294
12295
12296 static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12297 PyObject *resultobj;
12298 wxGrid *arg1 = (wxGrid *) 0 ;
12299 int result;
12300 PyObject * obj0 = 0 ;
12301 char *kwnames[] = {
12302 (char *) "self", NULL
12303 };
12304
12305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail;
12306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight();
12310
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 resultobj = SWIG_PyObj_FromInt((int)result);
12315 return resultobj;
12316 fail:
12317 return NULL;
12318 }
12319
12320
12321 static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj;
12323 wxGrid *arg1 = (wxGrid *) 0 ;
12324 wxColour *arg2 = 0 ;
12325 wxColour temp2 ;
12326 PyObject * obj0 = 0 ;
12327 PyObject * obj1 = 0 ;
12328 char *kwnames[] = {
12329 (char *) "self","arg2", NULL
12330 };
12331
12332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
12333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12334 {
12335 arg2 = &temp2;
12336 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12337 }
12338 {
12339 PyThreadState* __tstate = wxPyBeginAllowThreads();
12340 (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2);
12341
12342 wxPyEndAllowThreads(__tstate);
12343 if (PyErr_Occurred()) SWIG_fail;
12344 }
12345 Py_INCREF(Py_None); resultobj = Py_None;
12346 return resultobj;
12347 fail:
12348 return NULL;
12349 }
12350
12351
12352 static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12353 PyObject *resultobj;
12354 wxGrid *arg1 = (wxGrid *) 0 ;
12355 int arg2 ;
12356 int arg3 ;
12357 wxColour *arg4 = 0 ;
12358 wxColour temp4 ;
12359 PyObject * obj0 = 0 ;
12360 PyObject * obj1 = 0 ;
12361 PyObject * obj2 = 0 ;
12362 PyObject * obj3 = 0 ;
12363 char *kwnames[] = {
12364 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12365 };
12366
12367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellBackgroundColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12369 {
12370 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 {
12374 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
12377 {
12378 arg4 = &temp4;
12379 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12380 }
12381 {
12382 PyThreadState* __tstate = wxPyBeginAllowThreads();
12383 (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4);
12384
12385 wxPyEndAllowThreads(__tstate);
12386 if (PyErr_Occurred()) SWIG_fail;
12387 }
12388 Py_INCREF(Py_None); resultobj = Py_None;
12389 return resultobj;
12390 fail:
12391 return NULL;
12392 }
12393
12394
12395 static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12396 PyObject *resultobj;
12397 wxGrid *arg1 = (wxGrid *) 0 ;
12398 wxColour *arg2 = 0 ;
12399 wxColour temp2 ;
12400 PyObject * obj0 = 0 ;
12401 PyObject * obj1 = 0 ;
12402 char *kwnames[] = {
12403 (char *) "self","arg2", NULL
12404 };
12405
12406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail;
12407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12408 {
12409 arg2 = &temp2;
12410 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12411 }
12412 {
12413 PyThreadState* __tstate = wxPyBeginAllowThreads();
12414 (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2);
12415
12416 wxPyEndAllowThreads(__tstate);
12417 if (PyErr_Occurred()) SWIG_fail;
12418 }
12419 Py_INCREF(Py_None); resultobj = Py_None;
12420 return resultobj;
12421 fail:
12422 return NULL;
12423 }
12424
12425
12426 static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
12427 PyObject *resultobj;
12428 wxGrid *arg1 = (wxGrid *) 0 ;
12429 int arg2 ;
12430 int arg3 ;
12431 wxColour *arg4 = 0 ;
12432 wxColour temp4 ;
12433 PyObject * obj0 = 0 ;
12434 PyObject * obj1 = 0 ;
12435 PyObject * obj2 = 0 ;
12436 PyObject * obj3 = 0 ;
12437 char *kwnames[] = {
12438 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12439 };
12440
12441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellTextColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12443 {
12444 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 {
12448 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12449 if (PyErr_Occurred()) SWIG_fail;
12450 }
12451 {
12452 arg4 = &temp4;
12453 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
12454 }
12455 {
12456 PyThreadState* __tstate = wxPyBeginAllowThreads();
12457 (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4);
12458
12459 wxPyEndAllowThreads(__tstate);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 }
12462 Py_INCREF(Py_None); resultobj = Py_None;
12463 return resultobj;
12464 fail:
12465 return NULL;
12466 }
12467
12468
12469 static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12470 PyObject *resultobj;
12471 wxGrid *arg1 = (wxGrid *) 0 ;
12472 wxFont *arg2 = 0 ;
12473 PyObject * obj0 = 0 ;
12474 PyObject * obj1 = 0 ;
12475 char *kwnames[] = {
12476 (char *) "self","arg2", NULL
12477 };
12478
12479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail;
12480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12481 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12482 if (arg2 == NULL) {
12483 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12484 }
12485 {
12486 PyThreadState* __tstate = wxPyBeginAllowThreads();
12487 (arg1)->SetDefaultCellFont((wxFont const &)*arg2);
12488
12489 wxPyEndAllowThreads(__tstate);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 }
12492 Py_INCREF(Py_None); resultobj = Py_None;
12493 return resultobj;
12494 fail:
12495 return NULL;
12496 }
12497
12498
12499 static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12500 PyObject *resultobj;
12501 wxGrid *arg1 = (wxGrid *) 0 ;
12502 int arg2 ;
12503 int arg3 ;
12504 wxFont *arg4 = 0 ;
12505 PyObject * obj0 = 0 ;
12506 PyObject * obj1 = 0 ;
12507 PyObject * obj2 = 0 ;
12508 PyObject * obj3 = 0 ;
12509 char *kwnames[] = {
12510 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
12511 };
12512
12513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellFont",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12515 {
12516 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12517 if (PyErr_Occurred()) SWIG_fail;
12518 }
12519 {
12520 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12524 if (arg4 == NULL) {
12525 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12526 }
12527 {
12528 PyThreadState* __tstate = wxPyBeginAllowThreads();
12529 (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4);
12530
12531 wxPyEndAllowThreads(__tstate);
12532 if (PyErr_Occurred()) SWIG_fail;
12533 }
12534 Py_INCREF(Py_None); resultobj = Py_None;
12535 return resultobj;
12536 fail:
12537 return NULL;
12538 }
12539
12540
12541 static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
12542 PyObject *resultobj;
12543 wxGrid *arg1 = (wxGrid *) 0 ;
12544 int arg2 ;
12545 int arg3 ;
12546 PyObject * obj0 = 0 ;
12547 PyObject * obj1 = 0 ;
12548 PyObject * obj2 = 0 ;
12549 char *kwnames[] = {
12550 (char *) "self",(char *) "horiz",(char *) "vert", NULL
12551 };
12552
12553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetDefaultCellAlignment",kwnames,&obj0,&obj1,&obj2)) goto fail;
12554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12555 {
12556 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 }
12559 {
12560 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12561 if (PyErr_Occurred()) SWIG_fail;
12562 }
12563 {
12564 PyThreadState* __tstate = wxPyBeginAllowThreads();
12565 (arg1)->SetDefaultCellAlignment(arg2,arg3);
12566
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 Py_INCREF(Py_None); resultobj = Py_None;
12571 return resultobj;
12572 fail:
12573 return NULL;
12574 }
12575
12576
12577 static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
12578 PyObject *resultobj;
12579 wxGrid *arg1 = (wxGrid *) 0 ;
12580 int arg2 ;
12581 int arg3 ;
12582 int arg4 ;
12583 int arg5 ;
12584 PyObject * obj0 = 0 ;
12585 PyObject * obj1 = 0 ;
12586 PyObject * obj2 = 0 ;
12587 PyObject * obj3 = 0 ;
12588 PyObject * obj4 = 0 ;
12589 char *kwnames[] = {
12590 (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL
12591 };
12592
12593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellAlignment",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12595 {
12596 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 }
12599 {
12600 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 {
12604 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 {
12608 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 }
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5);
12614
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 Py_INCREF(Py_None); resultobj = Py_None;
12619 return resultobj;
12620 fail:
12621 return NULL;
12622 }
12623
12624
12625 static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
12626 PyObject *resultobj;
12627 wxGrid *arg1 = (wxGrid *) 0 ;
12628 bool arg2 ;
12629 PyObject * obj0 = 0 ;
12630 PyObject * obj1 = 0 ;
12631 char *kwnames[] = {
12632 (char *) "self",(char *) "allow", NULL
12633 };
12634
12635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail;
12636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12637 {
12638 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
12639 if (PyErr_Occurred()) SWIG_fail;
12640 }
12641 {
12642 PyThreadState* __tstate = wxPyBeginAllowThreads();
12643 (arg1)->SetDefaultCellOverflow(arg2);
12644
12645 wxPyEndAllowThreads(__tstate);
12646 if (PyErr_Occurred()) SWIG_fail;
12647 }
12648 Py_INCREF(Py_None); resultobj = Py_None;
12649 return resultobj;
12650 fail:
12651 return NULL;
12652 }
12653
12654
12655 static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
12656 PyObject *resultobj;
12657 wxGrid *arg1 = (wxGrid *) 0 ;
12658 int arg2 ;
12659 int arg3 ;
12660 bool arg4 ;
12661 PyObject * obj0 = 0 ;
12662 PyObject * obj1 = 0 ;
12663 PyObject * obj2 = 0 ;
12664 PyObject * obj3 = 0 ;
12665 char *kwnames[] = {
12666 (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL
12667 };
12668
12669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellOverflow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12671 {
12672 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 {
12676 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 {
12680 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
12681 if (PyErr_Occurred()) SWIG_fail;
12682 }
12683 {
12684 PyThreadState* __tstate = wxPyBeginAllowThreads();
12685 (arg1)->SetCellOverflow(arg2,arg3,arg4);
12686
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 Py_INCREF(Py_None); resultobj = Py_None;
12691 return resultobj;
12692 fail:
12693 return NULL;
12694 }
12695
12696
12697 static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12698 PyObject *resultobj;
12699 wxGrid *arg1 = (wxGrid *) 0 ;
12700 int arg2 ;
12701 int arg3 ;
12702 int arg4 ;
12703 int arg5 ;
12704 PyObject * obj0 = 0 ;
12705 PyObject * obj1 = 0 ;
12706 PyObject * obj2 = 0 ;
12707 PyObject * obj3 = 0 ;
12708 PyObject * obj4 = 0 ;
12709 char *kwnames[] = {
12710 (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL
12711 };
12712
12713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Grid_SetCellSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12715 {
12716 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 {
12720 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 {
12724 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 {
12728 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 {
12732 PyThreadState* __tstate = wxPyBeginAllowThreads();
12733 (arg1)->SetCellSize(arg2,arg3,arg4,arg5);
12734
12735 wxPyEndAllowThreads(__tstate);
12736 if (PyErr_Occurred()) SWIG_fail;
12737 }
12738 Py_INCREF(Py_None); resultobj = Py_None;
12739 return resultobj;
12740 fail:
12741 return NULL;
12742 }
12743
12744
12745 static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12746 PyObject *resultobj;
12747 wxGrid *arg1 = (wxGrid *) 0 ;
12748 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
12749 PyObject * obj0 = 0 ;
12750 PyObject * obj1 = 0 ;
12751 char *kwnames[] = {
12752 (char *) "self",(char *) "renderer", NULL
12753 };
12754
12755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail;
12756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12757 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12758 {
12759 PyThreadState* __tstate = wxPyBeginAllowThreads();
12760 (arg1)->SetDefaultRenderer(arg2);
12761
12762 wxPyEndAllowThreads(__tstate);
12763 if (PyErr_Occurred()) SWIG_fail;
12764 }
12765 Py_INCREF(Py_None); resultobj = Py_None;
12766 return resultobj;
12767 fail:
12768 return NULL;
12769 }
12770
12771
12772 static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12773 PyObject *resultobj;
12774 wxGrid *arg1 = (wxGrid *) 0 ;
12775 int arg2 ;
12776 int arg3 ;
12777 wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ;
12778 PyObject * obj0 = 0 ;
12779 PyObject * obj1 = 0 ;
12780 PyObject * obj2 = 0 ;
12781 PyObject * obj3 = 0 ;
12782 char *kwnames[] = {
12783 (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL
12784 };
12785
12786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellRenderer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12788 {
12789 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12790 if (PyErr_Occurred()) SWIG_fail;
12791 }
12792 {
12793 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 (arg1)->SetCellRenderer(arg2,arg3,arg4);
12800
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 Py_INCREF(Py_None); resultobj = Py_None;
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj;
12813 wxGrid *arg1 = (wxGrid *) 0 ;
12814 wxGridCellRenderer *result;
12815 PyObject * obj0 = 0 ;
12816 char *kwnames[] = {
12817 (char *) "self", NULL
12818 };
12819
12820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail;
12821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12822 {
12823 PyThreadState* __tstate = wxPyBeginAllowThreads();
12824 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer();
12825
12826 wxPyEndAllowThreads(__tstate);
12827 if (PyErr_Occurred()) SWIG_fail;
12828 }
12829 {
12830 resultobj = wxPyMake_wxGridCellRenderer(result);
12831 }
12832 return resultobj;
12833 fail:
12834 return NULL;
12835 }
12836
12837
12838 static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
12839 PyObject *resultobj;
12840 wxGrid *arg1 = (wxGrid *) 0 ;
12841 int arg2 ;
12842 int arg3 ;
12843 wxGridCellRenderer *result;
12844 PyObject * obj0 = 0 ;
12845 PyObject * obj1 = 0 ;
12846 PyObject * obj2 = 0 ;
12847 char *kwnames[] = {
12848 (char *) "self",(char *) "row",(char *) "col", NULL
12849 };
12850
12851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellRenderer",kwnames,&obj0,&obj1,&obj2)) goto fail;
12852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12853 {
12854 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 {
12858 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 {
12862 PyThreadState* __tstate = wxPyBeginAllowThreads();
12863 result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3);
12864
12865 wxPyEndAllowThreads(__tstate);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 }
12868 {
12869 resultobj = wxPyMake_wxGridCellRenderer(result);
12870 }
12871 return resultobj;
12872 fail:
12873 return NULL;
12874 }
12875
12876
12877 static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
12878 PyObject *resultobj;
12879 wxGrid *arg1 = (wxGrid *) 0 ;
12880 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
12881 PyObject * obj0 = 0 ;
12882 PyObject * obj1 = 0 ;
12883 char *kwnames[] = {
12884 (char *) "self",(char *) "editor", NULL
12885 };
12886
12887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail;
12888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12889 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 (arg1)->SetDefaultEditor(arg2);
12893
12894 wxPyEndAllowThreads(__tstate);
12895 if (PyErr_Occurred()) SWIG_fail;
12896 }
12897 Py_INCREF(Py_None); resultobj = Py_None;
12898 return resultobj;
12899 fail:
12900 return NULL;
12901 }
12902
12903
12904 static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
12905 PyObject *resultobj;
12906 wxGrid *arg1 = (wxGrid *) 0 ;
12907 int arg2 ;
12908 int arg3 ;
12909 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
12910 PyObject * obj0 = 0 ;
12911 PyObject * obj1 = 0 ;
12912 PyObject * obj2 = 0 ;
12913 PyObject * obj3 = 0 ;
12914 char *kwnames[] = {
12915 (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL
12916 };
12917
12918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellEditor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12920 {
12921 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 {
12925 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12929 {
12930 PyThreadState* __tstate = wxPyBeginAllowThreads();
12931 (arg1)->SetCellEditor(arg2,arg3,arg4);
12932
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 Py_INCREF(Py_None); resultobj = Py_None;
12937 return resultobj;
12938 fail:
12939 return NULL;
12940 }
12941
12942
12943 static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
12944 PyObject *resultobj;
12945 wxGrid *arg1 = (wxGrid *) 0 ;
12946 wxGridCellEditor *result;
12947 PyObject * obj0 = 0 ;
12948 char *kwnames[] = {
12949 (char *) "self", NULL
12950 };
12951
12952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail;
12953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12954 {
12955 PyThreadState* __tstate = wxPyBeginAllowThreads();
12956 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor();
12957
12958 wxPyEndAllowThreads(__tstate);
12959 if (PyErr_Occurred()) SWIG_fail;
12960 }
12961 {
12962 resultobj = wxPyMake_wxGridCellEditor(result);
12963 }
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj;
12972 wxGrid *arg1 = (wxGrid *) 0 ;
12973 int arg2 ;
12974 int arg3 ;
12975 wxGridCellEditor *result;
12976 PyObject * obj0 = 0 ;
12977 PyObject * obj1 = 0 ;
12978 PyObject * obj2 = 0 ;
12979 char *kwnames[] = {
12980 (char *) "self",(char *) "row",(char *) "col", NULL
12981 };
12982
12983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellEditor",kwnames,&obj0,&obj1,&obj2)) goto fail;
12984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12985 {
12986 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12987 if (PyErr_Occurred()) SWIG_fail;
12988 }
12989 {
12990 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12991 if (PyErr_Occurred()) SWIG_fail;
12992 }
12993 {
12994 PyThreadState* __tstate = wxPyBeginAllowThreads();
12995 result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3);
12996
12997 wxPyEndAllowThreads(__tstate);
12998 if (PyErr_Occurred()) SWIG_fail;
12999 }
13000 {
13001 resultobj = wxPyMake_wxGridCellEditor(result);
13002 }
13003 return resultobj;
13004 fail:
13005 return NULL;
13006 }
13007
13008
13009 static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13010 PyObject *resultobj;
13011 wxGrid *arg1 = (wxGrid *) 0 ;
13012 int arg2 ;
13013 int arg3 ;
13014 wxString result;
13015 PyObject * obj0 = 0 ;
13016 PyObject * obj1 = 0 ;
13017 PyObject * obj2 = 0 ;
13018 char *kwnames[] = {
13019 (char *) "self",(char *) "row",(char *) "col", NULL
13020 };
13021
13022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetCellValue",kwnames,&obj0,&obj1,&obj2)) goto fail;
13023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13024 {
13025 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13026 if (PyErr_Occurred()) SWIG_fail;
13027 }
13028 {
13029 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = (arg1)->GetCellValue(arg2,arg3);
13035
13036 wxPyEndAllowThreads(__tstate);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 }
13039 {
13040 #if wxUSE_UNICODE
13041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13042 #else
13043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13044 #endif
13045 }
13046 return resultobj;
13047 fail:
13048 return NULL;
13049 }
13050
13051
13052 static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
13053 PyObject *resultobj;
13054 wxGrid *arg1 = (wxGrid *) 0 ;
13055 int arg2 ;
13056 int arg3 ;
13057 wxString *arg4 = 0 ;
13058 bool temp4 = False ;
13059 PyObject * obj0 = 0 ;
13060 PyObject * obj1 = 0 ;
13061 PyObject * obj2 = 0 ;
13062 PyObject * obj3 = 0 ;
13063 char *kwnames[] = {
13064 (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL
13065 };
13066
13067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_SetCellValue",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13069 {
13070 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13071 if (PyErr_Occurred()) SWIG_fail;
13072 }
13073 {
13074 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13075 if (PyErr_Occurred()) SWIG_fail;
13076 }
13077 {
13078 arg4 = wxString_in_helper(obj3);
13079 if (arg4 == NULL) SWIG_fail;
13080 temp4 = True;
13081 }
13082 {
13083 PyThreadState* __tstate = wxPyBeginAllowThreads();
13084 (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4);
13085
13086 wxPyEndAllowThreads(__tstate);
13087 if (PyErr_Occurred()) SWIG_fail;
13088 }
13089 Py_INCREF(Py_None); resultobj = Py_None;
13090 {
13091 if (temp4)
13092 delete arg4;
13093 }
13094 return resultobj;
13095 fail:
13096 {
13097 if (temp4)
13098 delete arg4;
13099 }
13100 return NULL;
13101 }
13102
13103
13104 static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
13105 PyObject *resultobj;
13106 wxGrid *arg1 = (wxGrid *) 0 ;
13107 int arg2 ;
13108 int arg3 ;
13109 bool result;
13110 PyObject * obj0 = 0 ;
13111 PyObject * obj1 = 0 ;
13112 PyObject * obj2 = 0 ;
13113 char *kwnames[] = {
13114 (char *) "self",(char *) "row",(char *) "col", NULL
13115 };
13116
13117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsReadOnly",kwnames,&obj0,&obj1,&obj2)) goto fail;
13118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13119 {
13120 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13121 if (PyErr_Occurred()) SWIG_fail;
13122 }
13123 {
13124 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 {
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3);
13130
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_PyObj_FromBool((bool)result);
13135 return resultobj;
13136 fail:
13137 return NULL;
13138 }
13139
13140
13141 static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj;
13143 wxGrid *arg1 = (wxGrid *) 0 ;
13144 int arg2 ;
13145 int arg3 ;
13146 bool arg4 = (bool) True ;
13147 PyObject * obj0 = 0 ;
13148 PyObject * obj1 = 0 ;
13149 PyObject * obj2 = 0 ;
13150 PyObject * obj3 = 0 ;
13151 char *kwnames[] = {
13152 (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL
13153 };
13154
13155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Grid_SetReadOnly",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13157 {
13158 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 {
13162 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 if (obj3) {
13166 {
13167 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
13168 if (PyErr_Occurred()) SWIG_fail;
13169 }
13170 }
13171 {
13172 PyThreadState* __tstate = wxPyBeginAllowThreads();
13173 (arg1)->SetReadOnly(arg2,arg3,arg4);
13174
13175 wxPyEndAllowThreads(__tstate);
13176 if (PyErr_Occurred()) SWIG_fail;
13177 }
13178 Py_INCREF(Py_None); resultobj = Py_None;
13179 return resultobj;
13180 fail:
13181 return NULL;
13182 }
13183
13184
13185 static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13186 PyObject *resultobj;
13187 wxGrid *arg1 = (wxGrid *) 0 ;
13188 int arg2 ;
13189 bool arg3 = (bool) False ;
13190 PyObject * obj0 = 0 ;
13191 PyObject * obj1 = 0 ;
13192 PyObject * obj2 = 0 ;
13193 char *kwnames[] = {
13194 (char *) "self",(char *) "row",(char *) "addToSelected", NULL
13195 };
13196
13197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
13198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13199 {
13200 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 }
13203 if (obj2) {
13204 {
13205 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
13206 if (PyErr_Occurred()) SWIG_fail;
13207 }
13208 }
13209 {
13210 PyThreadState* __tstate = wxPyBeginAllowThreads();
13211 (arg1)->SelectRow(arg2,arg3);
13212
13213 wxPyEndAllowThreads(__tstate);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 Py_INCREF(Py_None); resultobj = Py_None;
13217 return resultobj;
13218 fail:
13219 return NULL;
13220 }
13221
13222
13223 static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13224 PyObject *resultobj;
13225 wxGrid *arg1 = (wxGrid *) 0 ;
13226 int arg2 ;
13227 bool arg3 = (bool) False ;
13228 PyObject * obj0 = 0 ;
13229 PyObject * obj1 = 0 ;
13230 PyObject * obj2 = 0 ;
13231 char *kwnames[] = {
13232 (char *) "self",(char *) "col",(char *) "addToSelected", NULL
13233 };
13234
13235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Grid_SelectCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
13236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13237 {
13238 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13239 if (PyErr_Occurred()) SWIG_fail;
13240 }
13241 if (obj2) {
13242 {
13243 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
13244 if (PyErr_Occurred()) SWIG_fail;
13245 }
13246 }
13247 {
13248 PyThreadState* __tstate = wxPyBeginAllowThreads();
13249 (arg1)->SelectCol(arg2,arg3);
13250
13251 wxPyEndAllowThreads(__tstate);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 }
13254 Py_INCREF(Py_None); resultobj = Py_None;
13255 return resultobj;
13256 fail:
13257 return NULL;
13258 }
13259
13260
13261 static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
13262 PyObject *resultobj;
13263 wxGrid *arg1 = (wxGrid *) 0 ;
13264 int arg2 ;
13265 int arg3 ;
13266 int arg4 ;
13267 int arg5 ;
13268 bool arg6 = (bool) False ;
13269 PyObject * obj0 = 0 ;
13270 PyObject * obj1 = 0 ;
13271 PyObject * obj2 = 0 ;
13272 PyObject * obj3 = 0 ;
13273 PyObject * obj4 = 0 ;
13274 PyObject * obj5 = 0 ;
13275 char *kwnames[] = {
13276 (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL
13277 };
13278
13279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Grid_SelectBlock",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
13280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13281 {
13282 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 }
13285 {
13286 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 {
13290 arg4 = (int) SWIG_PyObj_AsInt(obj3);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 {
13294 arg5 = (int) SWIG_PyObj_AsInt(obj4);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 if (obj5) {
13298 {
13299 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 }
13303 {
13304 PyThreadState* __tstate = wxPyBeginAllowThreads();
13305 (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6);
13306
13307 wxPyEndAllowThreads(__tstate);
13308 if (PyErr_Occurred()) SWIG_fail;
13309 }
13310 Py_INCREF(Py_None); resultobj = Py_None;
13311 return resultobj;
13312 fail:
13313 return NULL;
13314 }
13315
13316
13317 static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
13318 PyObject *resultobj;
13319 wxGrid *arg1 = (wxGrid *) 0 ;
13320 PyObject * obj0 = 0 ;
13321 char *kwnames[] = {
13322 (char *) "self", NULL
13323 };
13324
13325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail;
13326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 (arg1)->SelectAll();
13330
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 Py_INCREF(Py_None); resultobj = Py_None;
13335 return resultobj;
13336 fail:
13337 return NULL;
13338 }
13339
13340
13341 static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13342 PyObject *resultobj;
13343 wxGrid *arg1 = (wxGrid *) 0 ;
13344 bool result;
13345 PyObject * obj0 = 0 ;
13346 char *kwnames[] = {
13347 (char *) "self", NULL
13348 };
13349
13350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail;
13351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13352 {
13353 PyThreadState* __tstate = wxPyBeginAllowThreads();
13354 result = (bool)(arg1)->IsSelection();
13355
13356 wxPyEndAllowThreads(__tstate);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 resultobj = SWIG_PyObj_FromBool((bool)result);
13360 return resultobj;
13361 fail:
13362 return NULL;
13363 }
13364
13365
13366 static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13367 PyObject *resultobj;
13368 wxGrid *arg1 = (wxGrid *) 0 ;
13369 PyObject * obj0 = 0 ;
13370 char *kwnames[] = {
13371 (char *) "self", NULL
13372 };
13373
13374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail;
13375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
13378 (arg1)->ClearSelection();
13379
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 Py_INCREF(Py_None); resultobj = Py_None;
13384 return resultobj;
13385 fail:
13386 return NULL;
13387 }
13388
13389
13390 static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj;
13392 wxGrid *arg1 = (wxGrid *) 0 ;
13393 int arg2 ;
13394 int arg3 ;
13395 bool result;
13396 PyObject * obj0 = 0 ;
13397 PyObject * obj1 = 0 ;
13398 PyObject * obj2 = 0 ;
13399 char *kwnames[] = {
13400 (char *) "self",(char *) "row",(char *) "col", NULL
13401 };
13402
13403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_IsInSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13405 {
13406 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 {
13410 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 }
13413 {
13414 PyThreadState* __tstate = wxPyBeginAllowThreads();
13415 result = (bool)(arg1)->IsInSelection(arg2,arg3);
13416
13417 wxPyEndAllowThreads(__tstate);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 }
13420 resultobj = SWIG_PyObj_FromBool((bool)result);
13421 return resultobj;
13422 fail:
13423 return NULL;
13424 }
13425
13426
13427 static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) {
13428 PyObject *resultobj;
13429 wxGrid *arg1 = (wxGrid *) 0 ;
13430 wxGridCellCoordsArray result;
13431 PyObject * obj0 = 0 ;
13432 char *kwnames[] = {
13433 (char *) "self", NULL
13434 };
13435
13436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail;
13437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 result = ((wxGrid const *)arg1)->GetSelectedCells();
13441
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 {
13446 resultobj = wxGridCellCoordsArray_helper(result);
13447 }
13448 return resultobj;
13449 fail:
13450 return NULL;
13451 }
13452
13453
13454 static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
13455 PyObject *resultobj;
13456 wxGrid *arg1 = (wxGrid *) 0 ;
13457 wxGridCellCoordsArray result;
13458 PyObject * obj0 = 0 ;
13459 char *kwnames[] = {
13460 (char *) "self", NULL
13461 };
13462
13463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail;
13464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13465 {
13466 PyThreadState* __tstate = wxPyBeginAllowThreads();
13467 result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft();
13468
13469 wxPyEndAllowThreads(__tstate);
13470 if (PyErr_Occurred()) SWIG_fail;
13471 }
13472 {
13473 resultobj = wxGridCellCoordsArray_helper(result);
13474 }
13475 return resultobj;
13476 fail:
13477 return NULL;
13478 }
13479
13480
13481 static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxGrid *arg1 = (wxGrid *) 0 ;
13484 wxGridCellCoordsArray result;
13485 PyObject * obj0 = 0 ;
13486 char *kwnames[] = {
13487 (char *) "self", NULL
13488 };
13489
13490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail;
13491 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight();
13495
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 {
13500 resultobj = wxGridCellCoordsArray_helper(result);
13501 }
13502 return resultobj;
13503 fail:
13504 return NULL;
13505 }
13506
13507
13508 static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) {
13509 PyObject *resultobj;
13510 wxGrid *arg1 = (wxGrid *) 0 ;
13511 wxArrayInt result;
13512 PyObject * obj0 = 0 ;
13513 char *kwnames[] = {
13514 (char *) "self", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail;
13518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 result = ((wxGrid const *)arg1)->GetSelectedRows();
13522
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 {
13527 resultobj = PyList_New(0);
13528 size_t idx;
13529 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13530 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13531 PyList_Append(resultobj, val);
13532 Py_DECREF(val);
13533 }
13534 }
13535 return resultobj;
13536 fail:
13537 return NULL;
13538 }
13539
13540
13541 static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) {
13542 PyObject *resultobj;
13543 wxGrid *arg1 = (wxGrid *) 0 ;
13544 wxArrayInt result;
13545 PyObject * obj0 = 0 ;
13546 char *kwnames[] = {
13547 (char *) "self", NULL
13548 };
13549
13550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail;
13551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13552 {
13553 PyThreadState* __tstate = wxPyBeginAllowThreads();
13554 result = ((wxGrid const *)arg1)->GetSelectedCols();
13555
13556 wxPyEndAllowThreads(__tstate);
13557 if (PyErr_Occurred()) SWIG_fail;
13558 }
13559 {
13560 resultobj = PyList_New(0);
13561 size_t idx;
13562 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13563 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13564 PyList_Append(resultobj, val);
13565 Py_DECREF(val);
13566 }
13567 }
13568 return resultobj;
13569 fail:
13570 return NULL;
13571 }
13572
13573
13574 static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13575 PyObject *resultobj;
13576 wxGrid *arg1 = (wxGrid *) 0 ;
13577 int arg2 ;
13578 PyObject * obj0 = 0 ;
13579 PyObject * obj1 = 0 ;
13580 char *kwnames[] = {
13581 (char *) "self",(char *) "row", NULL
13582 };
13583
13584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectRow",kwnames,&obj0,&obj1)) goto fail;
13585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13586 {
13587 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13588 if (PyErr_Occurred()) SWIG_fail;
13589 }
13590 {
13591 PyThreadState* __tstate = wxPyBeginAllowThreads();
13592 (arg1)->DeselectRow(arg2);
13593
13594 wxPyEndAllowThreads(__tstate);
13595 if (PyErr_Occurred()) SWIG_fail;
13596 }
13597 Py_INCREF(Py_None); resultobj = Py_None;
13598 return resultobj;
13599 fail:
13600 return NULL;
13601 }
13602
13603
13604 static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13605 PyObject *resultobj;
13606 wxGrid *arg1 = (wxGrid *) 0 ;
13607 int arg2 ;
13608 PyObject * obj0 = 0 ;
13609 PyObject * obj1 = 0 ;
13610 char *kwnames[] = {
13611 (char *) "self",(char *) "col", NULL
13612 };
13613
13614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_DeselectCol",kwnames,&obj0,&obj1)) goto fail;
13615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13616 {
13617 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 (arg1)->DeselectCol(arg2);
13623
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 Py_INCREF(Py_None); resultobj = Py_None;
13628 return resultobj;
13629 fail:
13630 return NULL;
13631 }
13632
13633
13634 static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) {
13635 PyObject *resultobj;
13636 wxGrid *arg1 = (wxGrid *) 0 ;
13637 int arg2 ;
13638 int arg3 ;
13639 PyObject * obj0 = 0 ;
13640 PyObject * obj1 = 0 ;
13641 PyObject * obj2 = 0 ;
13642 char *kwnames[] = {
13643 (char *) "self",(char *) "row",(char *) "col", NULL
13644 };
13645
13646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DeselectCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
13647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13648 {
13649 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13650 if (PyErr_Occurred()) SWIG_fail;
13651 }
13652 {
13653 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13654 if (PyErr_Occurred()) SWIG_fail;
13655 }
13656 {
13657 PyThreadState* __tstate = wxPyBeginAllowThreads();
13658 (arg1)->DeselectCell(arg2,arg3);
13659
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 Py_INCREF(Py_None); resultobj = Py_None;
13664 return resultobj;
13665 fail:
13666 return NULL;
13667 }
13668
13669
13670 static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13671 PyObject *resultobj;
13672 wxGrid *arg1 = (wxGrid *) 0 ;
13673 wxGridCellCoords *arg2 = 0 ;
13674 wxGridCellCoords *arg3 = 0 ;
13675 wxRect result;
13676 wxGridCellCoords temp2 ;
13677 wxGridCellCoords temp3 ;
13678 PyObject * obj0 = 0 ;
13679 PyObject * obj1 = 0 ;
13680 PyObject * obj2 = 0 ;
13681 char *kwnames[] = {
13682 (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL
13683 };
13684
13685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
13686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13687 {
13688 arg2 = &temp2;
13689 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
13690 }
13691 {
13692 arg3 = &temp3;
13693 if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail;
13694 }
13695 {
13696 PyThreadState* __tstate = wxPyBeginAllowThreads();
13697 result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3);
13698
13699 wxPyEndAllowThreads(__tstate);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 {
13703 wxRect * resultptr;
13704 resultptr = new wxRect((wxRect &) result);
13705 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
13706 }
13707 return resultobj;
13708 fail:
13709 return NULL;
13710 }
13711
13712
13713 static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13714 PyObject *resultobj;
13715 wxGrid *arg1 = (wxGrid *) 0 ;
13716 wxColour result;
13717 PyObject * obj0 = 0 ;
13718 char *kwnames[] = {
13719 (char *) "self", NULL
13720 };
13721
13722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail;
13723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 result = ((wxGrid const *)arg1)->GetSelectionBackground();
13727
13728 wxPyEndAllowThreads(__tstate);
13729 if (PyErr_Occurred()) SWIG_fail;
13730 }
13731 {
13732 wxColour * resultptr;
13733 resultptr = new wxColour((wxColour &) result);
13734 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
13735 }
13736 return resultobj;
13737 fail:
13738 return NULL;
13739 }
13740
13741
13742 static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13743 PyObject *resultobj;
13744 wxGrid *arg1 = (wxGrid *) 0 ;
13745 wxColour result;
13746 PyObject * obj0 = 0 ;
13747 char *kwnames[] = {
13748 (char *) "self", NULL
13749 };
13750
13751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail;
13752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13753 {
13754 PyThreadState* __tstate = wxPyBeginAllowThreads();
13755 result = ((wxGrid const *)arg1)->GetSelectionForeground();
13756
13757 wxPyEndAllowThreads(__tstate);
13758 if (PyErr_Occurred()) SWIG_fail;
13759 }
13760 {
13761 wxColour * resultptr;
13762 resultptr = new wxColour((wxColour &) result);
13763 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
13764 }
13765 return resultobj;
13766 fail:
13767 return NULL;
13768 }
13769
13770
13771 static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13772 PyObject *resultobj;
13773 wxGrid *arg1 = (wxGrid *) 0 ;
13774 wxColour *arg2 = 0 ;
13775 wxColour temp2 ;
13776 PyObject * obj0 = 0 ;
13777 PyObject * obj1 = 0 ;
13778 char *kwnames[] = {
13779 (char *) "self",(char *) "c", NULL
13780 };
13781
13782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail;
13783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13784 {
13785 arg2 = &temp2;
13786 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13787 }
13788 {
13789 PyThreadState* __tstate = wxPyBeginAllowThreads();
13790 (arg1)->SetSelectionBackground((wxColour const &)*arg2);
13791
13792 wxPyEndAllowThreads(__tstate);
13793 if (PyErr_Occurred()) SWIG_fail;
13794 }
13795 Py_INCREF(Py_None); resultobj = Py_None;
13796 return resultobj;
13797 fail:
13798 return NULL;
13799 }
13800
13801
13802 static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13803 PyObject *resultobj;
13804 wxGrid *arg1 = (wxGrid *) 0 ;
13805 wxColour *arg2 = 0 ;
13806 wxColour temp2 ;
13807 PyObject * obj0 = 0 ;
13808 PyObject * obj1 = 0 ;
13809 char *kwnames[] = {
13810 (char *) "self",(char *) "c", NULL
13811 };
13812
13813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail;
13814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13815 {
13816 arg2 = &temp2;
13817 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13818 }
13819 {
13820 PyThreadState* __tstate = wxPyBeginAllowThreads();
13821 (arg1)->SetSelectionForeground((wxColour const &)*arg2);
13822
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 Py_INCREF(Py_None); resultobj = Py_None;
13827 return resultobj;
13828 fail:
13829 return NULL;
13830 }
13831
13832
13833 static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) {
13834 PyObject *resultobj;
13835 wxGrid *arg1 = (wxGrid *) 0 ;
13836 wxString *arg2 = 0 ;
13837 wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ;
13838 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
13839 bool temp2 = False ;
13840 PyObject * obj0 = 0 ;
13841 PyObject * obj1 = 0 ;
13842 PyObject * obj2 = 0 ;
13843 PyObject * obj3 = 0 ;
13844 char *kwnames[] = {
13845 (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL
13846 };
13847
13848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13850 {
13851 arg2 = wxString_in_helper(obj1);
13852 if (arg2 == NULL) SWIG_fail;
13853 temp2 = True;
13854 }
13855 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13856 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13857 {
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4);
13860
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 Py_INCREF(Py_None); resultobj = Py_None;
13865 {
13866 if (temp2)
13867 delete arg2;
13868 }
13869 return resultobj;
13870 fail:
13871 {
13872 if (temp2)
13873 delete arg2;
13874 }
13875 return NULL;
13876 }
13877
13878
13879 static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
13880 PyObject *resultobj;
13881 wxGrid *arg1 = (wxGrid *) 0 ;
13882 int arg2 ;
13883 int arg3 ;
13884 wxGridCellEditor *result;
13885 PyObject * obj0 = 0 ;
13886 PyObject * obj1 = 0 ;
13887 PyObject * obj2 = 0 ;
13888 char *kwnames[] = {
13889 (char *) "self",(char *) "row",(char *) "col", NULL
13890 };
13891
13892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultEditorForCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
13893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13894 {
13895 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
13898 {
13899 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3);
13905
13906 wxPyEndAllowThreads(__tstate);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 }
13909 {
13910 resultobj = wxPyMake_wxGridCellEditor(result);
13911 }
13912 return resultobj;
13913 fail:
13914 return NULL;
13915 }
13916
13917
13918 static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
13919 PyObject *resultobj;
13920 wxGrid *arg1 = (wxGrid *) 0 ;
13921 int arg2 ;
13922 int arg3 ;
13923 wxGridCellRenderer *result;
13924 PyObject * obj0 = 0 ;
13925 PyObject * obj1 = 0 ;
13926 PyObject * obj2 = 0 ;
13927 char *kwnames[] = {
13928 (char *) "self",(char *) "row",(char *) "col", NULL
13929 };
13930
13931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetDefaultRendererForCell",kwnames,&obj0,&obj1,&obj2)) goto fail;
13932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13933 {
13934 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 {
13938 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 }
13941 {
13942 PyThreadState* __tstate = wxPyBeginAllowThreads();
13943 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3);
13944
13945 wxPyEndAllowThreads(__tstate);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 }
13948 {
13949 resultobj = wxPyMake_wxGridCellRenderer(result);
13950 }
13951 return resultobj;
13952 fail:
13953 return NULL;
13954 }
13955
13956
13957 static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) {
13958 PyObject *resultobj;
13959 wxGrid *arg1 = (wxGrid *) 0 ;
13960 wxString *arg2 = 0 ;
13961 wxGridCellEditor *result;
13962 bool temp2 = False ;
13963 PyObject * obj0 = 0 ;
13964 PyObject * obj1 = 0 ;
13965 char *kwnames[] = {
13966 (char *) "self",(char *) "typeName", NULL
13967 };
13968
13969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail;
13970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13971 {
13972 arg2 = wxString_in_helper(obj1);
13973 if (arg2 == NULL) SWIG_fail;
13974 temp2 = True;
13975 }
13976 {
13977 PyThreadState* __tstate = wxPyBeginAllowThreads();
13978 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2);
13979
13980 wxPyEndAllowThreads(__tstate);
13981 if (PyErr_Occurred()) SWIG_fail;
13982 }
13983 {
13984 resultobj = wxPyMake_wxGridCellEditor(result);
13985 }
13986 {
13987 if (temp2)
13988 delete arg2;
13989 }
13990 return resultobj;
13991 fail:
13992 {
13993 if (temp2)
13994 delete arg2;
13995 }
13996 return NULL;
13997 }
13998
13999
14000 static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) {
14001 PyObject *resultobj;
14002 wxGrid *arg1 = (wxGrid *) 0 ;
14003 wxString *arg2 = 0 ;
14004 wxGridCellRenderer *result;
14005 bool temp2 = False ;
14006 PyObject * obj0 = 0 ;
14007 PyObject * obj1 = 0 ;
14008 char *kwnames[] = {
14009 (char *) "self",(char *) "typeName", NULL
14010 };
14011
14012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail;
14013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14014 {
14015 arg2 = wxString_in_helper(obj1);
14016 if (arg2 == NULL) SWIG_fail;
14017 temp2 = True;
14018 }
14019 {
14020 PyThreadState* __tstate = wxPyBeginAllowThreads();
14021 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2);
14022
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 {
14027 resultobj = wxPyMake_wxGridCellRenderer(result);
14028 }
14029 {
14030 if (temp2)
14031 delete arg2;
14032 }
14033 return resultobj;
14034 fail:
14035 {
14036 if (temp2)
14037 delete arg2;
14038 }
14039 return NULL;
14040 }
14041
14042
14043 static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj;
14045 wxGrid *arg1 = (wxGrid *) 0 ;
14046 int arg2 ;
14047 int arg3 ;
14048 PyObject * obj0 = 0 ;
14049 PyObject * obj1 = 0 ;
14050 PyObject * obj2 = 0 ;
14051 char *kwnames[] = {
14052 (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL
14053 };
14054
14055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
14056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14057 {
14058 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14059 if (PyErr_Occurred()) SWIG_fail;
14060 }
14061 {
14062 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14063 if (PyErr_Occurred()) SWIG_fail;
14064 }
14065 {
14066 PyThreadState* __tstate = wxPyBeginAllowThreads();
14067 (arg1)->SetMargins(arg2,arg3);
14068
14069 wxPyEndAllowThreads(__tstate);
14070 if (PyErr_Occurred()) SWIG_fail;
14071 }
14072 Py_INCREF(Py_None); resultobj = Py_None;
14073 return resultobj;
14074 fail:
14075 return NULL;
14076 }
14077
14078
14079 static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14080 PyObject *resultobj;
14081 wxGrid *arg1 = (wxGrid *) 0 ;
14082 wxWindow *result;
14083 PyObject * obj0 = 0 ;
14084 char *kwnames[] = {
14085 (char *) "self", NULL
14086 };
14087
14088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail;
14089 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14090 {
14091 PyThreadState* __tstate = wxPyBeginAllowThreads();
14092 result = (wxWindow *)(arg1)->GetGridWindow();
14093
14094 wxPyEndAllowThreads(__tstate);
14095 if (PyErr_Occurred()) SWIG_fail;
14096 }
14097 {
14098 resultobj = wxPyMake_wxObject(result);
14099 }
14100 return resultobj;
14101 fail:
14102 return NULL;
14103 }
14104
14105
14106 static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14107 PyObject *resultobj;
14108 wxGrid *arg1 = (wxGrid *) 0 ;
14109 wxWindow *result;
14110 PyObject * obj0 = 0 ;
14111 char *kwnames[] = {
14112 (char *) "self", NULL
14113 };
14114
14115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail;
14116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14117 {
14118 PyThreadState* __tstate = wxPyBeginAllowThreads();
14119 result = (wxWindow *)(arg1)->GetGridRowLabelWindow();
14120
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 {
14125 resultobj = wxPyMake_wxObject(result);
14126 }
14127 return resultobj;
14128 fail:
14129 return NULL;
14130 }
14131
14132
14133 static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14134 PyObject *resultobj;
14135 wxGrid *arg1 = (wxGrid *) 0 ;
14136 wxWindow *result;
14137 PyObject * obj0 = 0 ;
14138 char *kwnames[] = {
14139 (char *) "self", NULL
14140 };
14141
14142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail;
14143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14144 {
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 result = (wxWindow *)(arg1)->GetGridColLabelWindow();
14147
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 {
14152 resultobj = wxPyMake_wxObject(result);
14153 }
14154 return resultobj;
14155 fail:
14156 return NULL;
14157 }
14158
14159
14160 static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
14161 PyObject *resultobj;
14162 wxGrid *arg1 = (wxGrid *) 0 ;
14163 wxWindow *result;
14164 PyObject * obj0 = 0 ;
14165 char *kwnames[] = {
14166 (char *) "self", NULL
14167 };
14168
14169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail;
14170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14171 {
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 result = (wxWindow *)(arg1)->GetGridCornerLabelWindow();
14174
14175 wxPyEndAllowThreads(__tstate);
14176 if (PyErr_Occurred()) SWIG_fail;
14177 }
14178 {
14179 resultobj = wxPyMake_wxObject(result);
14180 }
14181 return resultobj;
14182 fail:
14183 return NULL;
14184 }
14185
14186
14187 static PyObject * Grid_swigregister(PyObject *self, PyObject *args) {
14188 PyObject *obj;
14189 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14190 SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj);
14191 Py_INCREF(obj);
14192 return Py_BuildValue((char *)"");
14193 }
14194 static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14195 PyObject *resultobj;
14196 int arg1 ;
14197 wxEventType arg2 ;
14198 wxGrid *arg3 = (wxGrid *) 0 ;
14199 int arg4 = (int) -1 ;
14200 int arg5 = (int) -1 ;
14201 int arg6 = (int) -1 ;
14202 int arg7 = (int) -1 ;
14203 bool arg8 = (bool) True ;
14204 bool arg9 = (bool) False ;
14205 bool arg10 = (bool) False ;
14206 bool arg11 = (bool) False ;
14207 bool arg12 = (bool) False ;
14208 wxGridEvent *result;
14209 PyObject * obj0 = 0 ;
14210 PyObject * obj1 = 0 ;
14211 PyObject * obj2 = 0 ;
14212 PyObject * obj3 = 0 ;
14213 PyObject * obj4 = 0 ;
14214 PyObject * obj5 = 0 ;
14215 PyObject * obj6 = 0 ;
14216 PyObject * obj7 = 0 ;
14217 PyObject * obj8 = 0 ;
14218 PyObject * obj9 = 0 ;
14219 PyObject * obj10 = 0 ;
14220 PyObject * obj11 = 0 ;
14221 char *kwnames[] = {
14222 (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
14223 };
14224
14225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOOOO:new_GridEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
14226 {
14227 arg1 = (int) SWIG_PyObj_AsInt(obj0);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 {
14231 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
14232 if (PyErr_Occurred()) SWIG_fail;
14233 }
14234 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14235 if (obj3) {
14236 {
14237 arg4 = (int) SWIG_PyObj_AsInt(obj3);
14238 if (PyErr_Occurred()) SWIG_fail;
14239 }
14240 }
14241 if (obj4) {
14242 {
14243 arg5 = (int) SWIG_PyObj_AsInt(obj4);
14244 if (PyErr_Occurred()) SWIG_fail;
14245 }
14246 }
14247 if (obj5) {
14248 {
14249 arg6 = (int) SWIG_PyObj_AsInt(obj5);
14250 if (PyErr_Occurred()) SWIG_fail;
14251 }
14252 }
14253 if (obj6) {
14254 {
14255 arg7 = (int) SWIG_PyObj_AsInt(obj6);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 }
14258 }
14259 if (obj7) {
14260 {
14261 arg8 = (bool) SWIG_PyObj_AsBool(obj7);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 }
14265 if (obj8) {
14266 {
14267 arg9 = (bool) SWIG_PyObj_AsBool(obj8);
14268 if (PyErr_Occurred()) SWIG_fail;
14269 }
14270 }
14271 if (obj9) {
14272 {
14273 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
14274 if (PyErr_Occurred()) SWIG_fail;
14275 }
14276 }
14277 if (obj10) {
14278 {
14279 arg11 = (bool) SWIG_PyObj_AsBool(obj10);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 }
14283 if (obj11) {
14284 {
14285 arg12 = (bool) SWIG_PyObj_AsBool(obj11);
14286 if (PyErr_Occurred()) SWIG_fail;
14287 }
14288 }
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
14292
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEvent, 1);
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj;
14305 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14306 int result;
14307 PyObject * obj0 = 0 ;
14308 char *kwnames[] = {
14309 (char *) "self", NULL
14310 };
14311
14312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail;
14313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14314 {
14315 PyThreadState* __tstate = wxPyBeginAllowThreads();
14316 result = (int)(arg1)->GetRow();
14317
14318 wxPyEndAllowThreads(__tstate);
14319 if (PyErr_Occurred()) SWIG_fail;
14320 }
14321 resultobj = SWIG_PyObj_FromInt((int)result);
14322 return resultobj;
14323 fail:
14324 return NULL;
14325 }
14326
14327
14328 static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14329 PyObject *resultobj;
14330 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14331 int result;
14332 PyObject * obj0 = 0 ;
14333 char *kwnames[] = {
14334 (char *) "self", NULL
14335 };
14336
14337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail;
14338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14339 {
14340 PyThreadState* __tstate = wxPyBeginAllowThreads();
14341 result = (int)(arg1)->GetCol();
14342
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 resultobj = SWIG_PyObj_FromInt((int)result);
14347 return resultobj;
14348 fail:
14349 return NULL;
14350 }
14351
14352
14353 static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14354 PyObject *resultobj;
14355 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14356 wxPoint result;
14357 PyObject * obj0 = 0 ;
14358 char *kwnames[] = {
14359 (char *) "self", NULL
14360 };
14361
14362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail;
14363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14364 {
14365 PyThreadState* __tstate = wxPyBeginAllowThreads();
14366 result = (arg1)->GetPosition();
14367
14368 wxPyEndAllowThreads(__tstate);
14369 if (PyErr_Occurred()) SWIG_fail;
14370 }
14371 {
14372 wxPoint * resultptr;
14373 resultptr = new wxPoint((wxPoint &) result);
14374 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14375 }
14376 return resultobj;
14377 fail:
14378 return NULL;
14379 }
14380
14381
14382 static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
14383 PyObject *resultobj;
14384 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14385 bool result;
14386 PyObject * obj0 = 0 ;
14387 char *kwnames[] = {
14388 (char *) "self", NULL
14389 };
14390
14391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail;
14392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14393 {
14394 PyThreadState* __tstate = wxPyBeginAllowThreads();
14395 result = (bool)(arg1)->Selecting();
14396
14397 wxPyEndAllowThreads(__tstate);
14398 if (PyErr_Occurred()) SWIG_fail;
14399 }
14400 resultobj = SWIG_PyObj_FromBool((bool)result);
14401 return resultobj;
14402 fail:
14403 return NULL;
14404 }
14405
14406
14407 static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14408 PyObject *resultobj;
14409 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14410 bool result;
14411 PyObject * obj0 = 0 ;
14412 char *kwnames[] = {
14413 (char *) "self", NULL
14414 };
14415
14416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail;
14417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14418 {
14419 PyThreadState* __tstate = wxPyBeginAllowThreads();
14420 result = (bool)(arg1)->ControlDown();
14421
14422 wxPyEndAllowThreads(__tstate);
14423 if (PyErr_Occurred()) SWIG_fail;
14424 }
14425 resultobj = SWIG_PyObj_FromBool((bool)result);
14426 return resultobj;
14427 fail:
14428 return NULL;
14429 }
14430
14431
14432 static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14433 PyObject *resultobj;
14434 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14435 bool result;
14436 PyObject * obj0 = 0 ;
14437 char *kwnames[] = {
14438 (char *) "self", NULL
14439 };
14440
14441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail;
14442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14443 {
14444 PyThreadState* __tstate = wxPyBeginAllowThreads();
14445 result = (bool)(arg1)->MetaDown();
14446
14447 wxPyEndAllowThreads(__tstate);
14448 if (PyErr_Occurred()) SWIG_fail;
14449 }
14450 resultobj = SWIG_PyObj_FromBool((bool)result);
14451 return resultobj;
14452 fail:
14453 return NULL;
14454 }
14455
14456
14457 static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14458 PyObject *resultobj;
14459 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14460 bool result;
14461 PyObject * obj0 = 0 ;
14462 char *kwnames[] = {
14463 (char *) "self", NULL
14464 };
14465
14466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail;
14467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14468 {
14469 PyThreadState* __tstate = wxPyBeginAllowThreads();
14470 result = (bool)(arg1)->ShiftDown();
14471
14472 wxPyEndAllowThreads(__tstate);
14473 if (PyErr_Occurred()) SWIG_fail;
14474 }
14475 resultobj = SWIG_PyObj_FromBool((bool)result);
14476 return resultobj;
14477 fail:
14478 return NULL;
14479 }
14480
14481
14482 static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14483 PyObject *resultobj;
14484 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
14485 bool result;
14486 PyObject * obj0 = 0 ;
14487 char *kwnames[] = {
14488 (char *) "self", NULL
14489 };
14490
14491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail;
14492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14493 {
14494 PyThreadState* __tstate = wxPyBeginAllowThreads();
14495 result = (bool)(arg1)->AltDown();
14496
14497 wxPyEndAllowThreads(__tstate);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 }
14500 resultobj = SWIG_PyObj_FromBool((bool)result);
14501 return resultobj;
14502 fail:
14503 return NULL;
14504 }
14505
14506
14507 static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) {
14508 PyObject *obj;
14509 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14510 SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj);
14511 Py_INCREF(obj);
14512 return Py_BuildValue((char *)"");
14513 }
14514 static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14515 PyObject *resultobj;
14516 int arg1 ;
14517 wxEventType arg2 ;
14518 wxGrid *arg3 = (wxGrid *) 0 ;
14519 int arg4 = (int) -1 ;
14520 int arg5 = (int) -1 ;
14521 int arg6 = (int) -1 ;
14522 bool arg7 = (bool) False ;
14523 bool arg8 = (bool) False ;
14524 bool arg9 = (bool) False ;
14525 bool arg10 = (bool) False ;
14526 wxGridSizeEvent *result;
14527 PyObject * obj0 = 0 ;
14528 PyObject * obj1 = 0 ;
14529 PyObject * obj2 = 0 ;
14530 PyObject * obj3 = 0 ;
14531 PyObject * obj4 = 0 ;
14532 PyObject * obj5 = 0 ;
14533 PyObject * obj6 = 0 ;
14534 PyObject * obj7 = 0 ;
14535 PyObject * obj8 = 0 ;
14536 PyObject * obj9 = 0 ;
14537 char *kwnames[] = {
14538 (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
14539 };
14540
14541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_GridSizeEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
14542 {
14543 arg1 = (int) SWIG_PyObj_AsInt(obj0);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 }
14546 {
14547 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 }
14550 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14551 if (obj3) {
14552 {
14553 arg4 = (int) SWIG_PyObj_AsInt(obj3);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 }
14557 if (obj4) {
14558 {
14559 arg5 = (int) SWIG_PyObj_AsInt(obj4);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 }
14562 }
14563 if (obj5) {
14564 {
14565 arg6 = (int) SWIG_PyObj_AsInt(obj5);
14566 if (PyErr_Occurred()) SWIG_fail;
14567 }
14568 }
14569 if (obj6) {
14570 {
14571 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 }
14575 if (obj7) {
14576 {
14577 arg8 = (bool) SWIG_PyObj_AsBool(obj7);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 }
14581 if (obj8) {
14582 {
14583 arg9 = (bool) SWIG_PyObj_AsBool(obj8);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 }
14587 if (obj9) {
14588 {
14589 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 }
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
14596
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizeEvent, 1);
14601 return resultobj;
14602 fail:
14603 return NULL;
14604 }
14605
14606
14607 static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj;
14609 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14610 int result;
14611 PyObject * obj0 = 0 ;
14612 char *kwnames[] = {
14613 (char *) "self", NULL
14614 };
14615
14616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail;
14617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14618 {
14619 PyThreadState* __tstate = wxPyBeginAllowThreads();
14620 result = (int)(arg1)->GetRowOrCol();
14621
14622 wxPyEndAllowThreads(__tstate);
14623 if (PyErr_Occurred()) SWIG_fail;
14624 }
14625 resultobj = SWIG_PyObj_FromInt((int)result);
14626 return resultobj;
14627 fail:
14628 return NULL;
14629 }
14630
14631
14632 static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14633 PyObject *resultobj;
14634 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14635 wxPoint result;
14636 PyObject * obj0 = 0 ;
14637 char *kwnames[] = {
14638 (char *) "self", NULL
14639 };
14640
14641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail;
14642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14643 {
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 result = (arg1)->GetPosition();
14646
14647 wxPyEndAllowThreads(__tstate);
14648 if (PyErr_Occurred()) SWIG_fail;
14649 }
14650 {
14651 wxPoint * resultptr;
14652 resultptr = new wxPoint((wxPoint &) result);
14653 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14654 }
14655 return resultobj;
14656 fail:
14657 return NULL;
14658 }
14659
14660
14661 static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14662 PyObject *resultobj;
14663 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14664 bool result;
14665 PyObject * obj0 = 0 ;
14666 char *kwnames[] = {
14667 (char *) "self", NULL
14668 };
14669
14670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail;
14671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 result = (bool)(arg1)->ControlDown();
14675
14676 wxPyEndAllowThreads(__tstate);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 resultobj = SWIG_PyObj_FromBool((bool)result);
14680 return resultobj;
14681 fail:
14682 return NULL;
14683 }
14684
14685
14686 static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14687 PyObject *resultobj;
14688 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14689 bool result;
14690 PyObject * obj0 = 0 ;
14691 char *kwnames[] = {
14692 (char *) "self", NULL
14693 };
14694
14695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail;
14696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14697 {
14698 PyThreadState* __tstate = wxPyBeginAllowThreads();
14699 result = (bool)(arg1)->MetaDown();
14700
14701 wxPyEndAllowThreads(__tstate);
14702 if (PyErr_Occurred()) SWIG_fail;
14703 }
14704 resultobj = SWIG_PyObj_FromBool((bool)result);
14705 return resultobj;
14706 fail:
14707 return NULL;
14708 }
14709
14710
14711 static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14712 PyObject *resultobj;
14713 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14714 bool result;
14715 PyObject * obj0 = 0 ;
14716 char *kwnames[] = {
14717 (char *) "self", NULL
14718 };
14719
14720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail;
14721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14722 {
14723 PyThreadState* __tstate = wxPyBeginAllowThreads();
14724 result = (bool)(arg1)->ShiftDown();
14725
14726 wxPyEndAllowThreads(__tstate);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 }
14729 resultobj = SWIG_PyObj_FromBool((bool)result);
14730 return resultobj;
14731 fail:
14732 return NULL;
14733 }
14734
14735
14736 static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14737 PyObject *resultobj;
14738 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
14739 bool result;
14740 PyObject * obj0 = 0 ;
14741 char *kwnames[] = {
14742 (char *) "self", NULL
14743 };
14744
14745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail;
14746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14747 {
14748 PyThreadState* __tstate = wxPyBeginAllowThreads();
14749 result = (bool)(arg1)->AltDown();
14750
14751 wxPyEndAllowThreads(__tstate);
14752 if (PyErr_Occurred()) SWIG_fail;
14753 }
14754 resultobj = SWIG_PyObj_FromBool((bool)result);
14755 return resultobj;
14756 fail:
14757 return NULL;
14758 }
14759
14760
14761 static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) {
14762 PyObject *obj;
14763 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14764 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj);
14765 Py_INCREF(obj);
14766 return Py_BuildValue((char *)"");
14767 }
14768 static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14769 PyObject *resultobj;
14770 int arg1 ;
14771 wxEventType arg2 ;
14772 wxGrid *arg3 = (wxGrid *) 0 ;
14773 wxGridCellCoords *arg4 = 0 ;
14774 wxGridCellCoords *arg5 = 0 ;
14775 bool arg6 = (bool) True ;
14776 bool arg7 = (bool) False ;
14777 bool arg8 = (bool) False ;
14778 bool arg9 = (bool) False ;
14779 bool arg10 = (bool) False ;
14780 wxGridRangeSelectEvent *result;
14781 wxGridCellCoords temp4 ;
14782 wxGridCellCoords temp5 ;
14783 PyObject * obj0 = 0 ;
14784 PyObject * obj1 = 0 ;
14785 PyObject * obj2 = 0 ;
14786 PyObject * obj3 = 0 ;
14787 PyObject * obj4 = 0 ;
14788 PyObject * obj5 = 0 ;
14789 PyObject * obj6 = 0 ;
14790 PyObject * obj7 = 0 ;
14791 PyObject * obj8 = 0 ;
14792 PyObject * obj9 = 0 ;
14793 char *kwnames[] = {
14794 (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
14795 };
14796
14797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
14798 {
14799 arg1 = (int) SWIG_PyObj_AsInt(obj0);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 {
14803 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14807 {
14808 arg4 = &temp4;
14809 if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail;
14810 }
14811 {
14812 arg5 = &temp5;
14813 if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail;
14814 }
14815 if (obj5) {
14816 {
14817 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 }
14821 if (obj6) {
14822 {
14823 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 }
14827 if (obj7) {
14828 {
14829 arg8 = (bool) SWIG_PyObj_AsBool(obj7);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
14832 }
14833 if (obj8) {
14834 {
14835 arg9 = (bool) SWIG_PyObj_AsBool(obj8);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 }
14839 if (obj9) {
14840 {
14841 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
14842 if (PyErr_Occurred()) SWIG_fail;
14843 }
14844 }
14845 {
14846 PyThreadState* __tstate = wxPyBeginAllowThreads();
14847 result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10);
14848
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridRangeSelectEvent, 1);
14853 return resultobj;
14854 fail:
14855 return NULL;
14856 }
14857
14858
14859 static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
14860 PyObject *resultobj;
14861 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14862 wxGridCellCoords result;
14863 PyObject * obj0 = 0 ;
14864 char *kwnames[] = {
14865 (char *) "self", NULL
14866 };
14867
14868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail;
14869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 result = (arg1)->GetTopLeftCoords();
14873
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 {
14878 wxGridCellCoords * resultptr;
14879 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
14880 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
14881 }
14882 return resultobj;
14883 fail:
14884 return NULL;
14885 }
14886
14887
14888 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj;
14890 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14891 wxGridCellCoords result;
14892 PyObject * obj0 = 0 ;
14893 char *kwnames[] = {
14894 (char *) "self", NULL
14895 };
14896
14897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail;
14898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14899 {
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 result = (arg1)->GetBottomRightCoords();
14902
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 {
14907 wxGridCellCoords * resultptr;
14908 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
14909 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
14910 }
14911 return resultobj;
14912 fail:
14913 return NULL;
14914 }
14915
14916
14917 static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) {
14918 PyObject *resultobj;
14919 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14920 int result;
14921 PyObject * obj0 = 0 ;
14922 char *kwnames[] = {
14923 (char *) "self", NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail;
14927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14928 {
14929 PyThreadState* __tstate = wxPyBeginAllowThreads();
14930 result = (int)(arg1)->GetTopRow();
14931
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 resultobj = SWIG_PyObj_FromInt((int)result);
14936 return resultobj;
14937 fail:
14938 return NULL;
14939 }
14940
14941
14942 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) {
14943 PyObject *resultobj;
14944 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14945 int result;
14946 PyObject * obj0 = 0 ;
14947 char *kwnames[] = {
14948 (char *) "self", NULL
14949 };
14950
14951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail;
14952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14953 {
14954 PyThreadState* __tstate = wxPyBeginAllowThreads();
14955 result = (int)(arg1)->GetBottomRow();
14956
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 resultobj = SWIG_PyObj_FromInt((int)result);
14961 return resultobj;
14962 fail:
14963 return NULL;
14964 }
14965
14966
14967 static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14968 PyObject *resultobj;
14969 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14970 int result;
14971 PyObject * obj0 = 0 ;
14972 char *kwnames[] = {
14973 (char *) "self", NULL
14974 };
14975
14976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail;
14977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 result = (int)(arg1)->GetLeftCol();
14981
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 resultobj = SWIG_PyObj_FromInt((int)result);
14986 return resultobj;
14987 fail:
14988 return NULL;
14989 }
14990
14991
14992 static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) {
14993 PyObject *resultobj;
14994 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
14995 int result;
14996 PyObject * obj0 = 0 ;
14997 char *kwnames[] = {
14998 (char *) "self", NULL
14999 };
15000
15001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail;
15002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15003 {
15004 PyThreadState* __tstate = wxPyBeginAllowThreads();
15005 result = (int)(arg1)->GetRightCol();
15006
15007 wxPyEndAllowThreads(__tstate);
15008 if (PyErr_Occurred()) SWIG_fail;
15009 }
15010 resultobj = SWIG_PyObj_FromInt((int)result);
15011 return resultobj;
15012 fail:
15013 return NULL;
15014 }
15015
15016
15017 static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
15018 PyObject *resultobj;
15019 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15020 bool result;
15021 PyObject * obj0 = 0 ;
15022 char *kwnames[] = {
15023 (char *) "self", NULL
15024 };
15025
15026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail;
15027 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15028 {
15029 PyThreadState* __tstate = wxPyBeginAllowThreads();
15030 result = (bool)(arg1)->Selecting();
15031
15032 wxPyEndAllowThreads(__tstate);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 resultobj = SWIG_PyObj_FromBool((bool)result);
15036 return resultobj;
15037 fail:
15038 return NULL;
15039 }
15040
15041
15042 static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj;
15044 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15045 bool result;
15046 PyObject * obj0 = 0 ;
15047 char *kwnames[] = {
15048 (char *) "self", NULL
15049 };
15050
15051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail;
15052 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
15055 result = (bool)(arg1)->ControlDown();
15056
15057 wxPyEndAllowThreads(__tstate);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
15060 resultobj = SWIG_PyObj_FromBool((bool)result);
15061 return resultobj;
15062 fail:
15063 return NULL;
15064 }
15065
15066
15067 static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15068 PyObject *resultobj;
15069 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15070 bool result;
15071 PyObject * obj0 = 0 ;
15072 char *kwnames[] = {
15073 (char *) "self", NULL
15074 };
15075
15076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail;
15077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15078 {
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 result = (bool)(arg1)->MetaDown();
15081
15082 wxPyEndAllowThreads(__tstate);
15083 if (PyErr_Occurred()) SWIG_fail;
15084 }
15085 resultobj = SWIG_PyObj_FromBool((bool)result);
15086 return resultobj;
15087 fail:
15088 return NULL;
15089 }
15090
15091
15092 static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15093 PyObject *resultobj;
15094 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15095 bool result;
15096 PyObject * obj0 = 0 ;
15097 char *kwnames[] = {
15098 (char *) "self", NULL
15099 };
15100
15101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail;
15102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15103 {
15104 PyThreadState* __tstate = wxPyBeginAllowThreads();
15105 result = (bool)(arg1)->ShiftDown();
15106
15107 wxPyEndAllowThreads(__tstate);
15108 if (PyErr_Occurred()) SWIG_fail;
15109 }
15110 resultobj = SWIG_PyObj_FromBool((bool)result);
15111 return resultobj;
15112 fail:
15113 return NULL;
15114 }
15115
15116
15117 static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15118 PyObject *resultobj;
15119 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
15120 bool result;
15121 PyObject * obj0 = 0 ;
15122 char *kwnames[] = {
15123 (char *) "self", NULL
15124 };
15125
15126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail;
15127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15128 {
15129 PyThreadState* __tstate = wxPyBeginAllowThreads();
15130 result = (bool)(arg1)->AltDown();
15131
15132 wxPyEndAllowThreads(__tstate);
15133 if (PyErr_Occurred()) SWIG_fail;
15134 }
15135 resultobj = SWIG_PyObj_FromBool((bool)result);
15136 return resultobj;
15137 fail:
15138 return NULL;
15139 }
15140
15141
15142 static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) {
15143 PyObject *obj;
15144 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15145 SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj);
15146 Py_INCREF(obj);
15147 return Py_BuildValue((char *)"");
15148 }
15149 static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15150 PyObject *resultobj;
15151 int arg1 ;
15152 wxEventType arg2 ;
15153 wxObject *arg3 = (wxObject *) 0 ;
15154 int arg4 ;
15155 int arg5 ;
15156 wxControl *arg6 = (wxControl *) 0 ;
15157 wxGridEditorCreatedEvent *result;
15158 PyObject * obj0 = 0 ;
15159 PyObject * obj1 = 0 ;
15160 PyObject * obj2 = 0 ;
15161 PyObject * obj3 = 0 ;
15162 PyObject * obj4 = 0 ;
15163 PyObject * obj5 = 0 ;
15164 char *kwnames[] = {
15165 (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL
15166 };
15167
15168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GridEditorCreatedEvent",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15169 {
15170 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15171 if (PyErr_Occurred()) SWIG_fail;
15172 }
15173 {
15174 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
15175 if (PyErr_Occurred()) SWIG_fail;
15176 }
15177 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15178 {
15179 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15180 if (PyErr_Occurred()) SWIG_fail;
15181 }
15182 {
15183 arg5 = (int) SWIG_PyObj_AsInt(obj4);
15184 if (PyErr_Occurred()) SWIG_fail;
15185 }
15186 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15187 {
15188 PyThreadState* __tstate = wxPyBeginAllowThreads();
15189 result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6);
15190
15191 wxPyEndAllowThreads(__tstate);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEditorCreatedEvent, 1);
15195 return resultobj;
15196 fail:
15197 return NULL;
15198 }
15199
15200
15201 static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
15202 PyObject *resultobj;
15203 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15204 int result;
15205 PyObject * obj0 = 0 ;
15206 char *kwnames[] = {
15207 (char *) "self", NULL
15208 };
15209
15210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail;
15211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15212 {
15213 PyThreadState* __tstate = wxPyBeginAllowThreads();
15214 result = (int)(arg1)->GetRow();
15215
15216 wxPyEndAllowThreads(__tstate);
15217 if (PyErr_Occurred()) SWIG_fail;
15218 }
15219 resultobj = SWIG_PyObj_FromInt((int)result);
15220 return resultobj;
15221 fail:
15222 return NULL;
15223 }
15224
15225
15226 static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
15227 PyObject *resultobj;
15228 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15229 int result;
15230 PyObject * obj0 = 0 ;
15231 char *kwnames[] = {
15232 (char *) "self", NULL
15233 };
15234
15235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail;
15236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15237 {
15238 PyThreadState* __tstate = wxPyBeginAllowThreads();
15239 result = (int)(arg1)->GetCol();
15240
15241 wxPyEndAllowThreads(__tstate);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 resultobj = SWIG_PyObj_FromInt((int)result);
15245 return resultobj;
15246 fail:
15247 return NULL;
15248 }
15249
15250
15251 static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15252 PyObject *resultobj;
15253 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15254 wxControl *result;
15255 PyObject * obj0 = 0 ;
15256 char *kwnames[] = {
15257 (char *) "self", NULL
15258 };
15259
15260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail;
15261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15262 {
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = (wxControl *)(arg1)->GetControl();
15265
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 {
15270 resultobj = wxPyMake_wxObject(result);
15271 }
15272 return resultobj;
15273 fail:
15274 return NULL;
15275 }
15276
15277
15278 static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
15279 PyObject *resultobj;
15280 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15281 int arg2 ;
15282 PyObject * obj0 = 0 ;
15283 PyObject * obj1 = 0 ;
15284 char *kwnames[] = {
15285 (char *) "self",(char *) "row", NULL
15286 };
15287
15288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&obj1)) goto fail;
15289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15290 {
15291 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15292 if (PyErr_Occurred()) SWIG_fail;
15293 }
15294 {
15295 PyThreadState* __tstate = wxPyBeginAllowThreads();
15296 (arg1)->SetRow(arg2);
15297
15298 wxPyEndAllowThreads(__tstate);
15299 if (PyErr_Occurred()) SWIG_fail;
15300 }
15301 Py_INCREF(Py_None); resultobj = Py_None;
15302 return resultobj;
15303 fail:
15304 return NULL;
15305 }
15306
15307
15308 static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
15309 PyObject *resultobj;
15310 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15311 int arg2 ;
15312 PyObject * obj0 = 0 ;
15313 PyObject * obj1 = 0 ;
15314 char *kwnames[] = {
15315 (char *) "self",(char *) "col", NULL
15316 };
15317
15318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&obj1)) goto fail;
15319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15320 {
15321 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 {
15325 PyThreadState* __tstate = wxPyBeginAllowThreads();
15326 (arg1)->SetCol(arg2);
15327
15328 wxPyEndAllowThreads(__tstate);
15329 if (PyErr_Occurred()) SWIG_fail;
15330 }
15331 Py_INCREF(Py_None); resultobj = Py_None;
15332 return resultobj;
15333 fail:
15334 return NULL;
15335 }
15336
15337
15338 static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
15339 PyObject *resultobj;
15340 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
15341 wxControl *arg2 = (wxControl *) 0 ;
15342 PyObject * obj0 = 0 ;
15343 PyObject * obj1 = 0 ;
15344 char *kwnames[] = {
15345 (char *) "self",(char *) "ctrl", NULL
15346 };
15347
15348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail;
15349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15350 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15351 {
15352 PyThreadState* __tstate = wxPyBeginAllowThreads();
15353 (arg1)->SetControl(arg2);
15354
15355 wxPyEndAllowThreads(__tstate);
15356 if (PyErr_Occurred()) SWIG_fail;
15357 }
15358 Py_INCREF(Py_None); resultobj = Py_None;
15359 return resultobj;
15360 fail:
15361 return NULL;
15362 }
15363
15364
15365 static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) {
15366 PyObject *obj;
15367 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15368 SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj);
15369 Py_INCREF(obj);
15370 return Py_BuildValue((char *)"");
15371 }
15372 static PyMethodDef SwigMethods[] = {
15373 { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15374 { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS },
15375 { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS },
15376 { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS },
15377 { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS },
15378 { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS },
15379 { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS },
15380 { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS },
15381 { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS },
15382 { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15383 { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
15384 { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS },
15385 { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS },
15386 { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS },
15387 { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS },
15388 { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS },
15389 { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS },
15390 { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS },
15391 { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS },
15392 { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS },
15393 { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS },
15394 { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS },
15395 { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS },
15396 { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS },
15397 { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS },
15398 { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS },
15399 { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS },
15400 { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS },
15401 { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS },
15402 { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS },
15403 { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15404 { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS },
15405 { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
15406 { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
15407 { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS },
15408 { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS },
15409 { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
15410 { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
15411 { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
15412 { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS },
15413 { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS },
15414 { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS },
15415 { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS },
15416 { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS },
15417 { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS },
15418 { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS },
15419 { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS },
15420 { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
15421 { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS },
15422 { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS },
15423 { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS },
15424 { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS },
15425 { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS },
15426 { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS },
15427 { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15428 { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS },
15429 { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS },
15430 { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS },
15431 { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
15432 { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS },
15433 { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS },
15434 { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS },
15435 { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS },
15436 { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
15437 { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS },
15438 { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS },
15439 { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15440 { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS },
15441 { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS },
15442 { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15443 { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS },
15444 { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS },
15445 { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15446 { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS },
15447 { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS },
15448 { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15449 { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS },
15450 { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS },
15451 { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15452 { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS },
15453 { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS },
15454 { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15455 { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS },
15456 { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS },
15457 { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
15458 { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS },
15459 { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15460 { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS },
15461 { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS },
15462 { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS },
15463 { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS },
15464 { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS },
15465 { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
15466 { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15467 { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
15468 { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
15469 { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS },
15470 { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS },
15471 { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
15472 { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS },
15473 { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS },
15474 { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS },
15475 { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
15476 { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15477 { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
15478 { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
15479 { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS },
15480 { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS },
15481 { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS },
15482 { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS },
15483 { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
15484 { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15485 { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
15486 { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
15487 { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS },
15488 { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS },
15489 { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS },
15490 { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS },
15491 { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
15492 { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS },
15493 { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS },
15494 { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
15495 { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15496 { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS },
15497 { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS },
15498 { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15499 { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15500 { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS },
15501 { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS },
15502 { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS },
15503 { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
15504 { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15505 { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
15506 { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
15507 { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15508 { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15509 { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS },
15510 { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS },
15511 { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS },
15512 { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS },
15513 { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS },
15514 { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS },
15515 { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
15516 { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
15517 { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS },
15518 { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS },
15519 { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS },
15520 { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS },
15521 { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
15522 { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
15523 { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS },
15524 { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
15525 { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS },
15526 { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS },
15527 { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
15528 { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS },
15529 { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS },
15530 { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS },
15531 { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS },
15532 { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15533 { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS },
15534 { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS },
15535 { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15536 { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15537 { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15538 { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15539 { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15540 { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
15541 { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS },
15542 { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS },
15543 { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15544 { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15545 { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS },
15546 { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS },
15547 { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
15548 { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS },
15549 { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS },
15550 { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
15551 { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
15552 { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS },
15553 { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS },
15554 { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS },
15555 { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15556 { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS },
15557 { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS },
15558 { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15559 { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15560 { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15561 { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15562 { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15563 { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
15564 { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
15565 { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
15566 { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15567 { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15568 { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS },
15569 { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS },
15570 { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS },
15571 { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
15572 { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
15573 { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS },
15574 { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS },
15575 { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS },
15576 { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS },
15577 { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS },
15578 { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS },
15579 { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS },
15580 { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS },
15581 { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS },
15582 { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
15583 { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
15584 { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS },
15585 { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS },
15586 { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS },
15587 { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS },
15588 { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS },
15589 { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS },
15590 { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS },
15591 { (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS },
15592 { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS },
15593 { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS },
15594 { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
15595 { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS },
15596 { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS },
15597 { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
15598 { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
15599 { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS },
15600 { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS },
15601 { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS },
15602 { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS },
15603 { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS },
15604 { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS },
15605 { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS },
15606 { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS },
15607 { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS },
15608 { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS },
15609 { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS },
15610 { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS },
15611 { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS },
15612 { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS },
15613 { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS },
15614 { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS },
15615 { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS },
15616 { (char *)"Grid_Refresh", (PyCFunction) _wrap_Grid_Refresh, METH_VARARGS | METH_KEYWORDS },
15617 { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS },
15618 { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS },
15619 { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS },
15620 { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS },
15621 { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS },
15622 { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS },
15623 { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS },
15624 { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS },
15625 { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS },
15626 { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS },
15627 { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS },
15628 { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS },
15629 { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS },
15630 { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS },
15631 { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS },
15632 { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS },
15633 { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS },
15634 { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS },
15635 { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS },
15636 { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS },
15637 { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS },
15638 { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS },
15639 { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS },
15640 { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS },
15641 { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS },
15642 { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS },
15643 { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS },
15644 { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS },
15645 { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS },
15646 { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS },
15647 { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS },
15648 { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS },
15649 { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15650 { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15651 { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS },
15652 { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS },
15653 { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15654 { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
15655 { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS },
15656 { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15657 { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15658 { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
15659 { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15660 { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15661 { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS },
15662 { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
15663 { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
15664 { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
15665 { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15666 { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS },
15667 { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15668 { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
15669 { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS },
15670 { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15671 { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
15672 { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
15673 { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
15674 { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
15675 { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS },
15676 { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
15677 { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
15678 { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
15679 { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS },
15680 { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS },
15681 { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS },
15682 { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS },
15683 { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS },
15684 { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS },
15685 { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS },
15686 { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS },
15687 { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS },
15688 { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS },
15689 { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
15690 { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS },
15691 { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS },
15692 { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS },
15693 { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS },
15694 { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS },
15695 { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS },
15696 { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS },
15697 { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
15698 { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS },
15699 { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
15700 { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS },
15701 { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15702 { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15703 { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
15704 { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS },
15705 { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
15706 { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS },
15707 { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
15708 { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS },
15709 { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
15710 { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS },
15711 { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS },
15712 { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
15713 { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS },
15714 { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
15715 { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS },
15716 { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS },
15717 { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS },
15718 { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS },
15719 { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS },
15720 { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS },
15721 { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS },
15722 { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS },
15723 { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS },
15724 { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS },
15725 { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
15726 { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
15727 { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
15728 { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
15729 { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15730 { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
15731 { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
15732 { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS },
15733 { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
15734 { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS },
15735 { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
15736 { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS },
15737 { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
15738 { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS },
15739 { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS },
15740 { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
15741 { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS },
15742 { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
15743 { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS },
15744 { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
15745 { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS },
15746 { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
15747 { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS },
15748 { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS },
15749 { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS },
15750 { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
15751 { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
15752 { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS },
15753 { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS },
15754 { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS },
15755 { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS },
15756 { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS },
15757 { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS },
15758 { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS },
15759 { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS },
15760 { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS },
15761 { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS },
15762 { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS },
15763 { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS },
15764 { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS },
15765 { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS },
15766 { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS },
15767 { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS },
15768 { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
15769 { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
15770 { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
15771 { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
15772 { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS },
15773 { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS },
15774 { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS },
15775 { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS },
15776 { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS },
15777 { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS },
15778 { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS },
15779 { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS },
15780 { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS },
15781 { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS },
15782 { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS },
15783 { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS },
15784 { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
15785 { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
15786 { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
15787 { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
15788 { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
15789 { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
15790 { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
15791 { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
15792 { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS },
15793 { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS },
15794 { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS },
15795 { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
15796 { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
15797 { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
15798 { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
15799 { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
15800 { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS },
15801 { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS },
15802 { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS },
15803 { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS },
15804 { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS },
15805 { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS },
15806 { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS },
15807 { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS },
15808 { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
15809 { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
15810 { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
15811 { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
15812 { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
15813 { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS },
15814 { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS },
15815 { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
15816 { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
15817 { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS },
15818 { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS },
15819 { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS },
15820 { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS },
15821 { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS },
15822 { NULL, NULL }
15823 };
15824
15825
15826 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
15827
15828 static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) {
15829 return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x));
15830 }
15831 static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) {
15832 return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x));
15833 }
15834 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) {
15835 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
15836 }
15837 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) {
15838 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
15839 }
15840 static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) {
15841 return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x));
15842 }
15843 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) {
15844 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
15845 }
15846 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) {
15847 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
15848 }
15849 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) {
15850 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
15851 }
15852 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) {
15853 return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
15854 }
15855 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) {
15856 return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
15857 }
15858 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) {
15859 return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
15860 }
15861 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) {
15862 return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
15863 }
15864 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) {
15865 return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
15866 }
15867 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
15868 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
15869 }
15870 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
15871 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
15872 }
15873 static void *_p_wxGridTo_p_wxPanel(void *x) {
15874 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x));
15875 }
15876 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
15877 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
15878 }
15879 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
15880 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
15881 }
15882 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
15883 return (void *)((wxPanel *) ((wxPyPanel *) x));
15884 }
15885 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
15886 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
15887 }
15888 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
15889 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
15890 }
15891 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
15892 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
15893 }
15894 static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) {
15895 return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x));
15896 }
15897 static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) {
15898 return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
15899 }
15900 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
15901 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
15902 }
15903 static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) {
15904 return (void *)((wxNotifyEvent *) ((wxGridEvent *) x));
15905 }
15906 static void *_p_wxGridTo_p_wxScrolledWindow(void *x) {
15907 return (void *)((wxScrolledWindow *) ((wxGrid *) x));
15908 }
15909 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
15910 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
15911 }
15912 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
15913 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
15914 }
15915 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
15916 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
15917 }
15918 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
15919 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
15920 }
15921 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
15922 return (void *)((wxWindow *) ((wxMenuBar *) x));
15923 }
15924 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
15925 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
15926 }
15927 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
15928 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
15929 }
15930 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
15931 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
15932 }
15933 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
15934 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
15935 }
15936 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
15937 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
15938 }
15939 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
15940 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
15941 }
15942 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
15943 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
15944 }
15945 static void *_p_wxPanelTo_p_wxWindow(void *x) {
15946 return (void *)((wxWindow *) ((wxPanel *) x));
15947 }
15948 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
15949 return (void *)((wxWindow *) ((wxStatusBar *) x));
15950 }
15951 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
15952 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
15953 }
15954 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
15955 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
15956 }
15957 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
15958 return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
15959 }
15960 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
15961 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
15962 }
15963 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
15964 return (void *)((wxWindow *) ((wxPopupWindow *) x));
15965 }
15966 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
15967 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
15968 }
15969 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
15970 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
15971 }
15972 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
15973 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
15974 }
15975 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
15976 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
15977 }
15978 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
15979 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
15980 }
15981 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
15982 return (void *)((wxWindow *) ((wxSashWindow *) x));
15983 }
15984 static void *_p_wxControlTo_p_wxWindow(void *x) {
15985 return (void *)((wxWindow *) ((wxControl *) x));
15986 }
15987 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
15988 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
15989 }
15990 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
15991 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
15992 }
15993 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
15994 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
15995 }
15996 static void *_p_wxGridTo_p_wxWindow(void *x) {
15997 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
15998 }
15999 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
16000 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
16001 }
16002 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
16003 return (void *)((wxWindow *) ((wxPyWindow *) x));
16004 }
16005 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
16006 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
16007 }
16008 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
16009 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16010 }
16011 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
16012 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16013 }
16014 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
16015 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
16016 }
16017 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
16018 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16019 }
16020 static void *_p_wxFrameTo_p_wxWindow(void *x) {
16021 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
16022 }
16023 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
16024 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
16025 }
16026 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
16027 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
16028 }
16029 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
16030 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
16031 }
16032 static void *_p_wxDialogTo_p_wxWindow(void *x) {
16033 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
16034 }
16035 static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) {
16036 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
16037 }
16038 static void *_p_wxPrintDialogTo_p_wxWindow(void *x) {
16039 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
16040 }
16041 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
16042 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
16043 }
16044 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
16045 return (void *)((wxControl *) ((wxControlWithItems *) x));
16046 }
16047 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
16048 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
16049 }
16050 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
16051 return (void *)((wxEvent *) ((wxMenuEvent *) x));
16052 }
16053 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
16054 return (void *)((wxEvent *) ((wxCloseEvent *) x));
16055 }
16056 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
16057 return (void *)((wxEvent *) ((wxMouseEvent *) x));
16058 }
16059 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
16060 return (void *)((wxEvent *) ((wxEraseEvent *) x));
16061 }
16062 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
16063 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
16064 }
16065 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
16066 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
16067 }
16068 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
16069 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
16070 }
16071 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
16072 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
16073 }
16074 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
16075 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
16076 }
16077 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
16078 return (void *)((wxEvent *) ((wxPyEvent *) x));
16079 }
16080 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
16081 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
16082 }
16083 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
16084 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
16085 }
16086 static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) {
16087 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16088 }
16089 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
16090 return (void *)((wxEvent *) ((wxIdleEvent *) x));
16091 }
16092 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
16093 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
16094 }
16095 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
16096 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
16097 }
16098 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
16099 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
16100 }
16101 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
16102 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
16103 }
16104 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
16105 return (void *)((wxEvent *) ((wxActivateEvent *) x));
16106 }
16107 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
16108 return (void *)((wxEvent *) ((wxSizeEvent *) x));
16109 }
16110 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
16111 return (void *)((wxEvent *) ((wxMoveEvent *) x));
16112 }
16113 static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) {
16114 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
16115 }
16116 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
16117 return (void *)((wxEvent *) ((wxPaintEvent *) x));
16118 }
16119 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
16120 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
16121 }
16122 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
16123 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
16124 }
16125 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
16126 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
16127 }
16128 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
16129 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
16130 }
16131 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
16132 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16133 }
16134 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
16135 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
16136 }
16137 static void *_p_wxGridEventTo_p_wxEvent(void *x) {
16138 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
16139 }
16140 static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) {
16141 return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
16142 }
16143 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
16144 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
16145 }
16146 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
16147 return (void *)((wxEvent *) ((wxFocusEvent *) x));
16148 }
16149 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
16150 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
16151 }
16152 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
16153 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
16154 }
16155 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
16156 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
16157 }
16158 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
16159 return (void *)((wxEvent *) ((wxShowEvent *) x));
16160 }
16161 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
16162 return (void *)((wxEvent *) ((wxCommandEvent *) x));
16163 }
16164 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
16165 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
16166 }
16167 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
16168 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16169 }
16170 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
16171 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
16172 }
16173 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
16174 return (void *)((wxEvent *) ((wxKeyEvent *) x));
16175 }
16176 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
16177 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
16178 }
16179 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
16180 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
16181 }
16182 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
16183 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
16184 }
16185 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
16186 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
16187 }
16188 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
16189 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
16190 }
16191 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
16192 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
16193 }
16194 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
16195 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
16196 }
16197 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
16198 return (void *)((wxObject *) ((wxSizerItem *) x));
16199 }
16200 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
16201 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
16202 }
16203 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
16204 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
16205 }
16206 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
16207 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
16208 }
16209 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
16210 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
16211 }
16212 static void *_p_wxSizerTo_p_wxObject(void *x) {
16213 return (void *)((wxObject *) ((wxSizer *) x));
16214 }
16215 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
16216 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
16217 }
16218 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
16219 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
16220 }
16221 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
16222 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
16223 }
16224 static void *_p_wxEventTo_p_wxObject(void *x) {
16225 return (void *)((wxObject *) ((wxEvent *) x));
16226 }
16227 static void *_p_wxFontDataTo_p_wxObject(void *x) {
16228 return (void *)((wxObject *) ((wxFontData *) x));
16229 }
16230 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
16231 return (void *)((wxObject *) ((wxPrintData *) x));
16232 }
16233 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
16234 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
16235 }
16236 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
16237 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
16238 }
16239 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
16240 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
16241 }
16242 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
16243 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
16244 }
16245 static void *_p_wxTaskBarIconTo_p_wxObject(void *x) {
16246 return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x));
16247 }
16248 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
16249 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
16250 }
16251 static void *_p_wxGridStringTableTo_p_wxObject(void *x) {
16252 return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x));
16253 }
16254 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
16255 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
16256 }
16257 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
16258 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
16259 }
16260 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
16261 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
16262 }
16263 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
16264 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
16265 }
16266 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
16267 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
16268 }
16269 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
16270 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
16271 }
16272 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
16273 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
16274 }
16275 static void *_p_wxGridEventTo_p_wxObject(void *x) {
16276 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
16277 }
16278 static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) {
16279 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
16280 }
16281 static void *_p_wxControlTo_p_wxObject(void *x) {
16282 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
16283 }
16284 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
16285 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
16286 }
16287 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
16288 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
16289 }
16290 static void *_p_wxFSFileTo_p_wxObject(void *x) {
16291 return (void *)((wxObject *) ((wxFSFile *) x));
16292 }
16293 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
16294 return (void *)((wxObject *) ((wxFindReplaceData *) x));
16295 }
16296 static void *_p_wxGridTo_p_wxObject(void *x) {
16297 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
16298 }
16299 static void *_p_wxPySizerTo_p_wxObject(void *x) {
16300 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
16301 }
16302 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
16303 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
16304 }
16305 static void *_p_wxColourDataTo_p_wxObject(void *x) {
16306 return (void *)((wxObject *) ((wxColourData *) x));
16307 }
16308 static void *_p_wxPyEventTo_p_wxObject(void *x) {
16309 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
16310 }
16311 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
16312 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
16313 }
16314 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
16315 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
16316 }
16317 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
16318 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
16319 }
16320 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
16321 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
16322 }
16323 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
16324 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
16325 }
16326 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
16327 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
16328 }
16329 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
16330 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
16331 }
16332 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
16333 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
16334 }
16335 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
16336 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
16337 }
16338 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
16339 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
16340 }
16341 static void *_p_wxShowEventTo_p_wxObject(void *x) {
16342 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
16343 }
16344 static void *_p_wxPrinterTo_p_wxObject(void *x) {
16345 return (void *)((wxObject *) ((wxPrinter *) x));
16346 }
16347 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
16348 return (void *)((wxObject *) ((wxMenuItem *) x));
16349 }
16350 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
16351 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
16352 }
16353 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
16354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
16355 }
16356 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
16357 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
16358 }
16359 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
16360 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
16361 }
16362 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
16363 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
16364 }
16365 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
16366 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
16367 }
16368 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
16369 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
16370 }
16371 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
16372 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
16373 }
16374 static void *_p_wxGridSizeEventTo_p_wxObject(void *x) {
16375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
16376 }
16377 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
16378 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
16379 }
16380 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
16381 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
16382 }
16383 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
16384 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
16385 }
16386 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
16387 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
16388 }
16389 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
16390 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
16391 }
16392 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
16393 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
16394 }
16395 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
16396 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
16397 }
16398 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
16399 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
16400 }
16401 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
16402 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
16403 }
16404 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
16405 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
16406 }
16407 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
16408 return (void *)((wxObject *) ((wxImageHandler *) x));
16409 }
16410 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
16411 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
16412 }
16413 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
16414 return (void *)((wxObject *) ((wxEvtHandler *) x));
16415 }
16416 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
16417 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
16418 }
16419 static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) {
16420 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16421 }
16422 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
16423 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16424 }
16425 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
16426 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16427 }
16428 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
16429 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
16430 }
16431 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
16432 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
16433 }
16434 static void *_p_wxImageTo_p_wxObject(void *x) {
16435 return (void *)((wxObject *) ((wxImage *) x));
16436 }
16437 static void *_p_wxFrameTo_p_wxObject(void *x) {
16438 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
16439 }
16440 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
16441 return (void *)((wxObject *) ((wxPyPrintout *) x));
16442 }
16443 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
16444 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
16445 }
16446 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
16447 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
16448 }
16449 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
16450 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
16451 }
16452 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
16453 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
16454 }
16455 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
16456 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16457 }
16458 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
16459 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
16460 }
16461 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
16462 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
16463 }
16464 static void *_p_wxWindowTo_p_wxObject(void *x) {
16465 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
16466 }
16467 static void *_p_wxMenuTo_p_wxObject(void *x) {
16468 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
16469 }
16470 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
16471 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
16472 }
16473 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
16474 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
16475 }
16476 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
16477 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
16478 }
16479 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
16480 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
16481 }
16482 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
16483 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
16484 }
16485 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
16486 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
16487 }
16488 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
16489 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
16490 }
16491 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
16492 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
16493 }
16494 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
16495 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
16496 }
16497 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
16498 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
16499 }
16500 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
16501 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
16502 }
16503 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
16504 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
16505 }
16506 static void *_p_wxSashEventTo_p_wxObject(void *x) {
16507 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
16508 }
16509 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
16510 return (void *)((wxObject *) ((wxPrintPreview *) x));
16511 }
16512 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
16513 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
16514 }
16515 static void *_p_wxPanelTo_p_wxObject(void *x) {
16516 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
16517 }
16518 static void *_p_wxDialogTo_p_wxObject(void *x) {
16519 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
16520 }
16521 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
16522 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
16523 }
16524 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
16525 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
16526 }
16527 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
16528 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
16529 }
16530 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
16531 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
16532 }
16533 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
16534 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
16535 }
16536 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
16537 return (void *)((wxObject *) ((wxFileSystem *) x));
16538 }
16539 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
16540 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
16541 }
16542 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
16543 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
16544 }
16545 static void *_p_wxPyAppTo_p_wxObject(void *x) {
16546 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
16547 }
16548 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
16549 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
16550 }
16551 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
16552 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
16553 }
16554 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
16555 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
16556 }
16557 static void *_p_wxGridTableBaseTo_p_wxObject(void *x) {
16558 return (void *)((wxObject *) ((wxGridTableBase *) x));
16559 }
16560 static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) {
16561 return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x));
16562 }
16563 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
16564 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
16565 }
16566 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
16567 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
16568 }
16569 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
16570 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
16571 }
16572 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
16573 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16574 }
16575 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
16576 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
16577 }
16578 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
16579 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
16580 }
16581 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
16582 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
16583 }
16584 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
16585 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16586 }
16587 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
16588 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
16589 }
16590 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
16591 return (void *)((wxObject *) ((wxPrintDialogData *) x));
16592 }
16593 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
16594 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
16595 }
16596 static void *_p_wxValidatorTo_p_wxObject(void *x) {
16597 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
16598 }
16599 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
16600 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
16601 }
16602 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
16603 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
16604 }
16605 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
16606 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
16607 }
16608 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
16609 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
16610 }
16611 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
16612 return (void *)((wxEvtHandler *) ((wxValidator *) x));
16613 }
16614 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
16615 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
16616 }
16617 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
16618 return (void *)((wxEvtHandler *) ((wxMenu *) x));
16619 }
16620 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
16621 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
16622 }
16623 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
16624 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
16625 }
16626 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
16627 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
16628 }
16629 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
16630 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
16631 }
16632 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
16633 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
16634 }
16635 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
16636 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
16637 }
16638 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
16639 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
16640 }
16641 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
16642 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
16643 }
16644 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
16645 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
16646 }
16647 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
16648 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
16649 }
16650 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
16651 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
16652 }
16653 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
16654 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
16655 }
16656 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
16657 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
16658 }
16659 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
16660 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
16661 }
16662 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
16663 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
16664 }
16665 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
16666 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
16667 }
16668 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
16669 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
16670 }
16671 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
16672 return (void *)((wxEvtHandler *) ((wxWindow *) x));
16673 }
16674 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
16675 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
16676 }
16677 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
16678 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
16679 }
16680 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
16681 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
16682 }
16683 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
16684 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
16685 }
16686 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
16687 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
16688 }
16689 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
16690 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
16691 }
16692 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
16693 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
16694 }
16695 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
16696 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
16697 }
16698 static void *_p_wxGridTo_p_wxEvtHandler(void *x) {
16699 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
16700 }
16701 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
16702 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
16703 }
16704 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
16705 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
16706 }
16707 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
16708 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
16709 }
16710 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
16711 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
16712 }
16713 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
16714 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
16715 }
16716 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
16717 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
16718 }
16719 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
16720 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
16721 }
16722 static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) {
16723 return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x));
16724 }
16725 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
16726 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
16727 }
16728 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
16729 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
16730 }
16731 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
16732 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
16733 }
16734 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
16735 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
16736 }
16737 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
16738 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
16739 }
16740 static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) {
16741 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
16742 }
16743 static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) {
16744 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
16745 }
16746 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
16747 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
16748 }
16749 static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) {
16750 return (void *)((wxGridTableBase *) ((wxGridStringTable *) x));
16751 }
16752 static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) {
16753 return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x));
16754 }
16755 static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) {
16756 return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x));
16757 }
16758 static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) {
16759 return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x));
16760 }
16761 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) {
16762 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
16763 }
16764 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) {
16765 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
16766 }
16767 static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) {
16768 return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x));
16769 }
16770 static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) {
16771 return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x));
16772 }
16773 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) {
16774 return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
16775 }
16776 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) {
16777 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
16778 }
16779 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) {
16780 return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
16781 }
16782 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) {
16783 return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
16784 }
16785 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) {
16786 return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
16787 }
16788 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
16789 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
16790 }
16791 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
16792 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
16793 }
16794 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
16795 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
16796 }
16797 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
16798 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
16799 }
16800 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
16801 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
16802 }
16803 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
16804 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
16805 }
16806 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
16807 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
16808 }
16809 static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) {
16810 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
16811 }
16812 static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) {
16813 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x));
16814 }
16815 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
16816 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
16817 }
16818 static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) {
16819 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x));
16820 }
16821 static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) {
16822 return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
16823 }
16824 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
16825 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
16826 }
16827 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
16828 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
16829 }
16830 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
16831 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
16832 }
16833 static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) {
16834 return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x));
16835 }
16836 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) {
16837 return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
16838 }
16839 static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0},{"_p_wxGridCellAutoWrapStringRenderer"},{0}};
16840 static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0},{"_p_wxGridCellEnumRenderer"},{0}};
16841 static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0},{"_p_wxGridCellDateTimeRenderer"},{0}};
16842 static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0},{"_p_wxGridCellBoolRenderer"},{0}};
16843 static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0},{"_p_wxGridCellFloatRenderer"},{0}};
16844 static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0},{"_p_wxGridCellNumberRenderer"},{0}};
16845 static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0},{"_p_wxPyGridCellRenderer"},{0}};
16846 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}};
16847 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}};
16848 static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0},{"_p_wxGridCellAttr"},{0}};
16849 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
16850 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
16851 static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0},{"_p_wxGridTableMessage"},{0}};
16852 static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0},{"_p_wxGrid"},{0}};
16853 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
16854 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}};
16855 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}};
16856 static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0},{"_p_wxGridRangeSelectEvent"},{0}};
16857 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
16858 static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0},{"_p_wxGridCellCoords"},{0}};
16859 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}};
16860 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}};
16861 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
16862 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}};
16863 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}};
16864 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}};
16865 static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0},{"_p_wxGridSizeEvent"},{0}};
16866 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
16867 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
16868 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
16869 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}};
16870 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
16871 static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0},{"_p_wxGridEvent"},{0}};
16872 static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0},{"_p_wxGridEditorCreatedEvent"},{0}};
16873 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}};
16874 static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0},{"_p_wxGridCellNumberEditor"},{0}};
16875 static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0},{"_p_wxPyGridCellEditor"},{0}};
16876 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}};
16877 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}};
16878 static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0},{"_p_wxGridCellFloatEditor"},{0}};
16879 static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0},{"_p_wxGridCellBoolEditor"},{0}};
16880 static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0},{"_p_wxPyGridTableBase"},{0}};
16881 static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0},{"_p_wxGridStringTable"},{0}};
16882 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
16883 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}};
16884 static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0},{"_p_wxGridCellAttrProvider"},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider},{0}};
16885 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}};
16886 static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0},{"_p_wxGridCellChoiceEditor"},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor},{0}};
16887 static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0},{"_p_wxGridCellEnumEditor"},{0}};
16888 static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0},{"_p_wxGridCellAutoWrapStringEditor"},{0}};
16889 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
16890 static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0},{"_p_wxPyGridCellAttrProvider"},{0}};
16891
16892 static swig_type_info *swig_types_initial[] = {
16893 _swigt__p_wxGridCellAutoWrapStringRenderer,
16894 _swigt__p_wxGridCellEnumRenderer,
16895 _swigt__p_wxGridCellDateTimeRenderer,
16896 _swigt__p_wxGridCellBoolRenderer,
16897 _swigt__p_wxGridCellFloatRenderer,
16898 _swigt__p_wxGridCellNumberRenderer,
16899 _swigt__p_wxPyGridCellRenderer,
16900 _swigt__p_wxGridCellRenderer,
16901 _swigt__p_wxGridCellStringRenderer,
16902 _swigt__p_wxGridCellAttr,
16903 _swigt__p_wxColour,
16904 _swigt__p_wxDC,
16905 _swigt__p_wxGridTableMessage,
16906 _swigt__p_wxGrid,
16907 _swigt__p_char,
16908 _swigt__p_wxPanel,
16909 _swigt__p_wxNotifyEvent,
16910 _swigt__p_wxGridRangeSelectEvent,
16911 _swigt__p_wxSize,
16912 _swigt__p_wxGridCellCoords,
16913 _swigt__p_wxScrolledWindow,
16914 _swigt__p_wxWindow,
16915 _swigt__p_wxFont,
16916 _swigt__p_wxControl,
16917 _swigt__p_wxEvent,
16918 _swigt__p_wxObject,
16919 _swigt__p_wxGridSizeEvent,
16920 _swigt__p_wxRect,
16921 _swigt__p_long,
16922 _swigt__p_wxString,
16923 _swigt__p_wxEvtHandler,
16924 _swigt__p_wxPoint,
16925 _swigt__p_wxGridEvent,
16926 _swigt__p_wxGridEditorCreatedEvent,
16927 _swigt__p_wxGridTableBase,
16928 _swigt__p_wxGridCellNumberEditor,
16929 _swigt__p_wxPyGridCellEditor,
16930 _swigt__p_wxGridCellEditor,
16931 _swigt__p_wxGridCellTextEditor,
16932 _swigt__p_wxGridCellFloatEditor,
16933 _swigt__p_wxGridCellBoolEditor,
16934 _swigt__p_wxPyGridTableBase,
16935 _swigt__p_wxGridStringTable,
16936 _swigt__p_wxArrayString,
16937 _swigt__p_wxCommandEvent,
16938 _swigt__p_wxGridCellAttrProvider,
16939 _swigt__p_wxKeyEvent,
16940 _swigt__p_wxGridCellChoiceEditor,
16941 _swigt__p_wxGridCellEnumEditor,
16942 _swigt__p_wxGridCellAutoWrapStringEditor,
16943 _swigt__p_int,
16944 _swigt__p_wxPyGridCellAttrProvider,
16945 0
16946 };
16947
16948
16949 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
16950
16951 static swig_const_info swig_const_table[] = {
16952 { SWIG_PY_STRING, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", 0},
16953 { SWIG_PY_STRING, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", 0},
16954 { SWIG_PY_STRING, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", 0},
16955 { SWIG_PY_STRING, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", 0},
16956 { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", 0},
16957 { SWIG_PY_STRING, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", 0},
16958 { SWIG_PY_STRING, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", 0},
16959 { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", 0},
16960 { SWIG_PY_STRING, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", 0},
16961 {0}};
16962
16963 #ifdef __cplusplus
16964 }
16965 #endif
16966
16967 #ifdef __cplusplus
16968 extern "C"
16969 #endif
16970 SWIGEXPORT(void) SWIG_init(void) {
16971 static PyObject *SWIG_globals = 0;
16972 static int typeinit = 0;
16973 PyObject *m, *d;
16974 int i;
16975 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
16976 m = Py_InitModule((char *) SWIG_name, SwigMethods);
16977 d = PyModule_GetDict(m);
16978
16979 if (!typeinit) {
16980 for (i = 0; swig_types_initial[i]; i++) {
16981 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
16982 }
16983 typeinit = 1;
16984 }
16985 SWIG_InstallConstants(d,swig_const_table);
16986
16987 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
16988 SWIG_addvarlink(SWIG_globals,(char*)"DateTimeFormatStr",_wrap_DateTimeFormatStr_get, _wrap_DateTimeFormatStr_set);
16989 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set);
16990 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set);
16991 PyDict_SetItemString(d,"GridCellAttr_Any", SWIG_PyObj_FromInt((int)wxGridCellAttr::Any));
16992 PyDict_SetItemString(d,"GridCellAttr_Default", SWIG_PyObj_FromInt((int)wxGridCellAttr::Default));
16993 PyDict_SetItemString(d,"GridCellAttr_Cell", SWIG_PyObj_FromInt((int)wxGridCellAttr::Cell));
16994 PyDict_SetItemString(d,"GridCellAttr_Row", SWIG_PyObj_FromInt((int)wxGridCellAttr::Row));
16995 PyDict_SetItemString(d,"GridCellAttr_Col", SWIG_PyObj_FromInt((int)wxGridCellAttr::Col));
16996 PyDict_SetItemString(d,"GridCellAttr_Merged", SWIG_PyObj_FromInt((int)wxGridCellAttr::Merged));
16997 PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_GET_VALUES", SWIG_PyObj_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_GET_VALUES));
16998 PyDict_SetItemString(d,"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", SWIG_PyObj_FromInt((int)wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES));
16999 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_INSERTED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_INSERTED));
17000 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_APPENDED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_APPENDED));
17001 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_ROWS_DELETED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_ROWS_DELETED));
17002 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_INSERTED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_INSERTED));
17003 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_APPENDED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_APPENDED));
17004 PyDict_SetItemString(d,"GRIDTABLE_NOTIFY_COLS_DELETED", SWIG_PyObj_FromInt((int)wxGRIDTABLE_NOTIFY_COLS_DELETED));
17005 PyDict_SetItemString(d,"Grid_wxGridSelectCells", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectCells));
17006 PyDict_SetItemString(d,"Grid_wxGridSelectRows", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectRows));
17007 PyDict_SetItemString(d,"Grid_wxGridSelectColumns", SWIG_PyObj_FromInt((int)wxGrid::wxGridSelectColumns));
17008 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK));
17009 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK));
17010 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK));
17011 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK));
17012 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK));
17013 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK));
17014 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK));
17015 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK));
17016 PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE));
17017 PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE));
17018 PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT));
17019 PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE));
17020 PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL));
17021 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN));
17022 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN));
17023 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED));
17024
17025
17026 }
17027