]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/grid_wrap.cpp
Commented out WM_MOUSELEAVE until it can be fixed
[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.20
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 * common.swg for wxPython
53 *
54 * Include only the function prototypes and such from SWIG's common.swg,
55 * but not the runtime functions themselves. This helps keep the
56 * wrapper files clean of unnecessary stuff that is in the libpy.c file
57 * anyway.
58 *
59 ************************************************************************/
60
61 #include <string.h>
62
63 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
64 # if defined(_MSC_VER) || defined(__GNUC__)
65 # if defined(STATIC_LINKED)
66 # define SWIGEXPORT(a) a
67 # define SWIGIMPORT(a) extern a
68 # else
69 # define SWIGEXPORT(a) __declspec(dllexport) a
70 # define SWIGIMPORT(a) extern a
71 # endif
72 # else
73 # if defined(__BORLANDC__)
74 # define SWIGEXPORT(a) a _export
75 # define SWIGIMPORT(a) a _export
76 # else
77 # define SWIGEXPORT(a) a
78 # define SWIGIMPORT(a) a
79 # endif
80 # endif
81 #else
82 # define SWIGEXPORT(a) a
83 # define SWIGIMPORT(a) a
84 #endif
85
86 #ifdef SWIG_GLOBAL
87 # define SWIGRUNTIME(a) SWIGEXPORT(a)
88 #else
89 # define SWIGRUNTIME(a) static a
90 #endif
91
92 #ifdef __cplusplus
93 extern "C" {
94 #endif
95
96 typedef void *(*swig_converter_func)(void *);
97 typedef struct swig_type_info *(*swig_dycast_func)(void **);
98
99 typedef struct swig_type_info {
100 const char *name;
101 swig_converter_func converter;
102 const char *str;
103 void *clientdata;
104 swig_dycast_func dcast;
105 struct swig_type_info *next;
106 struct swig_type_info *prev;
107 } swig_type_info;
108
109
110 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
111 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
112 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
114 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
116 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
117 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
118 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
119
120
121 #ifdef __cplusplus
122 }
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
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxGridCellAutoWrapStringRenderer swig_types[0]
212 #define SWIGTYPE_p_wxGridCellEnumRenderer swig_types[1]
213 #define SWIGTYPE_p_wxGridCellDateTimeRenderer swig_types[2]
214 #define SWIGTYPE_p_wxGridCellBoolRenderer swig_types[3]
215 #define SWIGTYPE_p_wxGridCellFloatRenderer swig_types[4]
216 #define SWIGTYPE_p_wxGridCellNumberRenderer swig_types[5]
217 #define SWIGTYPE_p_wxPyGridCellRenderer swig_types[6]
218 #define SWIGTYPE_p_wxGridCellRenderer swig_types[7]
219 #define SWIGTYPE_p_wxGridCellStringRenderer swig_types[8]
220 #define SWIGTYPE_p_wxGridCellAttr swig_types[9]
221 #define SWIGTYPE_p_wxColour swig_types[10]
222 #define SWIGTYPE_p_wxDC swig_types[11]
223 #define SWIGTYPE_p_wxGridTableMessage swig_types[12]
224 #define SWIGTYPE_p_wxGrid swig_types[13]
225 #define SWIGTYPE_p_wxPanel swig_types[14]
226 #define SWIGTYPE_p_wxNotifyEvent swig_types[15]
227 #define SWIGTYPE_p_wxGridRangeSelectEvent swig_types[16]
228 #define SWIGTYPE_p_wxSize swig_types[17]
229 #define SWIGTYPE_p_wxGridCellCoords swig_types[18]
230 #define SWIGTYPE_p_wxScrolledWindow swig_types[19]
231 #define SWIGTYPE_p_wxWindow swig_types[20]
232 #define SWIGTYPE_p_wxFont swig_types[21]
233 #define SWIGTYPE_p_wxControl swig_types[22]
234 #define SWIGTYPE_p_wxEvent swig_types[23]
235 #define SWIGTYPE_p_wxObject swig_types[24]
236 #define SWIGTYPE_p_wxGridSizeEvent swig_types[25]
237 #define SWIGTYPE_p_wxRect swig_types[26]
238 #define SWIGTYPE_p_long swig_types[27]
239 #define SWIGTYPE_p_wxString swig_types[28]
240 #define SWIGTYPE_p_wxEvtHandler swig_types[29]
241 #define SWIGTYPE_p_wxPoint swig_types[30]
242 #define SWIGTYPE_p_wxGridEvent swig_types[31]
243 #define SWIGTYPE_p_wxGridEditorCreatedEvent swig_types[32]
244 #define SWIGTYPE_p_wxGridTableBase swig_types[33]
245 #define SWIGTYPE_p_wxGridCellFloatEditor swig_types[34]
246 #define SWIGTYPE_p_wxGridCellNumberEditor swig_types[35]
247 #define SWIGTYPE_p_wxPyGridCellEditor swig_types[36]
248 #define SWIGTYPE_p_wxGridCellEditor swig_types[37]
249 #define SWIGTYPE_p_wxGridCellTextEditor swig_types[38]
250 #define SWIGTYPE_p_wxGridCellBoolEditor swig_types[39]
251 #define SWIGTYPE_p_wxPyGridTableBase swig_types[40]
252 #define SWIGTYPE_p_wxGridStringTable swig_types[41]
253 #define SWIGTYPE_p_wxArrayString swig_types[42]
254 #define SWIGTYPE_p_wxCommandEvent swig_types[43]
255 #define SWIGTYPE_p_wxGridCellAttrProvider swig_types[44]
256 #define SWIGTYPE_p_wxKeyEvent swig_types[45]
257 #define SWIGTYPE_p_wxGridCellChoiceEditor swig_types[46]
258 #define SWIGTYPE_p_wxGridCellEnumEditor swig_types[47]
259 #define SWIGTYPE_p_wxGridCellAutoWrapStringEditor swig_types[48]
260 #define SWIGTYPE_p_int swig_types[49]
261 #define SWIGTYPE_p_wxPyGridCellAttrProvider swig_types[50]
262 static swig_type_info *swig_types[52];
263
264 /* -------- TYPES TABLE (END) -------- */
265
266
267 /*-----------------------------------------------
268 @(target):= _grid.so
269 ------------------------------------------------*/
270 #define SWIG_init init_grid
271
272 #define SWIG_name "_grid"
273
274 #include "wx/wxPython/wxPython.h"
275 #include "wx/wxPython/pyclasses.h"
276 #include "wx/wxPython/printfw.h"
277
278 #include <wx/grid.h>
279 #include <wx/generic/gridctrl.h>
280
281 DECLARE_DEF_STRING(PanelNameStr);
282 DECLARE_DEF_STRING2(DateTimeFormatStr, wxT("%c"));
283 static const wxString wxPyEmptyString(wxT(""));
284
285
286
287 #define wxPyMake_TEMPLATE(TYPE) \
288 PyObject* wxPyMake_##TYPE(TYPE* source) { \
289 PyObject* target = NULL; \
290 if (source) { \
291 /* Check if there is already a pointer to a Python object in the \
292 OOR data that we can use. */ \
293 wxPyOORClientData* data = (wxPyOORClientData*)source->GetClientObject(); \
294 if (data) { \
295 target = data->m_obj; \
296 Py_INCREF(target); \
297 } \
298 /* Otherwise make a new wrapper for it the old fashioned way and \
299 give it the OOR treatment */ \
300 if (! target) { \
301 target = wxPyConstructObject(source, wxT(#TYPE), False); \
302 if (target) \
303 source->SetClientObject(new wxPyOORClientData(target)); \
304 } \
305 } else { /* source was NULL so return None. */ \
306 Py_INCREF(Py_None); target = Py_None; \
307 } \
308 return target; \
309 } \
310
311
312 wxPyMake_TEMPLATE(wxGridCellRenderer)
313 wxPyMake_TEMPLATE(wxGridCellEditor)
314 wxPyMake_TEMPLATE(wxGridCellAttr)
315 wxPyMake_TEMPLATE(wxGridCellAttrProvider)
316 wxPyMake_TEMPLATE(wxGridTableBase)
317
318
319
320 #define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \
321 wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
322 wxGridCellAttr* rval = NULL; \
323 bool found; \
324 wxPyBeginBlockThreads(); \
325 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
326 PyObject* ro; \
327 wxGridCellAttr* ptr; \
328 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \
329 if (ro) { \
330 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellAttr"))) \
331 rval = ptr; \
332 Py_DECREF(ro); \
333 } \
334 } \
335 wxPyEndBlockThreads(); \
336 if (! found) \
337 rval = PCLASS::CBNAME(a, b, c); \
338 return rval; \
339 } \
340 wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
341 return PCLASS::CBNAME(a, b, c); \
342 }
343
344
345
346 #define PYCALLBACK__GCAINTINT(PCLASS, CBNAME) \
347 void CBNAME(wxGridCellAttr *attr, int a, int b) { \
348 wxPyBeginBlockThreads(); \
349 bool found; \
350 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
351 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
352 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oii)", obj, a, b)); \
353 Py_DECREF(obj); \
354 } \
355 wxPyEndBlockThreads(); \
356 if (! found) \
357 PCLASS::CBNAME(attr, a, b); \
358 } \
359 void base_##CBNAME(wxGridCellAttr *attr, int a, int b) { \
360 PCLASS::CBNAME(attr, a, b); \
361 }
362
363
364
365 #define PYCALLBACK__GCAINT(PCLASS, CBNAME) \
366 void CBNAME(wxGridCellAttr *attr, int val) { \
367 wxPyBeginBlockThreads(); \
368 bool found; \
369 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
370 PyObject* obj = wxPyMake_wxGridCellAttr(attr); \
371 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", obj, val)); \
372 Py_DECREF(obj); \
373 } \
374 wxPyEndBlockThreads(); \
375 if (! found) \
376 PCLASS::CBNAME(attr, val); \
377 } \
378 void base_##CBNAME(wxGridCellAttr *attr, int val) { \
379 PCLASS::CBNAME(attr, val); \
380 }
381
382
383
384 #define PYCALLBACK_INT__pure(CBNAME) \
385 int CBNAME() { \
386 wxPyBeginBlockThreads(); \
387 int rval = 0; \
388 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
389 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
390 wxPyEndBlockThreads(); \
391 return rval; \
392 }
393
394
395
396 #define PYCALLBACK_BOOL_INTINT_pure(CBNAME) \
397 bool CBNAME(int a, int b) { \
398 wxPyBeginBlockThreads(); \
399 bool rval = 0; \
400 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) \
401 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)",a,b)); \
402 wxPyEndBlockThreads(); \
403 return rval; \
404 }
405
406
407 #define PYCALLBACK_STRING_INTINT_pure(CBNAME) \
408 wxString CBNAME(int a, int b) { \
409 wxPyBeginBlockThreads(); \
410 wxString rval; \
411 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
412 PyObject* ro; \
413 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
414 if (ro) { \
415 rval = Py2wxString(ro); \
416 Py_DECREF(ro); \
417 } \
418 } \
419 wxPyEndBlockThreads(); \
420 return rval; \
421 }
422
423
424 #define PYCALLBACK__INTINTSTRING_pure(CBNAME) \
425 void CBNAME(int a, int b, const wxString& c) { \
426 wxPyBeginBlockThreads(); \
427 if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
428 PyObject* s = wx2PyString(c); \
429 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
430 Py_DECREF(s); \
431 } \
432 wxPyEndBlockThreads(); \
433 }
434
435
436 #define PYCALLBACK_STRING_INTINT(PCLASS, CBNAME) \
437 wxString CBNAME(int a, int b) { \
438 bool found; \
439 wxPyBeginBlockThreads(); \
440 wxString rval; \
441 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
442 PyObject* ro; \
443 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
444 if (ro) { \
445 rval = Py2wxString(ro); \
446 Py_DECREF(ro); \
447 } \
448 } \
449 wxPyEndBlockThreads(); \
450 if (! found) \
451 rval = PCLASS::CBNAME(a, b); \
452 return rval; \
453 } \
454 wxString base_##CBNAME(int a, int b) { \
455 return PCLASS::CBNAME(a, b); \
456 }
457
458
459 #define PYCALLBACK_BOOL_INTINTSTRING(PCLASS, CBNAME) \
460 bool CBNAME(int a, int b, const wxString& c) { \
461 bool rval = 0; \
462 bool found; \
463 wxPyBeginBlockThreads(); \
464 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
465 PyObject* s = wx2PyString(c); \
466 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",a,b,s));\
467 Py_DECREF(s); \
468 } \
469 wxPyEndBlockThreads(); \
470 if (! found) \
471 rval = PCLASS::CBNAME(a,b,c); \
472 return rval; \
473 } \
474 bool base_##CBNAME(int a, int b, const wxString& c) { \
475 return PCLASS::CBNAME(a,b,c); \
476 }
477
478
479
480
481 #define PYCALLBACK_LONG_INTINT(PCLASS, CBNAME) \
482 long CBNAME(int a, int b) { \
483 long rval; \
484 bool found; \
485 wxPyBeginBlockThreads(); \
486 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
487 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
488 wxPyEndBlockThreads(); \
489 if (! found) \
490 rval = PCLASS::CBNAME(a,b); \
491 return rval; \
492 } \
493 long base_##CBNAME(int a, int b) { \
494 return PCLASS::CBNAME(a,b); \
495 }
496
497
498
499 #define PYCALLBACK_BOOL_INTINT(PCLASS, CBNAME) \
500 bool CBNAME(int a, int b) { \
501 bool rval = 0; \
502 bool found; \
503 wxPyBeginBlockThreads(); \
504 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
505 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
506 wxPyEndBlockThreads(); \
507 if (! found) \
508 rval = PCLASS::CBNAME(a,b); \
509 return rval; \
510 } \
511 bool base_##CBNAME(int a, int b) { \
512 return PCLASS::CBNAME(a,b); \
513 }
514
515
516
517 #define PYCALLBACK_DOUBLE_INTINT(PCLASS, CBNAME) \
518 double CBNAME(int a, int b) { \
519 bool found; \
520 wxPyBeginBlockThreads(); \
521 double rval; \
522 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
523 PyObject* ro; \
524 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",a,b)); \
525 if (ro) { \
526 PyObject* str = PyObject_Str(ro); \
527 rval = PyFloat_AsDouble(str); \
528 Py_DECREF(ro); Py_DECREF(str); \
529 } \
530 } \
531 wxPyEndBlockThreads(); \
532 if (! found) \
533 rval = PCLASS::CBNAME(a, b); \
534 return rval; \
535 } \
536 double base_##CBNAME(int a, int b) { \
537 return PCLASS::CBNAME(a, b); \
538 }
539
540
541
542 #define PYCALLBACK__(PCLASS, CBNAME) \
543 void CBNAME() { \
544 bool found; \
545 wxPyBeginBlockThreads(); \
546 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
547 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
548 wxPyEndBlockThreads(); \
549 if (! found) \
550 PCLASS::CBNAME(); \
551 } \
552 void base_##CBNAME() { \
553 PCLASS::CBNAME(); \
554 }
555
556
557
558
559 #define PYCALLBACK_BOOL_SIZETSIZET(PCLASS, CBNAME) \
560 bool CBNAME(size_t a, size_t b) { \
561 bool rval = 0; \
562 bool found; \
563 wxPyBeginBlockThreads(); \
564 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
565 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
566 wxPyEndBlockThreads(); \
567 if (! found) \
568 rval = PCLASS::CBNAME(a,b); \
569 return rval; \
570 } \
571 bool base_##CBNAME(size_t a, size_t b) { \
572 return PCLASS::CBNAME(a,b); \
573 }
574
575
576
577 #define PYCALLBACK_BOOL_SIZET(PCLASS, CBNAME) \
578 bool CBNAME(size_t a) { \
579 bool rval = 0; \
580 bool found; \
581 wxPyBeginBlockThreads(); \
582 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
583 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(i)", a)); \
584 wxPyEndBlockThreads(); \
585 if (! found) \
586 rval = PCLASS::CBNAME(a); \
587 return rval; \
588 } \
589 bool base_##CBNAME(size_t a) { \
590 return PCLASS::CBNAME(a); \
591 }
592
593
594 #define PYCALLBACK_STRING_INT(PCLASS, CBNAME) \
595 wxString CBNAME(int a) { \
596 bool found; \
597 wxPyBeginBlockThreads(); \
598 wxString rval; \
599 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
600 PyObject* ro; \
601 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(i)",a)); \
602 if (ro) { \
603 rval = Py2wxString(ro); \
604 Py_DECREF(ro); \
605 } \
606 } \
607 wxPyEndBlockThreads(); \
608 if (! found) \
609 rval = PCLASS::CBNAME(a); \
610 return rval; \
611 } \
612 wxString base_##CBNAME(int a) { \
613 return PCLASS::CBNAME(a); \
614 }
615
616
617 #define PYCALLBACK__INTSTRING(PCLASS, CBNAME) \
618 void CBNAME(int a, const wxString& c) { \
619 bool found; \
620 wxPyBeginBlockThreads(); \
621 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
622 PyObject* s = wx2PyString(c); \
623 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)",a,s)); \
624 Py_DECREF(s); \
625 } \
626 wxPyEndBlockThreads(); \
627 if (! found) \
628 PCLASS::CBNAME(a,c); \
629 } \
630 void base_##CBNAME(int a, const wxString& c) { \
631 PCLASS::CBNAME(a,c); \
632 }
633
634
635
636
637 #define PYCALLBACK_BOOL_(PCLASS, CBNAME) \
638 bool CBNAME() { \
639 bool rval = 0; \
640 bool found; \
641 wxPyBeginBlockThreads(); \
642 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
643 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("()")); \
644 wxPyEndBlockThreads(); \
645 if (! found) \
646 rval = PCLASS::CBNAME(); \
647 return rval; \
648 } \
649 bool base_##CBNAME() { \
650 return PCLASS::CBNAME(); \
651 }
652
653
654
655 #define PYCALLBACK__SIZETINT(PCLASS, CBNAME) \
656 void CBNAME(size_t a, int b) { \
657 bool found; \
658 wxPyBeginBlockThreads(); \
659 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
660 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(ii)", a,b)); \
661 wxPyEndBlockThreads(); \
662 if (! found) \
663 PCLASS::CBNAME(a,b); \
664 } \
665 void base_##CBNAME(size_t a, int b) { \
666 PCLASS::CBNAME(a,b); \
667 }
668
669
670
671
672 #define PYCALLBACK__INTINTLONG(PCLASS, CBNAME) \
673 void CBNAME(int a, int b, long c) { \
674 bool found; \
675 wxPyBeginBlockThreads(); \
676 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
677 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
678 wxPyEndBlockThreads(); \
679 if (! found) \
680 PCLASS::CBNAME(a,b,c); \
681 } \
682 void base_##CBNAME(int a, int b, long c) { \
683 PCLASS::CBNAME(a,b,c); \
684 }
685
686
687
688
689 #define PYCALLBACK__INTINTDOUBLE(PCLASS, CBNAME) \
690 void CBNAME(int a, int b, double c) { \
691 bool found; \
692 wxPyBeginBlockThreads(); \
693 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
694 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iif)", a,b,c)); \
695 wxPyEndBlockThreads(); \
696 if (! found) \
697 PCLASS::CBNAME(a,b,c); \
698 } \
699 void base_##CBNAME(int a, int b, double c) { \
700 PCLASS::CBNAME(a,b,c); \
701 }
702
703
704
705 #define PYCALLBACK__INTINTBOOL(PCLASS, CBNAME) \
706 void CBNAME(int a, int b, bool c) { \
707 bool found; \
708 wxPyBeginBlockThreads(); \
709 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) \
710 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", a,b,c)); \
711 wxPyEndBlockThreads(); \
712 if (! found) \
713 PCLASS::CBNAME(a,b,c); \
714 } \
715 void base_##CBNAME(int a, int b, bool c) { \
716 PCLASS::CBNAME(a,b,c); \
717 }
718
719
720
721
722
723 void wxGridCellRenderer__setOORInfo(wxGridCellRenderer *self,PyObject *_self){
724 self->SetClientObject(new wxPyOORClientData(_self));
725 }
726
727 class wxPyGridCellRenderer : public wxGridCellRenderer
728 {
729 public:
730 wxPyGridCellRenderer() : wxGridCellRenderer() {};
731
732 // Implement Python callback aware virtual methods
733 void Draw(wxGrid& grid, wxGridCellAttr& attr,
734 wxDC& dc, const wxRect& rect,
735 int row, int col, bool isSelected) {
736 wxPyBeginBlockThreads();
737 if (wxPyCBH_findCallback(m_myInst, "Draw")) {
738 PyObject* go = wxPyMake_wxObject(&grid);
739 PyObject* dco = wxPyMake_wxObject(&dc);
740 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
741 PyObject* ro = wxPyConstructObject((void*)&rect, wxT("wxRect"), 0);
742
743 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OOOOiii)", go, ao, dco, ro,
744 row, col, isSelected));
745 Py_DECREF(go);
746 Py_DECREF(ao);
747 Py_DECREF(dco);
748 Py_DECREF(ro);
749 }
750 wxPyEndBlockThreads();
751 }
752
753 wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc,
754 int row, int col) {
755 wxSize rval;
756 wxPyBeginBlockThreads();
757 if (wxPyCBH_findCallback(m_myInst, "GetBestSize")) {
758 PyObject* ro;
759 wxSize* ptr;
760 PyObject* go = wxPyMake_wxObject(&grid);
761 PyObject* dco = wxPyMake_wxObject(&dc);
762 PyObject* ao = wxPyMake_wxGridCellAttr(&attr);
763
764 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOOii)",
765 go, ao, dco,
766 row, col));
767 Py_DECREF(go);
768 Py_DECREF(ao);
769 Py_DECREF(dco);
770
771 if (ro) {
772 const char* errmsg = "GetBestSize should return a 2-tuple of integers or a wxSize object.";
773 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxSize"))) {
774 rval = *ptr;
775 }
776 else if (PySequence_Check(ro) && PyObject_Length(ro) == 2) {
777 PyObject* o1 = PySequence_GetItem(ro, 0);
778 PyObject* o2 = PySequence_GetItem(ro, 1);
779 if (PyNumber_Check(o1) && PyNumber_Check(o2))
780 rval = wxSize(PyInt_AsLong(o1), PyInt_AsLong(o2));
781 else
782 PyErr_SetString(PyExc_TypeError, errmsg);
783 Py_DECREF(o1);
784 Py_DECREF(o2);
785 }
786 else {
787 PyErr_SetString(PyExc_TypeError, errmsg);
788 }
789 Py_DECREF(ro);
790 }
791 }
792 wxPyEndBlockThreads();
793 return rval;
794 }
795
796
797 wxGridCellRenderer *Clone() const {
798 wxGridCellRenderer* rval = NULL;
799 wxPyBeginBlockThreads();
800 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
801 PyObject* ro;
802 wxGridCellRenderer* ptr;
803 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
804 if (ro) {
805 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellRenderer")))
806 rval = ptr;
807 Py_DECREF(ro);
808 }
809 }
810 wxPyEndBlockThreads();
811 return rval;
812 }
813
814 DEC_PYCALLBACK__STRING(SetParameters);
815
816 PYPRIVATE;
817 };
818
819 IMP_PYCALLBACK__STRING( wxPyGridCellRenderer, wxGridCellRenderer, SetParameters);
820
821
822 void wxGridCellEditor__setOORInfo(wxGridCellEditor *self,PyObject *_self){
823 self->SetClientObject(new wxPyOORClientData(_self));
824 }
825
826 class wxPyGridCellEditor : public wxGridCellEditor
827 {
828 public:
829 wxPyGridCellEditor() : wxGridCellEditor() {}
830
831 void Create(wxWindow* parent, wxWindowID id, wxEvtHandler* evtHandler) {
832 wxPyBeginBlockThreads();
833 if (wxPyCBH_findCallback(m_myInst, "Create")) {
834 PyObject* po = wxPyMake_wxObject(parent);
835 PyObject* eo = wxPyMake_wxObject(evtHandler);
836
837 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OiO)", po, id, eo));
838 Py_DECREF(po);
839 Py_DECREF(eo);
840 }
841 wxPyEndBlockThreads();
842 }
843
844
845 void BeginEdit(int row, int col, wxGrid* grid) {
846 wxPyBeginBlockThreads();
847 if (wxPyCBH_findCallback(m_myInst, "BeginEdit")) {
848 PyObject* go = wxPyMake_wxObject(grid);
849 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
850 Py_DECREF(go);
851 }
852 wxPyEndBlockThreads();
853 }
854
855
856 bool EndEdit(int row, int col, wxGrid* grid) {
857 bool rv = False;
858 wxPyBeginBlockThreads();
859 if (wxPyCBH_findCallback(m_myInst, "EndEdit")) {
860 PyObject* go = wxPyMake_wxObject(grid);
861 rv = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)", row, col, go));
862 Py_DECREF(go);
863 }
864 wxPyEndBlockThreads();
865 return rv;
866 }
867
868
869 wxGridCellEditor* Clone() const {
870 wxGridCellEditor* rval = NULL;
871 wxPyBeginBlockThreads();
872 if (wxPyCBH_findCallback(m_myInst, "Clone")) {
873 PyObject* ro;
874 wxGridCellEditor* ptr;
875 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
876 if (ro) {
877 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxGridCellEditor")))
878 rval = ptr;
879 Py_DECREF(ro);
880 }
881 }
882 wxPyEndBlockThreads();
883 return rval;
884 }
885
886
887 void Show(bool show, wxGridCellAttr *attr) {
888 bool found;
889 wxPyBeginBlockThreads();
890 if ((found = wxPyCBH_findCallback(m_myInst, "Show"))) {
891 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
892 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iO)", show, ao));
893 Py_DECREF(ao);
894 }
895 wxPyEndBlockThreads();
896 if (! found)
897 wxGridCellEditor::Show(show, attr);
898 }
899 void base_Show(bool show, wxGridCellAttr *attr) {
900 wxGridCellEditor::Show(show, attr);
901 }
902
903
904 void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
905 bool found;
906 wxPyBeginBlockThreads();
907 if ((found = wxPyCBH_findCallback(m_myInst, "PaintBackground)"))) {
908 PyObject* ao = wxPyMake_wxGridCellAttr(attr);
909 PyObject* ro = wxPyConstructObject((void*)&rectCell, wxT("wxRect"), 0);
910
911 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", ro, ao));
912
913 Py_DECREF(ro);
914 Py_DECREF(ao);
915 }
916 wxPyEndBlockThreads();
917 if (! found)
918 wxGridCellEditor::PaintBackground(rectCell, attr);
919 }
920 void base_PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr) {
921 wxGridCellEditor::PaintBackground(rectCell, attr);
922 }
923
924
925 DEC_PYCALLBACK___pure(Reset);
926 DEC_PYCALLBACK__constany(SetSize, wxRect);
927 DEC_PYCALLBACK_bool_any(IsAcceptedKey, wxKeyEvent);
928 DEC_PYCALLBACK__any(StartingKey, wxKeyEvent);
929 DEC_PYCALLBACK__any(HandleReturn, wxKeyEvent);
930 DEC_PYCALLBACK__(StartingClick);
931 DEC_PYCALLBACK__(Destroy);
932 DEC_PYCALLBACK__STRING(SetParameters);
933 DEC_PYCALLBACK_STRING__constpure(GetValue);
934
935 PYPRIVATE;
936 };
937
938
939 IMP_PYCALLBACK__STRING( wxPyGridCellEditor, wxGridCellEditor, SetParameters);
940 IMP_PYCALLBACK___pure(wxPyGridCellEditor, wxGridCellEditor, Reset);
941 IMP_PYCALLBACK__constany(wxPyGridCellEditor, wxGridCellEditor, SetSize, wxRect);
942 IMP_PYCALLBACK_bool_any(wxPyGridCellEditor, wxGridCellEditor, IsAcceptedKey, wxKeyEvent);
943 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, StartingKey, wxKeyEvent);
944 IMP_PYCALLBACK__any(wxPyGridCellEditor, wxGridCellEditor, HandleReturn, wxKeyEvent);
945 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, StartingClick);
946 IMP_PYCALLBACK__(wxPyGridCellEditor, wxGridCellEditor, Destroy);
947 IMP_PYCALLBACK_STRING__constpure(wxPyGridCellEditor, wxGridCellEditor, GetValue);
948
949
950 void wxGridCellAttr__setOORInfo(wxGridCellAttr *self,PyObject *_self){
951 self->SetClientObject(new wxPyOORClientData(_self));
952 }
953
954 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
955 PyObject* o2;
956 PyObject* o3;
957
958 if (!target) {
959 target = o;
960 } else if (target == Py_None) {
961 Py_DECREF(Py_None);
962 target = o;
963 } else {
964 if (!PyTuple_Check(target)) {
965 o2 = target;
966 target = PyTuple_New(1);
967 PyTuple_SetItem(target, 0, o2);
968 }
969 o3 = PyTuple_New(1);
970 PyTuple_SetItem(o3, 0, o);
971
972 o2 = target;
973 target = PySequence_Concat(o2, o3);
974 Py_DECREF(o2);
975 Py_DECREF(o3);
976 }
977 return target;
978 }
979
980 void wxGridCellAttrProvider__setOORInfo(wxGridCellAttrProvider *self,PyObject *_self){
981 self->SetClientObject(new wxPyOORClientData(_self));
982 }
983
984 class wxPyGridCellAttrProvider : public wxGridCellAttrProvider
985 {
986 public:
987 wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {};
988
989 PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr);
990 PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr);
991 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr);
992 PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr);
993
994 PYPRIVATE;
995 };
996
997 void wxGridTableBase__setOORInfo(wxGridTableBase *self,PyObject *_self){
998 self->SetClientObject(new wxPyOORClientData(_self));
999 }
1000
1001 class wxPyGridTableBase : public wxGridTableBase
1002 {
1003 public:
1004 wxPyGridTableBase() : wxGridTableBase() {}
1005
1006 PYCALLBACK_INT__pure(GetNumberRows);
1007 PYCALLBACK_INT__pure(GetNumberCols);
1008 PYCALLBACK_BOOL_INTINT_pure(IsEmptyCell);
1009 PYCALLBACK_STRING_INTINT(wxGridTableBase, GetTypeName);
1010 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanGetValueAs);
1011 PYCALLBACK_BOOL_INTINTSTRING(wxGridTableBase, CanSetValueAs);
1012 PYCALLBACK__(wxGridTableBase, Clear);
1013 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertRows);
1014 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteRows);
1015 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, InsertCols);
1016 PYCALLBACK_BOOL_SIZETSIZET(wxGridTableBase, DeleteCols);
1017 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendRows);
1018 PYCALLBACK_BOOL_SIZET(wxGridTableBase, AppendCols);
1019 PYCALLBACK_STRING_INT(wxGridTableBase, GetRowLabelValue);
1020 PYCALLBACK_STRING_INT(wxGridTableBase, GetColLabelValue);
1021 PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue);
1022 PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue);
1023 PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes);
1024 PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr);
1025 PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr);
1026 PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr);
1027 PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr);
1028
1029
1030 wxString GetValue(int row, int col) {
1031 wxPyBeginBlockThreads();
1032 wxString rval;
1033 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1034 PyObject* ro;
1035 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)",row,col));
1036 if (ro) {
1037 rval = Py2wxString(ro);
1038 Py_DECREF(ro);
1039 }
1040 }
1041 wxPyEndBlockThreads();
1042 return rval;
1043 }
1044
1045 void SetValue(int row, int col, const wxString& val) {
1046 wxPyBeginBlockThreads();
1047 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1048 PyObject* s = wx2PyString(val);
1049 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",row,col,s));
1050 Py_DECREF(s);
1051 }
1052 wxPyEndBlockThreads();
1053 }
1054
1055
1056 // Map the Get/Set methods for the standard non-string types to
1057 // the GetValue and SetValue python methods.
1058 long GetValueAsLong( int row, int col ) {
1059 long rval = 0;
1060 wxPyBeginBlockThreads();
1061 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1062 PyObject* ro;
1063 PyObject* num;
1064 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1065 if (ro && PyNumber_Check(ro)) {
1066 num = PyNumber_Int(ro);
1067 if (num) {
1068 rval = PyInt_AsLong(num);
1069 Py_DECREF(num);
1070 }
1071 Py_DECREF(ro);
1072 }
1073 }
1074 wxPyEndBlockThreads();
1075 return rval;
1076 }
1077
1078 double GetValueAsDouble( int row, int col ) {
1079 double rval = 0.0;
1080 wxPyBeginBlockThreads();
1081 if (wxPyCBH_findCallback(m_myInst, "GetValue")) {
1082 PyObject* ro;
1083 PyObject* num;
1084 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", row, col));
1085 if (ro && PyNumber_Check(ro)) {
1086 num = PyNumber_Float(ro);
1087 if (num) {
1088 rval = PyFloat_AsDouble(num);
1089 Py_DECREF(num);
1090 }
1091 Py_DECREF(ro);
1092 }
1093 }
1094 wxPyEndBlockThreads();
1095 return rval;
1096 }
1097
1098 bool GetValueAsBool( int row, int col ) {
1099 return (bool)GetValueAsLong(row, col);
1100 }
1101
1102 void SetValueAsLong( int row, int col, long value ) {
1103 wxPyBeginBlockThreads();
1104 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1105 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iii)", row, col, value));
1106 }
1107 wxPyEndBlockThreads();
1108 }
1109
1110 void SetValueAsDouble( int row, int col, double value ) {
1111 wxPyBeginBlockThreads();
1112 if (wxPyCBH_findCallback(m_myInst, "SetValue")) {
1113 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iid)", row, col, value));
1114 }
1115 wxPyEndBlockThreads();
1116 }
1117
1118 void SetValueAsBool( int row, int col, bool value ) {
1119 SetValueAsLong( row, col, (long)value );
1120 }
1121
1122
1123 PYPRIVATE;
1124 };
1125
1126 void wxPyGridTableBase_Destroy(wxPyGridTableBase *self){ delete self; }
1127 PyObject *wxGridCellCoords_asTuple(wxGridCellCoords *self){
1128 PyObject* tup = PyTuple_New(2);
1129 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1130 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1131 return tup;
1132 }
1133
1134 bool wxGridCellCoords_helper(PyObject* source, wxGridCellCoords** obj) {
1135
1136 // If source is an object instance then it may already be the right type
1137 if (wxPySwigInstance_Check(source)) {
1138 wxGridCellCoords* ptr;
1139 if (! wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1140 goto error;
1141 *obj = ptr;
1142 return True;
1143 }
1144 // otherwise a 2-tuple of integers is expected
1145 else if (PySequence_Check(source) && PyObject_Length(source) == 2) {
1146 PyObject* o1 = PySequence_GetItem(source, 0);
1147 PyObject* o2 = PySequence_GetItem(source, 1);
1148 if (!PyNumber_Check(o1) || !PyNumber_Check(o2)) {
1149 Py_DECREF(o1);
1150 Py_DECREF(o2);
1151 goto error;
1152 }
1153 **obj = wxGridCellCoords(PyInt_AsLong(o1), PyInt_AsLong(o2));
1154 Py_DECREF(o1);
1155 Py_DECREF(o2);
1156 return True;
1157 }
1158
1159 error:
1160 PyErr_SetString(PyExc_TypeError, "Expected a 2-tuple of integers or a wxGridCellCoords object.");
1161 return False;
1162 }
1163
1164
1165 bool wxGridCellCoords_typecheck(PyObject* source) {
1166 void* ptr;
1167
1168 if (wxPySwigInstance_Check(source) &&
1169 wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
1170 return True;
1171
1172 PyErr_Clear();
1173 if (PySequence_Check(source) && PySequence_Length(source) == 2)
1174 return True;
1175
1176 return False;
1177 }
1178
1179
1180 PyObject* wxGridCellCoordsArray_helper(const wxGridCellCoordsArray& source)
1181 {
1182 PyObject* list = PyList_New(0);
1183 size_t idx;
1184 for (idx = 0; idx < source.GetCount(); idx += 1) {
1185 wxGridCellCoords& coord = source.Item(idx);
1186 PyObject* tup = PyTuple_New(2);
1187 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(coord.GetRow()));
1188 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(coord.GetCol()));
1189 PyList_Append(list, tup);
1190 Py_DECREF(tup);
1191 }
1192 return list;
1193 }
1194
1195
1196 typedef wxGrid::wxGridSelectionModes WXGRIDSELECTIONMODES;
1197
1198 wxGridCellCoords wxGrid_XYToCell(wxGrid *self,int x,int y){
1199 wxGridCellCoords rv;
1200 self->XYToCell(x, y, rv);
1201 return rv;
1202 }
1203 #ifdef __cplusplus
1204 extern "C" {
1205 #endif
1206 static int _wrap_GridNoCellCoords_set(PyObject *_val) {
1207 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellCoords is read-only.");
1208 return 1;
1209 }
1210
1211
1212 static PyObject *_wrap_GridNoCellCoords_get() {
1213 PyObject *pyobj;
1214
1215 pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellCoords, SWIGTYPE_p_wxGridCellCoords, 0);
1216 return pyobj;
1217 }
1218
1219
1220 static int _wrap_GridNoCellRect_set(PyObject *_val) {
1221 PyErr_SetString(PyExc_TypeError,"Variable GridNoCellRect is read-only.");
1222 return 1;
1223 }
1224
1225
1226 static PyObject *_wrap_GridNoCellRect_get() {
1227 PyObject *pyobj;
1228
1229 pyobj = SWIG_NewPointerObj((void *) &wxGridNoCellRect, SWIGTYPE_p_wxRect, 0);
1230 return pyobj;
1231 }
1232
1233
1234 static PyObject *_wrap_GridCellRenderer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1235 PyObject *resultobj;
1236 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1237 PyObject *arg2 = (PyObject *) 0 ;
1238 PyObject * obj0 = 0 ;
1239 PyObject * obj1 = 0 ;
1240 char *kwnames[] = {
1241 (char *) "self",(char *) "_self", NULL
1242 };
1243
1244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
1245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1246 arg2 = obj1;
1247 {
1248 PyThreadState* __tstate = wxPyBeginAllowThreads();
1249 wxGridCellRenderer__setOORInfo(arg1,arg2);
1250
1251 wxPyEndAllowThreads(__tstate);
1252 if (PyErr_Occurred()) SWIG_fail;
1253 }
1254 Py_INCREF(Py_None); resultobj = Py_None;
1255 return resultobj;
1256 fail:
1257 return NULL;
1258 }
1259
1260
1261 static PyObject *_wrap_GridCellRenderer_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1262 PyObject *resultobj;
1263 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1264 wxString *arg2 = 0 ;
1265 bool temp2 = False ;
1266 PyObject * obj0 = 0 ;
1267 PyObject * obj1 = 0 ;
1268 char *kwnames[] = {
1269 (char *) "self",(char *) "params", NULL
1270 };
1271
1272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellRenderer_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1274 {
1275 arg2 = wxString_in_helper(obj1);
1276 if (arg2 == NULL) SWIG_fail;
1277 temp2 = True;
1278 }
1279 {
1280 PyThreadState* __tstate = wxPyBeginAllowThreads();
1281 (arg1)->SetParameters((wxString const &)*arg2);
1282
1283 wxPyEndAllowThreads(__tstate);
1284 if (PyErr_Occurred()) SWIG_fail;
1285 }
1286 Py_INCREF(Py_None); resultobj = Py_None;
1287 {
1288 if (temp2)
1289 delete arg2;
1290 }
1291 return resultobj;
1292 fail:
1293 {
1294 if (temp2)
1295 delete arg2;
1296 }
1297 return NULL;
1298 }
1299
1300
1301 static PyObject *_wrap_GridCellRenderer_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1302 PyObject *resultobj;
1303 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1304 PyObject * obj0 = 0 ;
1305 char *kwnames[] = {
1306 (char *) "self", NULL
1307 };
1308
1309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_IncRef",kwnames,&obj0)) goto fail;
1310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1311 {
1312 PyThreadState* __tstate = wxPyBeginAllowThreads();
1313 (arg1)->IncRef();
1314
1315 wxPyEndAllowThreads(__tstate);
1316 if (PyErr_Occurred()) SWIG_fail;
1317 }
1318 Py_INCREF(Py_None); resultobj = Py_None;
1319 return resultobj;
1320 fail:
1321 return NULL;
1322 }
1323
1324
1325 static PyObject *_wrap_GridCellRenderer_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
1326 PyObject *resultobj;
1327 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1328 PyObject * obj0 = 0 ;
1329 char *kwnames[] = {
1330 (char *) "self", NULL
1331 };
1332
1333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_DecRef",kwnames,&obj0)) goto fail;
1334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1335 {
1336 PyThreadState* __tstate = wxPyBeginAllowThreads();
1337 (arg1)->DecRef();
1338
1339 wxPyEndAllowThreads(__tstate);
1340 if (PyErr_Occurred()) SWIG_fail;
1341 }
1342 Py_INCREF(Py_None); resultobj = Py_None;
1343 return resultobj;
1344 fail:
1345 return NULL;
1346 }
1347
1348
1349 static PyObject *_wrap_GridCellRenderer_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
1350 PyObject *resultobj;
1351 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1352 wxGrid *arg2 = 0 ;
1353 wxGridCellAttr *arg3 = 0 ;
1354 wxDC *arg4 = 0 ;
1355 wxRect *arg5 = 0 ;
1356 int arg6 ;
1357 int arg7 ;
1358 bool arg8 ;
1359 wxRect temp5 ;
1360 PyObject * obj0 = 0 ;
1361 PyObject * obj1 = 0 ;
1362 PyObject * obj2 = 0 ;
1363 PyObject * obj3 = 0 ;
1364 PyObject * obj4 = 0 ;
1365 PyObject * obj7 = 0 ;
1366 char *kwnames[] = {
1367 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "rect",(char *) "row",(char *) "col",(char *) "isSelected", NULL
1368 };
1369
1370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOiiO:GridCellRenderer_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6,&arg7,&obj7)) goto fail;
1371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1372 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1373 if (arg2 == NULL) {
1374 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1375 }
1376 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1377 if (arg3 == NULL) {
1378 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1379 }
1380 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1381 if (arg4 == NULL) {
1382 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1383 }
1384 {
1385 arg5 = &temp5;
1386 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
1387 }
1388 arg8 = PyInt_AsLong(obj7) ? true : false;
1389 if (PyErr_Occurred()) SWIG_fail;
1390 {
1391 PyThreadState* __tstate = wxPyBeginAllowThreads();
1392 (arg1)->Draw(*arg2,*arg3,*arg4,(wxRect const &)*arg5,arg6,arg7,arg8);
1393
1394 wxPyEndAllowThreads(__tstate);
1395 if (PyErr_Occurred()) SWIG_fail;
1396 }
1397 Py_INCREF(Py_None); resultobj = Py_None;
1398 return resultobj;
1399 fail:
1400 return NULL;
1401 }
1402
1403
1404 static PyObject *_wrap_GridCellRenderer_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1405 PyObject *resultobj;
1406 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1407 wxGrid *arg2 = 0 ;
1408 wxGridCellAttr *arg3 = 0 ;
1409 wxDC *arg4 = 0 ;
1410 int arg5 ;
1411 int arg6 ;
1412 wxSize result;
1413 PyObject * obj0 = 0 ;
1414 PyObject * obj1 = 0 ;
1415 PyObject * obj2 = 0 ;
1416 PyObject * obj3 = 0 ;
1417 char *kwnames[] = {
1418 (char *) "self",(char *) "grid",(char *) "attr",(char *) "dc",(char *) "row",(char *) "col", NULL
1419 };
1420
1421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOii:GridCellRenderer_GetBestSize",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6)) goto fail;
1422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1423 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1424 if (arg2 == NULL) {
1425 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1426 }
1427 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1428 if (arg3 == NULL) {
1429 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1430 }
1431 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1432 if (arg4 == NULL) {
1433 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1434 }
1435 {
1436 PyThreadState* __tstate = wxPyBeginAllowThreads();
1437 result = (arg1)->GetBestSize(*arg2,*arg3,*arg4,arg5,arg6);
1438
1439 wxPyEndAllowThreads(__tstate);
1440 if (PyErr_Occurred()) SWIG_fail;
1441 }
1442 {
1443 wxSize * resultptr;
1444 resultptr = new wxSize((wxSize &) result);
1445 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1446 }
1447 return resultobj;
1448 fail:
1449 return NULL;
1450 }
1451
1452
1453 static PyObject *_wrap_GridCellRenderer_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
1454 PyObject *resultobj;
1455 wxGridCellRenderer *arg1 = (wxGridCellRenderer *) 0 ;
1456 wxGridCellRenderer *result;
1457 PyObject * obj0 = 0 ;
1458 char *kwnames[] = {
1459 (char *) "self", NULL
1460 };
1461
1462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellRenderer_Clone",kwnames,&obj0)) goto fail;
1463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1464 {
1465 PyThreadState* __tstate = wxPyBeginAllowThreads();
1466 result = (wxGridCellRenderer *)((wxGridCellRenderer const *)arg1)->Clone();
1467
1468 wxPyEndAllowThreads(__tstate);
1469 if (PyErr_Occurred()) SWIG_fail;
1470 }
1471 {
1472 resultobj = wxPyMake_wxGridCellRenderer(result);
1473 }
1474 return resultobj;
1475 fail:
1476 return NULL;
1477 }
1478
1479
1480 static PyObject * GridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1481 PyObject *obj;
1482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1483 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellRenderer, obj);
1484 Py_INCREF(obj);
1485 return Py_BuildValue((char *)"");
1486 }
1487 static PyObject *_wrap_new_PyGridCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1488 PyObject *resultobj;
1489 wxPyGridCellRenderer *result;
1490 char *kwnames[] = {
1491 NULL
1492 };
1493
1494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellRenderer",kwnames)) goto fail;
1495 {
1496 PyThreadState* __tstate = wxPyBeginAllowThreads();
1497 result = (wxPyGridCellRenderer *)new wxPyGridCellRenderer();
1498
1499 wxPyEndAllowThreads(__tstate);
1500 if (PyErr_Occurred()) SWIG_fail;
1501 }
1502 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellRenderer, 1);
1503 return resultobj;
1504 fail:
1505 return NULL;
1506 }
1507
1508
1509 static PyObject *_wrap_PyGridCellRenderer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1510 PyObject *resultobj;
1511 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1512 PyObject *arg2 = (PyObject *) 0 ;
1513 PyObject *arg3 = (PyObject *) 0 ;
1514 PyObject * obj0 = 0 ;
1515 PyObject * obj1 = 0 ;
1516 PyObject * obj2 = 0 ;
1517 char *kwnames[] = {
1518 (char *) "self",(char *) "self",(char *) "_class", NULL
1519 };
1520
1521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellRenderer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
1522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1523 arg2 = obj1;
1524 arg3 = obj2;
1525 {
1526 PyThreadState* __tstate = wxPyBeginAllowThreads();
1527 (arg1)->_setCallbackInfo(arg2,arg3);
1528
1529 wxPyEndAllowThreads(__tstate);
1530 if (PyErr_Occurred()) SWIG_fail;
1531 }
1532 Py_INCREF(Py_None); resultobj = Py_None;
1533 return resultobj;
1534 fail:
1535 return NULL;
1536 }
1537
1538
1539 static PyObject *_wrap_PyGridCellRenderer_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
1540 PyObject *resultobj;
1541 wxPyGridCellRenderer *arg1 = (wxPyGridCellRenderer *) 0 ;
1542 wxString *arg2 = 0 ;
1543 bool temp2 = False ;
1544 PyObject * obj0 = 0 ;
1545 PyObject * obj1 = 0 ;
1546 char *kwnames[] = {
1547 (char *) "self",(char *) "params", NULL
1548 };
1549
1550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellRenderer_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
1551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1552 {
1553 arg2 = wxString_in_helper(obj1);
1554 if (arg2 == NULL) SWIG_fail;
1555 temp2 = True;
1556 }
1557 {
1558 PyThreadState* __tstate = wxPyBeginAllowThreads();
1559 (arg1)->base_SetParameters((wxString const &)*arg2);
1560
1561 wxPyEndAllowThreads(__tstate);
1562 if (PyErr_Occurred()) SWIG_fail;
1563 }
1564 Py_INCREF(Py_None); resultobj = Py_None;
1565 {
1566 if (temp2)
1567 delete arg2;
1568 }
1569 return resultobj;
1570 fail:
1571 {
1572 if (temp2)
1573 delete arg2;
1574 }
1575 return NULL;
1576 }
1577
1578
1579 static PyObject * PyGridCellRenderer_swigregister(PyObject *self, PyObject *args) {
1580 PyObject *obj;
1581 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1582 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellRenderer, obj);
1583 Py_INCREF(obj);
1584 return Py_BuildValue((char *)"");
1585 }
1586 static PyObject *_wrap_new_GridCellStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1587 PyObject *resultobj;
1588 wxGridCellStringRenderer *result;
1589 char *kwnames[] = {
1590 NULL
1591 };
1592
1593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellStringRenderer",kwnames)) goto fail;
1594 {
1595 PyThreadState* __tstate = wxPyBeginAllowThreads();
1596 result = (wxGridCellStringRenderer *)new wxGridCellStringRenderer();
1597
1598 wxPyEndAllowThreads(__tstate);
1599 if (PyErr_Occurred()) SWIG_fail;
1600 }
1601 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellStringRenderer, 1);
1602 return resultobj;
1603 fail:
1604 return NULL;
1605 }
1606
1607
1608 static PyObject * GridCellStringRenderer_swigregister(PyObject *self, PyObject *args) {
1609 PyObject *obj;
1610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1611 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellStringRenderer, obj);
1612 Py_INCREF(obj);
1613 return Py_BuildValue((char *)"");
1614 }
1615 static PyObject *_wrap_new_GridCellNumberRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1616 PyObject *resultobj;
1617 wxGridCellNumberRenderer *result;
1618 char *kwnames[] = {
1619 NULL
1620 };
1621
1622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellNumberRenderer",kwnames)) goto fail;
1623 {
1624 PyThreadState* __tstate = wxPyBeginAllowThreads();
1625 result = (wxGridCellNumberRenderer *)new wxGridCellNumberRenderer();
1626
1627 wxPyEndAllowThreads(__tstate);
1628 if (PyErr_Occurred()) SWIG_fail;
1629 }
1630 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberRenderer, 1);
1631 return resultobj;
1632 fail:
1633 return NULL;
1634 }
1635
1636
1637 static PyObject * GridCellNumberRenderer_swigregister(PyObject *self, PyObject *args) {
1638 PyObject *obj;
1639 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1640 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberRenderer, obj);
1641 Py_INCREF(obj);
1642 return Py_BuildValue((char *)"");
1643 }
1644 static PyObject *_wrap_new_GridCellFloatRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1645 PyObject *resultobj;
1646 int arg1 = (int) -1 ;
1647 int arg2 = (int) -1 ;
1648 wxGridCellFloatRenderer *result;
1649 char *kwnames[] = {
1650 (char *) "width",(char *) "precision", NULL
1651 };
1652
1653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellFloatRenderer",kwnames,&arg1,&arg2)) goto fail;
1654 {
1655 PyThreadState* __tstate = wxPyBeginAllowThreads();
1656 result = (wxGridCellFloatRenderer *)new wxGridCellFloatRenderer(arg1,arg2);
1657
1658 wxPyEndAllowThreads(__tstate);
1659 if (PyErr_Occurred()) SWIG_fail;
1660 }
1661 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatRenderer, 1);
1662 return resultobj;
1663 fail:
1664 return NULL;
1665 }
1666
1667
1668 static PyObject *_wrap_GridCellFloatRenderer_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1669 PyObject *resultobj;
1670 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1671 int result;
1672 PyObject * obj0 = 0 ;
1673 char *kwnames[] = {
1674 (char *) "self", NULL
1675 };
1676
1677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetWidth",kwnames,&obj0)) goto fail;
1678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1679 {
1680 PyThreadState* __tstate = wxPyBeginAllowThreads();
1681 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetWidth();
1682
1683 wxPyEndAllowThreads(__tstate);
1684 if (PyErr_Occurred()) SWIG_fail;
1685 }
1686 resultobj = PyInt_FromLong((long)result);
1687 return resultobj;
1688 fail:
1689 return NULL;
1690 }
1691
1692
1693 static PyObject *_wrap_GridCellFloatRenderer_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1694 PyObject *resultobj;
1695 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1696 int arg2 ;
1697 PyObject * obj0 = 0 ;
1698 char *kwnames[] = {
1699 (char *) "self",(char *) "width", NULL
1700 };
1701
1702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellFloatRenderer_SetWidth",kwnames,&obj0,&arg2)) goto fail;
1703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1704 {
1705 PyThreadState* __tstate = wxPyBeginAllowThreads();
1706 (arg1)->SetWidth(arg2);
1707
1708 wxPyEndAllowThreads(__tstate);
1709 if (PyErr_Occurred()) SWIG_fail;
1710 }
1711 Py_INCREF(Py_None); resultobj = Py_None;
1712 return resultobj;
1713 fail:
1714 return NULL;
1715 }
1716
1717
1718 static PyObject *_wrap_GridCellFloatRenderer_GetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
1719 PyObject *resultobj;
1720 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1721 int result;
1722 PyObject * obj0 = 0 ;
1723 char *kwnames[] = {
1724 (char *) "self", NULL
1725 };
1726
1727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatRenderer_GetPrecision",kwnames,&obj0)) goto fail;
1728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1729 {
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 result = (int)((wxGridCellFloatRenderer const *)arg1)->GetPrecision();
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 resultobj = PyInt_FromLong((long)result);
1737 return resultobj;
1738 fail:
1739 return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_GridCellFloatRenderer_SetPrecision(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxGridCellFloatRenderer *arg1 = (wxGridCellFloatRenderer *) 0 ;
1746 int arg2 ;
1747 PyObject * obj0 = 0 ;
1748 char *kwnames[] = {
1749 (char *) "self",(char *) "precision", NULL
1750 };
1751
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellFloatRenderer_SetPrecision",kwnames,&obj0,&arg2)) goto fail;
1753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1754 {
1755 PyThreadState* __tstate = wxPyBeginAllowThreads();
1756 (arg1)->SetPrecision(arg2);
1757
1758 wxPyEndAllowThreads(__tstate);
1759 if (PyErr_Occurred()) SWIG_fail;
1760 }
1761 Py_INCREF(Py_None); resultobj = Py_None;
1762 return resultobj;
1763 fail:
1764 return NULL;
1765 }
1766
1767
1768 static PyObject * GridCellFloatRenderer_swigregister(PyObject *self, PyObject *args) {
1769 PyObject *obj;
1770 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1771 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatRenderer, obj);
1772 Py_INCREF(obj);
1773 return Py_BuildValue((char *)"");
1774 }
1775 static PyObject *_wrap_new_GridCellBoolRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1776 PyObject *resultobj;
1777 wxGridCellBoolRenderer *result;
1778 char *kwnames[] = {
1779 NULL
1780 };
1781
1782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolRenderer",kwnames)) goto fail;
1783 {
1784 PyThreadState* __tstate = wxPyBeginAllowThreads();
1785 result = (wxGridCellBoolRenderer *)new wxGridCellBoolRenderer();
1786
1787 wxPyEndAllowThreads(__tstate);
1788 if (PyErr_Occurred()) SWIG_fail;
1789 }
1790 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolRenderer, 1);
1791 return resultobj;
1792 fail:
1793 return NULL;
1794 }
1795
1796
1797 static PyObject * GridCellBoolRenderer_swigregister(PyObject *self, PyObject *args) {
1798 PyObject *obj;
1799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1800 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolRenderer, obj);
1801 Py_INCREF(obj);
1802 return Py_BuildValue((char *)"");
1803 }
1804 static PyObject *_wrap_new_GridCellDateTimeRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1805 PyObject *resultobj;
1806 wxString arg1 = (wxString) wxPyDateTimeFormatStr ;
1807 wxString arg2 = (wxString) wxPyDateTimeFormatStr ;
1808 wxGridCellDateTimeRenderer *result;
1809 PyObject * obj0 = 0 ;
1810 PyObject * obj1 = 0 ;
1811 char *kwnames[] = {
1812 (char *) "outformat",(char *) "informat", NULL
1813 };
1814
1815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellDateTimeRenderer",kwnames,&obj0,&obj1)) goto fail;
1816 if (obj0) {
1817 {
1818 wxString* sptr = wxString_in_helper(obj0);
1819 if (sptr == NULL) SWIG_fail;
1820 arg1 = *sptr;
1821 delete sptr;
1822 }
1823 }
1824 if (obj1) {
1825 {
1826 wxString* sptr = wxString_in_helper(obj1);
1827 if (sptr == NULL) SWIG_fail;
1828 arg2 = *sptr;
1829 delete sptr;
1830 }
1831 }
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 result = (wxGridCellDateTimeRenderer *)new wxGridCellDateTimeRenderer(arg1,arg2);
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellDateTimeRenderer, 1);
1840 return resultobj;
1841 fail:
1842 return NULL;
1843 }
1844
1845
1846 static PyObject * GridCellDateTimeRenderer_swigregister(PyObject *self, PyObject *args) {
1847 PyObject *obj;
1848 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1849 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellDateTimeRenderer, obj);
1850 Py_INCREF(obj);
1851 return Py_BuildValue((char *)"");
1852 }
1853 static PyObject *_wrap_new_GridCellEnumRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1854 PyObject *resultobj;
1855 wxString const &arg1_defvalue = wxPyEmptyString ;
1856 wxString *arg1 = (wxString *) &arg1_defvalue ;
1857 wxGridCellEnumRenderer *result;
1858 bool temp1 = False ;
1859 PyObject * obj0 = 0 ;
1860 char *kwnames[] = {
1861 (char *) "choices", NULL
1862 };
1863
1864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumRenderer",kwnames,&obj0)) goto fail;
1865 if (obj0) {
1866 {
1867 arg1 = wxString_in_helper(obj0);
1868 if (arg1 == NULL) SWIG_fail;
1869 temp1 = True;
1870 }
1871 }
1872 {
1873 PyThreadState* __tstate = wxPyBeginAllowThreads();
1874 result = (wxGridCellEnumRenderer *)new wxGridCellEnumRenderer((wxString const &)*arg1);
1875
1876 wxPyEndAllowThreads(__tstate);
1877 if (PyErr_Occurred()) SWIG_fail;
1878 }
1879 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumRenderer, 1);
1880 {
1881 if (temp1)
1882 delete arg1;
1883 }
1884 return resultobj;
1885 fail:
1886 {
1887 if (temp1)
1888 delete arg1;
1889 }
1890 return NULL;
1891 }
1892
1893
1894 static PyObject * GridCellEnumRenderer_swigregister(PyObject *self, PyObject *args) {
1895 PyObject *obj;
1896 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1897 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumRenderer, obj);
1898 Py_INCREF(obj);
1899 return Py_BuildValue((char *)"");
1900 }
1901 static PyObject *_wrap_new_GridCellAutoWrapStringRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
1902 PyObject *resultobj;
1903 wxGridCellAutoWrapStringRenderer *result;
1904 char *kwnames[] = {
1905 NULL
1906 };
1907
1908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringRenderer",kwnames)) goto fail;
1909 {
1910 PyThreadState* __tstate = wxPyBeginAllowThreads();
1911 result = (wxGridCellAutoWrapStringRenderer *)new wxGridCellAutoWrapStringRenderer();
1912
1913 wxPyEndAllowThreads(__tstate);
1914 if (PyErr_Occurred()) SWIG_fail;
1915 }
1916 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, 1);
1917 return resultobj;
1918 fail:
1919 return NULL;
1920 }
1921
1922
1923 static PyObject * GridCellAutoWrapStringRenderer_swigregister(PyObject *self, PyObject *args) {
1924 PyObject *obj;
1925 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1926 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringRenderer, obj);
1927 Py_INCREF(obj);
1928 return Py_BuildValue((char *)"");
1929 }
1930 static PyObject *_wrap_GridCellEditor__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
1931 PyObject *resultobj;
1932 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
1933 PyObject *arg2 = (PyObject *) 0 ;
1934 PyObject * obj0 = 0 ;
1935 PyObject * obj1 = 0 ;
1936 char *kwnames[] = {
1937 (char *) "self",(char *) "_self", NULL
1938 };
1939
1940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
1941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1942 arg2 = obj1;
1943 {
1944 PyThreadState* __tstate = wxPyBeginAllowThreads();
1945 wxGridCellEditor__setOORInfo(arg1,arg2);
1946
1947 wxPyEndAllowThreads(__tstate);
1948 if (PyErr_Occurred()) SWIG_fail;
1949 }
1950 Py_INCREF(Py_None); resultobj = Py_None;
1951 return resultobj;
1952 fail:
1953 return NULL;
1954 }
1955
1956
1957 static PyObject *_wrap_GridCellEditor_IsCreated(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
1960 bool result;
1961 PyObject * obj0 = 0 ;
1962 char *kwnames[] = {
1963 (char *) "self", NULL
1964 };
1965
1966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IsCreated",kwnames,&obj0)) goto fail;
1967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1968 {
1969 PyThreadState* __tstate = wxPyBeginAllowThreads();
1970 result = (bool)(arg1)->IsCreated();
1971
1972 wxPyEndAllowThreads(__tstate);
1973 if (PyErr_Occurred()) SWIG_fail;
1974 }
1975 resultobj = PyInt_FromLong((long)result);
1976 return resultobj;
1977 fail:
1978 return NULL;
1979 }
1980
1981
1982 static PyObject *_wrap_GridCellEditor_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
1983 PyObject *resultobj;
1984 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
1985 wxControl *result;
1986 PyObject * obj0 = 0 ;
1987 char *kwnames[] = {
1988 (char *) "self", NULL
1989 };
1990
1991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetControl",kwnames,&obj0)) goto fail;
1992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1993 {
1994 PyThreadState* __tstate = wxPyBeginAllowThreads();
1995 result = (wxControl *)(arg1)->GetControl();
1996
1997 wxPyEndAllowThreads(__tstate);
1998 if (PyErr_Occurred()) SWIG_fail;
1999 }
2000 {
2001 resultobj = wxPyMake_wxObject(result);
2002 }
2003 return resultobj;
2004 fail:
2005 return NULL;
2006 }
2007
2008
2009 static PyObject *_wrap_GridCellEditor_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
2010 PyObject *resultobj;
2011 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2012 wxControl *arg2 = (wxControl *) 0 ;
2013 PyObject * obj0 = 0 ;
2014 PyObject * obj1 = 0 ;
2015 char *kwnames[] = {
2016 (char *) "self",(char *) "control", NULL
2017 };
2018
2019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetControl",kwnames,&obj0,&obj1)) goto fail;
2020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2021 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2022 {
2023 PyThreadState* __tstate = wxPyBeginAllowThreads();
2024 (arg1)->SetControl(arg2);
2025
2026 wxPyEndAllowThreads(__tstate);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 }
2029 Py_INCREF(Py_None); resultobj = Py_None;
2030 return resultobj;
2031 fail:
2032 return NULL;
2033 }
2034
2035
2036 static PyObject *_wrap_GridCellEditor_GetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2037 PyObject *resultobj;
2038 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2039 wxGridCellAttr *result;
2040 PyObject * obj0 = 0 ;
2041 char *kwnames[] = {
2042 (char *) "self", NULL
2043 };
2044
2045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_GetCellAttr",kwnames,&obj0)) goto fail;
2046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2047 {
2048 PyThreadState* __tstate = wxPyBeginAllowThreads();
2049 result = (wxGridCellAttr *)(arg1)->GetCellAttr();
2050
2051 wxPyEndAllowThreads(__tstate);
2052 if (PyErr_Occurred()) SWIG_fail;
2053 }
2054 {
2055 resultobj = wxPyMake_wxGridCellAttr(result);
2056 }
2057 return resultobj;
2058 fail:
2059 return NULL;
2060 }
2061
2062
2063 static PyObject *_wrap_GridCellEditor_SetCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject *resultobj;
2065 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2066 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
2067 PyObject * obj0 = 0 ;
2068 PyObject * obj1 = 0 ;
2069 char *kwnames[] = {
2070 (char *) "self",(char *) "attr", NULL
2071 };
2072
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetCellAttr",kwnames,&obj0,&obj1)) goto fail;
2074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2075 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2076 {
2077 PyThreadState* __tstate = wxPyBeginAllowThreads();
2078 (arg1)->SetCellAttr(arg2);
2079
2080 wxPyEndAllowThreads(__tstate);
2081 if (PyErr_Occurred()) SWIG_fail;
2082 }
2083 Py_INCREF(Py_None); resultobj = Py_None;
2084 return resultobj;
2085 fail:
2086 return NULL;
2087 }
2088
2089
2090 static PyObject *_wrap_GridCellEditor_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
2091 PyObject *resultobj;
2092 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2093 wxString *arg2 = 0 ;
2094 bool temp2 = False ;
2095 PyObject * obj0 = 0 ;
2096 PyObject * obj1 = 0 ;
2097 char *kwnames[] = {
2098 (char *) "self",(char *) "params", NULL
2099 };
2100
2101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetParameters",kwnames,&obj0,&obj1)) goto fail;
2102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2103 {
2104 arg2 = wxString_in_helper(obj1);
2105 if (arg2 == NULL) SWIG_fail;
2106 temp2 = True;
2107 }
2108 {
2109 PyThreadState* __tstate = wxPyBeginAllowThreads();
2110 (arg1)->SetParameters((wxString const &)*arg2);
2111
2112 wxPyEndAllowThreads(__tstate);
2113 if (PyErr_Occurred()) SWIG_fail;
2114 }
2115 Py_INCREF(Py_None); resultobj = Py_None;
2116 {
2117 if (temp2)
2118 delete arg2;
2119 }
2120 return resultobj;
2121 fail:
2122 {
2123 if (temp2)
2124 delete arg2;
2125 }
2126 return NULL;
2127 }
2128
2129
2130 static PyObject *_wrap_GridCellEditor_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2131 PyObject *resultobj;
2132 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2133 PyObject * obj0 = 0 ;
2134 char *kwnames[] = {
2135 (char *) "self", NULL
2136 };
2137
2138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_IncRef",kwnames,&obj0)) goto fail;
2139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2140 {
2141 PyThreadState* __tstate = wxPyBeginAllowThreads();
2142 (arg1)->IncRef();
2143
2144 wxPyEndAllowThreads(__tstate);
2145 if (PyErr_Occurred()) SWIG_fail;
2146 }
2147 Py_INCREF(Py_None); resultobj = Py_None;
2148 return resultobj;
2149 fail:
2150 return NULL;
2151 }
2152
2153
2154 static PyObject *_wrap_GridCellEditor_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
2155 PyObject *resultobj;
2156 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2157 PyObject * obj0 = 0 ;
2158 char *kwnames[] = {
2159 (char *) "self", NULL
2160 };
2161
2162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_DecRef",kwnames,&obj0)) goto fail;
2163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2164 {
2165 PyThreadState* __tstate = wxPyBeginAllowThreads();
2166 (arg1)->DecRef();
2167
2168 wxPyEndAllowThreads(__tstate);
2169 if (PyErr_Occurred()) SWIG_fail;
2170 }
2171 Py_INCREF(Py_None); resultobj = Py_None;
2172 return resultobj;
2173 fail:
2174 return NULL;
2175 }
2176
2177
2178 static PyObject *_wrap_GridCellEditor_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
2179 PyObject *resultobj;
2180 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2181 wxWindow *arg2 = (wxWindow *) 0 ;
2182 int arg3 ;
2183 wxEvtHandler *arg4 = (wxEvtHandler *) 0 ;
2184 PyObject * obj0 = 0 ;
2185 PyObject * obj1 = 0 ;
2186 PyObject * obj3 = 0 ;
2187 char *kwnames[] = {
2188 (char *) "self",(char *) "parent",(char *) "id",(char *) "evtHandler", NULL
2189 };
2190
2191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO:GridCellEditor_Create",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail;
2192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2193 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2194 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2195 {
2196 PyThreadState* __tstate = wxPyBeginAllowThreads();
2197 (arg1)->Create(arg2,arg3,arg4);
2198
2199 wxPyEndAllowThreads(__tstate);
2200 if (PyErr_Occurred()) SWIG_fail;
2201 }
2202 Py_INCREF(Py_None); resultobj = Py_None;
2203 return resultobj;
2204 fail:
2205 return NULL;
2206 }
2207
2208
2209 static PyObject *_wrap_GridCellEditor_BeginEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject *resultobj;
2211 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2212 int arg2 ;
2213 int arg3 ;
2214 wxGrid *arg4 = (wxGrid *) 0 ;
2215 PyObject * obj0 = 0 ;
2216 PyObject * obj3 = 0 ;
2217 char *kwnames[] = {
2218 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2219 };
2220
2221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridCellEditor_BeginEdit",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
2222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2223 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2224 {
2225 PyThreadState* __tstate = wxPyBeginAllowThreads();
2226 (arg1)->BeginEdit(arg2,arg3,arg4);
2227
2228 wxPyEndAllowThreads(__tstate);
2229 if (PyErr_Occurred()) SWIG_fail;
2230 }
2231 Py_INCREF(Py_None); resultobj = Py_None;
2232 return resultobj;
2233 fail:
2234 return NULL;
2235 }
2236
2237
2238 static PyObject *_wrap_GridCellEditor_EndEdit(PyObject *self, PyObject *args, PyObject *kwargs) {
2239 PyObject *resultobj;
2240 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2241 int arg2 ;
2242 int arg3 ;
2243 wxGrid *arg4 = (wxGrid *) 0 ;
2244 bool result;
2245 PyObject * obj0 = 0 ;
2246 PyObject * obj3 = 0 ;
2247 char *kwnames[] = {
2248 (char *) "self",(char *) "row",(char *) "col",(char *) "grid", NULL
2249 };
2250
2251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridCellEditor_EndEdit",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
2252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2253 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2254 {
2255 PyThreadState* __tstate = wxPyBeginAllowThreads();
2256 result = (bool)(arg1)->EndEdit(arg2,arg3,arg4);
2257
2258 wxPyEndAllowThreads(__tstate);
2259 if (PyErr_Occurred()) SWIG_fail;
2260 }
2261 resultobj = PyInt_FromLong((long)result);
2262 return resultobj;
2263 fail:
2264 return NULL;
2265 }
2266
2267
2268 static PyObject *_wrap_GridCellEditor_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
2269 PyObject *resultobj;
2270 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2271 PyObject * obj0 = 0 ;
2272 char *kwnames[] = {
2273 (char *) "self", NULL
2274 };
2275
2276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Reset",kwnames,&obj0)) goto fail;
2277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2278 {
2279 PyThreadState* __tstate = wxPyBeginAllowThreads();
2280 (arg1)->Reset();
2281
2282 wxPyEndAllowThreads(__tstate);
2283 if (PyErr_Occurred()) SWIG_fail;
2284 }
2285 Py_INCREF(Py_None); resultobj = Py_None;
2286 return resultobj;
2287 fail:
2288 return NULL;
2289 }
2290
2291
2292 static PyObject *_wrap_GridCellEditor_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
2293 PyObject *resultobj;
2294 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2295 wxGridCellEditor *result;
2296 PyObject * obj0 = 0 ;
2297 char *kwnames[] = {
2298 (char *) "self", NULL
2299 };
2300
2301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Clone",kwnames,&obj0)) goto fail;
2302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2303 {
2304 PyThreadState* __tstate = wxPyBeginAllowThreads();
2305 result = (wxGridCellEditor *)((wxGridCellEditor const *)arg1)->Clone();
2306
2307 wxPyEndAllowThreads(__tstate);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2310 {
2311 resultobj = wxPyMake_wxGridCellEditor(result);
2312 }
2313 return resultobj;
2314 fail:
2315 return NULL;
2316 }
2317
2318
2319 static PyObject *_wrap_GridCellEditor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2320 PyObject *resultobj;
2321 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2322 wxRect *arg2 = 0 ;
2323 wxRect temp2 ;
2324 PyObject * obj0 = 0 ;
2325 PyObject * obj1 = 0 ;
2326 char *kwnames[] = {
2327 (char *) "self",(char *) "rect", NULL
2328 };
2329
2330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_SetSize",kwnames,&obj0,&obj1)) goto fail;
2331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2332 {
2333 arg2 = &temp2;
2334 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2335 }
2336 {
2337 PyThreadState* __tstate = wxPyBeginAllowThreads();
2338 (arg1)->SetSize((wxRect const &)*arg2);
2339
2340 wxPyEndAllowThreads(__tstate);
2341 if (PyErr_Occurred()) SWIG_fail;
2342 }
2343 Py_INCREF(Py_None); resultobj = Py_None;
2344 return resultobj;
2345 fail:
2346 return NULL;
2347 }
2348
2349
2350 static PyObject *_wrap_GridCellEditor_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2351 PyObject *resultobj;
2352 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2353 bool arg2 ;
2354 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2355 PyObject * obj0 = 0 ;
2356 PyObject * obj1 = 0 ;
2357 PyObject * obj2 = 0 ;
2358 char *kwnames[] = {
2359 (char *) "self",(char *) "show",(char *) "attr", NULL
2360 };
2361
2362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridCellEditor_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2364 arg2 = PyInt_AsLong(obj1) ? true : false;
2365 if (PyErr_Occurred()) SWIG_fail;
2366 if (obj2) {
2367 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2368 }
2369 {
2370 PyThreadState* __tstate = wxPyBeginAllowThreads();
2371 (arg1)->Show(arg2,arg3);
2372
2373 wxPyEndAllowThreads(__tstate);
2374 if (PyErr_Occurred()) SWIG_fail;
2375 }
2376 Py_INCREF(Py_None); resultobj = Py_None;
2377 return resultobj;
2378 fail:
2379 return NULL;
2380 }
2381
2382
2383 static PyObject *_wrap_GridCellEditor_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2384 PyObject *resultobj;
2385 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2386 wxRect *arg2 = 0 ;
2387 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2388 wxRect temp2 ;
2389 PyObject * obj0 = 0 ;
2390 PyObject * obj1 = 0 ;
2391 PyObject * obj2 = 0 ;
2392 char *kwnames[] = {
2393 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2394 };
2395
2396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridCellEditor_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2398 {
2399 arg2 = &temp2;
2400 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2401 }
2402 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2403 {
2404 PyThreadState* __tstate = wxPyBeginAllowThreads();
2405 (arg1)->PaintBackground((wxRect const &)*arg2,arg3);
2406
2407 wxPyEndAllowThreads(__tstate);
2408 if (PyErr_Occurred()) SWIG_fail;
2409 }
2410 Py_INCREF(Py_None); resultobj = Py_None;
2411 return resultobj;
2412 fail:
2413 return NULL;
2414 }
2415
2416
2417 static PyObject *_wrap_GridCellEditor_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2418 PyObject *resultobj;
2419 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2420 wxKeyEvent *arg2 = 0 ;
2421 bool result;
2422 PyObject * obj0 = 0 ;
2423 PyObject * obj1 = 0 ;
2424 char *kwnames[] = {
2425 (char *) "self",(char *) "event", NULL
2426 };
2427
2428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2430 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2431 if (arg2 == NULL) {
2432 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2433 }
2434 {
2435 PyThreadState* __tstate = wxPyBeginAllowThreads();
2436 result = (bool)(arg1)->IsAcceptedKey(*arg2);
2437
2438 wxPyEndAllowThreads(__tstate);
2439 if (PyErr_Occurred()) SWIG_fail;
2440 }
2441 resultobj = PyInt_FromLong((long)result);
2442 return resultobj;
2443 fail:
2444 return NULL;
2445 }
2446
2447
2448 static PyObject *_wrap_GridCellEditor_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2449 PyObject *resultobj;
2450 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2451 wxKeyEvent *arg2 = 0 ;
2452 PyObject * obj0 = 0 ;
2453 PyObject * obj1 = 0 ;
2454 char *kwnames[] = {
2455 (char *) "self",(char *) "event", NULL
2456 };
2457
2458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2460 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2461 if (arg2 == NULL) {
2462 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2463 }
2464 {
2465 PyThreadState* __tstate = wxPyBeginAllowThreads();
2466 (arg1)->StartingKey(*arg2);
2467
2468 wxPyEndAllowThreads(__tstate);
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 Py_INCREF(Py_None); resultobj = Py_None;
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_GridCellEditor_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2481 PyObject * obj0 = 0 ;
2482 char *kwnames[] = {
2483 (char *) "self", NULL
2484 };
2485
2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_StartingClick",kwnames,&obj0)) goto fail;
2487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2488 {
2489 PyThreadState* __tstate = wxPyBeginAllowThreads();
2490 (arg1)->StartingClick();
2491
2492 wxPyEndAllowThreads(__tstate);
2493 if (PyErr_Occurred()) SWIG_fail;
2494 }
2495 Py_INCREF(Py_None); resultobj = Py_None;
2496 return resultobj;
2497 fail:
2498 return NULL;
2499 }
2500
2501
2502 static PyObject *_wrap_GridCellEditor_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2503 PyObject *resultobj;
2504 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2505 wxKeyEvent *arg2 = 0 ;
2506 PyObject * obj0 = 0 ;
2507 PyObject * obj1 = 0 ;
2508 char *kwnames[] = {
2509 (char *) "self",(char *) "event", NULL
2510 };
2511
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellEditor_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
2513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2514 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2515 if (arg2 == NULL) {
2516 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2517 }
2518 {
2519 PyThreadState* __tstate = wxPyBeginAllowThreads();
2520 (arg1)->HandleReturn(*arg2);
2521
2522 wxPyEndAllowThreads(__tstate);
2523 if (PyErr_Occurred()) SWIG_fail;
2524 }
2525 Py_INCREF(Py_None); resultobj = Py_None;
2526 return resultobj;
2527 fail:
2528 return NULL;
2529 }
2530
2531
2532 static PyObject *_wrap_GridCellEditor_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2533 PyObject *resultobj;
2534 wxGridCellEditor *arg1 = (wxGridCellEditor *) 0 ;
2535 PyObject * obj0 = 0 ;
2536 char *kwnames[] = {
2537 (char *) "self", NULL
2538 };
2539
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEditor_Destroy",kwnames,&obj0)) goto fail;
2541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2542 {
2543 PyThreadState* __tstate = wxPyBeginAllowThreads();
2544 (arg1)->Destroy();
2545
2546 wxPyEndAllowThreads(__tstate);
2547 if (PyErr_Occurred()) SWIG_fail;
2548 }
2549 Py_INCREF(Py_None); resultobj = Py_None;
2550 return resultobj;
2551 fail:
2552 return NULL;
2553 }
2554
2555
2556 static PyObject * GridCellEditor_swigregister(PyObject *self, PyObject *args) {
2557 PyObject *obj;
2558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2559 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEditor, obj);
2560 Py_INCREF(obj);
2561 return Py_BuildValue((char *)"");
2562 }
2563 static PyObject *_wrap_new_PyGridCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject *resultobj;
2565 wxPyGridCellEditor *result;
2566 char *kwnames[] = {
2567 NULL
2568 };
2569
2570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellEditor",kwnames)) goto fail;
2571 {
2572 PyThreadState* __tstate = wxPyBeginAllowThreads();
2573 result = (wxPyGridCellEditor *)new wxPyGridCellEditor();
2574
2575 wxPyEndAllowThreads(__tstate);
2576 if (PyErr_Occurred()) SWIG_fail;
2577 }
2578 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellEditor, 1);
2579 return resultobj;
2580 fail:
2581 return NULL;
2582 }
2583
2584
2585 static PyObject *_wrap_PyGridCellEditor__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2586 PyObject *resultobj;
2587 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2588 PyObject *arg2 = (PyObject *) 0 ;
2589 PyObject *arg3 = (PyObject *) 0 ;
2590 PyObject * obj0 = 0 ;
2591 PyObject * obj1 = 0 ;
2592 PyObject * obj2 = 0 ;
2593 char *kwnames[] = {
2594 (char *) "self",(char *) "self",(char *) "_class", NULL
2595 };
2596
2597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
2598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2599 arg2 = obj1;
2600 arg3 = obj2;
2601 {
2602 PyThreadState* __tstate = wxPyBeginAllowThreads();
2603 (arg1)->_setCallbackInfo(arg2,arg3);
2604
2605 wxPyEndAllowThreads(__tstate);
2606 if (PyErr_Occurred()) SWIG_fail;
2607 }
2608 Py_INCREF(Py_None); resultobj = Py_None;
2609 return resultobj;
2610 fail:
2611 return NULL;
2612 }
2613
2614
2615 static PyObject *_wrap_PyGridCellEditor_base_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2616 PyObject *resultobj;
2617 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2618 wxRect *arg2 = 0 ;
2619 wxRect temp2 ;
2620 PyObject * obj0 = 0 ;
2621 PyObject * obj1 = 0 ;
2622 char *kwnames[] = {
2623 (char *) "self",(char *) "rect", NULL
2624 };
2625
2626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetSize",kwnames,&obj0,&obj1)) goto fail;
2627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2628 {
2629 arg2 = &temp2;
2630 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2631 }
2632 {
2633 PyThreadState* __tstate = wxPyBeginAllowThreads();
2634 (arg1)->base_SetSize((wxRect const &)*arg2);
2635
2636 wxPyEndAllowThreads(__tstate);
2637 if (PyErr_Occurred()) SWIG_fail;
2638 }
2639 Py_INCREF(Py_None); resultobj = Py_None;
2640 return resultobj;
2641 fail:
2642 return NULL;
2643 }
2644
2645
2646 static PyObject *_wrap_PyGridCellEditor_base_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2647 PyObject *resultobj;
2648 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2649 bool arg2 ;
2650 wxGridCellAttr *arg3 = (wxGridCellAttr *) NULL ;
2651 PyObject * obj0 = 0 ;
2652 PyObject * obj1 = 0 ;
2653 PyObject * obj2 = 0 ;
2654 char *kwnames[] = {
2655 (char *) "self",(char *) "show",(char *) "attr", NULL
2656 };
2657
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyGridCellEditor_base_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
2659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2660 arg2 = PyInt_AsLong(obj1) ? true : false;
2661 if (PyErr_Occurred()) SWIG_fail;
2662 if (obj2) {
2663 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2664 }
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 (arg1)->base_Show(arg2,arg3);
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_PyGridCellEditor_base_PaintBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
2680 PyObject *resultobj;
2681 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2682 wxRect *arg2 = 0 ;
2683 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
2684 wxRect temp2 ;
2685 PyObject * obj0 = 0 ;
2686 PyObject * obj1 = 0 ;
2687 PyObject * obj2 = 0 ;
2688 char *kwnames[] = {
2689 (char *) "self",(char *) "rectCell",(char *) "attr", NULL
2690 };
2691
2692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellEditor_base_PaintBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
2693 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2694 {
2695 arg2 = &temp2;
2696 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2697 }
2698 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2699 {
2700 PyThreadState* __tstate = wxPyBeginAllowThreads();
2701 (arg1)->base_PaintBackground((wxRect const &)*arg2,arg3);
2702
2703 wxPyEndAllowThreads(__tstate);
2704 if (PyErr_Occurred()) SWIG_fail;
2705 }
2706 Py_INCREF(Py_None); resultobj = Py_None;
2707 return resultobj;
2708 fail:
2709 return NULL;
2710 }
2711
2712
2713 static PyObject *_wrap_PyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2714 PyObject *resultobj;
2715 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2716 wxKeyEvent *arg2 = 0 ;
2717 bool result;
2718 PyObject * obj0 = 0 ;
2719 PyObject * obj1 = 0 ;
2720 char *kwnames[] = {
2721 (char *) "self",(char *) "event", NULL
2722 };
2723
2724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_IsAcceptedKey",kwnames,&obj0,&obj1)) goto fail;
2725 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2726 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2727 if (arg2 == NULL) {
2728 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2729 }
2730 {
2731 PyThreadState* __tstate = wxPyBeginAllowThreads();
2732 result = (bool)(arg1)->base_IsAcceptedKey(*arg2);
2733
2734 wxPyEndAllowThreads(__tstate);
2735 if (PyErr_Occurred()) SWIG_fail;
2736 }
2737 resultobj = PyInt_FromLong((long)result);
2738 return resultobj;
2739 fail:
2740 return NULL;
2741 }
2742
2743
2744 static PyObject *_wrap_PyGridCellEditor_base_StartingKey(PyObject *self, PyObject *args, PyObject *kwargs) {
2745 PyObject *resultobj;
2746 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2747 wxKeyEvent *arg2 = 0 ;
2748 PyObject * obj0 = 0 ;
2749 PyObject * obj1 = 0 ;
2750 char *kwnames[] = {
2751 (char *) "self",(char *) "event", NULL
2752 };
2753
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_StartingKey",kwnames,&obj0,&obj1)) goto fail;
2755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2756 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2757 if (arg2 == NULL) {
2758 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2759 }
2760 {
2761 PyThreadState* __tstate = wxPyBeginAllowThreads();
2762 (arg1)->base_StartingKey(*arg2);
2763
2764 wxPyEndAllowThreads(__tstate);
2765 if (PyErr_Occurred()) SWIG_fail;
2766 }
2767 Py_INCREF(Py_None); resultobj = Py_None;
2768 return resultobj;
2769 fail:
2770 return NULL;
2771 }
2772
2773
2774 static PyObject *_wrap_PyGridCellEditor_base_StartingClick(PyObject *self, PyObject *args, PyObject *kwargs) {
2775 PyObject *resultobj;
2776 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2777 PyObject * obj0 = 0 ;
2778 char *kwnames[] = {
2779 (char *) "self", NULL
2780 };
2781
2782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_StartingClick",kwnames,&obj0)) goto fail;
2783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2784 {
2785 PyThreadState* __tstate = wxPyBeginAllowThreads();
2786 (arg1)->base_StartingClick();
2787
2788 wxPyEndAllowThreads(__tstate);
2789 if (PyErr_Occurred()) SWIG_fail;
2790 }
2791 Py_INCREF(Py_None); resultobj = Py_None;
2792 return resultobj;
2793 fail:
2794 return NULL;
2795 }
2796
2797
2798 static PyObject *_wrap_PyGridCellEditor_base_HandleReturn(PyObject *self, PyObject *args, PyObject *kwargs) {
2799 PyObject *resultobj;
2800 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2801 wxKeyEvent *arg2 = 0 ;
2802 PyObject * obj0 = 0 ;
2803 PyObject * obj1 = 0 ;
2804 char *kwnames[] = {
2805 (char *) "self",(char *) "event", NULL
2806 };
2807
2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_HandleReturn",kwnames,&obj0,&obj1)) goto fail;
2809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2810 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2811 if (arg2 == NULL) {
2812 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2813 }
2814 {
2815 PyThreadState* __tstate = wxPyBeginAllowThreads();
2816 (arg1)->base_HandleReturn(*arg2);
2817
2818 wxPyEndAllowThreads(__tstate);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 }
2821 Py_INCREF(Py_None); resultobj = Py_None;
2822 return resultobj;
2823 fail:
2824 return NULL;
2825 }
2826
2827
2828 static PyObject *_wrap_PyGridCellEditor_base_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2829 PyObject *resultobj;
2830 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2831 PyObject * obj0 = 0 ;
2832 char *kwnames[] = {
2833 (char *) "self", NULL
2834 };
2835
2836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridCellEditor_base_Destroy",kwnames,&obj0)) goto fail;
2837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2838 {
2839 PyThreadState* __tstate = wxPyBeginAllowThreads();
2840 (arg1)->base_Destroy();
2841
2842 wxPyEndAllowThreads(__tstate);
2843 if (PyErr_Occurred()) SWIG_fail;
2844 }
2845 Py_INCREF(Py_None); resultobj = Py_None;
2846 return resultobj;
2847 fail:
2848 return NULL;
2849 }
2850
2851
2852 static PyObject *_wrap_PyGridCellEditor_base_SetParameters(PyObject *self, PyObject *args, PyObject *kwargs) {
2853 PyObject *resultobj;
2854 wxPyGridCellEditor *arg1 = (wxPyGridCellEditor *) 0 ;
2855 wxString *arg2 = 0 ;
2856 bool temp2 = False ;
2857 PyObject * obj0 = 0 ;
2858 PyObject * obj1 = 0 ;
2859 char *kwnames[] = {
2860 (char *) "self",(char *) "params", NULL
2861 };
2862
2863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyGridCellEditor_base_SetParameters",kwnames,&obj0,&obj1)) goto fail;
2864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2865 {
2866 arg2 = wxString_in_helper(obj1);
2867 if (arg2 == NULL) SWIG_fail;
2868 temp2 = True;
2869 }
2870 {
2871 PyThreadState* __tstate = wxPyBeginAllowThreads();
2872 (arg1)->base_SetParameters((wxString const &)*arg2);
2873
2874 wxPyEndAllowThreads(__tstate);
2875 if (PyErr_Occurred()) SWIG_fail;
2876 }
2877 Py_INCREF(Py_None); resultobj = Py_None;
2878 {
2879 if (temp2)
2880 delete arg2;
2881 }
2882 return resultobj;
2883 fail:
2884 {
2885 if (temp2)
2886 delete arg2;
2887 }
2888 return NULL;
2889 }
2890
2891
2892 static PyObject * PyGridCellEditor_swigregister(PyObject *self, PyObject *args) {
2893 PyObject *obj;
2894 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2895 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellEditor, obj);
2896 Py_INCREF(obj);
2897 return Py_BuildValue((char *)"");
2898 }
2899 static PyObject *_wrap_new_GridCellTextEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2900 PyObject *resultobj;
2901 wxGridCellTextEditor *result;
2902 char *kwnames[] = {
2903 NULL
2904 };
2905
2906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellTextEditor",kwnames)) goto fail;
2907 {
2908 PyThreadState* __tstate = wxPyBeginAllowThreads();
2909 result = (wxGridCellTextEditor *)new wxGridCellTextEditor();
2910
2911 wxPyEndAllowThreads(__tstate);
2912 if (PyErr_Occurred()) SWIG_fail;
2913 }
2914 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellTextEditor, 1);
2915 return resultobj;
2916 fail:
2917 return NULL;
2918 }
2919
2920
2921 static PyObject *_wrap_GridCellTextEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2922 PyObject *resultobj;
2923 wxGridCellTextEditor *arg1 = (wxGridCellTextEditor *) 0 ;
2924 wxString result;
2925 PyObject * obj0 = 0 ;
2926 char *kwnames[] = {
2927 (char *) "self", NULL
2928 };
2929
2930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellTextEditor_GetValue",kwnames,&obj0)) goto fail;
2931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellTextEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2932 {
2933 PyThreadState* __tstate = wxPyBeginAllowThreads();
2934 result = (arg1)->GetValue();
2935
2936 wxPyEndAllowThreads(__tstate);
2937 if (PyErr_Occurred()) SWIG_fail;
2938 }
2939 {
2940 #if wxUSE_UNICODE
2941 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2942 #else
2943 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2944 #endif
2945 }
2946 return resultobj;
2947 fail:
2948 return NULL;
2949 }
2950
2951
2952 static PyObject * GridCellTextEditor_swigregister(PyObject *self, PyObject *args) {
2953 PyObject *obj;
2954 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2955 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellTextEditor, obj);
2956 Py_INCREF(obj);
2957 return Py_BuildValue((char *)"");
2958 }
2959 static PyObject *_wrap_new_GridCellNumberEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
2960 PyObject *resultobj;
2961 int arg1 = (int) -1 ;
2962 int arg2 = (int) -1 ;
2963 wxGridCellNumberEditor *result;
2964 char *kwnames[] = {
2965 (char *) "min",(char *) "max", NULL
2966 };
2967
2968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellNumberEditor",kwnames,&arg1,&arg2)) goto fail;
2969 {
2970 PyThreadState* __tstate = wxPyBeginAllowThreads();
2971 result = (wxGridCellNumberEditor *)new wxGridCellNumberEditor(arg1,arg2);
2972
2973 wxPyEndAllowThreads(__tstate);
2974 if (PyErr_Occurred()) SWIG_fail;
2975 }
2976 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellNumberEditor, 1);
2977 return resultobj;
2978 fail:
2979 return NULL;
2980 }
2981
2982
2983 static PyObject *_wrap_GridCellNumberEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
2984 PyObject *resultobj;
2985 wxGridCellNumberEditor *arg1 = (wxGridCellNumberEditor *) 0 ;
2986 wxString result;
2987 PyObject * obj0 = 0 ;
2988 char *kwnames[] = {
2989 (char *) "self", NULL
2990 };
2991
2992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellNumberEditor_GetValue",kwnames,&obj0)) goto fail;
2993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellNumberEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2994 {
2995 PyThreadState* __tstate = wxPyBeginAllowThreads();
2996 result = (arg1)->GetValue();
2997
2998 wxPyEndAllowThreads(__tstate);
2999 if (PyErr_Occurred()) SWIG_fail;
3000 }
3001 {
3002 #if wxUSE_UNICODE
3003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3004 #else
3005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3006 #endif
3007 }
3008 return resultobj;
3009 fail:
3010 return NULL;
3011 }
3012
3013
3014 static PyObject * GridCellNumberEditor_swigregister(PyObject *self, PyObject *args) {
3015 PyObject *obj;
3016 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3017 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellNumberEditor, obj);
3018 Py_INCREF(obj);
3019 return Py_BuildValue((char *)"");
3020 }
3021 static PyObject *_wrap_new_GridCellFloatEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3022 PyObject *resultobj;
3023 wxGridCellFloatEditor *result;
3024 char *kwnames[] = {
3025 NULL
3026 };
3027
3028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellFloatEditor",kwnames)) goto fail;
3029 {
3030 PyThreadState* __tstate = wxPyBeginAllowThreads();
3031 result = (wxGridCellFloatEditor *)new wxGridCellFloatEditor();
3032
3033 wxPyEndAllowThreads(__tstate);
3034 if (PyErr_Occurred()) SWIG_fail;
3035 }
3036 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellFloatEditor, 1);
3037 return resultobj;
3038 fail:
3039 return NULL;
3040 }
3041
3042
3043 static PyObject *_wrap_GridCellFloatEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3044 PyObject *resultobj;
3045 wxGridCellFloatEditor *arg1 = (wxGridCellFloatEditor *) 0 ;
3046 wxString result;
3047 PyObject * obj0 = 0 ;
3048 char *kwnames[] = {
3049 (char *) "self", NULL
3050 };
3051
3052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellFloatEditor_GetValue",kwnames,&obj0)) goto fail;
3053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellFloatEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3054 {
3055 PyThreadState* __tstate = wxPyBeginAllowThreads();
3056 result = (arg1)->GetValue();
3057
3058 wxPyEndAllowThreads(__tstate);
3059 if (PyErr_Occurred()) SWIG_fail;
3060 }
3061 {
3062 #if wxUSE_UNICODE
3063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3064 #else
3065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3066 #endif
3067 }
3068 return resultobj;
3069 fail:
3070 return NULL;
3071 }
3072
3073
3074 static PyObject * GridCellFloatEditor_swigregister(PyObject *self, PyObject *args) {
3075 PyObject *obj;
3076 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3077 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellFloatEditor, obj);
3078 Py_INCREF(obj);
3079 return Py_BuildValue((char *)"");
3080 }
3081 static PyObject *_wrap_new_GridCellBoolEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3082 PyObject *resultobj;
3083 wxGridCellBoolEditor *result;
3084 char *kwnames[] = {
3085 NULL
3086 };
3087
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellBoolEditor",kwnames)) goto fail;
3089 {
3090 PyThreadState* __tstate = wxPyBeginAllowThreads();
3091 result = (wxGridCellBoolEditor *)new wxGridCellBoolEditor();
3092
3093 wxPyEndAllowThreads(__tstate);
3094 if (PyErr_Occurred()) SWIG_fail;
3095 }
3096 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellBoolEditor, 1);
3097 return resultobj;
3098 fail:
3099 return NULL;
3100 }
3101
3102
3103 static PyObject *_wrap_GridCellBoolEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3104 PyObject *resultobj;
3105 wxGridCellBoolEditor *arg1 = (wxGridCellBoolEditor *) 0 ;
3106 wxString result;
3107 PyObject * obj0 = 0 ;
3108 char *kwnames[] = {
3109 (char *) "self", NULL
3110 };
3111
3112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellBoolEditor_GetValue",kwnames,&obj0)) goto fail;
3113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellBoolEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3114 {
3115 PyThreadState* __tstate = wxPyBeginAllowThreads();
3116 result = (arg1)->GetValue();
3117
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
3121 {
3122 #if wxUSE_UNICODE
3123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3124 #else
3125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3126 #endif
3127 }
3128 return resultobj;
3129 fail:
3130 return NULL;
3131 }
3132
3133
3134 static PyObject * GridCellBoolEditor_swigregister(PyObject *self, PyObject *args) {
3135 PyObject *obj;
3136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3137 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellBoolEditor, obj);
3138 Py_INCREF(obj);
3139 return Py_BuildValue((char *)"");
3140 }
3141 static PyObject *_wrap_new_GridCellChoiceEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3142 PyObject *resultobj;
3143 int arg1 = (int) 0 ;
3144 wxString *arg2 = (wxString *) NULL ;
3145 bool arg3 = (bool) False ;
3146 wxGridCellChoiceEditor *result;
3147 PyObject * obj0 = 0 ;
3148 PyObject * obj1 = 0 ;
3149 char *kwnames[] = {
3150 (char *) "choices",(char *) "allowOthers", NULL
3151 };
3152
3153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridCellChoiceEditor",kwnames,&obj0,&obj1)) goto fail;
3154 if (obj0) {
3155 {
3156 arg1 = PyList_Size(obj0);
3157 arg2 = wxString_LIST_helper(obj0);
3158 if (arg2 == NULL) SWIG_fail;
3159 }
3160 }
3161 if (obj1) {
3162 arg3 = PyInt_AsLong(obj1) ? true : false;
3163 if (PyErr_Occurred()) SWIG_fail;
3164 }
3165 {
3166 PyThreadState* __tstate = wxPyBeginAllowThreads();
3167 result = (wxGridCellChoiceEditor *)new wxGridCellChoiceEditor(arg1,(wxString const *)arg2,arg3);
3168
3169 wxPyEndAllowThreads(__tstate);
3170 if (PyErr_Occurred()) SWIG_fail;
3171 }
3172 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellChoiceEditor, 1);
3173 {
3174 if (arg2) delete [] arg2;
3175 }
3176 return resultobj;
3177 fail:
3178 {
3179 if (arg2) delete [] arg2;
3180 }
3181 return NULL;
3182 }
3183
3184
3185 static PyObject *_wrap_GridCellChoiceEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3186 PyObject *resultobj;
3187 wxGridCellChoiceEditor *arg1 = (wxGridCellChoiceEditor *) 0 ;
3188 wxString result;
3189 PyObject * obj0 = 0 ;
3190 char *kwnames[] = {
3191 (char *) "self", NULL
3192 };
3193
3194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellChoiceEditor_GetValue",kwnames,&obj0)) goto fail;
3195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellChoiceEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3196 {
3197 PyThreadState* __tstate = wxPyBeginAllowThreads();
3198 result = (arg1)->GetValue();
3199
3200 wxPyEndAllowThreads(__tstate);
3201 if (PyErr_Occurred()) SWIG_fail;
3202 }
3203 {
3204 #if wxUSE_UNICODE
3205 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3206 #else
3207 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3208 #endif
3209 }
3210 return resultobj;
3211 fail:
3212 return NULL;
3213 }
3214
3215
3216 static PyObject * GridCellChoiceEditor_swigregister(PyObject *self, PyObject *args) {
3217 PyObject *obj;
3218 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3219 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellChoiceEditor, obj);
3220 Py_INCREF(obj);
3221 return Py_BuildValue((char *)"");
3222 }
3223 static PyObject *_wrap_new_GridCellEnumEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3224 PyObject *resultobj;
3225 wxString const &arg1_defvalue = wxPyEmptyString ;
3226 wxString *arg1 = (wxString *) &arg1_defvalue ;
3227 wxGridCellEnumEditor *result;
3228 bool temp1 = False ;
3229 PyObject * obj0 = 0 ;
3230 char *kwnames[] = {
3231 (char *) "choices", NULL
3232 };
3233
3234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellEnumEditor",kwnames,&obj0)) goto fail;
3235 if (obj0) {
3236 {
3237 arg1 = wxString_in_helper(obj0);
3238 if (arg1 == NULL) SWIG_fail;
3239 temp1 = True;
3240 }
3241 }
3242 {
3243 PyThreadState* __tstate = wxPyBeginAllowThreads();
3244 result = (wxGridCellEnumEditor *)new wxGridCellEnumEditor((wxString const &)*arg1);
3245
3246 wxPyEndAllowThreads(__tstate);
3247 if (PyErr_Occurred()) SWIG_fail;
3248 }
3249 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellEnumEditor, 1);
3250 {
3251 if (temp1)
3252 delete arg1;
3253 }
3254 return resultobj;
3255 fail:
3256 {
3257 if (temp1)
3258 delete arg1;
3259 }
3260 return NULL;
3261 }
3262
3263
3264 static PyObject *_wrap_GridCellEnumEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3265 PyObject *resultobj;
3266 wxGridCellEnumEditor *arg1 = (wxGridCellEnumEditor *) 0 ;
3267 wxString result;
3268 PyObject * obj0 = 0 ;
3269 char *kwnames[] = {
3270 (char *) "self", NULL
3271 };
3272
3273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellEnumEditor_GetValue",kwnames,&obj0)) goto fail;
3274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellEnumEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3275 {
3276 PyThreadState* __tstate = wxPyBeginAllowThreads();
3277 result = (arg1)->GetValue();
3278
3279 wxPyEndAllowThreads(__tstate);
3280 if (PyErr_Occurred()) SWIG_fail;
3281 }
3282 {
3283 #if wxUSE_UNICODE
3284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3285 #else
3286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3287 #endif
3288 }
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 static PyObject * GridCellEnumEditor_swigregister(PyObject *self, PyObject *args) {
3296 PyObject *obj;
3297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3298 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellEnumEditor, obj);
3299 Py_INCREF(obj);
3300 return Py_BuildValue((char *)"");
3301 }
3302 static PyObject *_wrap_new_GridCellAutoWrapStringEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3303 PyObject *resultobj;
3304 wxGridCellAutoWrapStringEditor *result;
3305 char *kwnames[] = {
3306 NULL
3307 };
3308
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAutoWrapStringEditor",kwnames)) goto fail;
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 result = (wxGridCellAutoWrapStringEditor *)new wxGridCellAutoWrapStringEditor();
3313
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 }
3317 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellAutoWrapStringEditor, 1);
3318 return resultobj;
3319 fail:
3320 return NULL;
3321 }
3322
3323
3324 static PyObject *_wrap_GridCellAutoWrapStringEditor_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
3325 PyObject *resultobj;
3326 wxGridCellAutoWrapStringEditor *arg1 = (wxGridCellAutoWrapStringEditor *) 0 ;
3327 wxString result;
3328 PyObject * obj0 = 0 ;
3329 char *kwnames[] = {
3330 (char *) "self", NULL
3331 };
3332
3333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAutoWrapStringEditor_GetValue",kwnames,&obj0)) goto fail;
3334 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAutoWrapStringEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3335 {
3336 PyThreadState* __tstate = wxPyBeginAllowThreads();
3337 result = (arg1)->GetValue();
3338
3339 wxPyEndAllowThreads(__tstate);
3340 if (PyErr_Occurred()) SWIG_fail;
3341 }
3342 {
3343 #if wxUSE_UNICODE
3344 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3345 #else
3346 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3347 #endif
3348 }
3349 return resultobj;
3350 fail:
3351 return NULL;
3352 }
3353
3354
3355 static PyObject * GridCellAutoWrapStringEditor_swigregister(PyObject *self, PyObject *args) {
3356 PyObject *obj;
3357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3358 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAutoWrapStringEditor, obj);
3359 Py_INCREF(obj);
3360 return Py_BuildValue((char *)"");
3361 }
3362 static PyObject *_wrap_GridCellAttr__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3363 PyObject *resultobj;
3364 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3365 PyObject *arg2 = (PyObject *) 0 ;
3366 PyObject * obj0 = 0 ;
3367 PyObject * obj1 = 0 ;
3368 char *kwnames[] = {
3369 (char *) "self",(char *) "_self", NULL
3370 };
3371
3372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
3373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3374 arg2 = obj1;
3375 {
3376 PyThreadState* __tstate = wxPyBeginAllowThreads();
3377 wxGridCellAttr__setOORInfo(arg1,arg2);
3378
3379 wxPyEndAllowThreads(__tstate);
3380 if (PyErr_Occurred()) SWIG_fail;
3381 }
3382 Py_INCREF(Py_None); resultobj = Py_None;
3383 return resultobj;
3384 fail:
3385 return NULL;
3386 }
3387
3388
3389 static PyObject *_wrap_new_GridCellAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
3390 PyObject *resultobj;
3391 wxGridCellAttr *arg1 = (wxGridCellAttr *) NULL ;
3392 wxGridCellAttr *result;
3393 PyObject * obj0 = 0 ;
3394 char *kwnames[] = {
3395 (char *) "attrDefault", NULL
3396 };
3397
3398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GridCellAttr",kwnames,&obj0)) goto fail;
3399 if (obj0) {
3400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3401 }
3402 {
3403 PyThreadState* __tstate = wxPyBeginAllowThreads();
3404 result = (wxGridCellAttr *)new wxGridCellAttr(arg1);
3405
3406 wxPyEndAllowThreads(__tstate);
3407 if (PyErr_Occurred()) SWIG_fail;
3408 }
3409 {
3410 resultobj = wxPyMake_wxGridCellAttr(result);
3411 }
3412 return resultobj;
3413 fail:
3414 return NULL;
3415 }
3416
3417
3418 static PyObject *_wrap_GridCellAttr_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
3419 PyObject *resultobj;
3420 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3421 wxGridCellAttr *result;
3422 PyObject * obj0 = 0 ;
3423 char *kwnames[] = {
3424 (char *) "self", NULL
3425 };
3426
3427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_Clone",kwnames,&obj0)) goto fail;
3428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 result = (wxGridCellAttr *)((wxGridCellAttr const *)arg1)->Clone();
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 {
3437 resultobj = wxPyMake_wxGridCellAttr(result);
3438 }
3439 return resultobj;
3440 fail:
3441 return NULL;
3442 }
3443
3444
3445 static PyObject *_wrap_GridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) {
3446 PyObject *resultobj;
3447 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3448 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
3449 PyObject * obj0 = 0 ;
3450 PyObject * obj1 = 0 ;
3451 char *kwnames[] = {
3452 (char *) "self",(char *) "mergefrom", NULL
3453 };
3454
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_MergeWith",kwnames,&obj0,&obj1)) goto fail;
3456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3457 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3458 {
3459 PyThreadState* __tstate = wxPyBeginAllowThreads();
3460 (arg1)->MergeWith(arg2);
3461
3462 wxPyEndAllowThreads(__tstate);
3463 if (PyErr_Occurred()) SWIG_fail;
3464 }
3465 Py_INCREF(Py_None); resultobj = Py_None;
3466 return resultobj;
3467 fail:
3468 return NULL;
3469 }
3470
3471
3472 static PyObject *_wrap_GridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3473 PyObject *resultobj;
3474 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3475 PyObject * obj0 = 0 ;
3476 char *kwnames[] = {
3477 (char *) "self", NULL
3478 };
3479
3480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IncRef",kwnames,&obj0)) goto fail;
3481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3482 {
3483 PyThreadState* __tstate = wxPyBeginAllowThreads();
3484 (arg1)->IncRef();
3485
3486 wxPyEndAllowThreads(__tstate);
3487 if (PyErr_Occurred()) SWIG_fail;
3488 }
3489 Py_INCREF(Py_None); resultobj = Py_None;
3490 return resultobj;
3491 fail:
3492 return NULL;
3493 }
3494
3495
3496 static PyObject *_wrap_GridCellAttr_DecRef(PyObject *self, PyObject *args, PyObject *kwargs) {
3497 PyObject *resultobj;
3498 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3499 PyObject * obj0 = 0 ;
3500 char *kwnames[] = {
3501 (char *) "self", NULL
3502 };
3503
3504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_DecRef",kwnames,&obj0)) goto fail;
3505 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3506 {
3507 PyThreadState* __tstate = wxPyBeginAllowThreads();
3508 (arg1)->DecRef();
3509
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 Py_INCREF(Py_None); resultobj = Py_None;
3514 return resultobj;
3515 fail:
3516 return NULL;
3517 }
3518
3519
3520 static PyObject *_wrap_GridCellAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3521 PyObject *resultobj;
3522 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3523 wxColour *arg2 = 0 ;
3524 wxColour temp2 ;
3525 PyObject * obj0 = 0 ;
3526 PyObject * obj1 = 0 ;
3527 char *kwnames[] = {
3528 (char *) "self",(char *) "colText", NULL
3529 };
3530
3531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
3532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3533 {
3534 arg2 = &temp2;
3535 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3536 }
3537 {
3538 PyThreadState* __tstate = wxPyBeginAllowThreads();
3539 (arg1)->SetTextColour((wxColour const &)*arg2);
3540
3541 wxPyEndAllowThreads(__tstate);
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 Py_INCREF(Py_None); resultobj = Py_None;
3545 return resultobj;
3546 fail:
3547 return NULL;
3548 }
3549
3550
3551 static PyObject *_wrap_GridCellAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3552 PyObject *resultobj;
3553 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3554 wxColour *arg2 = 0 ;
3555 wxColour temp2 ;
3556 PyObject * obj0 = 0 ;
3557 PyObject * obj1 = 0 ;
3558 char *kwnames[] = {
3559 (char *) "self",(char *) "colBack", NULL
3560 };
3561
3562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
3563 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3564 {
3565 arg2 = &temp2;
3566 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3567 }
3568 {
3569 PyThreadState* __tstate = wxPyBeginAllowThreads();
3570 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
3571
3572 wxPyEndAllowThreads(__tstate);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 Py_INCREF(Py_None); resultobj = Py_None;
3576 return resultobj;
3577 fail:
3578 return NULL;
3579 }
3580
3581
3582 static PyObject *_wrap_GridCellAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3583 PyObject *resultobj;
3584 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3585 wxFont *arg2 = 0 ;
3586 PyObject * obj0 = 0 ;
3587 PyObject * obj1 = 0 ;
3588 char *kwnames[] = {
3589 (char *) "self",(char *) "font", NULL
3590 };
3591
3592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
3593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3594 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3595 if (arg2 == NULL) {
3596 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3597 }
3598 {
3599 PyThreadState* __tstate = wxPyBeginAllowThreads();
3600 (arg1)->SetFont((wxFont const &)*arg2);
3601
3602 wxPyEndAllowThreads(__tstate);
3603 if (PyErr_Occurred()) SWIG_fail;
3604 }
3605 Py_INCREF(Py_None); resultobj = Py_None;
3606 return resultobj;
3607 fail:
3608 return NULL;
3609 }
3610
3611
3612 static PyObject *_wrap_GridCellAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
3613 PyObject *resultobj;
3614 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3615 int arg2 ;
3616 int arg3 ;
3617 PyObject * obj0 = 0 ;
3618 char *kwnames[] = {
3619 (char *) "self",(char *) "hAlign",(char *) "vAlign", NULL
3620 };
3621
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellAttr_SetAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
3623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3624 {
3625 PyThreadState* __tstate = wxPyBeginAllowThreads();
3626 (arg1)->SetAlignment(arg2,arg3);
3627
3628 wxPyEndAllowThreads(__tstate);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 }
3631 Py_INCREF(Py_None); resultobj = Py_None;
3632 return resultobj;
3633 fail:
3634 return NULL;
3635 }
3636
3637
3638 static PyObject *_wrap_GridCellAttr_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3639 PyObject *resultobj;
3640 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3641 int arg2 ;
3642 int arg3 ;
3643 PyObject * obj0 = 0 ;
3644 char *kwnames[] = {
3645 (char *) "self",(char *) "num_rows",(char *) "num_cols", NULL
3646 };
3647
3648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellAttr_SetSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
3649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3650 {
3651 PyThreadState* __tstate = wxPyBeginAllowThreads();
3652 (arg1)->SetSize(arg2,arg3);
3653
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 Py_INCREF(Py_None); resultobj = Py_None;
3658 return resultobj;
3659 fail:
3660 return NULL;
3661 }
3662
3663
3664 static PyObject *_wrap_GridCellAttr_SetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
3665 PyObject *resultobj;
3666 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3667 bool arg2 = (bool) True ;
3668 PyObject * obj0 = 0 ;
3669 PyObject * obj1 = 0 ;
3670 char *kwnames[] = {
3671 (char *) "self",(char *) "allow", NULL
3672 };
3673
3674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetOverflow",kwnames,&obj0,&obj1)) goto fail;
3675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3676 if (obj1) {
3677 arg2 = PyInt_AsLong(obj1) ? true : false;
3678 if (PyErr_Occurred()) SWIG_fail;
3679 }
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 (arg1)->SetOverflow(arg2);
3683
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 Py_INCREF(Py_None); resultobj = Py_None;
3688 return resultobj;
3689 fail:
3690 return NULL;
3691 }
3692
3693
3694 static PyObject *_wrap_GridCellAttr_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
3695 PyObject *resultobj;
3696 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3697 bool arg2 = (bool) True ;
3698 PyObject * obj0 = 0 ;
3699 PyObject * obj1 = 0 ;
3700 char *kwnames[] = {
3701 (char *) "self",(char *) "isReadOnly", NULL
3702 };
3703
3704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridCellAttr_SetReadOnly",kwnames,&obj0,&obj1)) goto fail;
3705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3706 if (obj1) {
3707 arg2 = PyInt_AsLong(obj1) ? true : false;
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 {
3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
3712 (arg1)->SetReadOnly(arg2);
3713
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 Py_INCREF(Py_None); resultobj = Py_None;
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 static PyObject *_wrap_GridCellAttr_SetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj;
3726 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3727 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
3728 PyObject * obj0 = 0 ;
3729 PyObject * obj1 = 0 ;
3730 char *kwnames[] = {
3731 (char *) "self",(char *) "renderer", NULL
3732 };
3733
3734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetRenderer",kwnames,&obj0,&obj1)) goto fail;
3735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3736 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3737 {
3738 PyThreadState* __tstate = wxPyBeginAllowThreads();
3739 (arg1)->SetRenderer(arg2);
3740
3741 wxPyEndAllowThreads(__tstate);
3742 if (PyErr_Occurred()) SWIG_fail;
3743 }
3744 Py_INCREF(Py_None); resultobj = Py_None;
3745 return resultobj;
3746 fail:
3747 return NULL;
3748 }
3749
3750
3751 static PyObject *_wrap_GridCellAttr_SetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3752 PyObject *resultobj;
3753 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3754 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
3755 PyObject * obj0 = 0 ;
3756 PyObject * obj1 = 0 ;
3757 char *kwnames[] = {
3758 (char *) "self",(char *) "editor", NULL
3759 };
3760
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetEditor",kwnames,&obj0,&obj1)) goto fail;
3762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3763 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3764 {
3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
3766 (arg1)->SetEditor(arg2);
3767
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
3771 Py_INCREF(Py_None); resultobj = Py_None;
3772 return resultobj;
3773 fail:
3774 return NULL;
3775 }
3776
3777
3778 static PyObject *_wrap_GridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj;
3780 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3781 int arg2 ;
3782 PyObject * obj0 = 0 ;
3783 char *kwnames[] = {
3784 (char *) "self",(char *) "kind", NULL
3785 };
3786
3787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellAttr_SetKind",kwnames,&obj0,&arg2)) goto fail;
3788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3789 {
3790 PyThreadState* __tstate = wxPyBeginAllowThreads();
3791 (arg1)->SetKind((wxGridCellAttr::wxAttrKind )arg2);
3792
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 Py_INCREF(Py_None); resultobj = Py_None;
3797 return resultobj;
3798 fail:
3799 return NULL;
3800 }
3801
3802
3803 static PyObject *_wrap_GridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3804 PyObject *resultobj;
3805 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3806 bool result;
3807 PyObject * obj0 = 0 ;
3808 char *kwnames[] = {
3809 (char *) "self", NULL
3810 };
3811
3812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasTextColour",kwnames,&obj0)) goto fail;
3813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3814 {
3815 PyThreadState* __tstate = wxPyBeginAllowThreads();
3816 result = (bool)((wxGridCellAttr const *)arg1)->HasTextColour();
3817
3818 wxPyEndAllowThreads(__tstate);
3819 if (PyErr_Occurred()) SWIG_fail;
3820 }
3821 resultobj = PyInt_FromLong((long)result);
3822 return resultobj;
3823 fail:
3824 return NULL;
3825 }
3826
3827
3828 static PyObject *_wrap_GridCellAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3829 PyObject *resultobj;
3830 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3831 bool result;
3832 PyObject * obj0 = 0 ;
3833 char *kwnames[] = {
3834 (char *) "self", NULL
3835 };
3836
3837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
3838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3839 {
3840 PyThreadState* __tstate = wxPyBeginAllowThreads();
3841 result = (bool)((wxGridCellAttr const *)arg1)->HasBackgroundColour();
3842
3843 wxPyEndAllowThreads(__tstate);
3844 if (PyErr_Occurred()) SWIG_fail;
3845 }
3846 resultobj = PyInt_FromLong((long)result);
3847 return resultobj;
3848 fail:
3849 return NULL;
3850 }
3851
3852
3853 static PyObject *_wrap_GridCellAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3854 PyObject *resultobj;
3855 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3856 bool result;
3857 PyObject * obj0 = 0 ;
3858 char *kwnames[] = {
3859 (char *) "self", NULL
3860 };
3861
3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasFont",kwnames,&obj0)) goto fail;
3863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3864 {
3865 PyThreadState* __tstate = wxPyBeginAllowThreads();
3866 result = (bool)((wxGridCellAttr const *)arg1)->HasFont();
3867
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 resultobj = PyInt_FromLong((long)result);
3872 return resultobj;
3873 fail:
3874 return NULL;
3875 }
3876
3877
3878 static PyObject *_wrap_GridCellAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
3879 PyObject *resultobj;
3880 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3881 bool result;
3882 PyObject * obj0 = 0 ;
3883 char *kwnames[] = {
3884 (char *) "self", NULL
3885 };
3886
3887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasAlignment",kwnames,&obj0)) goto fail;
3888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3889 {
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 result = (bool)((wxGridCellAttr const *)arg1)->HasAlignment();
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 resultobj = PyInt_FromLong((long)result);
3897 return resultobj;
3898 fail:
3899 return NULL;
3900 }
3901
3902
3903 static PyObject *_wrap_GridCellAttr_HasRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
3904 PyObject *resultobj;
3905 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3906 bool result;
3907 PyObject * obj0 = 0 ;
3908 char *kwnames[] = {
3909 (char *) "self", NULL
3910 };
3911
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasRenderer",kwnames,&obj0)) goto fail;
3913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (bool)((wxGridCellAttr const *)arg1)->HasRenderer();
3917
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
3921 resultobj = PyInt_FromLong((long)result);
3922 return resultobj;
3923 fail:
3924 return NULL;
3925 }
3926
3927
3928 static PyObject *_wrap_GridCellAttr_HasEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
3929 PyObject *resultobj;
3930 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3931 bool result;
3932 PyObject * obj0 = 0 ;
3933 char *kwnames[] = {
3934 (char *) "self", NULL
3935 };
3936
3937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasEditor",kwnames,&obj0)) goto fail;
3938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3939 {
3940 PyThreadState* __tstate = wxPyBeginAllowThreads();
3941 result = (bool)((wxGridCellAttr const *)arg1)->HasEditor();
3942
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 resultobj = PyInt_FromLong((long)result);
3947 return resultobj;
3948 fail:
3949 return NULL;
3950 }
3951
3952
3953 static PyObject *_wrap_GridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) {
3954 PyObject *resultobj;
3955 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3956 bool result;
3957 PyObject * obj0 = 0 ;
3958 char *kwnames[] = {
3959 (char *) "self", NULL
3960 };
3961
3962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasReadWriteMode",kwnames,&obj0)) goto fail;
3963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3964 {
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 result = (bool)((wxGridCellAttr const *)arg1)->HasReadWriteMode();
3967
3968 wxPyEndAllowThreads(__tstate);
3969 if (PyErr_Occurred()) SWIG_fail;
3970 }
3971 resultobj = PyInt_FromLong((long)result);
3972 return resultobj;
3973 fail:
3974 return NULL;
3975 }
3976
3977
3978 static PyObject *_wrap_GridCellAttr_HasOverflowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
3979 PyObject *resultobj;
3980 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
3981 bool result;
3982 PyObject * obj0 = 0 ;
3983 char *kwnames[] = {
3984 (char *) "self", NULL
3985 };
3986
3987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_HasOverflowMode",kwnames,&obj0)) goto fail;
3988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3989 {
3990 PyThreadState* __tstate = wxPyBeginAllowThreads();
3991 result = (bool)((wxGridCellAttr const *)arg1)->HasOverflowMode();
3992
3993 wxPyEndAllowThreads(__tstate);
3994 if (PyErr_Occurred()) SWIG_fail;
3995 }
3996 resultobj = PyInt_FromLong((long)result);
3997 return resultobj;
3998 fail:
3999 return NULL;
4000 }
4001
4002
4003 static PyObject *_wrap_GridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4004 PyObject *resultobj;
4005 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4006 wxColour result;
4007 PyObject * obj0 = 0 ;
4008 char *kwnames[] = {
4009 (char *) "self", NULL
4010 };
4011
4012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetTextColour",kwnames,&obj0)) goto fail;
4013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4014 {
4015 PyThreadState* __tstate = wxPyBeginAllowThreads();
4016 result = ((wxGridCellAttr const *)arg1)->GetTextColour();
4017
4018 wxPyEndAllowThreads(__tstate);
4019 if (PyErr_Occurred()) SWIG_fail;
4020 }
4021 {
4022 wxColour * resultptr;
4023 resultptr = new wxColour((wxColour &) result);
4024 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
4025 }
4026 return resultobj;
4027 fail:
4028 return NULL;
4029 }
4030
4031
4032 static PyObject *_wrap_GridCellAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4033 PyObject *resultobj;
4034 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4035 wxColour result;
4036 PyObject * obj0 = 0 ;
4037 char *kwnames[] = {
4038 (char *) "self", NULL
4039 };
4040
4041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
4042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4043 {
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 result = ((wxGridCellAttr const *)arg1)->GetBackgroundColour();
4046
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 {
4051 wxColour * resultptr;
4052 resultptr = new wxColour((wxColour &) result);
4053 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
4054 }
4055 return resultobj;
4056 fail:
4057 return NULL;
4058 }
4059
4060
4061 static PyObject *_wrap_GridCellAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4062 PyObject *resultobj;
4063 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4064 wxFont result;
4065 PyObject * obj0 = 0 ;
4066 char *kwnames[] = {
4067 (char *) "self", NULL
4068 };
4069
4070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetFont",kwnames,&obj0)) goto fail;
4071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = ((wxGridCellAttr const *)arg1)->GetFont();
4075
4076 wxPyEndAllowThreads(__tstate);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 {
4080 wxFont * resultptr;
4081 resultptr = new wxFont((wxFont &) result);
4082 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
4083 }
4084 return resultobj;
4085 fail:
4086 return NULL;
4087 }
4088
4089
4090 static PyObject *_wrap_GridCellAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
4091 PyObject *resultobj;
4092 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4093 int *arg2 = (int *) 0 ;
4094 int *arg3 = (int *) 0 ;
4095 int temp2 ;
4096 int temp3 ;
4097 PyObject * obj0 = 0 ;
4098 char *kwnames[] = {
4099 (char *) "self", NULL
4100 };
4101
4102 arg2 = &temp2;
4103 arg3 = &temp3;
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetAlignment",kwnames,&obj0)) goto fail;
4105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 ((wxGridCellAttr const *)arg1)->GetAlignment(arg2,arg3);
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 Py_INCREF(Py_None); resultobj = Py_None;
4114 {
4115 PyObject *o = PyInt_FromLong((long) (*arg2));
4116 resultobj = t_output_helper(resultobj,o);
4117 }
4118 {
4119 PyObject *o = PyInt_FromLong((long) (*arg3));
4120 resultobj = t_output_helper(resultobj,o);
4121 }
4122 return resultobj;
4123 fail:
4124 return NULL;
4125 }
4126
4127
4128 static PyObject *_wrap_GridCellAttr_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4129 PyObject *resultobj;
4130 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4131 int *arg2 = (int *) 0 ;
4132 int *arg3 = (int *) 0 ;
4133 int temp2 ;
4134 int temp3 ;
4135 PyObject * obj0 = 0 ;
4136 char *kwnames[] = {
4137 (char *) "self", NULL
4138 };
4139
4140 arg2 = &temp2;
4141 arg3 = &temp3;
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetSize",kwnames,&obj0)) goto fail;
4143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 ((wxGridCellAttr const *)arg1)->GetSize(arg2,arg3);
4147
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 Py_INCREF(Py_None); resultobj = Py_None;
4152 {
4153 PyObject *o = PyInt_FromLong((long) (*arg2));
4154 resultobj = t_output_helper(resultobj,o);
4155 }
4156 {
4157 PyObject *o = PyInt_FromLong((long) (*arg3));
4158 resultobj = t_output_helper(resultobj,o);
4159 }
4160 return resultobj;
4161 fail:
4162 return NULL;
4163 }
4164
4165
4166 static PyObject *_wrap_GridCellAttr_GetOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
4167 PyObject *resultobj;
4168 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4169 bool result;
4170 PyObject * obj0 = 0 ;
4171 char *kwnames[] = {
4172 (char *) "self", NULL
4173 };
4174
4175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_GetOverflow",kwnames,&obj0)) goto fail;
4176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4177 {
4178 PyThreadState* __tstate = wxPyBeginAllowThreads();
4179 result = (bool)((wxGridCellAttr const *)arg1)->GetOverflow();
4180
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 resultobj = PyInt_FromLong((long)result);
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 static PyObject *_wrap_GridCellAttr_GetRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj;
4193 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4194 wxGrid *arg2 = (wxGrid *) 0 ;
4195 int arg3 ;
4196 int arg4 ;
4197 wxGridCellRenderer *result;
4198 PyObject * obj0 = 0 ;
4199 PyObject * obj1 = 0 ;
4200 char *kwnames[] = {
4201 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4202 };
4203
4204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttr_GetRenderer",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4206 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 result = (wxGridCellRenderer *)((wxGridCellAttr const *)arg1)->GetRenderer(arg2,arg3,arg4);
4210
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 {
4215 resultobj = wxPyMake_wxGridCellRenderer(result);
4216 }
4217 return resultobj;
4218 fail:
4219 return NULL;
4220 }
4221
4222
4223 static PyObject *_wrap_GridCellAttr_GetEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
4224 PyObject *resultobj;
4225 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4226 wxGrid *arg2 = (wxGrid *) 0 ;
4227 int arg3 ;
4228 int arg4 ;
4229 wxGridCellEditor *result;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char *kwnames[] = {
4233 (char *) "self",(char *) "grid",(char *) "row",(char *) "col", NULL
4234 };
4235
4236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttr_GetEditor",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4238 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 result = (wxGridCellEditor *)((wxGridCellAttr const *)arg1)->GetEditor(arg2,arg3,arg4);
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 {
4247 resultobj = wxPyMake_wxGridCellEditor(result);
4248 }
4249 return resultobj;
4250 fail:
4251 return NULL;
4252 }
4253
4254
4255 static PyObject *_wrap_GridCellAttr_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
4256 PyObject *resultobj;
4257 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4258 bool result;
4259 PyObject * obj0 = 0 ;
4260 char *kwnames[] = {
4261 (char *) "self", NULL
4262 };
4263
4264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellAttr_IsReadOnly",kwnames,&obj0)) goto fail;
4265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4266 {
4267 PyThreadState* __tstate = wxPyBeginAllowThreads();
4268 result = (bool)((wxGridCellAttr const *)arg1)->IsReadOnly();
4269
4270 wxPyEndAllowThreads(__tstate);
4271 if (PyErr_Occurred()) SWIG_fail;
4272 }
4273 resultobj = PyInt_FromLong((long)result);
4274 return resultobj;
4275 fail:
4276 return NULL;
4277 }
4278
4279
4280 static PyObject *_wrap_GridCellAttr_SetDefAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4281 PyObject *resultobj;
4282 wxGridCellAttr *arg1 = (wxGridCellAttr *) 0 ;
4283 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4284 PyObject * obj0 = 0 ;
4285 PyObject * obj1 = 0 ;
4286 char *kwnames[] = {
4287 (char *) "self",(char *) "defAttr", NULL
4288 };
4289
4290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttr_SetDefAttr",kwnames,&obj0,&obj1)) goto fail;
4291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4292 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4293 {
4294 PyThreadState* __tstate = wxPyBeginAllowThreads();
4295 (arg1)->SetDefAttr(arg2);
4296
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 Py_INCREF(Py_None); resultobj = Py_None;
4301 return resultobj;
4302 fail:
4303 return NULL;
4304 }
4305
4306
4307 static PyObject * GridCellAttr_swigregister(PyObject *self, PyObject *args) {
4308 PyObject *obj;
4309 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4310 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttr, obj);
4311 Py_INCREF(obj);
4312 return Py_BuildValue((char *)"");
4313 }
4314 static PyObject *_wrap_new_GridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4315 PyObject *resultobj;
4316 wxGridCellAttrProvider *result;
4317 char *kwnames[] = {
4318 NULL
4319 };
4320
4321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GridCellAttrProvider",kwnames)) goto fail;
4322 {
4323 PyThreadState* __tstate = wxPyBeginAllowThreads();
4324 result = (wxGridCellAttrProvider *)new wxGridCellAttrProvider();
4325
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 {
4330 resultobj = wxPyMake_wxGridCellAttrProvider(result);
4331 }
4332 return resultobj;
4333 fail:
4334 return NULL;
4335 }
4336
4337
4338 static PyObject *_wrap_GridCellAttrProvider__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4339 PyObject *resultobj;
4340 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4341 PyObject *arg2 = (PyObject *) 0 ;
4342 PyObject * obj0 = 0 ;
4343 PyObject * obj1 = 0 ;
4344 char *kwnames[] = {
4345 (char *) "self",(char *) "_self", NULL
4346 };
4347
4348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellAttrProvider__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4350 arg2 = obj1;
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 wxGridCellAttrProvider__setOORInfo(arg1,arg2);
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 Py_INCREF(Py_None); resultobj = Py_None;
4359 return resultobj;
4360 fail:
4361 return NULL;
4362 }
4363
4364
4365 static PyObject *_wrap_GridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4366 PyObject *resultobj;
4367 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4368 int arg2 ;
4369 int arg3 ;
4370 int arg4 ;
4371 wxGridCellAttr *result;
4372 PyObject * obj0 = 0 ;
4373 char *kwnames[] = {
4374 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4375 };
4376
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:GridCellAttrProvider_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
4378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 result = (wxGridCellAttr *)((wxGridCellAttrProvider const *)arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4382
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 {
4387 resultobj = wxPyMake_wxGridCellAttr(result);
4388 }
4389 return resultobj;
4390 fail:
4391 return NULL;
4392 }
4393
4394
4395 static PyObject *_wrap_GridCellAttrProvider_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4396 PyObject *resultobj;
4397 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4398 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4399 int arg3 ;
4400 int arg4 ;
4401 PyObject * obj0 = 0 ;
4402 PyObject * obj1 = 0 ;
4403 char *kwnames[] = {
4404 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4405 };
4406
4407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridCellAttrProvider_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4409 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4410 {
4411 PyThreadState* __tstate = wxPyBeginAllowThreads();
4412 (arg1)->SetAttr(arg2,arg3,arg4);
4413
4414 wxPyEndAllowThreads(__tstate);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 Py_INCREF(Py_None); resultobj = Py_None;
4418 return resultobj;
4419 fail:
4420 return NULL;
4421 }
4422
4423
4424 static PyObject *_wrap_GridCellAttrProvider_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4425 PyObject *resultobj;
4426 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4427 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4428 int arg3 ;
4429 PyObject * obj0 = 0 ;
4430 PyObject * obj1 = 0 ;
4431 char *kwnames[] = {
4432 (char *) "self",(char *) "attr",(char *) "row", NULL
4433 };
4434
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4437 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 (arg1)->SetRowAttr(arg2,arg3);
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 Py_INCREF(Py_None); resultobj = Py_None;
4446 return resultobj;
4447 fail:
4448 return NULL;
4449 }
4450
4451
4452 static PyObject *_wrap_GridCellAttrProvider_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4453 PyObject *resultobj;
4454 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4455 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4456 int arg3 ;
4457 PyObject * obj0 = 0 ;
4458 PyObject * obj1 = 0 ;
4459 char *kwnames[] = {
4460 (char *) "self",(char *) "attr",(char *) "col", NULL
4461 };
4462
4463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4465 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4466 {
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 (arg1)->SetColAttr(arg2,arg3);
4469
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 Py_INCREF(Py_None); resultobj = Py_None;
4474 return resultobj;
4475 fail:
4476 return NULL;
4477 }
4478
4479
4480 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrRows(PyObject *self, PyObject *args, PyObject *kwargs) {
4481 PyObject *resultobj;
4482 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4483 size_t arg2 ;
4484 int arg3 ;
4485 PyObject * obj0 = 0 ;
4486 PyObject * obj1 = 0 ;
4487 char *kwnames[] = {
4488 (char *) "self",(char *) "pos",(char *) "numRows", NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_UpdateAttrRows",kwnames,&obj0,&obj1,&arg3)) goto fail;
4492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4493 arg2 = (size_t) PyInt_AsLong(obj1);
4494 if (PyErr_Occurred()) SWIG_fail;
4495 {
4496 PyThreadState* __tstate = wxPyBeginAllowThreads();
4497 (arg1)->UpdateAttrRows(arg2,arg3);
4498
4499 wxPyEndAllowThreads(__tstate);
4500 if (PyErr_Occurred()) SWIG_fail;
4501 }
4502 Py_INCREF(Py_None); resultobj = Py_None;
4503 return resultobj;
4504 fail:
4505 return NULL;
4506 }
4507
4508
4509 static PyObject *_wrap_GridCellAttrProvider_UpdateAttrCols(PyObject *self, PyObject *args, PyObject *kwargs) {
4510 PyObject *resultobj;
4511 wxGridCellAttrProvider *arg1 = (wxGridCellAttrProvider *) 0 ;
4512 size_t arg2 ;
4513 int arg3 ;
4514 PyObject * obj0 = 0 ;
4515 PyObject * obj1 = 0 ;
4516 char *kwnames[] = {
4517 (char *) "self",(char *) "pos",(char *) "numCols", NULL
4518 };
4519
4520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridCellAttrProvider_UpdateAttrCols",kwnames,&obj0,&obj1,&arg3)) goto fail;
4521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4522 arg2 = (size_t) PyInt_AsLong(obj1);
4523 if (PyErr_Occurred()) SWIG_fail;
4524 {
4525 PyThreadState* __tstate = wxPyBeginAllowThreads();
4526 (arg1)->UpdateAttrCols(arg2,arg3);
4527
4528 wxPyEndAllowThreads(__tstate);
4529 if (PyErr_Occurred()) SWIG_fail;
4530 }
4531 Py_INCREF(Py_None); resultobj = Py_None;
4532 return resultobj;
4533 fail:
4534 return NULL;
4535 }
4536
4537
4538 static PyObject * GridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
4539 PyObject *obj;
4540 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4541 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellAttrProvider, obj);
4542 Py_INCREF(obj);
4543 return Py_BuildValue((char *)"");
4544 }
4545 static PyObject *_wrap_new_PyGridCellAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4546 PyObject *resultobj;
4547 wxPyGridCellAttrProvider *result;
4548 char *kwnames[] = {
4549 NULL
4550 };
4551
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridCellAttrProvider",kwnames)) goto fail;
4553 {
4554 PyThreadState* __tstate = wxPyBeginAllowThreads();
4555 result = (wxPyGridCellAttrProvider *)new wxPyGridCellAttrProvider();
4556
4557 wxPyEndAllowThreads(__tstate);
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
4560 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridCellAttrProvider, 1);
4561 return resultobj;
4562 fail:
4563 return NULL;
4564 }
4565
4566
4567 static PyObject *_wrap_PyGridCellAttrProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4568 PyObject *resultobj;
4569 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4570 PyObject *arg2 = (PyObject *) 0 ;
4571 PyObject *arg3 = (PyObject *) 0 ;
4572 PyObject * obj0 = 0 ;
4573 PyObject * obj1 = 0 ;
4574 PyObject * obj2 = 0 ;
4575 char *kwnames[] = {
4576 (char *) "self",(char *) "self",(char *) "_class", NULL
4577 };
4578
4579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridCellAttrProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
4580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4581 arg2 = obj1;
4582 arg3 = obj2;
4583 {
4584 PyThreadState* __tstate = wxPyBeginAllowThreads();
4585 (arg1)->_setCallbackInfo(arg2,arg3);
4586
4587 wxPyEndAllowThreads(__tstate);
4588 if (PyErr_Occurred()) SWIG_fail;
4589 }
4590 Py_INCREF(Py_None); resultobj = Py_None;
4591 return resultobj;
4592 fail:
4593 return NULL;
4594 }
4595
4596
4597 static PyObject *_wrap_PyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4598 PyObject *resultobj;
4599 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4600 int arg2 ;
4601 int arg3 ;
4602 int arg4 ;
4603 wxGridCellAttr *result;
4604 PyObject * obj0 = 0 ;
4605 char *kwnames[] = {
4606 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
4607 };
4608
4609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:PyGridCellAttrProvider_base_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
4610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4611 {
4612 PyThreadState* __tstate = wxPyBeginAllowThreads();
4613 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
4614
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 {
4619 resultobj = wxPyMake_wxGridCellAttr(result);
4620 }
4621 return resultobj;
4622 fail:
4623 return NULL;
4624 }
4625
4626
4627 static PyObject *_wrap_PyGridCellAttrProvider_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj;
4629 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4630 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4631 int arg3 ;
4632 int arg4 ;
4633 PyObject * obj0 = 0 ;
4634 PyObject * obj1 = 0 ;
4635 char *kwnames[] = {
4636 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
4637 };
4638
4639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PyGridCellAttrProvider_base_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
4640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4641 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4642 {
4643 PyThreadState* __tstate = wxPyBeginAllowThreads();
4644 (arg1)->base_SetAttr(arg2,arg3,arg4);
4645
4646 wxPyEndAllowThreads(__tstate);
4647 if (PyErr_Occurred()) SWIG_fail;
4648 }
4649 Py_INCREF(Py_None); resultobj = Py_None;
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 static PyObject *_wrap_PyGridCellAttrProvider_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj;
4658 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4659 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4660 int arg3 ;
4661 PyObject * obj0 = 0 ;
4662 PyObject * obj1 = 0 ;
4663 char *kwnames[] = {
4664 (char *) "self",(char *) "attr",(char *) "row", NULL
4665 };
4666
4667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridCellAttrProvider_base_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4669 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4670 {
4671 PyThreadState* __tstate = wxPyBeginAllowThreads();
4672 (arg1)->base_SetRowAttr(arg2,arg3);
4673
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 Py_INCREF(Py_None); resultobj = Py_None;
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 static PyObject *_wrap_PyGridCellAttrProvider_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
4685 PyObject *resultobj;
4686 wxPyGridCellAttrProvider *arg1 = (wxPyGridCellAttrProvider *) 0 ;
4687 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
4688 int arg3 ;
4689 PyObject * obj0 = 0 ;
4690 PyObject * obj1 = 0 ;
4691 char *kwnames[] = {
4692 (char *) "self",(char *) "attr",(char *) "col", NULL
4693 };
4694
4695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridCellAttrProvider_base_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
4696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4697 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4698 {
4699 PyThreadState* __tstate = wxPyBeginAllowThreads();
4700 (arg1)->base_SetColAttr(arg2,arg3);
4701
4702 wxPyEndAllowThreads(__tstate);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 Py_INCREF(Py_None); resultobj = Py_None;
4706 return resultobj;
4707 fail:
4708 return NULL;
4709 }
4710
4711
4712 static PyObject * PyGridCellAttrProvider_swigregister(PyObject *self, PyObject *args) {
4713 PyObject *obj;
4714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4715 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridCellAttrProvider, obj);
4716 Py_INCREF(obj);
4717 return Py_BuildValue((char *)"");
4718 }
4719 static PyObject *_wrap_GridTableBase__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4720 PyObject *resultobj;
4721 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4722 PyObject *arg2 = (PyObject *) 0 ;
4723 PyObject * obj0 = 0 ;
4724 PyObject * obj1 = 0 ;
4725 char *kwnames[] = {
4726 (char *) "self",(char *) "_self", NULL
4727 };
4728
4729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
4730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4731 arg2 = obj1;
4732 {
4733 PyThreadState* __tstate = wxPyBeginAllowThreads();
4734 wxGridTableBase__setOORInfo(arg1,arg2);
4735
4736 wxPyEndAllowThreads(__tstate);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 Py_INCREF(Py_None); resultobj = Py_None;
4740 return resultobj;
4741 fail:
4742 return NULL;
4743 }
4744
4745
4746 static PyObject *_wrap_GridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4747 PyObject *resultobj;
4748 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4749 wxGridCellAttrProvider *arg2 = (wxGridCellAttrProvider *) 0 ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 char *kwnames[] = {
4753 (char *) "self",(char *) "attrProvider", NULL
4754 };
4755
4756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetAttrProvider",kwnames,&obj0,&obj1)) goto fail;
4757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4758 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttrProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4759 {
4760 PyThreadState* __tstate = wxPyBeginAllowThreads();
4761 (arg1)->SetAttrProvider(arg2);
4762
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 Py_INCREF(Py_None); resultobj = Py_None;
4767 return resultobj;
4768 fail:
4769 return NULL;
4770 }
4771
4772
4773 static PyObject *_wrap_GridTableBase_GetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
4774 PyObject *resultobj;
4775 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4776 wxGridCellAttrProvider *result;
4777 PyObject * obj0 = 0 ;
4778 char *kwnames[] = {
4779 (char *) "self", NULL
4780 };
4781
4782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetAttrProvider",kwnames,&obj0)) goto fail;
4783 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 result = (wxGridCellAttrProvider *)((wxGridTableBase const *)arg1)->GetAttrProvider();
4787
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 {
4792 resultobj = wxPyMake_wxGridCellAttrProvider(result);
4793 }
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 static PyObject *_wrap_GridTableBase_SetView(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject *resultobj;
4802 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4803 wxGrid *arg2 = (wxGrid *) 0 ;
4804 PyObject * obj0 = 0 ;
4805 PyObject * obj1 = 0 ;
4806 char *kwnames[] = {
4807 (char *) "self",(char *) "grid", NULL
4808 };
4809
4810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableBase_SetView",kwnames,&obj0,&obj1)) goto fail;
4811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4812 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4813 {
4814 PyThreadState* __tstate = wxPyBeginAllowThreads();
4815 (arg1)->SetView(arg2);
4816
4817 wxPyEndAllowThreads(__tstate);
4818 if (PyErr_Occurred()) SWIG_fail;
4819 }
4820 Py_INCREF(Py_None); resultobj = Py_None;
4821 return resultobj;
4822 fail:
4823 return NULL;
4824 }
4825
4826
4827 static PyObject *_wrap_GridTableBase_GetView(PyObject *self, PyObject *args, PyObject *kwargs) {
4828 PyObject *resultobj;
4829 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4830 wxGrid *result;
4831 PyObject * obj0 = 0 ;
4832 char *kwnames[] = {
4833 (char *) "self", NULL
4834 };
4835
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetView",kwnames,&obj0)) goto fail;
4837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4838 {
4839 PyThreadState* __tstate = wxPyBeginAllowThreads();
4840 result = (wxGrid *)((wxGridTableBase const *)arg1)->GetView();
4841
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) SWIG_fail;
4844 }
4845 {
4846 resultobj = wxPyMake_wxObject(result);
4847 }
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 static PyObject *_wrap_GridTableBase_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
4855 PyObject *resultobj;
4856 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4857 int result;
4858 PyObject * obj0 = 0 ;
4859 char *kwnames[] = {
4860 (char *) "self", NULL
4861 };
4862
4863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberRows",kwnames,&obj0)) goto fail;
4864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4865 {
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 result = (int)(arg1)->GetNumberRows();
4868
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 resultobj = PyInt_FromLong((long)result);
4873 return resultobj;
4874 fail:
4875 return NULL;
4876 }
4877
4878
4879 static PyObject *_wrap_GridTableBase_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
4880 PyObject *resultobj;
4881 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4882 int result;
4883 PyObject * obj0 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "self", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_GetNumberCols",kwnames,&obj0)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4890 {
4891 PyThreadState* __tstate = wxPyBeginAllowThreads();
4892 result = (int)(arg1)->GetNumberCols();
4893
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) SWIG_fail;
4896 }
4897 resultobj = PyInt_FromLong((long)result);
4898 return resultobj;
4899 fail:
4900 return NULL;
4901 }
4902
4903
4904 static PyObject *_wrap_GridTableBase_IsEmptyCell(PyObject *self, PyObject *args, PyObject *kwargs) {
4905 PyObject *resultobj;
4906 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4907 int arg2 ;
4908 int arg3 ;
4909 bool result;
4910 PyObject * obj0 = 0 ;
4911 char *kwnames[] = {
4912 (char *) "self",(char *) "row",(char *) "col", NULL
4913 };
4914
4915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_IsEmptyCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
4916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (bool)(arg1)->IsEmptyCell(arg2,arg3);
4920
4921 wxPyEndAllowThreads(__tstate);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 resultobj = PyInt_FromLong((long)result);
4925 return resultobj;
4926 fail:
4927 return NULL;
4928 }
4929
4930
4931 static PyObject *_wrap_GridTableBase_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4932 PyObject *resultobj;
4933 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4934 int arg2 ;
4935 int arg3 ;
4936 wxString result;
4937 PyObject * obj0 = 0 ;
4938 char *kwnames[] = {
4939 (char *) "self",(char *) "row",(char *) "col", NULL
4940 };
4941
4942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValue",kwnames,&obj0,&arg2,&arg3)) goto fail;
4943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (arg1)->GetValue(arg2,arg3);
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 {
4952 #if wxUSE_UNICODE
4953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4954 #else
4955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4956 #endif
4957 }
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 static PyObject *_wrap_GridTableBase_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
4965 PyObject *resultobj;
4966 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
4967 int arg2 ;
4968 int arg3 ;
4969 wxString *arg4 = 0 ;
4970 bool temp4 = False ;
4971 PyObject * obj0 = 0 ;
4972 PyObject * obj3 = 0 ;
4973 char *kwnames[] = {
4974 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
4975 };
4976
4977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_SetValue",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
4978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4979 {
4980 arg4 = wxString_in_helper(obj3);
4981 if (arg4 == NULL) SWIG_fail;
4982 temp4 = True;
4983 }
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 (arg1)->SetValue(arg2,arg3,(wxString const &)*arg4);
4987
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
4991 Py_INCREF(Py_None); resultobj = Py_None;
4992 {
4993 if (temp4)
4994 delete arg4;
4995 }
4996 return resultobj;
4997 fail:
4998 {
4999 if (temp4)
5000 delete arg4;
5001 }
5002 return NULL;
5003 }
5004
5005
5006 static PyObject *_wrap_GridTableBase_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject *resultobj;
5008 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5009 int arg2 ;
5010 int arg3 ;
5011 wxString result;
5012 PyObject * obj0 = 0 ;
5013 char *kwnames[] = {
5014 (char *) "self",(char *) "row",(char *) "col", NULL
5015 };
5016
5017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetTypeName",kwnames,&obj0,&arg2,&arg3)) goto fail;
5018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5019 {
5020 PyThreadState* __tstate = wxPyBeginAllowThreads();
5021 result = (arg1)->GetTypeName(arg2,arg3);
5022
5023 wxPyEndAllowThreads(__tstate);
5024 if (PyErr_Occurred()) SWIG_fail;
5025 }
5026 {
5027 #if wxUSE_UNICODE
5028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5029 #else
5030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5031 #endif
5032 }
5033 return resultobj;
5034 fail:
5035 return NULL;
5036 }
5037
5038
5039 static PyObject *_wrap_GridTableBase_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj;
5041 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5042 int arg2 ;
5043 int arg3 ;
5044 wxString *arg4 = 0 ;
5045 bool result;
5046 bool temp4 = False ;
5047 PyObject * obj0 = 0 ;
5048 PyObject * obj3 = 0 ;
5049 char *kwnames[] = {
5050 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5051 };
5052
5053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_CanGetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5055 {
5056 arg4 = wxString_in_helper(obj3);
5057 if (arg4 == NULL) SWIG_fail;
5058 temp4 = True;
5059 }
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 result = (bool)(arg1)->CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) SWIG_fail;
5066 }
5067 resultobj = PyInt_FromLong((long)result);
5068 {
5069 if (temp4)
5070 delete arg4;
5071 }
5072 return resultobj;
5073 fail:
5074 {
5075 if (temp4)
5076 delete arg4;
5077 }
5078 return NULL;
5079 }
5080
5081
5082 static PyObject *_wrap_GridTableBase_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5083 PyObject *resultobj;
5084 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5085 int arg2 ;
5086 int arg3 ;
5087 wxString *arg4 = 0 ;
5088 bool result;
5089 bool temp4 = False ;
5090 PyObject * obj0 = 0 ;
5091 PyObject * obj3 = 0 ;
5092 char *kwnames[] = {
5093 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5094 };
5095
5096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_CanSetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5098 {
5099 arg4 = wxString_in_helper(obj3);
5100 if (arg4 == NULL) SWIG_fail;
5101 temp4 = True;
5102 }
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 result = (bool)(arg1)->CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
5106
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) SWIG_fail;
5109 }
5110 resultobj = PyInt_FromLong((long)result);
5111 {
5112 if (temp4)
5113 delete arg4;
5114 }
5115 return resultobj;
5116 fail:
5117 {
5118 if (temp4)
5119 delete arg4;
5120 }
5121 return NULL;
5122 }
5123
5124
5125 static PyObject *_wrap_GridTableBase_GetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj;
5127 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5128 int arg2 ;
5129 int arg3 ;
5130 long result;
5131 PyObject * obj0 = 0 ;
5132 char *kwnames[] = {
5133 (char *) "self",(char *) "row",(char *) "col", NULL
5134 };
5135
5136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsLong",kwnames,&obj0,&arg2,&arg3)) goto fail;
5137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 result = (long)(arg1)->GetValueAsLong(arg2,arg3);
5141
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
5145 resultobj = PyInt_FromLong((long)result);
5146 return resultobj;
5147 fail:
5148 return NULL;
5149 }
5150
5151
5152 static PyObject *_wrap_GridTableBase_GetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5153 PyObject *resultobj;
5154 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5155 int arg2 ;
5156 int arg3 ;
5157 double result;
5158 PyObject * obj0 = 0 ;
5159 char *kwnames[] = {
5160 (char *) "self",(char *) "row",(char *) "col", NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsDouble",kwnames,&obj0,&arg2,&arg3)) goto fail;
5164 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5165 {
5166 PyThreadState* __tstate = wxPyBeginAllowThreads();
5167 result = (double)(arg1)->GetValueAsDouble(arg2,arg3);
5168
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 resultobj = PyFloat_FromDouble(result);
5173 return resultobj;
5174 fail:
5175 return NULL;
5176 }
5177
5178
5179 static PyObject *_wrap_GridTableBase_GetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5180 PyObject *resultobj;
5181 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5182 int arg2 ;
5183 int arg3 ;
5184 bool result;
5185 PyObject * obj0 = 0 ;
5186 char *kwnames[] = {
5187 (char *) "self",(char *) "row",(char *) "col", NULL
5188 };
5189
5190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridTableBase_GetValueAsBool",kwnames,&obj0,&arg2,&arg3)) goto fail;
5191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5192 {
5193 PyThreadState* __tstate = wxPyBeginAllowThreads();
5194 result = (bool)(arg1)->GetValueAsBool(arg2,arg3);
5195
5196 wxPyEndAllowThreads(__tstate);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 }
5199 resultobj = PyInt_FromLong((long)result);
5200 return resultobj;
5201 fail:
5202 return NULL;
5203 }
5204
5205
5206 static PyObject *_wrap_GridTableBase_SetValueAsLong(PyObject *self, PyObject *args, PyObject *kwargs) {
5207 PyObject *resultobj;
5208 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5209 int arg2 ;
5210 int arg3 ;
5211 long arg4 ;
5212 PyObject * obj0 = 0 ;
5213 char *kwnames[] = {
5214 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiil:GridTableBase_SetValueAsLong",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5219 {
5220 PyThreadState* __tstate = wxPyBeginAllowThreads();
5221 (arg1)->SetValueAsLong(arg2,arg3,arg4);
5222
5223 wxPyEndAllowThreads(__tstate);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 }
5226 Py_INCREF(Py_None); resultobj = Py_None;
5227 return resultobj;
5228 fail:
5229 return NULL;
5230 }
5231
5232
5233 static PyObject *_wrap_GridTableBase_SetValueAsDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
5234 PyObject *resultobj;
5235 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5236 int arg2 ;
5237 int arg3 ;
5238 double arg4 ;
5239 PyObject * obj0 = 0 ;
5240 char *kwnames[] = {
5241 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5242 };
5243
5244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiid:GridTableBase_SetValueAsDouble",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 (arg1)->SetValueAsDouble(arg2,arg3,arg4);
5249
5250 wxPyEndAllowThreads(__tstate);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 }
5253 Py_INCREF(Py_None); resultobj = Py_None;
5254 return resultobj;
5255 fail:
5256 return NULL;
5257 }
5258
5259
5260 static PyObject *_wrap_GridTableBase_SetValueAsBool(PyObject *self, PyObject *args, PyObject *kwargs) {
5261 PyObject *resultobj;
5262 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5263 int arg2 ;
5264 int arg3 ;
5265 bool arg4 ;
5266 PyObject * obj0 = 0 ;
5267 PyObject * obj3 = 0 ;
5268 char *kwnames[] = {
5269 (char *) "self",(char *) "row",(char *) "col",(char *) "value", NULL
5270 };
5271
5272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:GridTableBase_SetValueAsBool",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5274 arg4 = PyInt_AsLong(obj3) ? true : false;
5275 if (PyErr_Occurred()) SWIG_fail;
5276 {
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 (arg1)->SetValueAsBool(arg2,arg3,arg4);
5279
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 Py_INCREF(Py_None); resultobj = Py_None;
5284 return resultobj;
5285 fail:
5286 return NULL;
5287 }
5288
5289
5290 static PyObject *_wrap_GridTableBase_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5291 PyObject *resultobj;
5292 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5293 PyObject * obj0 = 0 ;
5294 char *kwnames[] = {
5295 (char *) "self", NULL
5296 };
5297
5298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_Clear",kwnames,&obj0)) goto fail;
5299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 (arg1)->Clear();
5303
5304 wxPyEndAllowThreads(__tstate);
5305 if (PyErr_Occurred()) SWIG_fail;
5306 }
5307 Py_INCREF(Py_None); resultobj = Py_None;
5308 return resultobj;
5309 fail:
5310 return NULL;
5311 }
5312
5313
5314 static PyObject *_wrap_GridTableBase_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5315 PyObject *resultobj;
5316 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5317 size_t arg2 = (size_t) 0 ;
5318 size_t arg3 = (size_t) 1 ;
5319 bool result;
5320 PyObject * obj0 = 0 ;
5321 PyObject * obj1 = 0 ;
5322 PyObject * obj2 = 0 ;
5323 char *kwnames[] = {
5324 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5325 };
5326
5327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5329 if (obj1) {
5330 arg2 = (size_t) PyInt_AsLong(obj1);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 }
5333 if (obj2) {
5334 arg3 = (size_t) PyInt_AsLong(obj2);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 {
5338 PyThreadState* __tstate = wxPyBeginAllowThreads();
5339 result = (bool)(arg1)->InsertRows(arg2,arg3);
5340
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 resultobj = PyInt_FromLong((long)result);
5345 return resultobj;
5346 fail:
5347 return NULL;
5348 }
5349
5350
5351 static PyObject *_wrap_GridTableBase_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5352 PyObject *resultobj;
5353 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5354 size_t arg2 = (size_t) 1 ;
5355 bool result;
5356 PyObject * obj0 = 0 ;
5357 PyObject * obj1 = 0 ;
5358 char *kwnames[] = {
5359 (char *) "self",(char *) "numRows", NULL
5360 };
5361
5362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendRows",kwnames,&obj0,&obj1)) goto fail;
5363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5364 if (obj1) {
5365 arg2 = (size_t) PyInt_AsLong(obj1);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 {
5369 PyThreadState* __tstate = wxPyBeginAllowThreads();
5370 result = (bool)(arg1)->AppendRows(arg2);
5371
5372 wxPyEndAllowThreads(__tstate);
5373 if (PyErr_Occurred()) SWIG_fail;
5374 }
5375 resultobj = PyInt_FromLong((long)result);
5376 return resultobj;
5377 fail:
5378 return NULL;
5379 }
5380
5381
5382 static PyObject *_wrap_GridTableBase_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
5383 PyObject *resultobj;
5384 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5385 size_t arg2 = (size_t) 0 ;
5386 size_t arg3 = (size_t) 1 ;
5387 bool result;
5388 PyObject * obj0 = 0 ;
5389 PyObject * obj1 = 0 ;
5390 PyObject * obj2 = 0 ;
5391 char *kwnames[] = {
5392 (char *) "self",(char *) "pos",(char *) "numRows", NULL
5393 };
5394
5395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
5396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5397 if (obj1) {
5398 arg2 = (size_t) PyInt_AsLong(obj1);
5399 if (PyErr_Occurred()) SWIG_fail;
5400 }
5401 if (obj2) {
5402 arg3 = (size_t) PyInt_AsLong(obj2);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (bool)(arg1)->DeleteRows(arg2,arg3);
5408
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 resultobj = PyInt_FromLong((long)result);
5413 return resultobj;
5414 fail:
5415 return NULL;
5416 }
5417
5418
5419 static PyObject *_wrap_GridTableBase_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5420 PyObject *resultobj;
5421 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5422 size_t arg2 = (size_t) 0 ;
5423 size_t arg3 = (size_t) 1 ;
5424 bool result;
5425 PyObject * obj0 = 0 ;
5426 PyObject * obj1 = 0 ;
5427 PyObject * obj2 = 0 ;
5428 char *kwnames[] = {
5429 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5430 };
5431
5432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5434 if (obj1) {
5435 arg2 = (size_t) PyInt_AsLong(obj1);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 if (obj2) {
5439 arg3 = (size_t) PyInt_AsLong(obj2);
5440 if (PyErr_Occurred()) SWIG_fail;
5441 }
5442 {
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 result = (bool)(arg1)->InsertCols(arg2,arg3);
5445
5446 wxPyEndAllowThreads(__tstate);
5447 if (PyErr_Occurred()) SWIG_fail;
5448 }
5449 resultobj = PyInt_FromLong((long)result);
5450 return resultobj;
5451 fail:
5452 return NULL;
5453 }
5454
5455
5456 static PyObject *_wrap_GridTableBase_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5457 PyObject *resultobj;
5458 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5459 size_t arg2 = (size_t) 1 ;
5460 bool result;
5461 PyObject * obj0 = 0 ;
5462 PyObject * obj1 = 0 ;
5463 char *kwnames[] = {
5464 (char *) "self",(char *) "numCols", NULL
5465 };
5466
5467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:GridTableBase_AppendCols",kwnames,&obj0,&obj1)) goto fail;
5468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5469 if (obj1) {
5470 arg2 = (size_t) PyInt_AsLong(obj1);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 {
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 result = (bool)(arg1)->AppendCols(arg2);
5476
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 resultobj = PyInt_FromLong((long)result);
5481 return resultobj;
5482 fail:
5483 return NULL;
5484 }
5485
5486
5487 static PyObject *_wrap_GridTableBase_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject *resultobj;
5489 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5490 size_t arg2 = (size_t) 0 ;
5491 size_t arg3 = (size_t) 1 ;
5492 bool result;
5493 PyObject * obj0 = 0 ;
5494 PyObject * obj1 = 0 ;
5495 PyObject * obj2 = 0 ;
5496 char *kwnames[] = {
5497 (char *) "self",(char *) "pos",(char *) "numCols", NULL
5498 };
5499
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GridTableBase_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
5501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5502 if (obj1) {
5503 arg2 = (size_t) PyInt_AsLong(obj1);
5504 if (PyErr_Occurred()) SWIG_fail;
5505 }
5506 if (obj2) {
5507 arg3 = (size_t) PyInt_AsLong(obj2);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 {
5511 PyThreadState* __tstate = wxPyBeginAllowThreads();
5512 result = (bool)(arg1)->DeleteCols(arg2,arg3);
5513
5514 wxPyEndAllowThreads(__tstate);
5515 if (PyErr_Occurred()) SWIG_fail;
5516 }
5517 resultobj = PyInt_FromLong((long)result);
5518 return resultobj;
5519 fail:
5520 return NULL;
5521 }
5522
5523
5524 static PyObject *_wrap_GridTableBase_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5525 PyObject *resultobj;
5526 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5527 int arg2 ;
5528 wxString result;
5529 PyObject * obj0 = 0 ;
5530 char *kwnames[] = {
5531 (char *) "self",(char *) "row", NULL
5532 };
5533
5534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableBase_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
5535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5536 {
5537 PyThreadState* __tstate = wxPyBeginAllowThreads();
5538 result = (arg1)->GetRowLabelValue(arg2);
5539
5540 wxPyEndAllowThreads(__tstate);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 }
5543 {
5544 #if wxUSE_UNICODE
5545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5546 #else
5547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5548 #endif
5549 }
5550 return resultobj;
5551 fail:
5552 return NULL;
5553 }
5554
5555
5556 static PyObject *_wrap_GridTableBase_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5557 PyObject *resultobj;
5558 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5559 int arg2 ;
5560 wxString result;
5561 PyObject * obj0 = 0 ;
5562 char *kwnames[] = {
5563 (char *) "self",(char *) "col", NULL
5564 };
5565
5566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableBase_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
5567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 result = (arg1)->GetColLabelValue(arg2);
5571
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 {
5576 #if wxUSE_UNICODE
5577 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5578 #else
5579 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5580 #endif
5581 }
5582 return resultobj;
5583 fail:
5584 return NULL;
5585 }
5586
5587
5588 static PyObject *_wrap_GridTableBase_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5589 PyObject *resultobj;
5590 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5591 int arg2 ;
5592 wxString *arg3 = 0 ;
5593 bool temp3 = False ;
5594 PyObject * obj0 = 0 ;
5595 PyObject * obj2 = 0 ;
5596 char *kwnames[] = {
5597 (char *) "self",(char *) "row",(char *) "value", NULL
5598 };
5599
5600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:GridTableBase_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
5601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5602 {
5603 arg3 = wxString_in_helper(obj2);
5604 if (arg3 == NULL) SWIG_fail;
5605 temp3 = True;
5606 }
5607 {
5608 PyThreadState* __tstate = wxPyBeginAllowThreads();
5609 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
5610
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) SWIG_fail;
5613 }
5614 Py_INCREF(Py_None); resultobj = Py_None;
5615 {
5616 if (temp3)
5617 delete arg3;
5618 }
5619 return resultobj;
5620 fail:
5621 {
5622 if (temp3)
5623 delete arg3;
5624 }
5625 return NULL;
5626 }
5627
5628
5629 static PyObject *_wrap_GridTableBase_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj;
5631 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5632 int arg2 ;
5633 wxString *arg3 = 0 ;
5634 bool temp3 = False ;
5635 PyObject * obj0 = 0 ;
5636 PyObject * obj2 = 0 ;
5637 char *kwnames[] = {
5638 (char *) "self",(char *) "col",(char *) "value", NULL
5639 };
5640
5641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:GridTableBase_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
5642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5643 {
5644 arg3 = wxString_in_helper(obj2);
5645 if (arg3 == NULL) SWIG_fail;
5646 temp3 = True;
5647 }
5648 {
5649 PyThreadState* __tstate = wxPyBeginAllowThreads();
5650 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
5651
5652 wxPyEndAllowThreads(__tstate);
5653 if (PyErr_Occurred()) SWIG_fail;
5654 }
5655 Py_INCREF(Py_None); resultobj = Py_None;
5656 {
5657 if (temp3)
5658 delete arg3;
5659 }
5660 return resultobj;
5661 fail:
5662 {
5663 if (temp3)
5664 delete arg3;
5665 }
5666 return NULL;
5667 }
5668
5669
5670 static PyObject *_wrap_GridTableBase_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
5671 PyObject *resultobj;
5672 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5673 bool result;
5674 PyObject * obj0 = 0 ;
5675 char *kwnames[] = {
5676 (char *) "self", NULL
5677 };
5678
5679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableBase_CanHaveAttributes",kwnames,&obj0)) goto fail;
5680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5681 {
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 result = (bool)(arg1)->CanHaveAttributes();
5684
5685 wxPyEndAllowThreads(__tstate);
5686 if (PyErr_Occurred()) SWIG_fail;
5687 }
5688 resultobj = PyInt_FromLong((long)result);
5689 return resultobj;
5690 fail:
5691 return NULL;
5692 }
5693
5694
5695 static PyObject *_wrap_GridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5696 PyObject *resultobj;
5697 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5698 int arg2 ;
5699 int arg3 ;
5700 int arg4 ;
5701 wxGridCellAttr *result;
5702 PyObject * obj0 = 0 ;
5703 char *kwnames[] = {
5704 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
5705 };
5706
5707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:GridTableBase_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
5708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5709 {
5710 PyThreadState* __tstate = wxPyBeginAllowThreads();
5711 result = (wxGridCellAttr *)(arg1)->GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
5712
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 {
5717 resultobj = wxPyMake_wxGridCellAttr(result);
5718 }
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 static PyObject *_wrap_GridTableBase_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5726 PyObject *resultobj;
5727 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5728 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5729 int arg3 ;
5730 int arg4 ;
5731 PyObject * obj0 = 0 ;
5732 PyObject * obj1 = 0 ;
5733 char *kwnames[] = {
5734 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
5735 };
5736
5737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:GridTableBase_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
5738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5739 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5740 {
5741 PyThreadState* __tstate = wxPyBeginAllowThreads();
5742 (arg1)->SetAttr(arg2,arg3,arg4);
5743
5744 wxPyEndAllowThreads(__tstate);
5745 if (PyErr_Occurred()) SWIG_fail;
5746 }
5747 Py_INCREF(Py_None); resultobj = Py_None;
5748 return resultobj;
5749 fail:
5750 return NULL;
5751 }
5752
5753
5754 static PyObject *_wrap_GridTableBase_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5755 PyObject *resultobj;
5756 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5757 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5758 int arg3 ;
5759 PyObject * obj0 = 0 ;
5760 PyObject * obj1 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "self",(char *) "attr",(char *) "row", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridTableBase_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
5766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5767 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 (arg1)->SetRowAttr(arg2,arg3);
5771
5772 wxPyEndAllowThreads(__tstate);
5773 if (PyErr_Occurred()) SWIG_fail;
5774 }
5775 Py_INCREF(Py_None); resultobj = Py_None;
5776 return resultobj;
5777 fail:
5778 return NULL;
5779 }
5780
5781
5782 static PyObject *_wrap_GridTableBase_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5783 PyObject *resultobj;
5784 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
5785 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
5786 int arg3 ;
5787 PyObject * obj0 = 0 ;
5788 PyObject * obj1 = 0 ;
5789 char *kwnames[] = {
5790 (char *) "self",(char *) "attr",(char *) "col", NULL
5791 };
5792
5793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:GridTableBase_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
5794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5795 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 (arg1)->SetColAttr(arg2,arg3);
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 Py_INCREF(Py_None); resultobj = Py_None;
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 static PyObject * GridTableBase_swigregister(PyObject *self, PyObject *args) {
5811 PyObject *obj;
5812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5813 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableBase, obj);
5814 Py_INCREF(obj);
5815 return Py_BuildValue((char *)"");
5816 }
5817 static PyObject *_wrap_new_PyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) {
5818 PyObject *resultobj;
5819 wxPyGridTableBase *result;
5820 char *kwnames[] = {
5821 NULL
5822 };
5823
5824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyGridTableBase",kwnames)) goto fail;
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = (wxPyGridTableBase *)new wxPyGridTableBase();
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyGridTableBase, 1);
5833 return resultobj;
5834 fail:
5835 return NULL;
5836 }
5837
5838
5839 static PyObject *_wrap_PyGridTableBase__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj;
5841 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5842 PyObject *arg2 = (PyObject *) 0 ;
5843 PyObject *arg3 = (PyObject *) 0 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 PyObject * obj2 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self",(char *) "self",(char *) "_class", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyGridTableBase__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5853 arg2 = obj1;
5854 arg3 = obj2;
5855 {
5856 PyThreadState* __tstate = wxPyBeginAllowThreads();
5857 (arg1)->_setCallbackInfo(arg2,arg3);
5858
5859 wxPyEndAllowThreads(__tstate);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 }
5862 Py_INCREF(Py_None); resultobj = Py_None;
5863 return resultobj;
5864 fail:
5865 return NULL;
5866 }
5867
5868
5869 static PyObject *_wrap_PyGridTableBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
5870 PyObject *resultobj;
5871 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5872 PyObject * obj0 = 0 ;
5873 char *kwnames[] = {
5874 (char *) "self", NULL
5875 };
5876
5877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_Destroy",kwnames,&obj0)) goto fail;
5878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 wxPyGridTableBase_Destroy(arg1);
5882
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 Py_INCREF(Py_None); resultobj = Py_None;
5887 return resultobj;
5888 fail:
5889 return NULL;
5890 }
5891
5892
5893 static PyObject *_wrap_PyGridTableBase_base_GetTypeName(PyObject *self, PyObject *args, PyObject *kwargs) {
5894 PyObject *resultobj;
5895 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5896 int arg2 ;
5897 int arg3 ;
5898 wxString result;
5899 PyObject * obj0 = 0 ;
5900 char *kwnames[] = {
5901 (char *) "self",(char *) "row",(char *) "col", NULL
5902 };
5903
5904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyGridTableBase_base_GetTypeName",kwnames,&obj0,&arg2,&arg3)) goto fail;
5905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 result = (arg1)->base_GetTypeName(arg2,arg3);
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 {
5914 #if wxUSE_UNICODE
5915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5916 #else
5917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5918 #endif
5919 }
5920 return resultobj;
5921 fail:
5922 return NULL;
5923 }
5924
5925
5926 static PyObject *_wrap_PyGridTableBase_base_CanGetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5927 PyObject *resultobj;
5928 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5929 int arg2 ;
5930 int arg3 ;
5931 wxString *arg4 = 0 ;
5932 bool result;
5933 bool temp4 = False ;
5934 PyObject * obj0 = 0 ;
5935 PyObject * obj3 = 0 ;
5936 char *kwnames[] = {
5937 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5938 };
5939
5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:PyGridTableBase_base_CanGetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5942 {
5943 arg4 = wxString_in_helper(obj3);
5944 if (arg4 == NULL) SWIG_fail;
5945 temp4 = True;
5946 }
5947 {
5948 PyThreadState* __tstate = wxPyBeginAllowThreads();
5949 result = (bool)(arg1)->base_CanGetValueAs(arg2,arg3,(wxString const &)*arg4);
5950
5951 wxPyEndAllowThreads(__tstate);
5952 if (PyErr_Occurred()) SWIG_fail;
5953 }
5954 resultobj = PyInt_FromLong((long)result);
5955 {
5956 if (temp4)
5957 delete arg4;
5958 }
5959 return resultobj;
5960 fail:
5961 {
5962 if (temp4)
5963 delete arg4;
5964 }
5965 return NULL;
5966 }
5967
5968
5969 static PyObject *_wrap_PyGridTableBase_base_CanSetValueAs(PyObject *self, PyObject *args, PyObject *kwargs) {
5970 PyObject *resultobj;
5971 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
5972 int arg2 ;
5973 int arg3 ;
5974 wxString *arg4 = 0 ;
5975 bool result;
5976 bool temp4 = False ;
5977 PyObject * obj0 = 0 ;
5978 PyObject * obj3 = 0 ;
5979 char *kwnames[] = {
5980 (char *) "self",(char *) "row",(char *) "col",(char *) "typeName", NULL
5981 };
5982
5983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:PyGridTableBase_base_CanSetValueAs",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
5984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5985 {
5986 arg4 = wxString_in_helper(obj3);
5987 if (arg4 == NULL) SWIG_fail;
5988 temp4 = True;
5989 }
5990 {
5991 PyThreadState* __tstate = wxPyBeginAllowThreads();
5992 result = (bool)(arg1)->base_CanSetValueAs(arg2,arg3,(wxString const &)*arg4);
5993
5994 wxPyEndAllowThreads(__tstate);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 }
5997 resultobj = PyInt_FromLong((long)result);
5998 {
5999 if (temp4)
6000 delete arg4;
6001 }
6002 return resultobj;
6003 fail:
6004 {
6005 if (temp4)
6006 delete arg4;
6007 }
6008 return NULL;
6009 }
6010
6011
6012 static PyObject *_wrap_PyGridTableBase_base_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj;
6014 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6015 PyObject * obj0 = 0 ;
6016 char *kwnames[] = {
6017 (char *) "self", NULL
6018 };
6019
6020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_Clear",kwnames,&obj0)) goto fail;
6021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 (arg1)->base_Clear();
6025
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
6029 Py_INCREF(Py_None); resultobj = Py_None;
6030 return resultobj;
6031 fail:
6032 return NULL;
6033 }
6034
6035
6036 static PyObject *_wrap_PyGridTableBase_base_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6037 PyObject *resultobj;
6038 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6039 size_t arg2 = (size_t) 0 ;
6040 size_t arg3 = (size_t) 1 ;
6041 bool result;
6042 PyObject * obj0 = 0 ;
6043 PyObject * obj1 = 0 ;
6044 PyObject * obj2 = 0 ;
6045 char *kwnames[] = {
6046 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6047 };
6048
6049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6051 if (obj1) {
6052 arg2 = (size_t) PyInt_AsLong(obj1);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 if (obj2) {
6056 arg3 = (size_t) PyInt_AsLong(obj2);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 {
6060 PyThreadState* __tstate = wxPyBeginAllowThreads();
6061 result = (bool)(arg1)->base_InsertRows(arg2,arg3);
6062
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 resultobj = PyInt_FromLong((long)result);
6067 return resultobj;
6068 fail:
6069 return NULL;
6070 }
6071
6072
6073 static PyObject *_wrap_PyGridTableBase_base_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6074 PyObject *resultobj;
6075 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6076 size_t arg2 = (size_t) 1 ;
6077 bool result;
6078 PyObject * obj0 = 0 ;
6079 PyObject * obj1 = 0 ;
6080 char *kwnames[] = {
6081 (char *) "self",(char *) "numRows", NULL
6082 };
6083
6084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendRows",kwnames,&obj0,&obj1)) goto fail;
6085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6086 if (obj1) {
6087 arg2 = (size_t) PyInt_AsLong(obj1);
6088 if (PyErr_Occurred()) SWIG_fail;
6089 }
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 result = (bool)(arg1)->base_AppendRows(arg2);
6093
6094 wxPyEndAllowThreads(__tstate);
6095 if (PyErr_Occurred()) SWIG_fail;
6096 }
6097 resultobj = PyInt_FromLong((long)result);
6098 return resultobj;
6099 fail:
6100 return NULL;
6101 }
6102
6103
6104 static PyObject *_wrap_PyGridTableBase_base_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
6105 PyObject *resultobj;
6106 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6107 size_t arg2 = (size_t) 0 ;
6108 size_t arg3 = (size_t) 1 ;
6109 bool result;
6110 PyObject * obj0 = 0 ;
6111 PyObject * obj1 = 0 ;
6112 PyObject * obj2 = 0 ;
6113 char *kwnames[] = {
6114 (char *) "self",(char *) "pos",(char *) "numRows", NULL
6115 };
6116
6117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteRows",kwnames,&obj0,&obj1,&obj2)) goto fail;
6118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6119 if (obj1) {
6120 arg2 = (size_t) PyInt_AsLong(obj1);
6121 if (PyErr_Occurred()) SWIG_fail;
6122 }
6123 if (obj2) {
6124 arg3 = (size_t) PyInt_AsLong(obj2);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 }
6127 {
6128 PyThreadState* __tstate = wxPyBeginAllowThreads();
6129 result = (bool)(arg1)->base_DeleteRows(arg2,arg3);
6130
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 resultobj = PyInt_FromLong((long)result);
6135 return resultobj;
6136 fail:
6137 return NULL;
6138 }
6139
6140
6141 static PyObject *_wrap_PyGridTableBase_base_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj;
6143 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6144 size_t arg2 = (size_t) 0 ;
6145 size_t arg3 = (size_t) 1 ;
6146 bool result;
6147 PyObject * obj0 = 0 ;
6148 PyObject * obj1 = 0 ;
6149 PyObject * obj2 = 0 ;
6150 char *kwnames[] = {
6151 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6152 };
6153
6154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_InsertCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6156 if (obj1) {
6157 arg2 = (size_t) PyInt_AsLong(obj1);
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 if (obj2) {
6161 arg3 = (size_t) PyInt_AsLong(obj2);
6162 if (PyErr_Occurred()) SWIG_fail;
6163 }
6164 {
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 result = (bool)(arg1)->base_InsertCols(arg2,arg3);
6167
6168 wxPyEndAllowThreads(__tstate);
6169 if (PyErr_Occurred()) SWIG_fail;
6170 }
6171 resultobj = PyInt_FromLong((long)result);
6172 return resultobj;
6173 fail:
6174 return NULL;
6175 }
6176
6177
6178 static PyObject *_wrap_PyGridTableBase_base_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6179 PyObject *resultobj;
6180 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6181 size_t arg2 = (size_t) 1 ;
6182 bool result;
6183 PyObject * obj0 = 0 ;
6184 PyObject * obj1 = 0 ;
6185 char *kwnames[] = {
6186 (char *) "self",(char *) "numCols", NULL
6187 };
6188
6189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyGridTableBase_base_AppendCols",kwnames,&obj0,&obj1)) goto fail;
6190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6191 if (obj1) {
6192 arg2 = (size_t) PyInt_AsLong(obj1);
6193 if (PyErr_Occurred()) SWIG_fail;
6194 }
6195 {
6196 PyThreadState* __tstate = wxPyBeginAllowThreads();
6197 result = (bool)(arg1)->base_AppendCols(arg2);
6198
6199 wxPyEndAllowThreads(__tstate);
6200 if (PyErr_Occurred()) SWIG_fail;
6201 }
6202 resultobj = PyInt_FromLong((long)result);
6203 return resultobj;
6204 fail:
6205 return NULL;
6206 }
6207
6208
6209 static PyObject *_wrap_PyGridTableBase_base_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
6210 PyObject *resultobj;
6211 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6212 size_t arg2 = (size_t) 0 ;
6213 size_t arg3 = (size_t) 1 ;
6214 bool result;
6215 PyObject * obj0 = 0 ;
6216 PyObject * obj1 = 0 ;
6217 PyObject * obj2 = 0 ;
6218 char *kwnames[] = {
6219 (char *) "self",(char *) "pos",(char *) "numCols", NULL
6220 };
6221
6222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:PyGridTableBase_base_DeleteCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
6223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6224 if (obj1) {
6225 arg2 = (size_t) PyInt_AsLong(obj1);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 }
6228 if (obj2) {
6229 arg3 = (size_t) PyInt_AsLong(obj2);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 }
6232 {
6233 PyThreadState* __tstate = wxPyBeginAllowThreads();
6234 result = (bool)(arg1)->base_DeleteCols(arg2,arg3);
6235
6236 wxPyEndAllowThreads(__tstate);
6237 if (PyErr_Occurred()) SWIG_fail;
6238 }
6239 resultobj = PyInt_FromLong((long)result);
6240 return resultobj;
6241 fail:
6242 return NULL;
6243 }
6244
6245
6246 static PyObject *_wrap_PyGridTableBase_base_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6247 PyObject *resultobj;
6248 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6249 int arg2 ;
6250 wxString result;
6251 PyObject * obj0 = 0 ;
6252 char *kwnames[] = {
6253 (char *) "self",(char *) "row", NULL
6254 };
6255
6256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyGridTableBase_base_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
6257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6258 {
6259 PyThreadState* __tstate = wxPyBeginAllowThreads();
6260 result = (arg1)->base_GetRowLabelValue(arg2);
6261
6262 wxPyEndAllowThreads(__tstate);
6263 if (PyErr_Occurred()) SWIG_fail;
6264 }
6265 {
6266 #if wxUSE_UNICODE
6267 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6268 #else
6269 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6270 #endif
6271 }
6272 return resultobj;
6273 fail:
6274 return NULL;
6275 }
6276
6277
6278 static PyObject *_wrap_PyGridTableBase_base_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6279 PyObject *resultobj;
6280 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6281 int arg2 ;
6282 wxString result;
6283 PyObject * obj0 = 0 ;
6284 char *kwnames[] = {
6285 (char *) "self",(char *) "col", NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:PyGridTableBase_base_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
6289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6290 {
6291 PyThreadState* __tstate = wxPyBeginAllowThreads();
6292 result = (arg1)->base_GetColLabelValue(arg2);
6293
6294 wxPyEndAllowThreads(__tstate);
6295 if (PyErr_Occurred()) SWIG_fail;
6296 }
6297 {
6298 #if wxUSE_UNICODE
6299 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6300 #else
6301 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6302 #endif
6303 }
6304 return resultobj;
6305 fail:
6306 return NULL;
6307 }
6308
6309
6310 static PyObject *_wrap_PyGridTableBase_base_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6311 PyObject *resultobj;
6312 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6313 int arg2 ;
6314 wxString *arg3 = 0 ;
6315 bool temp3 = False ;
6316 PyObject * obj0 = 0 ;
6317 PyObject * obj2 = 0 ;
6318 char *kwnames[] = {
6319 (char *) "self",(char *) "row",(char *) "value", NULL
6320 };
6321
6322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyGridTableBase_base_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
6323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6324 {
6325 arg3 = wxString_in_helper(obj2);
6326 if (arg3 == NULL) SWIG_fail;
6327 temp3 = True;
6328 }
6329 {
6330 PyThreadState* __tstate = wxPyBeginAllowThreads();
6331 (arg1)->base_SetRowLabelValue(arg2,(wxString const &)*arg3);
6332
6333 wxPyEndAllowThreads(__tstate);
6334 if (PyErr_Occurred()) SWIG_fail;
6335 }
6336 Py_INCREF(Py_None); resultobj = Py_None;
6337 {
6338 if (temp3)
6339 delete arg3;
6340 }
6341 return resultobj;
6342 fail:
6343 {
6344 if (temp3)
6345 delete arg3;
6346 }
6347 return NULL;
6348 }
6349
6350
6351 static PyObject *_wrap_PyGridTableBase_base_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
6352 PyObject *resultobj;
6353 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6354 int arg2 ;
6355 wxString *arg3 = 0 ;
6356 bool temp3 = False ;
6357 PyObject * obj0 = 0 ;
6358 PyObject * obj2 = 0 ;
6359 char *kwnames[] = {
6360 (char *) "self",(char *) "col",(char *) "value", NULL
6361 };
6362
6363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:PyGridTableBase_base_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
6364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6365 {
6366 arg3 = wxString_in_helper(obj2);
6367 if (arg3 == NULL) SWIG_fail;
6368 temp3 = True;
6369 }
6370 {
6371 PyThreadState* __tstate = wxPyBeginAllowThreads();
6372 (arg1)->base_SetColLabelValue(arg2,(wxString const &)*arg3);
6373
6374 wxPyEndAllowThreads(__tstate);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 Py_INCREF(Py_None); resultobj = Py_None;
6378 {
6379 if (temp3)
6380 delete arg3;
6381 }
6382 return resultobj;
6383 fail:
6384 {
6385 if (temp3)
6386 delete arg3;
6387 }
6388 return NULL;
6389 }
6390
6391
6392 static PyObject *_wrap_PyGridTableBase_base_CanHaveAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
6393 PyObject *resultobj;
6394 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6395 bool result;
6396 PyObject * obj0 = 0 ;
6397 char *kwnames[] = {
6398 (char *) "self", NULL
6399 };
6400
6401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyGridTableBase_base_CanHaveAttributes",kwnames,&obj0)) goto fail;
6402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6403 {
6404 PyThreadState* __tstate = wxPyBeginAllowThreads();
6405 result = (bool)(arg1)->base_CanHaveAttributes();
6406
6407 wxPyEndAllowThreads(__tstate);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 resultobj = PyInt_FromLong((long)result);
6411 return resultobj;
6412 fail:
6413 return NULL;
6414 }
6415
6416
6417 static PyObject *_wrap_PyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6418 PyObject *resultobj;
6419 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6420 int arg2 ;
6421 int arg3 ;
6422 int arg4 ;
6423 wxGridCellAttr *result;
6424 PyObject * obj0 = 0 ;
6425 char *kwnames[] = {
6426 (char *) "self",(char *) "row",(char *) "col",(char *) "kind", NULL
6427 };
6428
6429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiii:PyGridTableBase_base_GetAttr",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
6430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6431 {
6432 PyThreadState* __tstate = wxPyBeginAllowThreads();
6433 result = (wxGridCellAttr *)(arg1)->base_GetAttr(arg2,arg3,(wxGridCellAttr::wxAttrKind )arg4);
6434
6435 wxPyEndAllowThreads(__tstate);
6436 if (PyErr_Occurred()) SWIG_fail;
6437 }
6438 {
6439 resultobj = wxPyMake_wxGridCellAttr(result);
6440 }
6441 return resultobj;
6442 fail:
6443 return NULL;
6444 }
6445
6446
6447 static PyObject *_wrap_PyGridTableBase_base_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6448 PyObject *resultobj;
6449 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6450 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6451 int arg3 ;
6452 int arg4 ;
6453 PyObject * obj0 = 0 ;
6454 PyObject * obj1 = 0 ;
6455 char *kwnames[] = {
6456 (char *) "self",(char *) "attr",(char *) "row",(char *) "col", NULL
6457 };
6458
6459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii:PyGridTableBase_base_SetAttr",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail;
6460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6461 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6462 {
6463 PyThreadState* __tstate = wxPyBeginAllowThreads();
6464 (arg1)->base_SetAttr(arg2,arg3,arg4);
6465
6466 wxPyEndAllowThreads(__tstate);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 Py_INCREF(Py_None); resultobj = Py_None;
6470 return resultobj;
6471 fail:
6472 return NULL;
6473 }
6474
6475
6476 static PyObject *_wrap_PyGridTableBase_base_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6477 PyObject *resultobj;
6478 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6479 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6480 int arg3 ;
6481 PyObject * obj0 = 0 ;
6482 PyObject * obj1 = 0 ;
6483 char *kwnames[] = {
6484 (char *) "self",(char *) "attr",(char *) "row", NULL
6485 };
6486
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridTableBase_base_SetRowAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
6488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6489 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6490 {
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 (arg1)->base_SetRowAttr(arg2,arg3);
6493
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 Py_INCREF(Py_None); resultobj = Py_None;
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 static PyObject *_wrap_PyGridTableBase_base_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
6505 PyObject *resultobj;
6506 wxPyGridTableBase *arg1 = (wxPyGridTableBase *) 0 ;
6507 wxGridCellAttr *arg2 = (wxGridCellAttr *) 0 ;
6508 int arg3 ;
6509 PyObject * obj0 = 0 ;
6510 PyObject * obj1 = 0 ;
6511 char *kwnames[] = {
6512 (char *) "self",(char *) "attr",(char *) "col", NULL
6513 };
6514
6515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:PyGridTableBase_base_SetColAttr",kwnames,&obj0,&obj1,&arg3)) goto fail;
6516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6517 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->base_SetColAttr(arg2,arg3);
6521
6522 wxPyEndAllowThreads(__tstate);
6523 if (PyErr_Occurred()) SWIG_fail;
6524 }
6525 Py_INCREF(Py_None); resultobj = Py_None;
6526 return resultobj;
6527 fail:
6528 return NULL;
6529 }
6530
6531
6532 static PyObject * PyGridTableBase_swigregister(PyObject *self, PyObject *args) {
6533 PyObject *obj;
6534 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6535 SWIG_TypeClientData(SWIGTYPE_p_wxPyGridTableBase, obj);
6536 Py_INCREF(obj);
6537 return Py_BuildValue((char *)"");
6538 }
6539 static PyObject *_wrap_new_GridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj;
6541 int arg1 = (int) 0 ;
6542 int arg2 = (int) 0 ;
6543 wxGridStringTable *result;
6544 char *kwnames[] = {
6545 (char *) "numRows",(char *) "numCols", NULL
6546 };
6547
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridStringTable",kwnames,&arg1,&arg2)) goto fail;
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 result = (wxGridStringTable *)new wxGridStringTable(arg1,arg2);
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridStringTable, 1);
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 static PyObject * GridStringTable_swigregister(PyObject *self, PyObject *args) {
6564 PyObject *obj;
6565 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6566 SWIG_TypeClientData(SWIGTYPE_p_wxGridStringTable, obj);
6567 Py_INCREF(obj);
6568 return Py_BuildValue((char *)"");
6569 }
6570 static PyObject *_wrap_new_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
6571 PyObject *resultobj;
6572 wxGridTableBase *arg1 = (wxGridTableBase *) 0 ;
6573 int arg2 ;
6574 int arg3 = (int) -1 ;
6575 int arg4 = (int) -1 ;
6576 wxGridTableMessage *result;
6577 PyObject * obj0 = 0 ;
6578 char *kwnames[] = {
6579 (char *) "table",(char *) "id",(char *) "comInt1",(char *) "comInt2", NULL
6580 };
6581
6582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:new_GridTableMessage",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
6583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6584 {
6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
6586 result = (wxGridTableMessage *)new wxGridTableMessage(arg1,arg2,arg3,arg4);
6587
6588 wxPyEndAllowThreads(__tstate);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridTableMessage, 1);
6592 return resultobj;
6593 fail:
6594 return NULL;
6595 }
6596
6597
6598 static PyObject *_wrap_delete_GridTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
6599 PyObject *resultobj;
6600 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6601 PyObject * obj0 = 0 ;
6602 char *kwnames[] = {
6603 (char *) "self", NULL
6604 };
6605
6606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridTableMessage",kwnames,&obj0)) goto fail;
6607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6608 {
6609 PyThreadState* __tstate = wxPyBeginAllowThreads();
6610 delete arg1;
6611
6612 wxPyEndAllowThreads(__tstate);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 }
6615 Py_INCREF(Py_None); resultobj = Py_None;
6616 return resultobj;
6617 fail:
6618 return NULL;
6619 }
6620
6621
6622 static PyObject *_wrap_GridTableMessage_SetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
6623 PyObject *resultobj;
6624 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6625 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
6626 PyObject * obj0 = 0 ;
6627 PyObject * obj1 = 0 ;
6628 char *kwnames[] = {
6629 (char *) "self",(char *) "table", NULL
6630 };
6631
6632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridTableMessage_SetTableObject",kwnames,&obj0,&obj1)) goto fail;
6633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6634 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6635 {
6636 PyThreadState* __tstate = wxPyBeginAllowThreads();
6637 (arg1)->SetTableObject(arg2);
6638
6639 wxPyEndAllowThreads(__tstate);
6640 if (PyErr_Occurred()) SWIG_fail;
6641 }
6642 Py_INCREF(Py_None); resultobj = Py_None;
6643 return resultobj;
6644 fail:
6645 return NULL;
6646 }
6647
6648
6649 static PyObject *_wrap_GridTableMessage_GetTableObject(PyObject *self, PyObject *args, PyObject *kwargs) {
6650 PyObject *resultobj;
6651 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6652 wxGridTableBase *result;
6653 PyObject * obj0 = 0 ;
6654 char *kwnames[] = {
6655 (char *) "self", NULL
6656 };
6657
6658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetTableObject",kwnames,&obj0)) goto fail;
6659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (wxGridTableBase *)((wxGridTableMessage const *)arg1)->GetTableObject();
6663
6664 wxPyEndAllowThreads(__tstate);
6665 if (PyErr_Occurred()) SWIG_fail;
6666 }
6667 {
6668 resultobj = wxPyMake_wxGridTableBase(result);
6669 }
6670 return resultobj;
6671 fail:
6672 return NULL;
6673 }
6674
6675
6676 static PyObject *_wrap_GridTableMessage_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj;
6678 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6679 int arg2 ;
6680 PyObject * obj0 = 0 ;
6681 char *kwnames[] = {
6682 (char *) "self",(char *) "id", NULL
6683 };
6684
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetId",kwnames,&obj0,&arg2)) goto fail;
6686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6687 {
6688 PyThreadState* __tstate = wxPyBeginAllowThreads();
6689 (arg1)->SetId(arg2);
6690
6691 wxPyEndAllowThreads(__tstate);
6692 if (PyErr_Occurred()) SWIG_fail;
6693 }
6694 Py_INCREF(Py_None); resultobj = Py_None;
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 static PyObject *_wrap_GridTableMessage_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6702 PyObject *resultobj;
6703 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6704 int result;
6705 PyObject * obj0 = 0 ;
6706 char *kwnames[] = {
6707 (char *) "self", NULL
6708 };
6709
6710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetId",kwnames,&obj0)) goto fail;
6711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6712 {
6713 PyThreadState* __tstate = wxPyBeginAllowThreads();
6714 result = (int)(arg1)->GetId();
6715
6716 wxPyEndAllowThreads(__tstate);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 }
6719 resultobj = PyInt_FromLong((long)result);
6720 return resultobj;
6721 fail:
6722 return NULL;
6723 }
6724
6725
6726 static PyObject *_wrap_GridTableMessage_SetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj;
6728 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6729 int arg2 ;
6730 PyObject * obj0 = 0 ;
6731 char *kwnames[] = {
6732 (char *) "self",(char *) "comInt1", NULL
6733 };
6734
6735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetCommandInt",kwnames,&obj0,&arg2)) goto fail;
6736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6737 {
6738 PyThreadState* __tstate = wxPyBeginAllowThreads();
6739 (arg1)->SetCommandInt(arg2);
6740
6741 wxPyEndAllowThreads(__tstate);
6742 if (PyErr_Occurred()) SWIG_fail;
6743 }
6744 Py_INCREF(Py_None); resultobj = Py_None;
6745 return resultobj;
6746 fail:
6747 return NULL;
6748 }
6749
6750
6751 static PyObject *_wrap_GridTableMessage_GetCommandInt(PyObject *self, PyObject *args, PyObject *kwargs) {
6752 PyObject *resultobj;
6753 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6754 int result;
6755 PyObject * obj0 = 0 ;
6756 char *kwnames[] = {
6757 (char *) "self", NULL
6758 };
6759
6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt",kwnames,&obj0)) goto fail;
6761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6762 {
6763 PyThreadState* __tstate = wxPyBeginAllowThreads();
6764 result = (int)(arg1)->GetCommandInt();
6765
6766 wxPyEndAllowThreads(__tstate);
6767 if (PyErr_Occurred()) SWIG_fail;
6768 }
6769 resultobj = PyInt_FromLong((long)result);
6770 return resultobj;
6771 fail:
6772 return NULL;
6773 }
6774
6775
6776 static PyObject *_wrap_GridTableMessage_SetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
6777 PyObject *resultobj;
6778 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6779 int arg2 ;
6780 PyObject * obj0 = 0 ;
6781 char *kwnames[] = {
6782 (char *) "self",(char *) "comInt2", NULL
6783 };
6784
6785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridTableMessage_SetCommandInt2",kwnames,&obj0,&arg2)) goto fail;
6786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6787 {
6788 PyThreadState* __tstate = wxPyBeginAllowThreads();
6789 (arg1)->SetCommandInt2(arg2);
6790
6791 wxPyEndAllowThreads(__tstate);
6792 if (PyErr_Occurred()) SWIG_fail;
6793 }
6794 Py_INCREF(Py_None); resultobj = Py_None;
6795 return resultobj;
6796 fail:
6797 return NULL;
6798 }
6799
6800
6801 static PyObject *_wrap_GridTableMessage_GetCommandInt2(PyObject *self, PyObject *args, PyObject *kwargs) {
6802 PyObject *resultobj;
6803 wxGridTableMessage *arg1 = (wxGridTableMessage *) 0 ;
6804 int result;
6805 PyObject * obj0 = 0 ;
6806 char *kwnames[] = {
6807 (char *) "self", NULL
6808 };
6809
6810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridTableMessage_GetCommandInt2",kwnames,&obj0)) goto fail;
6811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6812 {
6813 PyThreadState* __tstate = wxPyBeginAllowThreads();
6814 result = (int)(arg1)->GetCommandInt2();
6815
6816 wxPyEndAllowThreads(__tstate);
6817 if (PyErr_Occurred()) SWIG_fail;
6818 }
6819 resultobj = PyInt_FromLong((long)result);
6820 return resultobj;
6821 fail:
6822 return NULL;
6823 }
6824
6825
6826 static PyObject * GridTableMessage_swigregister(PyObject *self, PyObject *args) {
6827 PyObject *obj;
6828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6829 SWIG_TypeClientData(SWIGTYPE_p_wxGridTableMessage, obj);
6830 Py_INCREF(obj);
6831 return Py_BuildValue((char *)"");
6832 }
6833 static PyObject *_wrap_new_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
6834 PyObject *resultobj;
6835 int arg1 = (int) -1 ;
6836 int arg2 = (int) -1 ;
6837 wxGridCellCoords *result;
6838 char *kwnames[] = {
6839 (char *) "r",(char *) "c", NULL
6840 };
6841
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_GridCellCoords",kwnames,&arg1,&arg2)) goto fail;
6843 {
6844 PyThreadState* __tstate = wxPyBeginAllowThreads();
6845 result = (wxGridCellCoords *)new wxGridCellCoords(arg1,arg2);
6846
6847 wxPyEndAllowThreads(__tstate);
6848 if (PyErr_Occurred()) SWIG_fail;
6849 }
6850 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridCellCoords, 1);
6851 return resultobj;
6852 fail:
6853 return NULL;
6854 }
6855
6856
6857 static PyObject *_wrap_delete_GridCellCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
6858 PyObject *resultobj;
6859 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6860 PyObject * obj0 = 0 ;
6861 char *kwnames[] = {
6862 (char *) "self", NULL
6863 };
6864
6865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GridCellCoords",kwnames,&obj0)) goto fail;
6866 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6867 {
6868 PyThreadState* __tstate = wxPyBeginAllowThreads();
6869 delete arg1;
6870
6871 wxPyEndAllowThreads(__tstate);
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 Py_INCREF(Py_None); resultobj = Py_None;
6875 return resultobj;
6876 fail:
6877 return NULL;
6878 }
6879
6880
6881 static PyObject *_wrap_GridCellCoords_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj;
6883 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6884 int result;
6885 PyObject * obj0 = 0 ;
6886 char *kwnames[] = {
6887 (char *) "self", NULL
6888 };
6889
6890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetRow",kwnames,&obj0)) goto fail;
6891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6892 {
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (int)((wxGridCellCoords const *)arg1)->GetRow();
6895
6896 wxPyEndAllowThreads(__tstate);
6897 if (PyErr_Occurred()) SWIG_fail;
6898 }
6899 resultobj = PyInt_FromLong((long)result);
6900 return resultobj;
6901 fail:
6902 return NULL;
6903 }
6904
6905
6906 static PyObject *_wrap_GridCellCoords_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
6907 PyObject *resultobj;
6908 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6909 int arg2 ;
6910 PyObject * obj0 = 0 ;
6911 char *kwnames[] = {
6912 (char *) "self",(char *) "n", NULL
6913 };
6914
6915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellCoords_SetRow",kwnames,&obj0,&arg2)) goto fail;
6916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6917 {
6918 PyThreadState* __tstate = wxPyBeginAllowThreads();
6919 (arg1)->SetRow(arg2);
6920
6921 wxPyEndAllowThreads(__tstate);
6922 if (PyErr_Occurred()) SWIG_fail;
6923 }
6924 Py_INCREF(Py_None); resultobj = Py_None;
6925 return resultobj;
6926 fail:
6927 return NULL;
6928 }
6929
6930
6931 static PyObject *_wrap_GridCellCoords_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
6932 PyObject *resultobj;
6933 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6934 int result;
6935 PyObject * obj0 = 0 ;
6936 char *kwnames[] = {
6937 (char *) "self", NULL
6938 };
6939
6940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_GetCol",kwnames,&obj0)) goto fail;
6941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6942 {
6943 PyThreadState* __tstate = wxPyBeginAllowThreads();
6944 result = (int)((wxGridCellCoords const *)arg1)->GetCol();
6945
6946 wxPyEndAllowThreads(__tstate);
6947 if (PyErr_Occurred()) SWIG_fail;
6948 }
6949 resultobj = PyInt_FromLong((long)result);
6950 return resultobj;
6951 fail:
6952 return NULL;
6953 }
6954
6955
6956 static PyObject *_wrap_GridCellCoords_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
6957 PyObject *resultobj;
6958 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6959 int arg2 ;
6960 PyObject * obj0 = 0 ;
6961 char *kwnames[] = {
6962 (char *) "self",(char *) "n", NULL
6963 };
6964
6965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridCellCoords_SetCol",kwnames,&obj0,&arg2)) goto fail;
6966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6967 {
6968 PyThreadState* __tstate = wxPyBeginAllowThreads();
6969 (arg1)->SetCol(arg2);
6970
6971 wxPyEndAllowThreads(__tstate);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 Py_INCREF(Py_None); resultobj = Py_None;
6975 return resultobj;
6976 fail:
6977 return NULL;
6978 }
6979
6980
6981 static PyObject *_wrap_GridCellCoords_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6982 PyObject *resultobj;
6983 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
6984 int arg2 ;
6985 int arg3 ;
6986 PyObject * obj0 = 0 ;
6987 char *kwnames[] = {
6988 (char *) "self",(char *) "row",(char *) "col", NULL
6989 };
6990
6991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:GridCellCoords_Set",kwnames,&obj0,&arg2,&arg3)) goto fail;
6992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6993 {
6994 PyThreadState* __tstate = wxPyBeginAllowThreads();
6995 (arg1)->Set(arg2,arg3);
6996
6997 wxPyEndAllowThreads(__tstate);
6998 if (PyErr_Occurred()) SWIG_fail;
6999 }
7000 Py_INCREF(Py_None); resultobj = Py_None;
7001 return resultobj;
7002 fail:
7003 return NULL;
7004 }
7005
7006
7007 static PyObject *_wrap_GridCellCoords___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7008 PyObject *resultobj;
7009 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7010 wxGridCellCoords *arg2 = 0 ;
7011 bool result;
7012 PyObject * obj0 = 0 ;
7013 PyObject * obj1 = 0 ;
7014 char *kwnames[] = {
7015 (char *) "self",(char *) "other", NULL
7016 };
7017
7018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___eq__",kwnames,&obj0,&obj1)) goto fail;
7019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7020 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7021 if (arg2 == NULL) {
7022 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7023 }
7024 {
7025 PyThreadState* __tstate = wxPyBeginAllowThreads();
7026 result = (bool)((wxGridCellCoords const *)arg1)->operator ==((wxGridCellCoords const &)*arg2);
7027
7028 wxPyEndAllowThreads(__tstate);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = PyInt_FromLong((long)result);
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 static PyObject *_wrap_GridCellCoords___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj;
7040 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7041 wxGridCellCoords *arg2 = 0 ;
7042 bool result;
7043 PyObject * obj0 = 0 ;
7044 PyObject * obj1 = 0 ;
7045 char *kwnames[] = {
7046 (char *) "self",(char *) "other", NULL
7047 };
7048
7049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridCellCoords___ne__",kwnames,&obj0,&obj1)) goto fail;
7050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7051 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7052 if (arg2 == NULL) {
7053 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7054 }
7055 {
7056 PyThreadState* __tstate = wxPyBeginAllowThreads();
7057 result = (bool)((wxGridCellCoords const *)arg1)->operator !=((wxGridCellCoords const &)*arg2);
7058
7059 wxPyEndAllowThreads(__tstate);
7060 if (PyErr_Occurred()) SWIG_fail;
7061 }
7062 resultobj = PyInt_FromLong((long)result);
7063 return resultobj;
7064 fail:
7065 return NULL;
7066 }
7067
7068
7069 static PyObject *_wrap_GridCellCoords_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7070 PyObject *resultobj;
7071 wxGridCellCoords *arg1 = (wxGridCellCoords *) 0 ;
7072 PyObject *result;
7073 PyObject * obj0 = 0 ;
7074 char *kwnames[] = {
7075 (char *) "self", NULL
7076 };
7077
7078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridCellCoords_asTuple",kwnames,&obj0)) goto fail;
7079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridCellCoords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7080 {
7081 PyThreadState* __tstate = wxPyBeginAllowThreads();
7082 result = (PyObject *)wxGridCellCoords_asTuple(arg1);
7083
7084 wxPyEndAllowThreads(__tstate);
7085 if (PyErr_Occurred()) SWIG_fail;
7086 }
7087 resultobj = result;
7088 return resultobj;
7089 fail:
7090 return NULL;
7091 }
7092
7093
7094 static PyObject * GridCellCoords_swigregister(PyObject *self, PyObject *args) {
7095 PyObject *obj;
7096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7097 SWIG_TypeClientData(SWIGTYPE_p_wxGridCellCoords, obj);
7098 Py_INCREF(obj);
7099 return Py_BuildValue((char *)"");
7100 }
7101 static PyObject *_wrap_new_Grid(PyObject *self, PyObject *args, PyObject *kwargs) {
7102 PyObject *resultobj;
7103 wxWindow *arg1 = (wxWindow *) 0 ;
7104 int arg2 ;
7105 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7106 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7107 wxSize const &arg4_defvalue = wxDefaultSize ;
7108 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7109 long arg5 = (long) wxWANTS_CHARS ;
7110 wxString const &arg6_defvalue = wxPyPanelNameStr ;
7111 wxString *arg6 = (wxString *) &arg6_defvalue ;
7112 wxGrid *result;
7113 wxPoint temp3 ;
7114 wxSize temp4 ;
7115 bool temp6 = False ;
7116 PyObject * obj0 = 0 ;
7117 PyObject * obj2 = 0 ;
7118 PyObject * obj3 = 0 ;
7119 PyObject * obj5 = 0 ;
7120 char *kwnames[] = {
7121 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7122 };
7123
7124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Grid",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail;
7125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7126 if (obj2) {
7127 {
7128 arg3 = &temp3;
7129 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7130 }
7131 }
7132 if (obj3) {
7133 {
7134 arg4 = &temp4;
7135 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7136 }
7137 }
7138 if (obj5) {
7139 {
7140 arg6 = wxString_in_helper(obj5);
7141 if (arg6 == NULL) SWIG_fail;
7142 temp6 = True;
7143 }
7144 }
7145 {
7146 PyThreadState* __tstate = wxPyBeginAllowThreads();
7147 result = (wxGrid *)new wxGrid(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7148
7149 wxPyEndAllowThreads(__tstate);
7150 if (PyErr_Occurred()) SWIG_fail;
7151 }
7152 {
7153 resultobj = wxPyMake_wxObject(result);
7154 }
7155 {
7156 if (temp6)
7157 delete arg6;
7158 }
7159 return resultobj;
7160 fail:
7161 {
7162 if (temp6)
7163 delete arg6;
7164 }
7165 return NULL;
7166 }
7167
7168
7169 static PyObject *_wrap_Grid_CreateGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
7170 PyObject *resultobj;
7171 wxGrid *arg1 = (wxGrid *) 0 ;
7172 int arg2 ;
7173 int arg3 ;
7174 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
7175 bool result;
7176 PyObject * obj0 = 0 ;
7177 char *kwnames[] = {
7178 (char *) "self",(char *) "numRows",(char *) "numCols",(char *) "selmode", NULL
7179 };
7180
7181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|i:Grid_CreateGrid",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
7182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7183 {
7184 PyThreadState* __tstate = wxPyBeginAllowThreads();
7185 result = (bool)(arg1)->CreateGrid(arg2,arg3,arg4);
7186
7187 wxPyEndAllowThreads(__tstate);
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 resultobj = PyInt_FromLong((long)result);
7191 return resultobj;
7192 fail:
7193 return NULL;
7194 }
7195
7196
7197 static PyObject *_wrap_Grid_SetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7198 PyObject *resultobj;
7199 wxGrid *arg1 = (wxGrid *) 0 ;
7200 WXGRIDSELECTIONMODES arg2 ;
7201 PyObject * obj0 = 0 ;
7202 char *kwnames[] = {
7203 (char *) "self",(char *) "selmode", NULL
7204 };
7205
7206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetSelectionMode",kwnames,&obj0,&arg2)) goto fail;
7207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7208 {
7209 PyThreadState* __tstate = wxPyBeginAllowThreads();
7210 (arg1)->SetSelectionMode(arg2);
7211
7212 wxPyEndAllowThreads(__tstate);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 Py_INCREF(Py_None); resultobj = Py_None;
7216 return resultobj;
7217 fail:
7218 return NULL;
7219 }
7220
7221
7222 static PyObject *_wrap_Grid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7223 PyObject *resultobj;
7224 wxGrid *arg1 = (wxGrid *) 0 ;
7225 WXGRIDSELECTIONMODES result;
7226 PyObject * obj0 = 0 ;
7227 char *kwnames[] = {
7228 (char *) "self", NULL
7229 };
7230
7231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionMode",kwnames,&obj0)) goto fail;
7232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7233 {
7234 PyThreadState* __tstate = wxPyBeginAllowThreads();
7235 result = (WXGRIDSELECTIONMODES)(arg1)->GetSelectionMode();
7236
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 resultobj = PyInt_FromLong((long)result);
7241 return resultobj;
7242 fail:
7243 return NULL;
7244 }
7245
7246
7247 static PyObject *_wrap_Grid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7248 PyObject *resultobj;
7249 wxGrid *arg1 = (wxGrid *) 0 ;
7250 int result;
7251 PyObject * obj0 = 0 ;
7252 char *kwnames[] = {
7253 (char *) "self", NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberRows",kwnames,&obj0)) goto fail;
7257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7258 {
7259 PyThreadState* __tstate = wxPyBeginAllowThreads();
7260 result = (int)(arg1)->GetNumberRows();
7261
7262 wxPyEndAllowThreads(__tstate);
7263 if (PyErr_Occurred()) SWIG_fail;
7264 }
7265 resultobj = PyInt_FromLong((long)result);
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 static PyObject *_wrap_Grid_GetNumberCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj;
7274 wxGrid *arg1 = (wxGrid *) 0 ;
7275 int result;
7276 PyObject * obj0 = 0 ;
7277 char *kwnames[] = {
7278 (char *) "self", NULL
7279 };
7280
7281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetNumberCols",kwnames,&obj0)) goto fail;
7282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 result = (int)(arg1)->GetNumberCols();
7286
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = PyInt_FromLong((long)result);
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 static PyObject *_wrap_Grid_ProcessTableMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj;
7299 wxGrid *arg1 = (wxGrid *) 0 ;
7300 wxGridTableMessage *arg2 = 0 ;
7301 bool result;
7302 PyObject * obj0 = 0 ;
7303 PyObject * obj1 = 0 ;
7304 char *kwnames[] = {
7305 (char *) "self","arg2", NULL
7306 };
7307
7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_ProcessTableMessage",kwnames,&obj0,&obj1)) goto fail;
7309 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7310 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableMessage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7311 if (arg2 == NULL) {
7312 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7313 }
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 result = (bool)(arg1)->ProcessTableMessage(*arg2);
7317
7318 wxPyEndAllowThreads(__tstate);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 resultobj = PyInt_FromLong((long)result);
7322 return resultobj;
7323 fail:
7324 return NULL;
7325 }
7326
7327
7328 static PyObject *_wrap_Grid_GetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7329 PyObject *resultobj;
7330 wxGrid *arg1 = (wxGrid *) 0 ;
7331 wxGridTableBase *result;
7332 PyObject * obj0 = 0 ;
7333 char *kwnames[] = {
7334 (char *) "self", NULL
7335 };
7336
7337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetTable",kwnames,&obj0)) goto fail;
7338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7339 {
7340 PyThreadState* __tstate = wxPyBeginAllowThreads();
7341 result = (wxGridTableBase *)((wxGrid const *)arg1)->GetTable();
7342
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 {
7347 resultobj = wxPyMake_wxGridTableBase(result);
7348 }
7349 return resultobj;
7350 fail:
7351 return NULL;
7352 }
7353
7354
7355 static PyObject *_wrap_Grid_SetTable(PyObject *self, PyObject *args, PyObject *kwargs) {
7356 PyObject *resultobj;
7357 wxGrid *arg1 = (wxGrid *) 0 ;
7358 wxGridTableBase *arg2 = (wxGridTableBase *) 0 ;
7359 bool arg3 = (bool) False ;
7360 WXGRIDSELECTIONMODES arg4 = (WXGRIDSELECTIONMODES) wxGrid::wxGridSelectCells ;
7361 bool result;
7362 PyObject * obj0 = 0 ;
7363 PyObject * obj1 = 0 ;
7364 PyObject * obj2 = 0 ;
7365 char *kwnames[] = {
7366 (char *) "self",(char *) "table",(char *) "takeOwnership",(char *) "selmode", NULL
7367 };
7368
7369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|Oi:Grid_SetTable",kwnames,&obj0,&obj1,&obj2,&arg4)) goto fail;
7370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7371 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridTableBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7372 if (obj2) {
7373 arg3 = PyInt_AsLong(obj2) ? true : false;
7374 if (PyErr_Occurred()) SWIG_fail;
7375 }
7376 {
7377 PyThreadState* __tstate = wxPyBeginAllowThreads();
7378 result = (bool)(arg1)->SetTable(arg2,arg3,arg4);
7379
7380 wxPyEndAllowThreads(__tstate);
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 resultobj = PyInt_FromLong((long)result);
7384 return resultobj;
7385 fail:
7386 return NULL;
7387 }
7388
7389
7390 static PyObject *_wrap_Grid_ClearGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
7391 PyObject *resultobj;
7392 wxGrid *arg1 = (wxGrid *) 0 ;
7393 PyObject * obj0 = 0 ;
7394 char *kwnames[] = {
7395 (char *) "self", NULL
7396 };
7397
7398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearGrid",kwnames,&obj0)) goto fail;
7399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 (arg1)->ClearGrid();
7403
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 Py_INCREF(Py_None); resultobj = Py_None;
7408 return resultobj;
7409 fail:
7410 return NULL;
7411 }
7412
7413
7414 static PyObject *_wrap_Grid_InsertRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7415 PyObject *resultobj;
7416 wxGrid *arg1 = (wxGrid *) 0 ;
7417 int arg2 = (int) 0 ;
7418 int arg3 = (int) 1 ;
7419 bool arg4 = (bool) True ;
7420 bool result;
7421 PyObject * obj0 = 0 ;
7422 PyObject * obj3 = 0 ;
7423 char *kwnames[] = {
7424 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
7425 };
7426
7427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_InsertRows",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7429 if (obj3) {
7430 arg4 = PyInt_AsLong(obj3) ? true : false;
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 {
7434 PyThreadState* __tstate = wxPyBeginAllowThreads();
7435 result = (bool)(arg1)->InsertRows(arg2,arg3,arg4);
7436
7437 wxPyEndAllowThreads(__tstate);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 resultobj = PyInt_FromLong((long)result);
7441 return resultobj;
7442 fail:
7443 return NULL;
7444 }
7445
7446
7447 static PyObject *_wrap_Grid_AppendRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7448 PyObject *resultobj;
7449 wxGrid *arg1 = (wxGrid *) 0 ;
7450 int arg2 = (int) 1 ;
7451 bool arg3 = (bool) True ;
7452 bool result;
7453 PyObject * obj0 = 0 ;
7454 PyObject * obj2 = 0 ;
7455 char *kwnames[] = {
7456 (char *) "self",(char *) "numRows",(char *) "updateLabels", NULL
7457 };
7458
7459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Grid_AppendRows",kwnames,&obj0,&arg2,&obj2)) goto fail;
7460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7461 if (obj2) {
7462 arg3 = PyInt_AsLong(obj2) ? true : false;
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 result = (bool)(arg1)->AppendRows(arg2,arg3);
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 resultobj = PyInt_FromLong((long)result);
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 static PyObject *_wrap_Grid_DeleteRows(PyObject *self, PyObject *args, PyObject *kwargs) {
7480 PyObject *resultobj;
7481 wxGrid *arg1 = (wxGrid *) 0 ;
7482 int arg2 = (int) 0 ;
7483 int arg3 = (int) 1 ;
7484 bool arg4 = (bool) True ;
7485 bool result;
7486 PyObject * obj0 = 0 ;
7487 PyObject * obj3 = 0 ;
7488 char *kwnames[] = {
7489 (char *) "self",(char *) "pos",(char *) "numRows",(char *) "updateLabels", NULL
7490 };
7491
7492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_DeleteRows",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7494 if (obj3) {
7495 arg4 = PyInt_AsLong(obj3) ? true : false;
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 {
7499 PyThreadState* __tstate = wxPyBeginAllowThreads();
7500 result = (bool)(arg1)->DeleteRows(arg2,arg3,arg4);
7501
7502 wxPyEndAllowThreads(__tstate);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 resultobj = PyInt_FromLong((long)result);
7506 return resultobj;
7507 fail:
7508 return NULL;
7509 }
7510
7511
7512 static PyObject *_wrap_Grid_InsertCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj;
7514 wxGrid *arg1 = (wxGrid *) 0 ;
7515 int arg2 = (int) 0 ;
7516 int arg3 = (int) 1 ;
7517 bool arg4 = (bool) True ;
7518 bool result;
7519 PyObject * obj0 = 0 ;
7520 PyObject * obj3 = 0 ;
7521 char *kwnames[] = {
7522 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
7523 };
7524
7525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_InsertCols",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7527 if (obj3) {
7528 arg4 = PyInt_AsLong(obj3) ? true : false;
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 {
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 result = (bool)(arg1)->InsertCols(arg2,arg3,arg4);
7534
7535 wxPyEndAllowThreads(__tstate);
7536 if (PyErr_Occurred()) SWIG_fail;
7537 }
7538 resultobj = PyInt_FromLong((long)result);
7539 return resultobj;
7540 fail:
7541 return NULL;
7542 }
7543
7544
7545 static PyObject *_wrap_Grid_AppendCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7546 PyObject *resultobj;
7547 wxGrid *arg1 = (wxGrid *) 0 ;
7548 int arg2 = (int) 1 ;
7549 bool arg3 = (bool) True ;
7550 bool result;
7551 PyObject * obj0 = 0 ;
7552 PyObject * obj2 = 0 ;
7553 char *kwnames[] = {
7554 (char *) "self",(char *) "numCols",(char *) "updateLabels", NULL
7555 };
7556
7557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iO:Grid_AppendCols",kwnames,&obj0,&arg2,&obj2)) goto fail;
7558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7559 if (obj2) {
7560 arg3 = PyInt_AsLong(obj2) ? true : false;
7561 if (PyErr_Occurred()) SWIG_fail;
7562 }
7563 {
7564 PyThreadState* __tstate = wxPyBeginAllowThreads();
7565 result = (bool)(arg1)->AppendCols(arg2,arg3);
7566
7567 wxPyEndAllowThreads(__tstate);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 resultobj = PyInt_FromLong((long)result);
7571 return resultobj;
7572 fail:
7573 return NULL;
7574 }
7575
7576
7577 static PyObject *_wrap_Grid_DeleteCols(PyObject *self, PyObject *args, PyObject *kwargs) {
7578 PyObject *resultobj;
7579 wxGrid *arg1 = (wxGrid *) 0 ;
7580 int arg2 = (int) 0 ;
7581 int arg3 = (int) 1 ;
7582 bool arg4 = (bool) True ;
7583 bool result;
7584 PyObject * obj0 = 0 ;
7585 PyObject * obj3 = 0 ;
7586 char *kwnames[] = {
7587 (char *) "self",(char *) "pos",(char *) "numCols",(char *) "updateLabels", NULL
7588 };
7589
7590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iiO:Grid_DeleteCols",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
7591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7592 if (obj3) {
7593 arg4 = PyInt_AsLong(obj3) ? true : false;
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 result = (bool)(arg1)->DeleteCols(arg2,arg3,arg4);
7599
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = PyInt_FromLong((long)result);
7604 return resultobj;
7605 fail:
7606 return NULL;
7607 }
7608
7609
7610 static PyObject *_wrap_Grid_DrawCellHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
7611 PyObject *resultobj;
7612 wxGrid *arg1 = (wxGrid *) 0 ;
7613 wxDC *arg2 = 0 ;
7614 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
7615 PyObject * obj0 = 0 ;
7616 PyObject * obj1 = 0 ;
7617 PyObject * obj2 = 0 ;
7618 char *kwnames[] = {
7619 (char *) "self",(char *) "dc",(char *) "attr", NULL
7620 };
7621
7622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_DrawCellHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
7623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7624 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7625 if (arg2 == NULL) {
7626 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7627 }
7628 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 (arg1)->DrawCellHighlight(*arg2,(wxGridCellAttr const *)arg3);
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 Py_INCREF(Py_None); resultobj = Py_None;
7637 return resultobj;
7638 fail:
7639 return NULL;
7640 }
7641
7642
7643 static PyObject *_wrap_Grid_DrawTextRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj;
7645 wxGrid *arg1 = (wxGrid *) 0 ;
7646 wxDC *arg2 = 0 ;
7647 wxString *arg3 = 0 ;
7648 wxRect *arg4 = 0 ;
7649 int arg5 = (int) wxLEFT ;
7650 int arg6 = (int) wxTOP ;
7651 int arg7 = (int) wxHORIZONTAL ;
7652 bool temp3 = False ;
7653 wxRect temp4 ;
7654 PyObject * obj0 = 0 ;
7655 PyObject * obj1 = 0 ;
7656 PyObject * obj2 = 0 ;
7657 PyObject * obj3 = 0 ;
7658 char *kwnames[] = {
7659 (char *) "self",(char *) "dc","arg3","arg4",(char *) "horizontalAlignment",(char *) "verticalAlignment",(char *) "textOrientation", NULL
7660 };
7661
7662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iii:Grid_DrawTextRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&arg7)) goto fail;
7663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7664 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7665 if (arg2 == NULL) {
7666 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7667 }
7668 {
7669 arg3 = wxString_in_helper(obj2);
7670 if (arg3 == NULL) SWIG_fail;
7671 temp3 = True;
7672 }
7673 {
7674 arg4 = &temp4;
7675 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
7676 }
7677 {
7678 PyThreadState* __tstate = wxPyBeginAllowThreads();
7679 (arg1)->DrawTextRectangle(*arg2,(wxString const &)*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
7680
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 Py_INCREF(Py_None); resultobj = Py_None;
7685 {
7686 if (temp3)
7687 delete arg3;
7688 }
7689 return resultobj;
7690 fail:
7691 {
7692 if (temp3)
7693 delete arg3;
7694 }
7695 return NULL;
7696 }
7697
7698
7699 static PyObject *_wrap_Grid_GetTextBoxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7700 PyObject *resultobj;
7701 wxGrid *arg1 = (wxGrid *) 0 ;
7702 wxDC *arg2 = 0 ;
7703 wxArrayString *arg3 = 0 ;
7704 long *arg4 = (long *) 0 ;
7705 long *arg5 = (long *) 0 ;
7706 long temp4 ;
7707 long temp5 ;
7708 PyObject * obj0 = 0 ;
7709 PyObject * obj1 = 0 ;
7710 PyObject * obj2 = 0 ;
7711 char *kwnames[] = {
7712 (char *) "self",(char *) "dc",(char *) "lines", NULL
7713 };
7714
7715 arg4 = &temp4;
7716 arg5 = &temp5;
7717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_GetTextBoxSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
7718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7719 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7720 if (arg2 == NULL) {
7721 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7722 }
7723 {
7724 if (! PySequence_Check(obj2)) {
7725 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
7726 SWIG_fail;
7727 }
7728 arg3 = new wxArrayString;
7729 int i, len=PySequence_Length(obj2);
7730 for (i=0; i<len; i++) {
7731 PyObject* item = PySequence_GetItem(obj2, i);
7732 #if wxUSE_UNICODE
7733 PyObject* str = PyObject_Unicode(item);
7734 #else
7735 PyObject* str = PyObject_Str(item);
7736 #endif
7737 arg3->Add(Py2wxString(str));
7738 Py_DECREF(item);
7739 Py_DECREF(str);
7740 }
7741 }
7742 {
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 (arg1)->GetTextBoxSize(*arg2,*arg3,arg4,arg5);
7745
7746 wxPyEndAllowThreads(__tstate);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 Py_INCREF(Py_None); resultobj = Py_None;
7750 {
7751 PyObject *o = PyInt_FromLong((long) (*arg4));
7752 resultobj = t_output_helper(resultobj,o);
7753 }
7754 {
7755 PyObject *o = PyInt_FromLong((long) (*arg5));
7756 resultobj = t_output_helper(resultobj,o);
7757 }
7758 {
7759 if (arg3) delete arg3;
7760 }
7761 return resultobj;
7762 fail:
7763 {
7764 if (arg3) delete arg3;
7765 }
7766 return NULL;
7767 }
7768
7769
7770 static PyObject *_wrap_Grid_BeginBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
7771 PyObject *resultobj;
7772 wxGrid *arg1 = (wxGrid *) 0 ;
7773 PyObject * obj0 = 0 ;
7774 char *kwnames[] = {
7775 (char *) "self", NULL
7776 };
7777
7778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_BeginBatch",kwnames,&obj0)) goto fail;
7779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7780 {
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 (arg1)->BeginBatch();
7783
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 Py_INCREF(Py_None); resultobj = Py_None;
7788 return resultobj;
7789 fail:
7790 return NULL;
7791 }
7792
7793
7794 static PyObject *_wrap_Grid_EndBatch(PyObject *self, PyObject *args, PyObject *kwargs) {
7795 PyObject *resultobj;
7796 wxGrid *arg1 = (wxGrid *) 0 ;
7797 PyObject * obj0 = 0 ;
7798 char *kwnames[] = {
7799 (char *) "self", NULL
7800 };
7801
7802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_EndBatch",kwnames,&obj0)) goto fail;
7803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7804 {
7805 PyThreadState* __tstate = wxPyBeginAllowThreads();
7806 (arg1)->EndBatch();
7807
7808 wxPyEndAllowThreads(__tstate);
7809 if (PyErr_Occurred()) SWIG_fail;
7810 }
7811 Py_INCREF(Py_None); resultobj = Py_None;
7812 return resultobj;
7813 fail:
7814 return NULL;
7815 }
7816
7817
7818 static PyObject *_wrap_Grid_GetBatchCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7819 PyObject *resultobj;
7820 wxGrid *arg1 = (wxGrid *) 0 ;
7821 int result;
7822 PyObject * obj0 = 0 ;
7823 char *kwnames[] = {
7824 (char *) "self", NULL
7825 };
7826
7827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetBatchCount",kwnames,&obj0)) goto fail;
7828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7829 {
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 result = (int)(arg1)->GetBatchCount();
7832
7833 wxPyEndAllowThreads(__tstate);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = PyInt_FromLong((long)result);
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 static PyObject *_wrap_Grid_ForceRefresh(PyObject *self, PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj;
7845 wxGrid *arg1 = (wxGrid *) 0 ;
7846 PyObject * obj0 = 0 ;
7847 char *kwnames[] = {
7848 (char *) "self", NULL
7849 };
7850
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ForceRefresh",kwnames,&obj0)) goto fail;
7852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7853 {
7854 PyThreadState* __tstate = wxPyBeginAllowThreads();
7855 (arg1)->ForceRefresh();
7856
7857 wxPyEndAllowThreads(__tstate);
7858 if (PyErr_Occurred()) SWIG_fail;
7859 }
7860 Py_INCREF(Py_None); resultobj = Py_None;
7861 return resultobj;
7862 fail:
7863 return NULL;
7864 }
7865
7866
7867 static PyObject *_wrap_Grid_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
7868 PyObject *resultobj;
7869 wxGrid *arg1 = (wxGrid *) 0 ;
7870 bool arg2 = (bool) True ;
7871 wxRect *arg3 = (wxRect *) NULL ;
7872 PyObject * obj0 = 0 ;
7873 PyObject * obj1 = 0 ;
7874 PyObject * obj2 = 0 ;
7875 char *kwnames[] = {
7876 (char *) "self",(char *) "eraseb",(char *) "rect", NULL
7877 };
7878
7879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Grid_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
7880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7881 if (obj1) {
7882 arg2 = PyInt_AsLong(obj1) ? true : false;
7883 if (PyErr_Occurred()) SWIG_fail;
7884 }
7885 if (obj2) {
7886 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7887 }
7888 {
7889 PyThreadState* __tstate = wxPyBeginAllowThreads();
7890 (arg1)->Refresh(arg2,(wxRect const *)arg3);
7891
7892 wxPyEndAllowThreads(__tstate);
7893 if (PyErr_Occurred()) SWIG_fail;
7894 }
7895 Py_INCREF(Py_None); resultobj = Py_None;
7896 return resultobj;
7897 fail:
7898 return NULL;
7899 }
7900
7901
7902 static PyObject *_wrap_Grid_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) {
7903 PyObject *resultobj;
7904 wxGrid *arg1 = (wxGrid *) 0 ;
7905 bool result;
7906 PyObject * obj0 = 0 ;
7907 char *kwnames[] = {
7908 (char *) "self", NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsEditable",kwnames,&obj0)) goto fail;
7912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7913 {
7914 PyThreadState* __tstate = wxPyBeginAllowThreads();
7915 result = (bool)(arg1)->IsEditable();
7916
7917 wxPyEndAllowThreads(__tstate);
7918 if (PyErr_Occurred()) SWIG_fail;
7919 }
7920 resultobj = PyInt_FromLong((long)result);
7921 return resultobj;
7922 fail:
7923 return NULL;
7924 }
7925
7926
7927 static PyObject *_wrap_Grid_EnableEditing(PyObject *self, PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj;
7929 wxGrid *arg1 = (wxGrid *) 0 ;
7930 bool arg2 ;
7931 PyObject * obj0 = 0 ;
7932 PyObject * obj1 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self",(char *) "edit", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_EnableEditing",kwnames,&obj0,&obj1)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7939 arg2 = PyInt_AsLong(obj1) ? true : false;
7940 if (PyErr_Occurred()) SWIG_fail;
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 (arg1)->EnableEditing(arg2);
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 Py_INCREF(Py_None); resultobj = Py_None;
7949 return resultobj;
7950 fail:
7951 return NULL;
7952 }
7953
7954
7955 static PyObject *_wrap_Grid_EnableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj;
7957 wxGrid *arg1 = (wxGrid *) 0 ;
7958 bool arg2 = (bool) True ;
7959 PyObject * obj0 = 0 ;
7960 PyObject * obj1 = 0 ;
7961 char *kwnames[] = {
7962 (char *) "self",(char *) "enable", NULL
7963 };
7964
7965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableCellEditControl",kwnames,&obj0,&obj1)) goto fail;
7966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7967 if (obj1) {
7968 arg2 = PyInt_AsLong(obj1) ? true : false;
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 PyThreadState* __tstate = wxPyBeginAllowThreads();
7973 (arg1)->EnableCellEditControl(arg2);
7974
7975 wxPyEndAllowThreads(__tstate);
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 Py_INCREF(Py_None); resultobj = Py_None;
7979 return resultobj;
7980 fail:
7981 return NULL;
7982 }
7983
7984
7985 static PyObject *_wrap_Grid_DisableCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
7986 PyObject *resultobj;
7987 wxGrid *arg1 = (wxGrid *) 0 ;
7988 PyObject * obj0 = 0 ;
7989 char *kwnames[] = {
7990 (char *) "self", NULL
7991 };
7992
7993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableCellEditControl",kwnames,&obj0)) goto fail;
7994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7995 {
7996 PyThreadState* __tstate = wxPyBeginAllowThreads();
7997 (arg1)->DisableCellEditControl();
7998
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 Py_INCREF(Py_None); resultobj = Py_None;
8003 return resultobj;
8004 fail:
8005 return NULL;
8006 }
8007
8008
8009 static PyObject *_wrap_Grid_CanEnableCellControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxGrid *arg1 = (wxGrid *) 0 ;
8012 bool result;
8013 PyObject * obj0 = 0 ;
8014 char *kwnames[] = {
8015 (char *) "self", NULL
8016 };
8017
8018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanEnableCellControl",kwnames,&obj0)) goto fail;
8019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8020 {
8021 PyThreadState* __tstate = wxPyBeginAllowThreads();
8022 result = (bool)((wxGrid const *)arg1)->CanEnableCellControl();
8023
8024 wxPyEndAllowThreads(__tstate);
8025 if (PyErr_Occurred()) SWIG_fail;
8026 }
8027 resultobj = PyInt_FromLong((long)result);
8028 return resultobj;
8029 fail:
8030 return NULL;
8031 }
8032
8033
8034 static PyObject *_wrap_Grid_IsCellEditControlEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
8035 PyObject *resultobj;
8036 wxGrid *arg1 = (wxGrid *) 0 ;
8037 bool result;
8038 PyObject * obj0 = 0 ;
8039 char *kwnames[] = {
8040 (char *) "self", NULL
8041 };
8042
8043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlEnabled",kwnames,&obj0)) goto fail;
8044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 result = (bool)((wxGrid const *)arg1)->IsCellEditControlEnabled();
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 resultobj = PyInt_FromLong((long)result);
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 static PyObject *_wrap_Grid_IsCellEditControlShown(PyObject *self, PyObject *args, PyObject *kwargs) {
8060 PyObject *resultobj;
8061 wxGrid *arg1 = (wxGrid *) 0 ;
8062 bool result;
8063 PyObject * obj0 = 0 ;
8064 char *kwnames[] = {
8065 (char *) "self", NULL
8066 };
8067
8068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCellEditControlShown",kwnames,&obj0)) goto fail;
8069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8070 {
8071 PyThreadState* __tstate = wxPyBeginAllowThreads();
8072 result = (bool)((wxGrid const *)arg1)->IsCellEditControlShown();
8073
8074 wxPyEndAllowThreads(__tstate);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 resultobj = PyInt_FromLong((long)result);
8078 return resultobj;
8079 fail:
8080 return NULL;
8081 }
8082
8083
8084 static PyObject *_wrap_Grid_IsCurrentCellReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
8085 PyObject *resultobj;
8086 wxGrid *arg1 = (wxGrid *) 0 ;
8087 bool result;
8088 PyObject * obj0 = 0 ;
8089 char *kwnames[] = {
8090 (char *) "self", NULL
8091 };
8092
8093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsCurrentCellReadOnly",kwnames,&obj0)) goto fail;
8094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8095 {
8096 PyThreadState* __tstate = wxPyBeginAllowThreads();
8097 result = (bool)((wxGrid const *)arg1)->IsCurrentCellReadOnly();
8098
8099 wxPyEndAllowThreads(__tstate);
8100 if (PyErr_Occurred()) SWIG_fail;
8101 }
8102 resultobj = PyInt_FromLong((long)result);
8103 return resultobj;
8104 fail:
8105 return NULL;
8106 }
8107
8108
8109 static PyObject *_wrap_Grid_ShowCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8110 PyObject *resultobj;
8111 wxGrid *arg1 = (wxGrid *) 0 ;
8112 PyObject * obj0 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "self", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ShowCellEditControl",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 (arg1)->ShowCellEditControl();
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 Py_INCREF(Py_None); resultobj = Py_None;
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_Grid_HideCellEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxGrid *arg1 = (wxGrid *) 0 ;
8136 PyObject * obj0 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "self", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_HideCellEditControl",kwnames,&obj0)) goto fail;
8142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8143 {
8144 PyThreadState* __tstate = wxPyBeginAllowThreads();
8145 (arg1)->HideCellEditControl();
8146
8147 wxPyEndAllowThreads(__tstate);
8148 if (PyErr_Occurred()) SWIG_fail;
8149 }
8150 Py_INCREF(Py_None); resultobj = Py_None;
8151 return resultobj;
8152 fail:
8153 return NULL;
8154 }
8155
8156
8157 static PyObject *_wrap_Grid_SaveEditControlValue(PyObject *self, PyObject *args, PyObject *kwargs) {
8158 PyObject *resultobj;
8159 wxGrid *arg1 = (wxGrid *) 0 ;
8160 PyObject * obj0 = 0 ;
8161 char *kwnames[] = {
8162 (char *) "self", NULL
8163 };
8164
8165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SaveEditControlValue",kwnames,&obj0)) goto fail;
8166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8167 {
8168 PyThreadState* __tstate = wxPyBeginAllowThreads();
8169 (arg1)->SaveEditControlValue();
8170
8171 wxPyEndAllowThreads(__tstate);
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 Py_INCREF(Py_None); resultobj = Py_None;
8175 return resultobj;
8176 fail:
8177 return NULL;
8178 }
8179
8180
8181 static PyObject *_wrap_Grid_XYToCell(PyObject *self, PyObject *args, PyObject *kwargs) {
8182 PyObject *resultobj;
8183 wxGrid *arg1 = (wxGrid *) 0 ;
8184 int arg2 ;
8185 int arg3 ;
8186 wxGridCellCoords result;
8187 PyObject * obj0 = 0 ;
8188 char *kwnames[] = {
8189 (char *) "self",(char *) "x",(char *) "y", NULL
8190 };
8191
8192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_XYToCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
8193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8194 {
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 result = wxGrid_XYToCell(arg1,arg2,arg3);
8197
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 {
8202 wxGridCellCoords * resultptr;
8203 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
8204 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
8205 }
8206 return resultobj;
8207 fail:
8208 return NULL;
8209 }
8210
8211
8212 static PyObject *_wrap_Grid_YToRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8213 PyObject *resultobj;
8214 wxGrid *arg1 = (wxGrid *) 0 ;
8215 int arg2 ;
8216 int result;
8217 PyObject * obj0 = 0 ;
8218 char *kwnames[] = {
8219 (char *) "self",(char *) "y", NULL
8220 };
8221
8222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_YToRow",kwnames,&obj0,&arg2)) goto fail;
8223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8224 {
8225 PyThreadState* __tstate = wxPyBeginAllowThreads();
8226 result = (int)(arg1)->YToRow(arg2);
8227
8228 wxPyEndAllowThreads(__tstate);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 resultobj = PyInt_FromLong((long)result);
8232 return resultobj;
8233 fail:
8234 return NULL;
8235 }
8236
8237
8238 static PyObject *_wrap_Grid_XToCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8239 PyObject *resultobj;
8240 wxGrid *arg1 = (wxGrid *) 0 ;
8241 int arg2 ;
8242 int result;
8243 PyObject * obj0 = 0 ;
8244 char *kwnames[] = {
8245 (char *) "self",(char *) "x", NULL
8246 };
8247
8248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_XToCol",kwnames,&obj0,&arg2)) goto fail;
8249 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8250 {
8251 PyThreadState* __tstate = wxPyBeginAllowThreads();
8252 result = (int)(arg1)->XToCol(arg2);
8253
8254 wxPyEndAllowThreads(__tstate);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 resultobj = PyInt_FromLong((long)result);
8258 return resultobj;
8259 fail:
8260 return NULL;
8261 }
8262
8263
8264 static PyObject *_wrap_Grid_YToEdgeOfRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8265 PyObject *resultobj;
8266 wxGrid *arg1 = (wxGrid *) 0 ;
8267 int arg2 ;
8268 int result;
8269 PyObject * obj0 = 0 ;
8270 char *kwnames[] = {
8271 (char *) "self",(char *) "y", NULL
8272 };
8273
8274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_YToEdgeOfRow",kwnames,&obj0,&arg2)) goto fail;
8275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8276 {
8277 PyThreadState* __tstate = wxPyBeginAllowThreads();
8278 result = (int)(arg1)->YToEdgeOfRow(arg2);
8279
8280 wxPyEndAllowThreads(__tstate);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 resultobj = PyInt_FromLong((long)result);
8284 return resultobj;
8285 fail:
8286 return NULL;
8287 }
8288
8289
8290 static PyObject *_wrap_Grid_XToEdgeOfCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8291 PyObject *resultobj;
8292 wxGrid *arg1 = (wxGrid *) 0 ;
8293 int arg2 ;
8294 int result;
8295 PyObject * obj0 = 0 ;
8296 char *kwnames[] = {
8297 (char *) "self",(char *) "x", NULL
8298 };
8299
8300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_XToEdgeOfCol",kwnames,&obj0,&arg2)) goto fail;
8301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8302 {
8303 PyThreadState* __tstate = wxPyBeginAllowThreads();
8304 result = (int)(arg1)->XToEdgeOfCol(arg2);
8305
8306 wxPyEndAllowThreads(__tstate);
8307 if (PyErr_Occurred()) SWIG_fail;
8308 }
8309 resultobj = PyInt_FromLong((long)result);
8310 return resultobj;
8311 fail:
8312 return NULL;
8313 }
8314
8315
8316 static PyObject *_wrap_Grid_CellToRect(PyObject *self, PyObject *args, PyObject *kwargs) {
8317 PyObject *resultobj;
8318 wxGrid *arg1 = (wxGrid *) 0 ;
8319 int arg2 ;
8320 int arg3 ;
8321 wxRect result;
8322 PyObject * obj0 = 0 ;
8323 char *kwnames[] = {
8324 (char *) "self",(char *) "row",(char *) "col", NULL
8325 };
8326
8327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_CellToRect",kwnames,&obj0,&arg2,&arg3)) goto fail;
8328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 result = (arg1)->CellToRect(arg2,arg3);
8332
8333 wxPyEndAllowThreads(__tstate);
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 {
8337 wxRect * resultptr;
8338 resultptr = new wxRect((wxRect &) result);
8339 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
8340 }
8341 return resultobj;
8342 fail:
8343 return NULL;
8344 }
8345
8346
8347 static PyObject *_wrap_Grid_GetGridCursorRow(PyObject *self, PyObject *args, PyObject *kwargs) {
8348 PyObject *resultobj;
8349 wxGrid *arg1 = (wxGrid *) 0 ;
8350 int result;
8351 PyObject * obj0 = 0 ;
8352 char *kwnames[] = {
8353 (char *) "self", NULL
8354 };
8355
8356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorRow",kwnames,&obj0)) goto fail;
8357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8358 {
8359 PyThreadState* __tstate = wxPyBeginAllowThreads();
8360 result = (int)(arg1)->GetGridCursorRow();
8361
8362 wxPyEndAllowThreads(__tstate);
8363 if (PyErr_Occurred()) SWIG_fail;
8364 }
8365 resultobj = PyInt_FromLong((long)result);
8366 return resultobj;
8367 fail:
8368 return NULL;
8369 }
8370
8371
8372 static PyObject *_wrap_Grid_GetGridCursorCol(PyObject *self, PyObject *args, PyObject *kwargs) {
8373 PyObject *resultobj;
8374 wxGrid *arg1 = (wxGrid *) 0 ;
8375 int result;
8376 PyObject * obj0 = 0 ;
8377 char *kwnames[] = {
8378 (char *) "self", NULL
8379 };
8380
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCursorCol",kwnames,&obj0)) goto fail;
8382 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
8385 result = (int)(arg1)->GetGridCursorCol();
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 resultobj = PyInt_FromLong((long)result);
8391 return resultobj;
8392 fail:
8393 return NULL;
8394 }
8395
8396
8397 static PyObject *_wrap_Grid_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8398 PyObject *resultobj;
8399 wxGrid *arg1 = (wxGrid *) 0 ;
8400 int arg2 ;
8401 int arg3 ;
8402 bool arg4 = (bool) True ;
8403 bool result;
8404 PyObject * obj0 = 0 ;
8405 PyObject * obj3 = 0 ;
8406 char *kwnames[] = {
8407 (char *) "self",(char *) "row",(char *) "col",(char *) "wholeCellVisible", NULL
8408 };
8409
8410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Grid_IsVisible",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
8411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8412 if (obj3) {
8413 arg4 = PyInt_AsLong(obj3) ? true : false;
8414 if (PyErr_Occurred()) SWIG_fail;
8415 }
8416 {
8417 PyThreadState* __tstate = wxPyBeginAllowThreads();
8418 result = (bool)(arg1)->IsVisible(arg2,arg3,arg4);
8419
8420 wxPyEndAllowThreads(__tstate);
8421 if (PyErr_Occurred()) SWIG_fail;
8422 }
8423 resultobj = PyInt_FromLong((long)result);
8424 return resultobj;
8425 fail:
8426 return NULL;
8427 }
8428
8429
8430 static PyObject *_wrap_Grid_MakeCellVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8431 PyObject *resultobj;
8432 wxGrid *arg1 = (wxGrid *) 0 ;
8433 int arg2 ;
8434 int arg3 ;
8435 PyObject * obj0 = 0 ;
8436 char *kwnames[] = {
8437 (char *) "self",(char *) "row",(char *) "col", NULL
8438 };
8439
8440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_MakeCellVisible",kwnames,&obj0,&arg2,&arg3)) goto fail;
8441 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8442 {
8443 PyThreadState* __tstate = wxPyBeginAllowThreads();
8444 (arg1)->MakeCellVisible(arg2,arg3);
8445
8446 wxPyEndAllowThreads(__tstate);
8447 if (PyErr_Occurred()) SWIG_fail;
8448 }
8449 Py_INCREF(Py_None); resultobj = Py_None;
8450 return resultobj;
8451 fail:
8452 return NULL;
8453 }
8454
8455
8456 static PyObject *_wrap_Grid_SetGridCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
8457 PyObject *resultobj;
8458 wxGrid *arg1 = (wxGrid *) 0 ;
8459 int arg2 ;
8460 int arg3 ;
8461 PyObject * obj0 = 0 ;
8462 char *kwnames[] = {
8463 (char *) "self",(char *) "row",(char *) "col", NULL
8464 };
8465
8466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetGridCursor",kwnames,&obj0,&arg2,&arg3)) goto fail;
8467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8468 {
8469 PyThreadState* __tstate = wxPyBeginAllowThreads();
8470 (arg1)->SetGridCursor(arg2,arg3);
8471
8472 wxPyEndAllowThreads(__tstate);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 Py_INCREF(Py_None); resultobj = Py_None;
8476 return resultobj;
8477 fail:
8478 return NULL;
8479 }
8480
8481
8482 static PyObject *_wrap_Grid_MoveCursorUp(PyObject *self, PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj;
8484 wxGrid *arg1 = (wxGrid *) 0 ;
8485 bool arg2 ;
8486 bool result;
8487 PyObject * obj0 = 0 ;
8488 PyObject * obj1 = 0 ;
8489 char *kwnames[] = {
8490 (char *) "self",(char *) "expandSelection", NULL
8491 };
8492
8493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUp",kwnames,&obj0,&obj1)) goto fail;
8494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8495 arg2 = PyInt_AsLong(obj1) ? true : false;
8496 if (PyErr_Occurred()) SWIG_fail;
8497 {
8498 PyThreadState* __tstate = wxPyBeginAllowThreads();
8499 result = (bool)(arg1)->MoveCursorUp(arg2);
8500
8501 wxPyEndAllowThreads(__tstate);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
8504 resultobj = PyInt_FromLong((long)result);
8505 return resultobj;
8506 fail:
8507 return NULL;
8508 }
8509
8510
8511 static PyObject *_wrap_Grid_MoveCursorDown(PyObject *self, PyObject *args, PyObject *kwargs) {
8512 PyObject *resultobj;
8513 wxGrid *arg1 = (wxGrid *) 0 ;
8514 bool arg2 ;
8515 bool result;
8516 PyObject * obj0 = 0 ;
8517 PyObject * obj1 = 0 ;
8518 char *kwnames[] = {
8519 (char *) "self",(char *) "expandSelection", NULL
8520 };
8521
8522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDown",kwnames,&obj0,&obj1)) goto fail;
8523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8524 arg2 = PyInt_AsLong(obj1) ? true : false;
8525 if (PyErr_Occurred()) SWIG_fail;
8526 {
8527 PyThreadState* __tstate = wxPyBeginAllowThreads();
8528 result = (bool)(arg1)->MoveCursorDown(arg2);
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 resultobj = PyInt_FromLong((long)result);
8534 return resultobj;
8535 fail:
8536 return NULL;
8537 }
8538
8539
8540 static PyObject *_wrap_Grid_MoveCursorLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj;
8542 wxGrid *arg1 = (wxGrid *) 0 ;
8543 bool arg2 ;
8544 bool result;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 char *kwnames[] = {
8548 (char *) "self",(char *) "expandSelection", NULL
8549 };
8550
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeft",kwnames,&obj0,&obj1)) goto fail;
8552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8553 arg2 = PyInt_AsLong(obj1) ? true : false;
8554 if (PyErr_Occurred()) SWIG_fail;
8555 {
8556 PyThreadState* __tstate = wxPyBeginAllowThreads();
8557 result = (bool)(arg1)->MoveCursorLeft(arg2);
8558
8559 wxPyEndAllowThreads(__tstate);
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 resultobj = PyInt_FromLong((long)result);
8563 return resultobj;
8564 fail:
8565 return NULL;
8566 }
8567
8568
8569 static PyObject *_wrap_Grid_MoveCursorRight(PyObject *self, PyObject *args, PyObject *kwargs) {
8570 PyObject *resultobj;
8571 wxGrid *arg1 = (wxGrid *) 0 ;
8572 bool arg2 ;
8573 bool result;
8574 PyObject * obj0 = 0 ;
8575 PyObject * obj1 = 0 ;
8576 char *kwnames[] = {
8577 (char *) "self",(char *) "expandSelection", NULL
8578 };
8579
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRight",kwnames,&obj0,&obj1)) goto fail;
8581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8582 arg2 = PyInt_AsLong(obj1) ? true : false;
8583 if (PyErr_Occurred()) SWIG_fail;
8584 {
8585 PyThreadState* __tstate = wxPyBeginAllowThreads();
8586 result = (bool)(arg1)->MoveCursorRight(arg2);
8587
8588 wxPyEndAllowThreads(__tstate);
8589 if (PyErr_Occurred()) SWIG_fail;
8590 }
8591 resultobj = PyInt_FromLong((long)result);
8592 return resultobj;
8593 fail:
8594 return NULL;
8595 }
8596
8597
8598 static PyObject *_wrap_Grid_MovePageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
8599 PyObject *resultobj;
8600 wxGrid *arg1 = (wxGrid *) 0 ;
8601 bool result;
8602 PyObject * obj0 = 0 ;
8603 char *kwnames[] = {
8604 (char *) "self", NULL
8605 };
8606
8607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageDown",kwnames,&obj0)) goto fail;
8608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8609 {
8610 PyThreadState* __tstate = wxPyBeginAllowThreads();
8611 result = (bool)(arg1)->MovePageDown();
8612
8613 wxPyEndAllowThreads(__tstate);
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 resultobj = PyInt_FromLong((long)result);
8617 return resultobj;
8618 fail:
8619 return NULL;
8620 }
8621
8622
8623 static PyObject *_wrap_Grid_MovePageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
8624 PyObject *resultobj;
8625 wxGrid *arg1 = (wxGrid *) 0 ;
8626 bool result;
8627 PyObject * obj0 = 0 ;
8628 char *kwnames[] = {
8629 (char *) "self", NULL
8630 };
8631
8632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_MovePageUp",kwnames,&obj0)) goto fail;
8633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8634 {
8635 PyThreadState* __tstate = wxPyBeginAllowThreads();
8636 result = (bool)(arg1)->MovePageUp();
8637
8638 wxPyEndAllowThreads(__tstate);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 resultobj = PyInt_FromLong((long)result);
8642 return resultobj;
8643 fail:
8644 return NULL;
8645 }
8646
8647
8648 static PyObject *_wrap_Grid_MoveCursorUpBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8649 PyObject *resultobj;
8650 wxGrid *arg1 = (wxGrid *) 0 ;
8651 bool arg2 ;
8652 bool result;
8653 PyObject * obj0 = 0 ;
8654 PyObject * obj1 = 0 ;
8655 char *kwnames[] = {
8656 (char *) "self",(char *) "expandSelection", NULL
8657 };
8658
8659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorUpBlock",kwnames,&obj0,&obj1)) goto fail;
8660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8661 arg2 = PyInt_AsLong(obj1) ? true : false;
8662 if (PyErr_Occurred()) SWIG_fail;
8663 {
8664 PyThreadState* __tstate = wxPyBeginAllowThreads();
8665 result = (bool)(arg1)->MoveCursorUpBlock(arg2);
8666
8667 wxPyEndAllowThreads(__tstate);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 resultobj = PyInt_FromLong((long)result);
8671 return resultobj;
8672 fail:
8673 return NULL;
8674 }
8675
8676
8677 static PyObject *_wrap_Grid_MoveCursorDownBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj;
8679 wxGrid *arg1 = (wxGrid *) 0 ;
8680 bool arg2 ;
8681 bool result;
8682 PyObject * obj0 = 0 ;
8683 PyObject * obj1 = 0 ;
8684 char *kwnames[] = {
8685 (char *) "self",(char *) "expandSelection", NULL
8686 };
8687
8688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorDownBlock",kwnames,&obj0,&obj1)) goto fail;
8689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8690 arg2 = PyInt_AsLong(obj1) ? true : false;
8691 if (PyErr_Occurred()) SWIG_fail;
8692 {
8693 PyThreadState* __tstate = wxPyBeginAllowThreads();
8694 result = (bool)(arg1)->MoveCursorDownBlock(arg2);
8695
8696 wxPyEndAllowThreads(__tstate);
8697 if (PyErr_Occurred()) SWIG_fail;
8698 }
8699 resultobj = PyInt_FromLong((long)result);
8700 return resultobj;
8701 fail:
8702 return NULL;
8703 }
8704
8705
8706 static PyObject *_wrap_Grid_MoveCursorLeftBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8707 PyObject *resultobj;
8708 wxGrid *arg1 = (wxGrid *) 0 ;
8709 bool arg2 ;
8710 bool result;
8711 PyObject * obj0 = 0 ;
8712 PyObject * obj1 = 0 ;
8713 char *kwnames[] = {
8714 (char *) "self",(char *) "expandSelection", NULL
8715 };
8716
8717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorLeftBlock",kwnames,&obj0,&obj1)) goto fail;
8718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8719 arg2 = PyInt_AsLong(obj1) ? true : false;
8720 if (PyErr_Occurred()) SWIG_fail;
8721 {
8722 PyThreadState* __tstate = wxPyBeginAllowThreads();
8723 result = (bool)(arg1)->MoveCursorLeftBlock(arg2);
8724
8725 wxPyEndAllowThreads(__tstate);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 }
8728 resultobj = PyInt_FromLong((long)result);
8729 return resultobj;
8730 fail:
8731 return NULL;
8732 }
8733
8734
8735 static PyObject *_wrap_Grid_MoveCursorRightBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
8736 PyObject *resultobj;
8737 wxGrid *arg1 = (wxGrid *) 0 ;
8738 bool arg2 ;
8739 bool result;
8740 PyObject * obj0 = 0 ;
8741 PyObject * obj1 = 0 ;
8742 char *kwnames[] = {
8743 (char *) "self",(char *) "expandSelection", NULL
8744 };
8745
8746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_MoveCursorRightBlock",kwnames,&obj0,&obj1)) goto fail;
8747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8748 arg2 = PyInt_AsLong(obj1) ? true : false;
8749 if (PyErr_Occurred()) SWIG_fail;
8750 {
8751 PyThreadState* __tstate = wxPyBeginAllowThreads();
8752 result = (bool)(arg1)->MoveCursorRightBlock(arg2);
8753
8754 wxPyEndAllowThreads(__tstate);
8755 if (PyErr_Occurred()) SWIG_fail;
8756 }
8757 resultobj = PyInt_FromLong((long)result);
8758 return resultobj;
8759 fail:
8760 return NULL;
8761 }
8762
8763
8764 static PyObject *_wrap_Grid_GetDefaultRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8765 PyObject *resultobj;
8766 wxGrid *arg1 = (wxGrid *) 0 ;
8767 int result;
8768 PyObject * obj0 = 0 ;
8769 char *kwnames[] = {
8770 (char *) "self", NULL
8771 };
8772
8773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowLabelSize",kwnames,&obj0)) goto fail;
8774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8775 {
8776 PyThreadState* __tstate = wxPyBeginAllowThreads();
8777 result = (int)(arg1)->GetDefaultRowLabelSize();
8778
8779 wxPyEndAllowThreads(__tstate);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
8782 resultobj = PyInt_FromLong((long)result);
8783 return resultobj;
8784 fail:
8785 return NULL;
8786 }
8787
8788
8789 static PyObject *_wrap_Grid_GetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8790 PyObject *resultobj;
8791 wxGrid *arg1 = (wxGrid *) 0 ;
8792 int result;
8793 PyObject * obj0 = 0 ;
8794 char *kwnames[] = {
8795 (char *) "self", NULL
8796 };
8797
8798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelSize",kwnames,&obj0)) goto fail;
8799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8800 {
8801 PyThreadState* __tstate = wxPyBeginAllowThreads();
8802 result = (int)(arg1)->GetRowLabelSize();
8803
8804 wxPyEndAllowThreads(__tstate);
8805 if (PyErr_Occurred()) SWIG_fail;
8806 }
8807 resultobj = PyInt_FromLong((long)result);
8808 return resultobj;
8809 fail:
8810 return NULL;
8811 }
8812
8813
8814 static PyObject *_wrap_Grid_GetDefaultColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8815 PyObject *resultobj;
8816 wxGrid *arg1 = (wxGrid *) 0 ;
8817 int result;
8818 PyObject * obj0 = 0 ;
8819 char *kwnames[] = {
8820 (char *) "self", NULL
8821 };
8822
8823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColLabelSize",kwnames,&obj0)) goto fail;
8824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8825 {
8826 PyThreadState* __tstate = wxPyBeginAllowThreads();
8827 result = (int)(arg1)->GetDefaultColLabelSize();
8828
8829 wxPyEndAllowThreads(__tstate);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 resultobj = PyInt_FromLong((long)result);
8833 return resultobj;
8834 fail:
8835 return NULL;
8836 }
8837
8838
8839 static PyObject *_wrap_Grid_GetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj;
8841 wxGrid *arg1 = (wxGrid *) 0 ;
8842 int result;
8843 PyObject * obj0 = 0 ;
8844 char *kwnames[] = {
8845 (char *) "self", NULL
8846 };
8847
8848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelSize",kwnames,&obj0)) goto fail;
8849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8850 {
8851 PyThreadState* __tstate = wxPyBeginAllowThreads();
8852 result = (int)(arg1)->GetColLabelSize();
8853
8854 wxPyEndAllowThreads(__tstate);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 resultobj = PyInt_FromLong((long)result);
8858 return resultobj;
8859 fail:
8860 return NULL;
8861 }
8862
8863
8864 static PyObject *_wrap_Grid_GetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8865 PyObject *resultobj;
8866 wxGrid *arg1 = (wxGrid *) 0 ;
8867 wxColour result;
8868 PyObject * obj0 = 0 ;
8869 char *kwnames[] = {
8870 (char *) "self", NULL
8871 };
8872
8873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelBackgroundColour",kwnames,&obj0)) goto fail;
8874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8875 {
8876 PyThreadState* __tstate = wxPyBeginAllowThreads();
8877 result = (arg1)->GetLabelBackgroundColour();
8878
8879 wxPyEndAllowThreads(__tstate);
8880 if (PyErr_Occurred()) SWIG_fail;
8881 }
8882 {
8883 wxColour * resultptr;
8884 resultptr = new wxColour((wxColour &) result);
8885 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
8886 }
8887 return resultobj;
8888 fail:
8889 return NULL;
8890 }
8891
8892
8893 static PyObject *_wrap_Grid_GetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj;
8895 wxGrid *arg1 = (wxGrid *) 0 ;
8896 wxColour result;
8897 PyObject * obj0 = 0 ;
8898 char *kwnames[] = {
8899 (char *) "self", NULL
8900 };
8901
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelTextColour",kwnames,&obj0)) goto fail;
8903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8904 {
8905 PyThreadState* __tstate = wxPyBeginAllowThreads();
8906 result = (arg1)->GetLabelTextColour();
8907
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 {
8912 wxColour * resultptr;
8913 resultptr = new wxColour((wxColour &) result);
8914 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
8915 }
8916 return resultobj;
8917 fail:
8918 return NULL;
8919 }
8920
8921
8922 static PyObject *_wrap_Grid_GetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8923 PyObject *resultobj;
8924 wxGrid *arg1 = (wxGrid *) 0 ;
8925 wxFont result;
8926 PyObject * obj0 = 0 ;
8927 char *kwnames[] = {
8928 (char *) "self", NULL
8929 };
8930
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetLabelFont",kwnames,&obj0)) goto fail;
8932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8933 {
8934 PyThreadState* __tstate = wxPyBeginAllowThreads();
8935 result = (arg1)->GetLabelFont();
8936
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 {
8941 wxFont * resultptr;
8942 resultptr = new wxFont((wxFont &) result);
8943 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
8944 }
8945 return resultobj;
8946 fail:
8947 return NULL;
8948 }
8949
8950
8951 static PyObject *_wrap_Grid_GetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
8952 PyObject *resultobj;
8953 wxGrid *arg1 = (wxGrid *) 0 ;
8954 int *arg2 = (int *) 0 ;
8955 int *arg3 = (int *) 0 ;
8956 int temp2 ;
8957 int temp3 ;
8958 PyObject * obj0 = 0 ;
8959 char *kwnames[] = {
8960 (char *) "self", NULL
8961 };
8962
8963 arg2 = &temp2;
8964 arg3 = &temp3;
8965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowLabelAlignment",kwnames,&obj0)) goto fail;
8966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8967 {
8968 PyThreadState* __tstate = wxPyBeginAllowThreads();
8969 (arg1)->GetRowLabelAlignment(arg2,arg3);
8970
8971 wxPyEndAllowThreads(__tstate);
8972 if (PyErr_Occurred()) SWIG_fail;
8973 }
8974 Py_INCREF(Py_None); resultobj = Py_None;
8975 {
8976 PyObject *o = PyInt_FromLong((long) (*arg2));
8977 resultobj = t_output_helper(resultobj,o);
8978 }
8979 {
8980 PyObject *o = PyInt_FromLong((long) (*arg3));
8981 resultobj = t_output_helper(resultobj,o);
8982 }
8983 return resultobj;
8984 fail:
8985 return NULL;
8986 }
8987
8988
8989 static PyObject *_wrap_Grid_GetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
8990 PyObject *resultobj;
8991 wxGrid *arg1 = (wxGrid *) 0 ;
8992 int *arg2 = (int *) 0 ;
8993 int *arg3 = (int *) 0 ;
8994 int temp2 ;
8995 int temp3 ;
8996 PyObject * obj0 = 0 ;
8997 char *kwnames[] = {
8998 (char *) "self", NULL
8999 };
9000
9001 arg2 = &temp2;
9002 arg3 = &temp3;
9003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelAlignment",kwnames,&obj0)) goto fail;
9004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9005 {
9006 PyThreadState* __tstate = wxPyBeginAllowThreads();
9007 (arg1)->GetColLabelAlignment(arg2,arg3);
9008
9009 wxPyEndAllowThreads(__tstate);
9010 if (PyErr_Occurred()) SWIG_fail;
9011 }
9012 Py_INCREF(Py_None); resultobj = Py_None;
9013 {
9014 PyObject *o = PyInt_FromLong((long) (*arg2));
9015 resultobj = t_output_helper(resultobj,o);
9016 }
9017 {
9018 PyObject *o = PyInt_FromLong((long) (*arg3));
9019 resultobj = t_output_helper(resultobj,o);
9020 }
9021 return resultobj;
9022 fail:
9023 return NULL;
9024 }
9025
9026
9027 static PyObject *_wrap_Grid_GetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9028 PyObject *resultobj;
9029 wxGrid *arg1 = (wxGrid *) 0 ;
9030 int result;
9031 PyObject * obj0 = 0 ;
9032 char *kwnames[] = {
9033 (char *) "self", NULL
9034 };
9035
9036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColLabelTextOrientation",kwnames,&obj0)) goto fail;
9037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9038 {
9039 PyThreadState* __tstate = wxPyBeginAllowThreads();
9040 result = (int)(arg1)->GetColLabelTextOrientation();
9041
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 resultobj = PyInt_FromLong((long)result);
9046 return resultobj;
9047 fail:
9048 return NULL;
9049 }
9050
9051
9052 static PyObject *_wrap_Grid_GetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9053 PyObject *resultobj;
9054 wxGrid *arg1 = (wxGrid *) 0 ;
9055 int arg2 ;
9056 wxString result;
9057 PyObject * obj0 = 0 ;
9058 char *kwnames[] = {
9059 (char *) "self",(char *) "row", NULL
9060 };
9061
9062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetRowLabelValue",kwnames,&obj0,&arg2)) goto fail;
9063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (arg1)->GetRowLabelValue(arg2);
9067
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 }
9071 {
9072 #if wxUSE_UNICODE
9073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9074 #else
9075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9076 #endif
9077 }
9078 return resultobj;
9079 fail:
9080 return NULL;
9081 }
9082
9083
9084 static PyObject *_wrap_Grid_GetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9085 PyObject *resultobj;
9086 wxGrid *arg1 = (wxGrid *) 0 ;
9087 int arg2 ;
9088 wxString result;
9089 PyObject * obj0 = 0 ;
9090 char *kwnames[] = {
9091 (char *) "self",(char *) "col", NULL
9092 };
9093
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetColLabelValue",kwnames,&obj0,&arg2)) goto fail;
9095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9096 {
9097 PyThreadState* __tstate = wxPyBeginAllowThreads();
9098 result = (arg1)->GetColLabelValue(arg2);
9099
9100 wxPyEndAllowThreads(__tstate);
9101 if (PyErr_Occurred()) SWIG_fail;
9102 }
9103 {
9104 #if wxUSE_UNICODE
9105 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9106 #else
9107 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9108 #endif
9109 }
9110 return resultobj;
9111 fail:
9112 return NULL;
9113 }
9114
9115
9116 static PyObject *_wrap_Grid_GetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9117 PyObject *resultobj;
9118 wxGrid *arg1 = (wxGrid *) 0 ;
9119 wxColour result;
9120 PyObject * obj0 = 0 ;
9121 char *kwnames[] = {
9122 (char *) "self", NULL
9123 };
9124
9125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridLineColour",kwnames,&obj0)) goto fail;
9126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 result = (arg1)->GetGridLineColour();
9130
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 {
9135 wxColour * resultptr;
9136 resultptr = new wxColour((wxColour &) result);
9137 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9138 }
9139 return resultobj;
9140 fail:
9141 return NULL;
9142 }
9143
9144
9145 static PyObject *_wrap_Grid_GetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj;
9147 wxGrid *arg1 = (wxGrid *) 0 ;
9148 wxColour result;
9149 PyObject * obj0 = 0 ;
9150 char *kwnames[] = {
9151 (char *) "self", NULL
9152 };
9153
9154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightColour",kwnames,&obj0)) goto fail;
9155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9156 {
9157 PyThreadState* __tstate = wxPyBeginAllowThreads();
9158 result = (arg1)->GetCellHighlightColour();
9159
9160 wxPyEndAllowThreads(__tstate);
9161 if (PyErr_Occurred()) SWIG_fail;
9162 }
9163 {
9164 wxColour * resultptr;
9165 resultptr = new wxColour((wxColour &) result);
9166 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9167 }
9168 return resultobj;
9169 fail:
9170 return NULL;
9171 }
9172
9173
9174 static PyObject *_wrap_Grid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9175 PyObject *resultobj;
9176 wxGrid *arg1 = (wxGrid *) 0 ;
9177 int result;
9178 PyObject * obj0 = 0 ;
9179 char *kwnames[] = {
9180 (char *) "self", NULL
9181 };
9182
9183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightPenWidth",kwnames,&obj0)) goto fail;
9184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9185 {
9186 PyThreadState* __tstate = wxPyBeginAllowThreads();
9187 result = (int)(arg1)->GetCellHighlightPenWidth();
9188
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = PyInt_FromLong((long)result);
9193 return resultobj;
9194 fail:
9195 return NULL;
9196 }
9197
9198
9199 static PyObject *_wrap_Grid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9200 PyObject *resultobj;
9201 wxGrid *arg1 = (wxGrid *) 0 ;
9202 int result;
9203 PyObject * obj0 = 0 ;
9204 char *kwnames[] = {
9205 (char *) "self", NULL
9206 };
9207
9208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetCellHighlightROPenWidth",kwnames,&obj0)) goto fail;
9209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9210 {
9211 PyThreadState* __tstate = wxPyBeginAllowThreads();
9212 result = (int)(arg1)->GetCellHighlightROPenWidth();
9213
9214 wxPyEndAllowThreads(__tstate);
9215 if (PyErr_Occurred()) SWIG_fail;
9216 }
9217 resultobj = PyInt_FromLong((long)result);
9218 return resultobj;
9219 fail:
9220 return NULL;
9221 }
9222
9223
9224 static PyObject *_wrap_Grid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9225 PyObject *resultobj;
9226 wxGrid *arg1 = (wxGrid *) 0 ;
9227 int arg2 ;
9228 PyObject * obj0 = 0 ;
9229 char *kwnames[] = {
9230 (char *) "self",(char *) "width", NULL
9231 };
9232
9233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetRowLabelSize",kwnames,&obj0,&arg2)) goto fail;
9234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9235 {
9236 PyThreadState* __tstate = wxPyBeginAllowThreads();
9237 (arg1)->SetRowLabelSize(arg2);
9238
9239 wxPyEndAllowThreads(__tstate);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 }
9242 Py_INCREF(Py_None); resultobj = Py_None;
9243 return resultobj;
9244 fail:
9245 return NULL;
9246 }
9247
9248
9249 static PyObject *_wrap_Grid_SetColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9250 PyObject *resultobj;
9251 wxGrid *arg1 = (wxGrid *) 0 ;
9252 int arg2 ;
9253 PyObject * obj0 = 0 ;
9254 char *kwnames[] = {
9255 (char *) "self",(char *) "height", NULL
9256 };
9257
9258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColLabelSize",kwnames,&obj0,&arg2)) goto fail;
9259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9260 {
9261 PyThreadState* __tstate = wxPyBeginAllowThreads();
9262 (arg1)->SetColLabelSize(arg2);
9263
9264 wxPyEndAllowThreads(__tstate);
9265 if (PyErr_Occurred()) SWIG_fail;
9266 }
9267 Py_INCREF(Py_None); resultobj = Py_None;
9268 return resultobj;
9269 fail:
9270 return NULL;
9271 }
9272
9273
9274 static PyObject *_wrap_Grid_SetLabelBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9275 PyObject *resultobj;
9276 wxGrid *arg1 = (wxGrid *) 0 ;
9277 wxColour *arg2 = 0 ;
9278 wxColour temp2 ;
9279 PyObject * obj0 = 0 ;
9280 PyObject * obj1 = 0 ;
9281 char *kwnames[] = {
9282 (char *) "self","arg2", NULL
9283 };
9284
9285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
9286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9287 {
9288 arg2 = &temp2;
9289 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9290 }
9291 {
9292 PyThreadState* __tstate = wxPyBeginAllowThreads();
9293 (arg1)->SetLabelBackgroundColour((wxColour const &)*arg2);
9294
9295 wxPyEndAllowThreads(__tstate);
9296 if (PyErr_Occurred()) SWIG_fail;
9297 }
9298 Py_INCREF(Py_None); resultobj = Py_None;
9299 return resultobj;
9300 fail:
9301 return NULL;
9302 }
9303
9304
9305 static PyObject *_wrap_Grid_SetLabelTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9306 PyObject *resultobj;
9307 wxGrid *arg1 = (wxGrid *) 0 ;
9308 wxColour *arg2 = 0 ;
9309 wxColour temp2 ;
9310 PyObject * obj0 = 0 ;
9311 PyObject * obj1 = 0 ;
9312 char *kwnames[] = {
9313 (char *) "self","arg2", NULL
9314 };
9315
9316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelTextColour",kwnames,&obj0,&obj1)) goto fail;
9317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9318 {
9319 arg2 = &temp2;
9320 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9321 }
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
9324 (arg1)->SetLabelTextColour((wxColour const &)*arg2);
9325
9326 wxPyEndAllowThreads(__tstate);
9327 if (PyErr_Occurred()) SWIG_fail;
9328 }
9329 Py_INCREF(Py_None); resultobj = Py_None;
9330 return resultobj;
9331 fail:
9332 return NULL;
9333 }
9334
9335
9336 static PyObject *_wrap_Grid_SetLabelFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9337 PyObject *resultobj;
9338 wxGrid *arg1 = (wxGrid *) 0 ;
9339 wxFont *arg2 = 0 ;
9340 PyObject * obj0 = 0 ;
9341 PyObject * obj1 = 0 ;
9342 char *kwnames[] = {
9343 (char *) "self","arg2", NULL
9344 };
9345
9346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetLabelFont",kwnames,&obj0,&obj1)) goto fail;
9347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9348 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9349 if (arg2 == NULL) {
9350 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9351 }
9352 {
9353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9354 (arg1)->SetLabelFont((wxFont const &)*arg2);
9355
9356 wxPyEndAllowThreads(__tstate);
9357 if (PyErr_Occurred()) SWIG_fail;
9358 }
9359 Py_INCREF(Py_None); resultobj = Py_None;
9360 return resultobj;
9361 fail:
9362 return NULL;
9363 }
9364
9365
9366 static PyObject *_wrap_Grid_SetRowLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9367 PyObject *resultobj;
9368 wxGrid *arg1 = (wxGrid *) 0 ;
9369 int arg2 ;
9370 int arg3 ;
9371 PyObject * obj0 = 0 ;
9372 char *kwnames[] = {
9373 (char *) "self",(char *) "horiz",(char *) "vert", NULL
9374 };
9375
9376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowLabelAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
9377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9378 {
9379 PyThreadState* __tstate = wxPyBeginAllowThreads();
9380 (arg1)->SetRowLabelAlignment(arg2,arg3);
9381
9382 wxPyEndAllowThreads(__tstate);
9383 if (PyErr_Occurred()) SWIG_fail;
9384 }
9385 Py_INCREF(Py_None); resultobj = Py_None;
9386 return resultobj;
9387 fail:
9388 return NULL;
9389 }
9390
9391
9392 static PyObject *_wrap_Grid_SetColLabelAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
9393 PyObject *resultobj;
9394 wxGrid *arg1 = (wxGrid *) 0 ;
9395 int arg2 ;
9396 int arg3 ;
9397 PyObject * obj0 = 0 ;
9398 char *kwnames[] = {
9399 (char *) "self",(char *) "horiz",(char *) "vert", NULL
9400 };
9401
9402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColLabelAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
9403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9404 {
9405 PyThreadState* __tstate = wxPyBeginAllowThreads();
9406 (arg1)->SetColLabelAlignment(arg2,arg3);
9407
9408 wxPyEndAllowThreads(__tstate);
9409 if (PyErr_Occurred()) SWIG_fail;
9410 }
9411 Py_INCREF(Py_None); resultobj = Py_None;
9412 return resultobj;
9413 fail:
9414 return NULL;
9415 }
9416
9417
9418 static PyObject *_wrap_Grid_SetColLabelTextOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj;
9420 wxGrid *arg1 = (wxGrid *) 0 ;
9421 int arg2 ;
9422 PyObject * obj0 = 0 ;
9423 char *kwnames[] = {
9424 (char *) "self",(char *) "textOrientation", NULL
9425 };
9426
9427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColLabelTextOrientation",kwnames,&obj0,&arg2)) goto fail;
9428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 (arg1)->SetColLabelTextOrientation(arg2);
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 Py_INCREF(Py_None); resultobj = Py_None;
9437 return resultobj;
9438 fail:
9439 return NULL;
9440 }
9441
9442
9443 static PyObject *_wrap_Grid_SetRowLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9444 PyObject *resultobj;
9445 wxGrid *arg1 = (wxGrid *) 0 ;
9446 int arg2 ;
9447 wxString *arg3 = 0 ;
9448 bool temp3 = False ;
9449 PyObject * obj0 = 0 ;
9450 PyObject * obj2 = 0 ;
9451 char *kwnames[] = {
9452 (char *) "self",(char *) "row","arg3", NULL
9453 };
9454
9455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetRowLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
9456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9457 {
9458 arg3 = wxString_in_helper(obj2);
9459 if (arg3 == NULL) SWIG_fail;
9460 temp3 = True;
9461 }
9462 {
9463 PyThreadState* __tstate = wxPyBeginAllowThreads();
9464 (arg1)->SetRowLabelValue(arg2,(wxString const &)*arg3);
9465
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 Py_INCREF(Py_None); resultobj = Py_None;
9470 {
9471 if (temp3)
9472 delete arg3;
9473 }
9474 return resultobj;
9475 fail:
9476 {
9477 if (temp3)
9478 delete arg3;
9479 }
9480 return NULL;
9481 }
9482
9483
9484 static PyObject *_wrap_Grid_SetColLabelValue(PyObject *self, PyObject *args, PyObject *kwargs) {
9485 PyObject *resultobj;
9486 wxGrid *arg1 = (wxGrid *) 0 ;
9487 int arg2 ;
9488 wxString *arg3 = 0 ;
9489 bool temp3 = False ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj2 = 0 ;
9492 char *kwnames[] = {
9493 (char *) "self",(char *) "col","arg3", NULL
9494 };
9495
9496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColLabelValue",kwnames,&obj0,&arg2,&obj2)) goto fail;
9497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9498 {
9499 arg3 = wxString_in_helper(obj2);
9500 if (arg3 == NULL) SWIG_fail;
9501 temp3 = True;
9502 }
9503 {
9504 PyThreadState* __tstate = wxPyBeginAllowThreads();
9505 (arg1)->SetColLabelValue(arg2,(wxString const &)*arg3);
9506
9507 wxPyEndAllowThreads(__tstate);
9508 if (PyErr_Occurred()) SWIG_fail;
9509 }
9510 Py_INCREF(Py_None); resultobj = Py_None;
9511 {
9512 if (temp3)
9513 delete arg3;
9514 }
9515 return resultobj;
9516 fail:
9517 {
9518 if (temp3)
9519 delete arg3;
9520 }
9521 return NULL;
9522 }
9523
9524
9525 static PyObject *_wrap_Grid_SetGridLineColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj;
9527 wxGrid *arg1 = (wxGrid *) 0 ;
9528 wxColour *arg2 = 0 ;
9529 wxColour temp2 ;
9530 PyObject * obj0 = 0 ;
9531 PyObject * obj1 = 0 ;
9532 char *kwnames[] = {
9533 (char *) "self","arg2", NULL
9534 };
9535
9536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetGridLineColour",kwnames,&obj0,&obj1)) goto fail;
9537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9538 {
9539 arg2 = &temp2;
9540 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9541 }
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 (arg1)->SetGridLineColour((wxColour const &)*arg2);
9545
9546 wxPyEndAllowThreads(__tstate);
9547 if (PyErr_Occurred()) SWIG_fail;
9548 }
9549 Py_INCREF(Py_None); resultobj = Py_None;
9550 return resultobj;
9551 fail:
9552 return NULL;
9553 }
9554
9555
9556 static PyObject *_wrap_Grid_SetCellHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9557 PyObject *resultobj;
9558 wxGrid *arg1 = (wxGrid *) 0 ;
9559 wxColour *arg2 = 0 ;
9560 wxColour temp2 ;
9561 PyObject * obj0 = 0 ;
9562 PyObject * obj1 = 0 ;
9563 char *kwnames[] = {
9564 (char *) "self","arg2", NULL
9565 };
9566
9567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetCellHighlightColour",kwnames,&obj0,&obj1)) goto fail;
9568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9569 {
9570 arg2 = &temp2;
9571 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9572 }
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 (arg1)->SetCellHighlightColour((wxColour const &)*arg2);
9576
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) SWIG_fail;
9579 }
9580 Py_INCREF(Py_None); resultobj = Py_None;
9581 return resultobj;
9582 fail:
9583 return NULL;
9584 }
9585
9586
9587 static PyObject *_wrap_Grid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9588 PyObject *resultobj;
9589 wxGrid *arg1 = (wxGrid *) 0 ;
9590 int arg2 ;
9591 PyObject * obj0 = 0 ;
9592 char *kwnames[] = {
9593 (char *) "self",(char *) "width", NULL
9594 };
9595
9596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetCellHighlightPenWidth",kwnames,&obj0,&arg2)) goto fail;
9597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 (arg1)->SetCellHighlightPenWidth(arg2);
9601
9602 wxPyEndAllowThreads(__tstate);
9603 if (PyErr_Occurred()) SWIG_fail;
9604 }
9605 Py_INCREF(Py_None); resultobj = Py_None;
9606 return resultobj;
9607 fail:
9608 return NULL;
9609 }
9610
9611
9612 static PyObject *_wrap_Grid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9613 PyObject *resultobj;
9614 wxGrid *arg1 = (wxGrid *) 0 ;
9615 int arg2 ;
9616 PyObject * obj0 = 0 ;
9617 char *kwnames[] = {
9618 (char *) "self",(char *) "width", NULL
9619 };
9620
9621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetCellHighlightROPenWidth",kwnames,&obj0,&arg2)) goto fail;
9622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 (arg1)->SetCellHighlightROPenWidth(arg2);
9626
9627 wxPyEndAllowThreads(__tstate);
9628 if (PyErr_Occurred()) SWIG_fail;
9629 }
9630 Py_INCREF(Py_None); resultobj = Py_None;
9631 return resultobj;
9632 fail:
9633 return NULL;
9634 }
9635
9636
9637 static PyObject *_wrap_Grid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9638 PyObject *resultobj;
9639 wxGrid *arg1 = (wxGrid *) 0 ;
9640 bool arg2 = (bool) True ;
9641 PyObject * obj0 = 0 ;
9642 PyObject * obj1 = 0 ;
9643 char *kwnames[] = {
9644 (char *) "self",(char *) "enable", NULL
9645 };
9646
9647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragRowSize",kwnames,&obj0,&obj1)) goto fail;
9648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9649 if (obj1) {
9650 arg2 = PyInt_AsLong(obj1) ? true : false;
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 {
9654 PyThreadState* __tstate = wxPyBeginAllowThreads();
9655 (arg1)->EnableDragRowSize(arg2);
9656
9657 wxPyEndAllowThreads(__tstate);
9658 if (PyErr_Occurred()) SWIG_fail;
9659 }
9660 Py_INCREF(Py_None); resultobj = Py_None;
9661 return resultobj;
9662 fail:
9663 return NULL;
9664 }
9665
9666
9667 static PyObject *_wrap_Grid_DisableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj;
9669 wxGrid *arg1 = (wxGrid *) 0 ;
9670 PyObject * obj0 = 0 ;
9671 char *kwnames[] = {
9672 (char *) "self", NULL
9673 };
9674
9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragRowSize",kwnames,&obj0)) goto fail;
9676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9677 {
9678 PyThreadState* __tstate = wxPyBeginAllowThreads();
9679 (arg1)->DisableDragRowSize();
9680
9681 wxPyEndAllowThreads(__tstate);
9682 if (PyErr_Occurred()) SWIG_fail;
9683 }
9684 Py_INCREF(Py_None); resultobj = Py_None;
9685 return resultobj;
9686 fail:
9687 return NULL;
9688 }
9689
9690
9691 static PyObject *_wrap_Grid_CanDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9692 PyObject *resultobj;
9693 wxGrid *arg1 = (wxGrid *) 0 ;
9694 bool result;
9695 PyObject * obj0 = 0 ;
9696 char *kwnames[] = {
9697 (char *) "self", NULL
9698 };
9699
9700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragRowSize",kwnames,&obj0)) goto fail;
9701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9702 {
9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
9704 result = (bool)(arg1)->CanDragRowSize();
9705
9706 wxPyEndAllowThreads(__tstate);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 resultobj = PyInt_FromLong((long)result);
9710 return resultobj;
9711 fail:
9712 return NULL;
9713 }
9714
9715
9716 static PyObject *_wrap_Grid_EnableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj;
9718 wxGrid *arg1 = (wxGrid *) 0 ;
9719 bool arg2 = (bool) True ;
9720 PyObject * obj0 = 0 ;
9721 PyObject * obj1 = 0 ;
9722 char *kwnames[] = {
9723 (char *) "self",(char *) "enable", NULL
9724 };
9725
9726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragColSize",kwnames,&obj0,&obj1)) goto fail;
9727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9728 if (obj1) {
9729 arg2 = PyInt_AsLong(obj1) ? true : false;
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 {
9733 PyThreadState* __tstate = wxPyBeginAllowThreads();
9734 (arg1)->EnableDragColSize(arg2);
9735
9736 wxPyEndAllowThreads(__tstate);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 Py_INCREF(Py_None); resultobj = Py_None;
9740 return resultobj;
9741 fail:
9742 return NULL;
9743 }
9744
9745
9746 static PyObject *_wrap_Grid_DisableDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9747 PyObject *resultobj;
9748 wxGrid *arg1 = (wxGrid *) 0 ;
9749 PyObject * obj0 = 0 ;
9750 char *kwnames[] = {
9751 (char *) "self", NULL
9752 };
9753
9754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragColSize",kwnames,&obj0)) goto fail;
9755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 (arg1)->DisableDragColSize();
9759
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
9763 Py_INCREF(Py_None); resultobj = Py_None;
9764 return resultobj;
9765 fail:
9766 return NULL;
9767 }
9768
9769
9770 static PyObject *_wrap_Grid_CanDragColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9771 PyObject *resultobj;
9772 wxGrid *arg1 = (wxGrid *) 0 ;
9773 bool result;
9774 PyObject * obj0 = 0 ;
9775 char *kwnames[] = {
9776 (char *) "self", NULL
9777 };
9778
9779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragColSize",kwnames,&obj0)) goto fail;
9780 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (bool)(arg1)->CanDragColSize();
9784
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 resultobj = PyInt_FromLong((long)result);
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 static PyObject *_wrap_Grid_EnableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9796 PyObject *resultobj;
9797 wxGrid *arg1 = (wxGrid *) 0 ;
9798 bool arg2 = (bool) True ;
9799 PyObject * obj0 = 0 ;
9800 PyObject * obj1 = 0 ;
9801 char *kwnames[] = {
9802 (char *) "self",(char *) "enable", NULL
9803 };
9804
9805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableDragGridSize",kwnames,&obj0,&obj1)) goto fail;
9806 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9807 if (obj1) {
9808 arg2 = PyInt_AsLong(obj1) ? true : false;
9809 if (PyErr_Occurred()) SWIG_fail;
9810 }
9811 {
9812 PyThreadState* __tstate = wxPyBeginAllowThreads();
9813 (arg1)->EnableDragGridSize(arg2);
9814
9815 wxPyEndAllowThreads(__tstate);
9816 if (PyErr_Occurred()) SWIG_fail;
9817 }
9818 Py_INCREF(Py_None); resultobj = Py_None;
9819 return resultobj;
9820 fail:
9821 return NULL;
9822 }
9823
9824
9825 static PyObject *_wrap_Grid_DisableDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9826 PyObject *resultobj;
9827 wxGrid *arg1 = (wxGrid *) 0 ;
9828 PyObject * obj0 = 0 ;
9829 char *kwnames[] = {
9830 (char *) "self", NULL
9831 };
9832
9833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_DisableDragGridSize",kwnames,&obj0)) goto fail;
9834 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9835 {
9836 PyThreadState* __tstate = wxPyBeginAllowThreads();
9837 (arg1)->DisableDragGridSize();
9838
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 Py_INCREF(Py_None); resultobj = Py_None;
9843 return resultobj;
9844 fail:
9845 return NULL;
9846 }
9847
9848
9849 static PyObject *_wrap_Grid_CanDragGridSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9850 PyObject *resultobj;
9851 wxGrid *arg1 = (wxGrid *) 0 ;
9852 bool result;
9853 PyObject * obj0 = 0 ;
9854 char *kwnames[] = {
9855 (char *) "self", NULL
9856 };
9857
9858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_CanDragGridSize",kwnames,&obj0)) goto fail;
9859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9860 {
9861 PyThreadState* __tstate = wxPyBeginAllowThreads();
9862 result = (bool)(arg1)->CanDragGridSize();
9863
9864 wxPyEndAllowThreads(__tstate);
9865 if (PyErr_Occurred()) SWIG_fail;
9866 }
9867 resultobj = PyInt_FromLong((long)result);
9868 return resultobj;
9869 fail:
9870 return NULL;
9871 }
9872
9873
9874 static PyObject *_wrap_Grid_SetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
9875 PyObject *resultobj;
9876 wxGrid *arg1 = (wxGrid *) 0 ;
9877 int arg2 ;
9878 int arg3 ;
9879 wxGridCellAttr *arg4 = (wxGridCellAttr *) 0 ;
9880 PyObject * obj0 = 0 ;
9881 PyObject * obj3 = 0 ;
9882 char *kwnames[] = {
9883 (char *) "self",(char *) "row",(char *) "col",(char *) "attr", NULL
9884 };
9885
9886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetAttr",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
9887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9888 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9889 {
9890 PyThreadState* __tstate = wxPyBeginAllowThreads();
9891 (arg1)->SetAttr(arg2,arg3,arg4);
9892
9893 wxPyEndAllowThreads(__tstate);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 }
9896 Py_INCREF(Py_None); resultobj = Py_None;
9897 return resultobj;
9898 fail:
9899 return NULL;
9900 }
9901
9902
9903 static PyObject *_wrap_Grid_SetRowAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
9904 PyObject *resultobj;
9905 wxGrid *arg1 = (wxGrid *) 0 ;
9906 int arg2 ;
9907 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
9908 PyObject * obj0 = 0 ;
9909 PyObject * obj2 = 0 ;
9910 char *kwnames[] = {
9911 (char *) "self",(char *) "row",(char *) "attr", NULL
9912 };
9913
9914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetRowAttr",kwnames,&obj0,&arg2,&obj2)) goto fail;
9915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9916 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9917 {
9918 PyThreadState* __tstate = wxPyBeginAllowThreads();
9919 (arg1)->SetRowAttr(arg2,arg3);
9920
9921 wxPyEndAllowThreads(__tstate);
9922 if (PyErr_Occurred()) SWIG_fail;
9923 }
9924 Py_INCREF(Py_None); resultobj = Py_None;
9925 return resultobj;
9926 fail:
9927 return NULL;
9928 }
9929
9930
9931 static PyObject *_wrap_Grid_SetColAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
9932 PyObject *resultobj;
9933 wxGrid *arg1 = (wxGrid *) 0 ;
9934 int arg2 ;
9935 wxGridCellAttr *arg3 = (wxGridCellAttr *) 0 ;
9936 PyObject * obj0 = 0 ;
9937 PyObject * obj2 = 0 ;
9938 char *kwnames[] = {
9939 (char *) "self",(char *) "col",(char *) "attr", NULL
9940 };
9941
9942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColAttr",kwnames,&obj0,&arg2,&obj2)) goto fail;
9943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9944 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9945 {
9946 PyThreadState* __tstate = wxPyBeginAllowThreads();
9947 (arg1)->SetColAttr(arg2,arg3);
9948
9949 wxPyEndAllowThreads(__tstate);
9950 if (PyErr_Occurred()) SWIG_fail;
9951 }
9952 Py_INCREF(Py_None); resultobj = Py_None;
9953 return resultobj;
9954 fail:
9955 return NULL;
9956 }
9957
9958
9959 static PyObject *_wrap_Grid_SetColFormatBool(PyObject *self, PyObject *args, PyObject *kwargs) {
9960 PyObject *resultobj;
9961 wxGrid *arg1 = (wxGrid *) 0 ;
9962 int arg2 ;
9963 PyObject * obj0 = 0 ;
9964 char *kwnames[] = {
9965 (char *) "self",(char *) "col", NULL
9966 };
9967
9968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColFormatBool",kwnames,&obj0,&arg2)) goto fail;
9969 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 (arg1)->SetColFormatBool(arg2);
9973
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 Py_INCREF(Py_None); resultobj = Py_None;
9978 return resultobj;
9979 fail:
9980 return NULL;
9981 }
9982
9983
9984 static PyObject *_wrap_Grid_SetColFormatNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj;
9986 wxGrid *arg1 = (wxGrid *) 0 ;
9987 int arg2 ;
9988 PyObject * obj0 = 0 ;
9989 char *kwnames[] = {
9990 (char *) "self",(char *) "col", NULL
9991 };
9992
9993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColFormatNumber",kwnames,&obj0,&arg2)) goto fail;
9994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9995 {
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 (arg1)->SetColFormatNumber(arg2);
9998
9999 wxPyEndAllowThreads(__tstate);
10000 if (PyErr_Occurred()) SWIG_fail;
10001 }
10002 Py_INCREF(Py_None); resultobj = Py_None;
10003 return resultobj;
10004 fail:
10005 return NULL;
10006 }
10007
10008
10009 static PyObject *_wrap_Grid_SetColFormatFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
10010 PyObject *resultobj;
10011 wxGrid *arg1 = (wxGrid *) 0 ;
10012 int arg2 ;
10013 int arg3 = (int) -1 ;
10014 int arg4 = (int) -1 ;
10015 PyObject * obj0 = 0 ;
10016 char *kwnames[] = {
10017 (char *) "self",(char *) "col",(char *) "width",(char *) "precision", NULL
10018 };
10019
10020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|ii:Grid_SetColFormatFloat",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail;
10021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10022 {
10023 PyThreadState* __tstate = wxPyBeginAllowThreads();
10024 (arg1)->SetColFormatFloat(arg2,arg3,arg4);
10025
10026 wxPyEndAllowThreads(__tstate);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 }
10029 Py_INCREF(Py_None); resultobj = Py_None;
10030 return resultobj;
10031 fail:
10032 return NULL;
10033 }
10034
10035
10036 static PyObject *_wrap_Grid_SetColFormatCustom(PyObject *self, PyObject *args, PyObject *kwargs) {
10037 PyObject *resultobj;
10038 wxGrid *arg1 = (wxGrid *) 0 ;
10039 int arg2 ;
10040 wxString *arg3 = 0 ;
10041 bool temp3 = False ;
10042 PyObject * obj0 = 0 ;
10043 PyObject * obj2 = 0 ;
10044 char *kwnames[] = {
10045 (char *) "self",(char *) "col",(char *) "typeName", NULL
10046 };
10047
10048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Grid_SetColFormatCustom",kwnames,&obj0,&arg2,&obj2)) goto fail;
10049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10050 {
10051 arg3 = wxString_in_helper(obj2);
10052 if (arg3 == NULL) SWIG_fail;
10053 temp3 = True;
10054 }
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
10057 (arg1)->SetColFormatCustom(arg2,(wxString const &)*arg3);
10058
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 Py_INCREF(Py_None); resultobj = Py_None;
10063 {
10064 if (temp3)
10065 delete arg3;
10066 }
10067 return resultobj;
10068 fail:
10069 {
10070 if (temp3)
10071 delete arg3;
10072 }
10073 return NULL;
10074 }
10075
10076
10077 static PyObject *_wrap_Grid_EnableGridLines(PyObject *self, PyObject *args, PyObject *kwargs) {
10078 PyObject *resultobj;
10079 wxGrid *arg1 = (wxGrid *) 0 ;
10080 bool arg2 = (bool) True ;
10081 PyObject * obj0 = 0 ;
10082 PyObject * obj1 = 0 ;
10083 char *kwnames[] = {
10084 (char *) "self",(char *) "enable", NULL
10085 };
10086
10087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_EnableGridLines",kwnames,&obj0,&obj1)) goto fail;
10088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10089 if (obj1) {
10090 arg2 = PyInt_AsLong(obj1) ? true : false;
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 (arg1)->EnableGridLines(arg2);
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 Py_INCREF(Py_None); resultobj = Py_None;
10101 return resultobj;
10102 fail:
10103 return NULL;
10104 }
10105
10106
10107 static PyObject *_wrap_Grid_GridLinesEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj;
10109 wxGrid *arg1 = (wxGrid *) 0 ;
10110 bool result;
10111 PyObject * obj0 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "self", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GridLinesEnabled",kwnames,&obj0)) goto fail;
10117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (bool)(arg1)->GridLinesEnabled();
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 resultobj = PyInt_FromLong((long)result);
10126 return resultobj;
10127 fail:
10128 return NULL;
10129 }
10130
10131
10132 static PyObject *_wrap_Grid_GetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj;
10134 wxGrid *arg1 = (wxGrid *) 0 ;
10135 int result;
10136 PyObject * obj0 = 0 ;
10137 char *kwnames[] = {
10138 (char *) "self", NULL
10139 };
10140
10141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRowSize",kwnames,&obj0)) goto fail;
10142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (int)(arg1)->GetDefaultRowSize();
10146
10147 wxPyEndAllowThreads(__tstate);
10148 if (PyErr_Occurred()) SWIG_fail;
10149 }
10150 resultobj = PyInt_FromLong((long)result);
10151 return resultobj;
10152 fail:
10153 return NULL;
10154 }
10155
10156
10157 static PyObject *_wrap_Grid_GetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10158 PyObject *resultobj;
10159 wxGrid *arg1 = (wxGrid *) 0 ;
10160 int arg2 ;
10161 int result;
10162 PyObject * obj0 = 0 ;
10163 char *kwnames[] = {
10164 (char *) "self",(char *) "row", NULL
10165 };
10166
10167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetRowSize",kwnames,&obj0,&arg2)) goto fail;
10168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = (int)(arg1)->GetRowSize(arg2);
10172
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 resultobj = PyInt_FromLong((long)result);
10177 return resultobj;
10178 fail:
10179 return NULL;
10180 }
10181
10182
10183 static PyObject *_wrap_Grid_GetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10184 PyObject *resultobj;
10185 wxGrid *arg1 = (wxGrid *) 0 ;
10186 int result;
10187 PyObject * obj0 = 0 ;
10188 char *kwnames[] = {
10189 (char *) "self", NULL
10190 };
10191
10192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultColSize",kwnames,&obj0)) goto fail;
10193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (int)(arg1)->GetDefaultColSize();
10197
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 resultobj = PyInt_FromLong((long)result);
10202 return resultobj;
10203 fail:
10204 return NULL;
10205 }
10206
10207
10208 static PyObject *_wrap_Grid_GetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10209 PyObject *resultobj;
10210 wxGrid *arg1 = (wxGrid *) 0 ;
10211 int arg2 ;
10212 int result;
10213 PyObject * obj0 = 0 ;
10214 char *kwnames[] = {
10215 (char *) "self",(char *) "col", NULL
10216 };
10217
10218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_GetColSize",kwnames,&obj0,&arg2)) goto fail;
10219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10220 {
10221 PyThreadState* __tstate = wxPyBeginAllowThreads();
10222 result = (int)(arg1)->GetColSize(arg2);
10223
10224 wxPyEndAllowThreads(__tstate);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 }
10227 resultobj = PyInt_FromLong((long)result);
10228 return resultobj;
10229 fail:
10230 return NULL;
10231 }
10232
10233
10234 static PyObject *_wrap_Grid_GetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10235 PyObject *resultobj;
10236 wxGrid *arg1 = (wxGrid *) 0 ;
10237 wxColour result;
10238 PyObject * obj0 = 0 ;
10239 char *kwnames[] = {
10240 (char *) "self", NULL
10241 };
10242
10243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellBackgroundColour",kwnames,&obj0)) goto fail;
10244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10245 {
10246 PyThreadState* __tstate = wxPyBeginAllowThreads();
10247 result = (arg1)->GetDefaultCellBackgroundColour();
10248
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 wxColour * resultptr;
10254 resultptr = new wxColour((wxColour &) result);
10255 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10256 }
10257 return resultobj;
10258 fail:
10259 return NULL;
10260 }
10261
10262
10263 static PyObject *_wrap_Grid_GetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10264 PyObject *resultobj;
10265 wxGrid *arg1 = (wxGrid *) 0 ;
10266 int arg2 ;
10267 int arg3 ;
10268 wxColour result;
10269 PyObject * obj0 = 0 ;
10270 char *kwnames[] = {
10271 (char *) "self",(char *) "row",(char *) "col", NULL
10272 };
10273
10274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellBackgroundColour",kwnames,&obj0,&arg2,&arg3)) goto fail;
10275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 result = (arg1)->GetCellBackgroundColour(arg2,arg3);
10279
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 {
10284 wxColour * resultptr;
10285 resultptr = new wxColour((wxColour &) result);
10286 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10287 }
10288 return resultobj;
10289 fail:
10290 return NULL;
10291 }
10292
10293
10294 static PyObject *_wrap_Grid_GetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10295 PyObject *resultobj;
10296 wxGrid *arg1 = (wxGrid *) 0 ;
10297 wxColour result;
10298 PyObject * obj0 = 0 ;
10299 char *kwnames[] = {
10300 (char *) "self", NULL
10301 };
10302
10303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellTextColour",kwnames,&obj0)) goto fail;
10304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (arg1)->GetDefaultCellTextColour();
10308
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 {
10313 wxColour * resultptr;
10314 resultptr = new wxColour((wxColour &) result);
10315 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10316 }
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 static PyObject *_wrap_Grid_GetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10324 PyObject *resultobj;
10325 wxGrid *arg1 = (wxGrid *) 0 ;
10326 int arg2 ;
10327 int arg3 ;
10328 wxColour result;
10329 PyObject * obj0 = 0 ;
10330 char *kwnames[] = {
10331 (char *) "self",(char *) "row",(char *) "col", NULL
10332 };
10333
10334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellTextColour",kwnames,&obj0,&arg2,&arg3)) goto fail;
10335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10336 {
10337 PyThreadState* __tstate = wxPyBeginAllowThreads();
10338 result = (arg1)->GetCellTextColour(arg2,arg3);
10339
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 {
10344 wxColour * resultptr;
10345 resultptr = new wxColour((wxColour &) result);
10346 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10347 }
10348 return resultobj;
10349 fail:
10350 return NULL;
10351 }
10352
10353
10354 static PyObject *_wrap_Grid_GetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10355 PyObject *resultobj;
10356 wxGrid *arg1 = (wxGrid *) 0 ;
10357 wxFont result;
10358 PyObject * obj0 = 0 ;
10359 char *kwnames[] = {
10360 (char *) "self", NULL
10361 };
10362
10363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellFont",kwnames,&obj0)) goto fail;
10364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10365 {
10366 PyThreadState* __tstate = wxPyBeginAllowThreads();
10367 result = (arg1)->GetDefaultCellFont();
10368
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 {
10373 wxFont * resultptr;
10374 resultptr = new wxFont((wxFont &) result);
10375 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
10376 }
10377 return resultobj;
10378 fail:
10379 return NULL;
10380 }
10381
10382
10383 static PyObject *_wrap_Grid_GetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
10384 PyObject *resultobj;
10385 wxGrid *arg1 = (wxGrid *) 0 ;
10386 int arg2 ;
10387 int arg3 ;
10388 wxFont result;
10389 PyObject * obj0 = 0 ;
10390 char *kwnames[] = {
10391 (char *) "self",(char *) "row",(char *) "col", NULL
10392 };
10393
10394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellFont",kwnames,&obj0,&arg2,&arg3)) goto fail;
10395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10396 {
10397 PyThreadState* __tstate = wxPyBeginAllowThreads();
10398 result = (arg1)->GetCellFont(arg2,arg3);
10399
10400 wxPyEndAllowThreads(__tstate);
10401 if (PyErr_Occurred()) SWIG_fail;
10402 }
10403 {
10404 wxFont * resultptr;
10405 resultptr = new wxFont((wxFont &) result);
10406 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
10407 }
10408 return resultobj;
10409 fail:
10410 return NULL;
10411 }
10412
10413
10414 static PyObject *_wrap_Grid_GetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10415 PyObject *resultobj;
10416 wxGrid *arg1 = (wxGrid *) 0 ;
10417 int *arg2 = (int *) 0 ;
10418 int *arg3 = (int *) 0 ;
10419 int temp2 ;
10420 int temp3 ;
10421 PyObject * obj0 = 0 ;
10422 char *kwnames[] = {
10423 (char *) "self", NULL
10424 };
10425
10426 arg2 = &temp2;
10427 arg3 = &temp3;
10428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellAlignment",kwnames,&obj0)) goto fail;
10429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 (arg1)->GetDefaultCellAlignment(arg2,arg3);
10433
10434 wxPyEndAllowThreads(__tstate);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
10437 Py_INCREF(Py_None); resultobj = Py_None;
10438 {
10439 PyObject *o = PyInt_FromLong((long) (*arg2));
10440 resultobj = t_output_helper(resultobj,o);
10441 }
10442 {
10443 PyObject *o = PyInt_FromLong((long) (*arg3));
10444 resultobj = t_output_helper(resultobj,o);
10445 }
10446 return resultobj;
10447 fail:
10448 return NULL;
10449 }
10450
10451
10452 static PyObject *_wrap_Grid_GetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
10453 PyObject *resultobj;
10454 wxGrid *arg1 = (wxGrid *) 0 ;
10455 int arg2 ;
10456 int arg3 ;
10457 int *arg4 = (int *) 0 ;
10458 int *arg5 = (int *) 0 ;
10459 int temp4 ;
10460 int temp5 ;
10461 PyObject * obj0 = 0 ;
10462 char *kwnames[] = {
10463 (char *) "self",(char *) "row",(char *) "col", NULL
10464 };
10465
10466 arg4 = &temp4;
10467 arg5 = &temp5;
10468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
10469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10470 {
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 (arg1)->GetCellAlignment(arg2,arg3,arg4,arg5);
10473
10474 wxPyEndAllowThreads(__tstate);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 Py_INCREF(Py_None); resultobj = Py_None;
10478 {
10479 PyObject *o = PyInt_FromLong((long) (*arg4));
10480 resultobj = t_output_helper(resultobj,o);
10481 }
10482 {
10483 PyObject *o = PyInt_FromLong((long) (*arg5));
10484 resultobj = t_output_helper(resultobj,o);
10485 }
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 static PyObject *_wrap_Grid_GetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
10493 PyObject *resultobj;
10494 wxGrid *arg1 = (wxGrid *) 0 ;
10495 bool result;
10496 PyObject * obj0 = 0 ;
10497 char *kwnames[] = {
10498 (char *) "self", NULL
10499 };
10500
10501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultCellOverflow",kwnames,&obj0)) goto fail;
10502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10503 {
10504 PyThreadState* __tstate = wxPyBeginAllowThreads();
10505 result = (bool)(arg1)->GetDefaultCellOverflow();
10506
10507 wxPyEndAllowThreads(__tstate);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 }
10510 resultobj = PyInt_FromLong((long)result);
10511 return resultobj;
10512 fail:
10513 return NULL;
10514 }
10515
10516
10517 static PyObject *_wrap_Grid_GetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
10518 PyObject *resultobj;
10519 wxGrid *arg1 = (wxGrid *) 0 ;
10520 int arg2 ;
10521 int arg3 ;
10522 bool result;
10523 PyObject * obj0 = 0 ;
10524 char *kwnames[] = {
10525 (char *) "self",(char *) "row",(char *) "col", NULL
10526 };
10527
10528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellOverflow",kwnames,&obj0,&arg2,&arg3)) goto fail;
10529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10530 {
10531 PyThreadState* __tstate = wxPyBeginAllowThreads();
10532 result = (bool)(arg1)->GetCellOverflow(arg2,arg3);
10533
10534 wxPyEndAllowThreads(__tstate);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 }
10537 resultobj = PyInt_FromLong((long)result);
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 static PyObject *_wrap_Grid_GetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj;
10546 wxGrid *arg1 = (wxGrid *) 0 ;
10547 int arg2 ;
10548 int arg3 ;
10549 int *arg4 = (int *) 0 ;
10550 int *arg5 = (int *) 0 ;
10551 int temp4 ;
10552 int temp5 ;
10553 PyObject * obj0 = 0 ;
10554 char *kwnames[] = {
10555 (char *) "self",(char *) "row",(char *) "col", NULL
10556 };
10557
10558 arg4 = &temp4;
10559 arg5 = &temp5;
10560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10561 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 (arg1)->GetCellSize(arg2,arg3,arg4,arg5);
10565
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 Py_INCREF(Py_None); resultobj = Py_None;
10570 {
10571 PyObject *o = PyInt_FromLong((long) (*arg4));
10572 resultobj = t_output_helper(resultobj,o);
10573 }
10574 {
10575 PyObject *o = PyInt_FromLong((long) (*arg5));
10576 resultobj = t_output_helper(resultobj,o);
10577 }
10578 return resultobj;
10579 fail:
10580 return NULL;
10581 }
10582
10583
10584 static PyObject *_wrap_Grid_SetDefaultRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj;
10586 wxGrid *arg1 = (wxGrid *) 0 ;
10587 int arg2 ;
10588 bool arg3 = (bool) False ;
10589 PyObject * obj0 = 0 ;
10590 PyObject * obj2 = 0 ;
10591 char *kwnames[] = {
10592 (char *) "self",(char *) "height",(char *) "resizeExistingRows", NULL
10593 };
10594
10595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SetDefaultRowSize",kwnames,&obj0,&arg2,&obj2)) goto fail;
10596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10597 if (obj2) {
10598 arg3 = PyInt_AsLong(obj2) ? true : false;
10599 if (PyErr_Occurred()) SWIG_fail;
10600 }
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 (arg1)->SetDefaultRowSize(arg2,arg3);
10604
10605 wxPyEndAllowThreads(__tstate);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 Py_INCREF(Py_None); resultobj = Py_None;
10609 return resultobj;
10610 fail:
10611 return NULL;
10612 }
10613
10614
10615 static PyObject *_wrap_Grid_SetRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10616 PyObject *resultobj;
10617 wxGrid *arg1 = (wxGrid *) 0 ;
10618 int arg2 ;
10619 int arg3 ;
10620 PyObject * obj0 = 0 ;
10621 char *kwnames[] = {
10622 (char *) "self",(char *) "row",(char *) "height", NULL
10623 };
10624
10625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10627 {
10628 PyThreadState* __tstate = wxPyBeginAllowThreads();
10629 (arg1)->SetRowSize(arg2,arg3);
10630
10631 wxPyEndAllowThreads(__tstate);
10632 if (PyErr_Occurred()) SWIG_fail;
10633 }
10634 Py_INCREF(Py_None); resultobj = Py_None;
10635 return resultobj;
10636 fail:
10637 return NULL;
10638 }
10639
10640
10641 static PyObject *_wrap_Grid_SetDefaultColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10642 PyObject *resultobj;
10643 wxGrid *arg1 = (wxGrid *) 0 ;
10644 int arg2 ;
10645 bool arg3 = (bool) False ;
10646 PyObject * obj0 = 0 ;
10647 PyObject * obj2 = 0 ;
10648 char *kwnames[] = {
10649 (char *) "self",(char *) "width",(char *) "resizeExistingCols", NULL
10650 };
10651
10652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SetDefaultColSize",kwnames,&obj0,&arg2,&obj2)) goto fail;
10653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10654 if (obj2) {
10655 arg3 = PyInt_AsLong(obj2) ? true : false;
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 (arg1)->SetDefaultColSize(arg2,arg3);
10661
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 Py_INCREF(Py_None); resultobj = Py_None;
10666 return resultobj;
10667 fail:
10668 return NULL;
10669 }
10670
10671
10672 static PyObject *_wrap_Grid_SetColSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj;
10674 wxGrid *arg1 = (wxGrid *) 0 ;
10675 int arg2 ;
10676 int arg3 ;
10677 PyObject * obj0 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "self",(char *) "col",(char *) "width", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColSize",kwnames,&obj0,&arg2,&arg3)) goto fail;
10683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10684 {
10685 PyThreadState* __tstate = wxPyBeginAllowThreads();
10686 (arg1)->SetColSize(arg2,arg3);
10687
10688 wxPyEndAllowThreads(__tstate);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 }
10691 Py_INCREF(Py_None); resultobj = Py_None;
10692 return resultobj;
10693 fail:
10694 return NULL;
10695 }
10696
10697
10698 static PyObject *_wrap_Grid_AutoSizeColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
10699 PyObject *resultobj;
10700 wxGrid *arg1 = (wxGrid *) 0 ;
10701 int arg2 ;
10702 bool arg3 = (bool) True ;
10703 PyObject * obj0 = 0 ;
10704 PyObject * obj2 = 0 ;
10705 char *kwnames[] = {
10706 (char *) "self",(char *) "col",(char *) "setAsMin", NULL
10707 };
10708
10709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_AutoSizeColumn",kwnames,&obj0,&arg2,&obj2)) goto fail;
10710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10711 if (obj2) {
10712 arg3 = PyInt_AsLong(obj2) ? true : false;
10713 if (PyErr_Occurred()) SWIG_fail;
10714 }
10715 {
10716 PyThreadState* __tstate = wxPyBeginAllowThreads();
10717 (arg1)->AutoSizeColumn(arg2,arg3);
10718
10719 wxPyEndAllowThreads(__tstate);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 }
10722 Py_INCREF(Py_None); resultobj = Py_None;
10723 return resultobj;
10724 fail:
10725 return NULL;
10726 }
10727
10728
10729 static PyObject *_wrap_Grid_AutoSizeRow(PyObject *self, PyObject *args, PyObject *kwargs) {
10730 PyObject *resultobj;
10731 wxGrid *arg1 = (wxGrid *) 0 ;
10732 int arg2 ;
10733 bool arg3 = (bool) True ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj2 = 0 ;
10736 char *kwnames[] = {
10737 (char *) "self",(char *) "row",(char *) "setAsMin", NULL
10738 };
10739
10740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_AutoSizeRow",kwnames,&obj0,&arg2,&obj2)) goto fail;
10741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10742 if (obj2) {
10743 arg3 = PyInt_AsLong(obj2) ? true : false;
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 {
10747 PyThreadState* __tstate = wxPyBeginAllowThreads();
10748 (arg1)->AutoSizeRow(arg2,arg3);
10749
10750 wxPyEndAllowThreads(__tstate);
10751 if (PyErr_Occurred()) SWIG_fail;
10752 }
10753 Py_INCREF(Py_None); resultobj = Py_None;
10754 return resultobj;
10755 fail:
10756 return NULL;
10757 }
10758
10759
10760 static PyObject *_wrap_Grid_AutoSizeColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
10761 PyObject *resultobj;
10762 wxGrid *arg1 = (wxGrid *) 0 ;
10763 bool arg2 = (bool) True ;
10764 PyObject * obj0 = 0 ;
10765 PyObject * obj1 = 0 ;
10766 char *kwnames[] = {
10767 (char *) "self",(char *) "setAsMin", NULL
10768 };
10769
10770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeColumns",kwnames,&obj0,&obj1)) goto fail;
10771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10772 if (obj1) {
10773 arg2 = PyInt_AsLong(obj1) ? true : false;
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 {
10777 PyThreadState* __tstate = wxPyBeginAllowThreads();
10778 (arg1)->AutoSizeColumns(arg2);
10779
10780 wxPyEndAllowThreads(__tstate);
10781 if (PyErr_Occurred()) SWIG_fail;
10782 }
10783 Py_INCREF(Py_None); resultobj = Py_None;
10784 return resultobj;
10785 fail:
10786 return NULL;
10787 }
10788
10789
10790 static PyObject *_wrap_Grid_AutoSizeRows(PyObject *self, PyObject *args, PyObject *kwargs) {
10791 PyObject *resultobj;
10792 wxGrid *arg1 = (wxGrid *) 0 ;
10793 bool arg2 = (bool) True ;
10794 PyObject * obj0 = 0 ;
10795 PyObject * obj1 = 0 ;
10796 char *kwnames[] = {
10797 (char *) "self",(char *) "setAsMin", NULL
10798 };
10799
10800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Grid_AutoSizeRows",kwnames,&obj0,&obj1)) goto fail;
10801 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10802 if (obj1) {
10803 arg2 = PyInt_AsLong(obj1) ? true : false;
10804 if (PyErr_Occurred()) SWIG_fail;
10805 }
10806 {
10807 PyThreadState* __tstate = wxPyBeginAllowThreads();
10808 (arg1)->AutoSizeRows(arg2);
10809
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 Py_INCREF(Py_None); resultobj = Py_None;
10814 return resultobj;
10815 fail:
10816 return NULL;
10817 }
10818
10819
10820 static PyObject *_wrap_Grid_AutoSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10821 PyObject *resultobj;
10822 wxGrid *arg1 = (wxGrid *) 0 ;
10823 PyObject * obj0 = 0 ;
10824 char *kwnames[] = {
10825 (char *) "self", NULL
10826 };
10827
10828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_AutoSize",kwnames,&obj0)) goto fail;
10829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10830 {
10831 PyThreadState* __tstate = wxPyBeginAllowThreads();
10832 (arg1)->AutoSize();
10833
10834 wxPyEndAllowThreads(__tstate);
10835 if (PyErr_Occurred()) SWIG_fail;
10836 }
10837 Py_INCREF(Py_None); resultobj = Py_None;
10838 return resultobj;
10839 fail:
10840 return NULL;
10841 }
10842
10843
10844 static PyObject *_wrap_Grid_AutoSizeRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10845 PyObject *resultobj;
10846 wxGrid *arg1 = (wxGrid *) 0 ;
10847 int arg2 ;
10848 PyObject * obj0 = 0 ;
10849 char *kwnames[] = {
10850 (char *) "self",(char *) "row", NULL
10851 };
10852
10853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_AutoSizeRowLabelSize",kwnames,&obj0,&arg2)) goto fail;
10854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10855 {
10856 PyThreadState* __tstate = wxPyBeginAllowThreads();
10857 (arg1)->AutoSizeRowLabelSize(arg2);
10858
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 }
10862 Py_INCREF(Py_None); resultobj = Py_None;
10863 return resultobj;
10864 fail:
10865 return NULL;
10866 }
10867
10868
10869 static PyObject *_wrap_Grid_AutoSizeColLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10870 PyObject *resultobj;
10871 wxGrid *arg1 = (wxGrid *) 0 ;
10872 int arg2 ;
10873 PyObject * obj0 = 0 ;
10874 char *kwnames[] = {
10875 (char *) "self",(char *) "col", NULL
10876 };
10877
10878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_AutoSizeColLabelSize",kwnames,&obj0,&arg2)) goto fail;
10879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10880 {
10881 PyThreadState* __tstate = wxPyBeginAllowThreads();
10882 (arg1)->AutoSizeColLabelSize(arg2);
10883
10884 wxPyEndAllowThreads(__tstate);
10885 if (PyErr_Occurred()) SWIG_fail;
10886 }
10887 Py_INCREF(Py_None); resultobj = Py_None;
10888 return resultobj;
10889 fail:
10890 return NULL;
10891 }
10892
10893
10894 static PyObject *_wrap_Grid_SetColMinimalWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10895 PyObject *resultobj;
10896 wxGrid *arg1 = (wxGrid *) 0 ;
10897 int arg2 ;
10898 int arg3 ;
10899 PyObject * obj0 = 0 ;
10900 char *kwnames[] = {
10901 (char *) "self",(char *) "col",(char *) "width", NULL
10902 };
10903
10904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetColMinimalWidth",kwnames,&obj0,&arg2,&arg3)) goto fail;
10905 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 (arg1)->SetColMinimalWidth(arg2,arg3);
10909
10910 wxPyEndAllowThreads(__tstate);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 Py_INCREF(Py_None); resultobj = Py_None;
10914 return resultobj;
10915 fail:
10916 return NULL;
10917 }
10918
10919
10920 static PyObject *_wrap_Grid_SetRowMinimalHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj;
10922 wxGrid *arg1 = (wxGrid *) 0 ;
10923 int arg2 ;
10924 int arg3 ;
10925 PyObject * obj0 = 0 ;
10926 char *kwnames[] = {
10927 (char *) "self",(char *) "row",(char *) "width", NULL
10928 };
10929
10930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetRowMinimalHeight",kwnames,&obj0,&arg2,&arg3)) goto fail;
10931 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10932 {
10933 PyThreadState* __tstate = wxPyBeginAllowThreads();
10934 (arg1)->SetRowMinimalHeight(arg2,arg3);
10935
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 Py_INCREF(Py_None); resultobj = Py_None;
10940 return resultobj;
10941 fail:
10942 return NULL;
10943 }
10944
10945
10946 static PyObject *_wrap_Grid_SetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10947 PyObject *resultobj;
10948 wxGrid *arg1 = (wxGrid *) 0 ;
10949 int arg2 ;
10950 PyObject * obj0 = 0 ;
10951 char *kwnames[] = {
10952 (char *) "self",(char *) "width", NULL
10953 };
10954
10955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetColMinimalAcceptableWidth",kwnames,&obj0,&arg2)) goto fail;
10956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10957 {
10958 PyThreadState* __tstate = wxPyBeginAllowThreads();
10959 (arg1)->SetColMinimalAcceptableWidth(arg2);
10960
10961 wxPyEndAllowThreads(__tstate);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 Py_INCREF(Py_None); resultobj = Py_None;
10965 return resultobj;
10966 fail:
10967 return NULL;
10968 }
10969
10970
10971 static PyObject *_wrap_Grid_SetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10972 PyObject *resultobj;
10973 wxGrid *arg1 = (wxGrid *) 0 ;
10974 int arg2 ;
10975 PyObject * obj0 = 0 ;
10976 char *kwnames[] = {
10977 (char *) "self",(char *) "width", NULL
10978 };
10979
10980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_SetRowMinimalAcceptableHeight",kwnames,&obj0,&arg2)) goto fail;
10981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10982 {
10983 PyThreadState* __tstate = wxPyBeginAllowThreads();
10984 (arg1)->SetRowMinimalAcceptableHeight(arg2);
10985
10986 wxPyEndAllowThreads(__tstate);
10987 if (PyErr_Occurred()) SWIG_fail;
10988 }
10989 Py_INCREF(Py_None); resultobj = Py_None;
10990 return resultobj;
10991 fail:
10992 return NULL;
10993 }
10994
10995
10996 static PyObject *_wrap_Grid_GetColMinimalAcceptableWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10997 PyObject *resultobj;
10998 wxGrid *arg1 = (wxGrid *) 0 ;
10999 int result;
11000 PyObject * obj0 = 0 ;
11001 char *kwnames[] = {
11002 (char *) "self", NULL
11003 };
11004
11005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetColMinimalAcceptableWidth",kwnames,&obj0)) goto fail;
11006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 result = (int)((wxGrid const *)arg1)->GetColMinimalAcceptableWidth();
11010
11011 wxPyEndAllowThreads(__tstate);
11012 if (PyErr_Occurred()) SWIG_fail;
11013 }
11014 resultobj = PyInt_FromLong((long)result);
11015 return resultobj;
11016 fail:
11017 return NULL;
11018 }
11019
11020
11021 static PyObject *_wrap_Grid_GetRowMinimalAcceptableHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
11022 PyObject *resultobj;
11023 wxGrid *arg1 = (wxGrid *) 0 ;
11024 int result;
11025 PyObject * obj0 = 0 ;
11026 char *kwnames[] = {
11027 (char *) "self", NULL
11028 };
11029
11030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetRowMinimalAcceptableHeight",kwnames,&obj0)) goto fail;
11031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 result = (int)((wxGrid const *)arg1)->GetRowMinimalAcceptableHeight();
11035
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 }
11039 resultobj = PyInt_FromLong((long)result);
11040 return resultobj;
11041 fail:
11042 return NULL;
11043 }
11044
11045
11046 static PyObject *_wrap_Grid_SetDefaultCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11047 PyObject *resultobj;
11048 wxGrid *arg1 = (wxGrid *) 0 ;
11049 wxColour *arg2 = 0 ;
11050 wxColour temp2 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 char *kwnames[] = {
11054 (char *) "self","arg2", NULL
11055 };
11056
11057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
11058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11059 {
11060 arg2 = &temp2;
11061 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11062 }
11063 {
11064 PyThreadState* __tstate = wxPyBeginAllowThreads();
11065 (arg1)->SetDefaultCellBackgroundColour((wxColour const &)*arg2);
11066
11067 wxPyEndAllowThreads(__tstate);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 }
11070 Py_INCREF(Py_None); resultobj = Py_None;
11071 return resultobj;
11072 fail:
11073 return NULL;
11074 }
11075
11076
11077 static PyObject *_wrap_Grid_SetCellBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11078 PyObject *resultobj;
11079 wxGrid *arg1 = (wxGrid *) 0 ;
11080 int arg2 ;
11081 int arg3 ;
11082 wxColour *arg4 = 0 ;
11083 wxColour temp4 ;
11084 PyObject * obj0 = 0 ;
11085 PyObject * obj3 = 0 ;
11086 char *kwnames[] = {
11087 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11088 };
11089
11090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellBackgroundColour",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11092 {
11093 arg4 = &temp4;
11094 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11095 }
11096 {
11097 PyThreadState* __tstate = wxPyBeginAllowThreads();
11098 (arg1)->SetCellBackgroundColour(arg2,arg3,(wxColour const &)*arg4);
11099
11100 wxPyEndAllowThreads(__tstate);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 }
11103 Py_INCREF(Py_None); resultobj = Py_None;
11104 return resultobj;
11105 fail:
11106 return NULL;
11107 }
11108
11109
11110 static PyObject *_wrap_Grid_SetDefaultCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11111 PyObject *resultobj;
11112 wxGrid *arg1 = (wxGrid *) 0 ;
11113 wxColour *arg2 = 0 ;
11114 wxColour temp2 ;
11115 PyObject * obj0 = 0 ;
11116 PyObject * obj1 = 0 ;
11117 char *kwnames[] = {
11118 (char *) "self","arg2", NULL
11119 };
11120
11121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellTextColour",kwnames,&obj0,&obj1)) goto fail;
11122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11123 {
11124 arg2 = &temp2;
11125 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
11126 }
11127 {
11128 PyThreadState* __tstate = wxPyBeginAllowThreads();
11129 (arg1)->SetDefaultCellTextColour((wxColour const &)*arg2);
11130
11131 wxPyEndAllowThreads(__tstate);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 }
11134 Py_INCREF(Py_None); resultobj = Py_None;
11135 return resultobj;
11136 fail:
11137 return NULL;
11138 }
11139
11140
11141 static PyObject *_wrap_Grid_SetCellTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
11142 PyObject *resultobj;
11143 wxGrid *arg1 = (wxGrid *) 0 ;
11144 int arg2 ;
11145 int arg3 ;
11146 wxColour *arg4 = 0 ;
11147 wxColour temp4 ;
11148 PyObject * obj0 = 0 ;
11149 PyObject * obj3 = 0 ;
11150 char *kwnames[] = {
11151 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11152 };
11153
11154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellTextColour",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11156 {
11157 arg4 = &temp4;
11158 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
11159 }
11160 {
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 (arg1)->SetCellTextColour(arg2,arg3,(wxColour const &)*arg4);
11163
11164 wxPyEndAllowThreads(__tstate);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 Py_INCREF(Py_None); resultobj = Py_None;
11168 return resultobj;
11169 fail:
11170 return NULL;
11171 }
11172
11173
11174 static PyObject *_wrap_Grid_SetDefaultCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11175 PyObject *resultobj;
11176 wxGrid *arg1 = (wxGrid *) 0 ;
11177 wxFont *arg2 = 0 ;
11178 PyObject * obj0 = 0 ;
11179 PyObject * obj1 = 0 ;
11180 char *kwnames[] = {
11181 (char *) "self","arg2", NULL
11182 };
11183
11184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellFont",kwnames,&obj0,&obj1)) goto fail;
11185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11186 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11187 if (arg2 == NULL) {
11188 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11189 }
11190 {
11191 PyThreadState* __tstate = wxPyBeginAllowThreads();
11192 (arg1)->SetDefaultCellFont((wxFont const &)*arg2);
11193
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 Py_INCREF(Py_None); resultobj = Py_None;
11198 return resultobj;
11199 fail:
11200 return NULL;
11201 }
11202
11203
11204 static PyObject *_wrap_Grid_SetCellFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11205 PyObject *resultobj;
11206 wxGrid *arg1 = (wxGrid *) 0 ;
11207 int arg2 ;
11208 int arg3 ;
11209 wxFont *arg4 = 0 ;
11210 PyObject * obj0 = 0 ;
11211 PyObject * obj3 = 0 ;
11212 char *kwnames[] = {
11213 (char *) "self",(char *) "row",(char *) "col","arg4", NULL
11214 };
11215
11216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellFont",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11218 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11219 if (arg4 == NULL) {
11220 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11221 }
11222 {
11223 PyThreadState* __tstate = wxPyBeginAllowThreads();
11224 (arg1)->SetCellFont(arg2,arg3,(wxFont const &)*arg4);
11225
11226 wxPyEndAllowThreads(__tstate);
11227 if (PyErr_Occurred()) SWIG_fail;
11228 }
11229 Py_INCREF(Py_None); resultobj = Py_None;
11230 return resultobj;
11231 fail:
11232 return NULL;
11233 }
11234
11235
11236 static PyObject *_wrap_Grid_SetDefaultCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11237 PyObject *resultobj;
11238 wxGrid *arg1 = (wxGrid *) 0 ;
11239 int arg2 ;
11240 int arg3 ;
11241 PyObject * obj0 = 0 ;
11242 char *kwnames[] = {
11243 (char *) "self",(char *) "horiz",(char *) "vert", NULL
11244 };
11245
11246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetDefaultCellAlignment",kwnames,&obj0,&arg2,&arg3)) goto fail;
11247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11248 {
11249 PyThreadState* __tstate = wxPyBeginAllowThreads();
11250 (arg1)->SetDefaultCellAlignment(arg2,arg3);
11251
11252 wxPyEndAllowThreads(__tstate);
11253 if (PyErr_Occurred()) SWIG_fail;
11254 }
11255 Py_INCREF(Py_None); resultobj = Py_None;
11256 return resultobj;
11257 fail:
11258 return NULL;
11259 }
11260
11261
11262 static PyObject *_wrap_Grid_SetCellAlignment(PyObject *self, PyObject *args, PyObject *kwargs) {
11263 PyObject *resultobj;
11264 wxGrid *arg1 = (wxGrid *) 0 ;
11265 int arg2 ;
11266 int arg3 ;
11267 int arg4 ;
11268 int arg5 ;
11269 PyObject * obj0 = 0 ;
11270 char *kwnames[] = {
11271 (char *) "self",(char *) "row",(char *) "col",(char *) "horiz",(char *) "vert", NULL
11272 };
11273
11274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Grid_SetCellAlignment",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11276 {
11277 PyThreadState* __tstate = wxPyBeginAllowThreads();
11278 (arg1)->SetCellAlignment(arg2,arg3,arg4,arg5);
11279
11280 wxPyEndAllowThreads(__tstate);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 }
11283 Py_INCREF(Py_None); resultobj = Py_None;
11284 return resultobj;
11285 fail:
11286 return NULL;
11287 }
11288
11289
11290 static PyObject *_wrap_Grid_SetDefaultCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11291 PyObject *resultobj;
11292 wxGrid *arg1 = (wxGrid *) 0 ;
11293 bool arg2 ;
11294 PyObject * obj0 = 0 ;
11295 PyObject * obj1 = 0 ;
11296 char *kwnames[] = {
11297 (char *) "self",(char *) "allow", NULL
11298 };
11299
11300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultCellOverflow",kwnames,&obj0,&obj1)) goto fail;
11301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11302 arg2 = PyInt_AsLong(obj1) ? true : false;
11303 if (PyErr_Occurred()) SWIG_fail;
11304 {
11305 PyThreadState* __tstate = wxPyBeginAllowThreads();
11306 (arg1)->SetDefaultCellOverflow(arg2);
11307
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 Py_INCREF(Py_None); resultobj = Py_None;
11312 return resultobj;
11313 fail:
11314 return NULL;
11315 }
11316
11317
11318 static PyObject *_wrap_Grid_SetCellOverflow(PyObject *self, PyObject *args, PyObject *kwargs) {
11319 PyObject *resultobj;
11320 wxGrid *arg1 = (wxGrid *) 0 ;
11321 int arg2 ;
11322 int arg3 ;
11323 bool arg4 ;
11324 PyObject * obj0 = 0 ;
11325 PyObject * obj3 = 0 ;
11326 char *kwnames[] = {
11327 (char *) "self",(char *) "row",(char *) "col",(char *) "allow", NULL
11328 };
11329
11330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellOverflow",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11332 arg4 = PyInt_AsLong(obj3) ? true : false;
11333 if (PyErr_Occurred()) SWIG_fail;
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 (arg1)->SetCellOverflow(arg2,arg3,arg4);
11337
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 Py_INCREF(Py_None); resultobj = Py_None;
11342 return resultobj;
11343 fail:
11344 return NULL;
11345 }
11346
11347
11348 static PyObject *_wrap_Grid_SetCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11349 PyObject *resultobj;
11350 wxGrid *arg1 = (wxGrid *) 0 ;
11351 int arg2 ;
11352 int arg3 ;
11353 int arg4 ;
11354 int arg5 ;
11355 PyObject * obj0 = 0 ;
11356 char *kwnames[] = {
11357 (char *) "self",(char *) "row",(char *) "col",(char *) "num_rows",(char *) "num_cols", NULL
11358 };
11359
11360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:Grid_SetCellSize",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail;
11361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11362 {
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 (arg1)->SetCellSize(arg2,arg3,arg4,arg5);
11365
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 Py_INCREF(Py_None); resultobj = Py_None;
11370 return resultobj;
11371 fail:
11372 return NULL;
11373 }
11374
11375
11376 static PyObject *_wrap_Grid_SetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11377 PyObject *resultobj;
11378 wxGrid *arg1 = (wxGrid *) 0 ;
11379 wxGridCellRenderer *arg2 = (wxGridCellRenderer *) 0 ;
11380 PyObject * obj0 = 0 ;
11381 PyObject * obj1 = 0 ;
11382 char *kwnames[] = {
11383 (char *) "self",(char *) "renderer", NULL
11384 };
11385
11386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultRenderer",kwnames,&obj0,&obj1)) goto fail;
11387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11388 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11389 {
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 (arg1)->SetDefaultRenderer(arg2);
11392
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 Py_INCREF(Py_None); resultobj = Py_None;
11397 return resultobj;
11398 fail:
11399 return NULL;
11400 }
11401
11402
11403 static PyObject *_wrap_Grid_SetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11404 PyObject *resultobj;
11405 wxGrid *arg1 = (wxGrid *) 0 ;
11406 int arg2 ;
11407 int arg3 ;
11408 wxGridCellRenderer *arg4 = (wxGridCellRenderer *) 0 ;
11409 PyObject * obj0 = 0 ;
11410 PyObject * obj3 = 0 ;
11411 char *kwnames[] = {
11412 (char *) "self",(char *) "row",(char *) "col",(char *) "renderer", NULL
11413 };
11414
11415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellRenderer",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11417 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 (arg1)->SetCellRenderer(arg2,arg3,arg4);
11421
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 Py_INCREF(Py_None); resultobj = Py_None;
11426 return resultobj;
11427 fail:
11428 return NULL;
11429 }
11430
11431
11432 static PyObject *_wrap_Grid_GetDefaultRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj;
11434 wxGrid *arg1 = (wxGrid *) 0 ;
11435 wxGridCellRenderer *result;
11436 PyObject * obj0 = 0 ;
11437 char *kwnames[] = {
11438 (char *) "self", NULL
11439 };
11440
11441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultRenderer",kwnames,&obj0)) goto fail;
11442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRenderer();
11446
11447 wxPyEndAllowThreads(__tstate);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 {
11451 resultobj = wxPyMake_wxGridCellRenderer(result);
11452 }
11453 return resultobj;
11454 fail:
11455 return NULL;
11456 }
11457
11458
11459 static PyObject *_wrap_Grid_GetCellRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
11460 PyObject *resultobj;
11461 wxGrid *arg1 = (wxGrid *) 0 ;
11462 int arg2 ;
11463 int arg3 ;
11464 wxGridCellRenderer *result;
11465 PyObject * obj0 = 0 ;
11466 char *kwnames[] = {
11467 (char *) "self",(char *) "row",(char *) "col", NULL
11468 };
11469
11470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellRenderer",kwnames,&obj0,&arg2,&arg3)) goto fail;
11471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (wxGridCellRenderer *)(arg1)->GetCellRenderer(arg2,arg3);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 resultobj = wxPyMake_wxGridCellRenderer(result);
11481 }
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 static PyObject *_wrap_Grid_SetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11489 PyObject *resultobj;
11490 wxGrid *arg1 = (wxGrid *) 0 ;
11491 wxGridCellEditor *arg2 = (wxGridCellEditor *) 0 ;
11492 PyObject * obj0 = 0 ;
11493 PyObject * obj1 = 0 ;
11494 char *kwnames[] = {
11495 (char *) "self",(char *) "editor", NULL
11496 };
11497
11498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetDefaultEditor",kwnames,&obj0,&obj1)) goto fail;
11499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11500 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11501 {
11502 PyThreadState* __tstate = wxPyBeginAllowThreads();
11503 (arg1)->SetDefaultEditor(arg2);
11504
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 Py_INCREF(Py_None); resultobj = Py_None;
11509 return resultobj;
11510 fail:
11511 return NULL;
11512 }
11513
11514
11515 static PyObject *_wrap_Grid_SetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11516 PyObject *resultobj;
11517 wxGrid *arg1 = (wxGrid *) 0 ;
11518 int arg2 ;
11519 int arg3 ;
11520 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
11521 PyObject * obj0 = 0 ;
11522 PyObject * obj3 = 0 ;
11523 char *kwnames[] = {
11524 (char *) "self",(char *) "row",(char *) "col",(char *) "editor", NULL
11525 };
11526
11527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellEditor",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11529 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 (arg1)->SetCellEditor(arg2,arg3,arg4);
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 Py_INCREF(Py_None); resultobj = Py_None;
11538 return resultobj;
11539 fail:
11540 return NULL;
11541 }
11542
11543
11544 static PyObject *_wrap_Grid_GetDefaultEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11545 PyObject *resultobj;
11546 wxGrid *arg1 = (wxGrid *) 0 ;
11547 wxGridCellEditor *result;
11548 PyObject * obj0 = 0 ;
11549 char *kwnames[] = {
11550 (char *) "self", NULL
11551 };
11552
11553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetDefaultEditor",kwnames,&obj0)) goto fail;
11554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditor();
11558
11559 wxPyEndAllowThreads(__tstate);
11560 if (PyErr_Occurred()) SWIG_fail;
11561 }
11562 {
11563 resultobj = wxPyMake_wxGridCellEditor(result);
11564 }
11565 return resultobj;
11566 fail:
11567 return NULL;
11568 }
11569
11570
11571 static PyObject *_wrap_Grid_GetCellEditor(PyObject *self, PyObject *args, PyObject *kwargs) {
11572 PyObject *resultobj;
11573 wxGrid *arg1 = (wxGrid *) 0 ;
11574 int arg2 ;
11575 int arg3 ;
11576 wxGridCellEditor *result;
11577 PyObject * obj0 = 0 ;
11578 char *kwnames[] = {
11579 (char *) "self",(char *) "row",(char *) "col", NULL
11580 };
11581
11582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellEditor",kwnames,&obj0,&arg2,&arg3)) goto fail;
11583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11584 {
11585 PyThreadState* __tstate = wxPyBeginAllowThreads();
11586 result = (wxGridCellEditor *)(arg1)->GetCellEditor(arg2,arg3);
11587
11588 wxPyEndAllowThreads(__tstate);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 {
11592 resultobj = wxPyMake_wxGridCellEditor(result);
11593 }
11594 return resultobj;
11595 fail:
11596 return NULL;
11597 }
11598
11599
11600 static PyObject *_wrap_Grid_GetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11601 PyObject *resultobj;
11602 wxGrid *arg1 = (wxGrid *) 0 ;
11603 int arg2 ;
11604 int arg3 ;
11605 wxString result;
11606 PyObject * obj0 = 0 ;
11607 char *kwnames[] = {
11608 (char *) "self",(char *) "row",(char *) "col", NULL
11609 };
11610
11611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetCellValue",kwnames,&obj0,&arg2,&arg3)) goto fail;
11612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11613 {
11614 PyThreadState* __tstate = wxPyBeginAllowThreads();
11615 result = (arg1)->GetCellValue(arg2,arg3);
11616
11617 wxPyEndAllowThreads(__tstate);
11618 if (PyErr_Occurred()) SWIG_fail;
11619 }
11620 {
11621 #if wxUSE_UNICODE
11622 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11623 #else
11624 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11625 #endif
11626 }
11627 return resultobj;
11628 fail:
11629 return NULL;
11630 }
11631
11632
11633 static PyObject *_wrap_Grid_SetCellValue(PyObject *self, PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj;
11635 wxGrid *arg1 = (wxGrid *) 0 ;
11636 int arg2 ;
11637 int arg3 ;
11638 wxString *arg4 = 0 ;
11639 bool temp4 = False ;
11640 PyObject * obj0 = 0 ;
11641 PyObject * obj3 = 0 ;
11642 char *kwnames[] = {
11643 (char *) "self",(char *) "row",(char *) "col",(char *) "s", NULL
11644 };
11645
11646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiiO:Grid_SetCellValue",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11648 {
11649 arg4 = wxString_in_helper(obj3);
11650 if (arg4 == NULL) SWIG_fail;
11651 temp4 = True;
11652 }
11653 {
11654 PyThreadState* __tstate = wxPyBeginAllowThreads();
11655 (arg1)->SetCellValue(arg2,arg3,(wxString const &)*arg4);
11656
11657 wxPyEndAllowThreads(__tstate);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 Py_INCREF(Py_None); resultobj = Py_None;
11661 {
11662 if (temp4)
11663 delete arg4;
11664 }
11665 return resultobj;
11666 fail:
11667 {
11668 if (temp4)
11669 delete arg4;
11670 }
11671 return NULL;
11672 }
11673
11674
11675 static PyObject *_wrap_Grid_IsReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
11676 PyObject *resultobj;
11677 wxGrid *arg1 = (wxGrid *) 0 ;
11678 int arg2 ;
11679 int arg3 ;
11680 bool result;
11681 PyObject * obj0 = 0 ;
11682 char *kwnames[] = {
11683 (char *) "self",(char *) "row",(char *) "col", NULL
11684 };
11685
11686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_IsReadOnly",kwnames,&obj0,&arg2,&arg3)) goto fail;
11687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 result = (bool)((wxGrid const *)arg1)->IsReadOnly(arg2,arg3);
11691
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 resultobj = PyInt_FromLong((long)result);
11696 return resultobj;
11697 fail:
11698 return NULL;
11699 }
11700
11701
11702 static PyObject *_wrap_Grid_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj;
11704 wxGrid *arg1 = (wxGrid *) 0 ;
11705 int arg2 ;
11706 int arg3 ;
11707 bool arg4 = (bool) True ;
11708 PyObject * obj0 = 0 ;
11709 PyObject * obj3 = 0 ;
11710 char *kwnames[] = {
11711 (char *) "self",(char *) "row",(char *) "col",(char *) "isReadOnly", NULL
11712 };
11713
11714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|O:Grid_SetReadOnly",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail;
11715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11716 if (obj3) {
11717 arg4 = PyInt_AsLong(obj3) ? true : false;
11718 if (PyErr_Occurred()) SWIG_fail;
11719 }
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 (arg1)->SetReadOnly(arg2,arg3,arg4);
11723
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 Py_INCREF(Py_None); resultobj = Py_None;
11728 return resultobj;
11729 fail:
11730 return NULL;
11731 }
11732
11733
11734 static PyObject *_wrap_Grid_SelectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
11735 PyObject *resultobj;
11736 wxGrid *arg1 = (wxGrid *) 0 ;
11737 int arg2 ;
11738 bool arg3 = (bool) False ;
11739 PyObject * obj0 = 0 ;
11740 PyObject * obj2 = 0 ;
11741 char *kwnames[] = {
11742 (char *) "self",(char *) "row",(char *) "addToSelected", NULL
11743 };
11744
11745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SelectRow",kwnames,&obj0,&arg2,&obj2)) goto fail;
11746 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11747 if (obj2) {
11748 arg3 = PyInt_AsLong(obj2) ? true : false;
11749 if (PyErr_Occurred()) SWIG_fail;
11750 }
11751 {
11752 PyThreadState* __tstate = wxPyBeginAllowThreads();
11753 (arg1)->SelectRow(arg2,arg3);
11754
11755 wxPyEndAllowThreads(__tstate);
11756 if (PyErr_Occurred()) SWIG_fail;
11757 }
11758 Py_INCREF(Py_None); resultobj = Py_None;
11759 return resultobj;
11760 fail:
11761 return NULL;
11762 }
11763
11764
11765 static PyObject *_wrap_Grid_SelectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
11766 PyObject *resultobj;
11767 wxGrid *arg1 = (wxGrid *) 0 ;
11768 int arg2 ;
11769 bool arg3 = (bool) False ;
11770 PyObject * obj0 = 0 ;
11771 PyObject * obj2 = 0 ;
11772 char *kwnames[] = {
11773 (char *) "self",(char *) "col",(char *) "addToSelected", NULL
11774 };
11775
11776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:Grid_SelectCol",kwnames,&obj0,&arg2,&obj2)) goto fail;
11777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11778 if (obj2) {
11779 arg3 = PyInt_AsLong(obj2) ? true : false;
11780 if (PyErr_Occurred()) SWIG_fail;
11781 }
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 (arg1)->SelectCol(arg2,arg3);
11785
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 Py_INCREF(Py_None); resultobj = Py_None;
11790 return resultobj;
11791 fail:
11792 return NULL;
11793 }
11794
11795
11796 static PyObject *_wrap_Grid_SelectBlock(PyObject *self, PyObject *args, PyObject *kwargs) {
11797 PyObject *resultobj;
11798 wxGrid *arg1 = (wxGrid *) 0 ;
11799 int arg2 ;
11800 int arg3 ;
11801 int arg4 ;
11802 int arg5 ;
11803 bool arg6 = (bool) False ;
11804 PyObject * obj0 = 0 ;
11805 PyObject * obj5 = 0 ;
11806 char *kwnames[] = {
11807 (char *) "self",(char *) "topRow",(char *) "leftCol",(char *) "bottomRow",(char *) "rightCol",(char *) "addToSelected", NULL
11808 };
11809
11810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:Grid_SelectBlock",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail;
11811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11812 if (obj5) {
11813 arg6 = PyInt_AsLong(obj5) ? true : false;
11814 if (PyErr_Occurred()) SWIG_fail;
11815 }
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 (arg1)->SelectBlock(arg2,arg3,arg4,arg5,arg6);
11819
11820 wxPyEndAllowThreads(__tstate);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 Py_INCREF(Py_None); resultobj = Py_None;
11824 return resultobj;
11825 fail:
11826 return NULL;
11827 }
11828
11829
11830 static PyObject *_wrap_Grid_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11831 PyObject *resultobj;
11832 wxGrid *arg1 = (wxGrid *) 0 ;
11833 PyObject * obj0 = 0 ;
11834 char *kwnames[] = {
11835 (char *) "self", NULL
11836 };
11837
11838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_SelectAll",kwnames,&obj0)) goto fail;
11839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 (arg1)->SelectAll();
11843
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 Py_INCREF(Py_None); resultobj = Py_None;
11848 return resultobj;
11849 fail:
11850 return NULL;
11851 }
11852
11853
11854 static PyObject *_wrap_Grid_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11855 PyObject *resultobj;
11856 wxGrid *arg1 = (wxGrid *) 0 ;
11857 bool result;
11858 PyObject * obj0 = 0 ;
11859 char *kwnames[] = {
11860 (char *) "self", NULL
11861 };
11862
11863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_IsSelection",kwnames,&obj0)) goto fail;
11864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11865 {
11866 PyThreadState* __tstate = wxPyBeginAllowThreads();
11867 result = (bool)(arg1)->IsSelection();
11868
11869 wxPyEndAllowThreads(__tstate);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 resultobj = PyInt_FromLong((long)result);
11873 return resultobj;
11874 fail:
11875 return NULL;
11876 }
11877
11878
11879 static PyObject *_wrap_Grid_ClearSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11880 PyObject *resultobj;
11881 wxGrid *arg1 = (wxGrid *) 0 ;
11882 PyObject * obj0 = 0 ;
11883 char *kwnames[] = {
11884 (char *) "self", NULL
11885 };
11886
11887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_ClearSelection",kwnames,&obj0)) goto fail;
11888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11889 {
11890 PyThreadState* __tstate = wxPyBeginAllowThreads();
11891 (arg1)->ClearSelection();
11892
11893 wxPyEndAllowThreads(__tstate);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 Py_INCREF(Py_None); resultobj = Py_None;
11897 return resultobj;
11898 fail:
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_Grid_IsInSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 wxGrid *arg1 = (wxGrid *) 0 ;
11906 int arg2 ;
11907 int arg3 ;
11908 bool result;
11909 PyObject * obj0 = 0 ;
11910 char *kwnames[] = {
11911 (char *) "self",(char *) "row",(char *) "col", NULL
11912 };
11913
11914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_IsInSelection",kwnames,&obj0,&arg2,&arg3)) goto fail;
11915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11916 {
11917 PyThreadState* __tstate = wxPyBeginAllowThreads();
11918 result = (bool)(arg1)->IsInSelection(arg2,arg3);
11919
11920 wxPyEndAllowThreads(__tstate);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 }
11923 resultobj = PyInt_FromLong((long)result);
11924 return resultobj;
11925 fail:
11926 return NULL;
11927 }
11928
11929
11930 static PyObject *_wrap_Grid_GetSelectedCells(PyObject *self, PyObject *args, PyObject *kwargs) {
11931 PyObject *resultobj;
11932 wxGrid *arg1 = (wxGrid *) 0 ;
11933 wxGridCellCoordsArray result;
11934 PyObject * obj0 = 0 ;
11935 char *kwnames[] = {
11936 (char *) "self", NULL
11937 };
11938
11939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCells",kwnames,&obj0)) goto fail;
11940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11941 {
11942 PyThreadState* __tstate = wxPyBeginAllowThreads();
11943 result = ((wxGrid const *)arg1)->GetSelectedCells();
11944
11945 wxPyEndAllowThreads(__tstate);
11946 if (PyErr_Occurred()) SWIG_fail;
11947 }
11948 {
11949 resultobj = wxGridCellCoordsArray_helper(result);
11950 }
11951 return resultobj;
11952 fail:
11953 return NULL;
11954 }
11955
11956
11957 static PyObject *_wrap_Grid_GetSelectionBlockTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
11958 PyObject *resultobj;
11959 wxGrid *arg1 = (wxGrid *) 0 ;
11960 wxGridCellCoordsArray result;
11961 PyObject * obj0 = 0 ;
11962 char *kwnames[] = {
11963 (char *) "self", NULL
11964 };
11965
11966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockTopLeft",kwnames,&obj0)) goto fail;
11967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11968 {
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 result = ((wxGrid const *)arg1)->GetSelectionBlockTopLeft();
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 {
11976 resultobj = wxGridCellCoordsArray_helper(result);
11977 }
11978 return resultobj;
11979 fail:
11980 return NULL;
11981 }
11982
11983
11984 static PyObject *_wrap_Grid_GetSelectionBlockBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
11985 PyObject *resultobj;
11986 wxGrid *arg1 = (wxGrid *) 0 ;
11987 wxGridCellCoordsArray result;
11988 PyObject * obj0 = 0 ;
11989 char *kwnames[] = {
11990 (char *) "self", NULL
11991 };
11992
11993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBlockBottomRight",kwnames,&obj0)) goto fail;
11994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11995 {
11996 PyThreadState* __tstate = wxPyBeginAllowThreads();
11997 result = ((wxGrid const *)arg1)->GetSelectionBlockBottomRight();
11998
11999 wxPyEndAllowThreads(__tstate);
12000 if (PyErr_Occurred()) SWIG_fail;
12001 }
12002 {
12003 resultobj = wxGridCellCoordsArray_helper(result);
12004 }
12005 return resultobj;
12006 fail:
12007 return NULL;
12008 }
12009
12010
12011 static PyObject *_wrap_Grid_GetSelectedRows(PyObject *self, PyObject *args, PyObject *kwargs) {
12012 PyObject *resultobj;
12013 wxGrid *arg1 = (wxGrid *) 0 ;
12014 wxArrayInt result;
12015 PyObject * obj0 = 0 ;
12016 char *kwnames[] = {
12017 (char *) "self", NULL
12018 };
12019
12020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedRows",kwnames,&obj0)) goto fail;
12021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12022 {
12023 PyThreadState* __tstate = wxPyBeginAllowThreads();
12024 result = ((wxGrid const *)arg1)->GetSelectedRows();
12025
12026 wxPyEndAllowThreads(__tstate);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 {
12030 resultobj = PyList_New(0);
12031 size_t idx;
12032 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12033 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12034 PyList_Append(resultobj, val);
12035 Py_DECREF(val);
12036 }
12037 }
12038 return resultobj;
12039 fail:
12040 return NULL;
12041 }
12042
12043
12044 static PyObject *_wrap_Grid_GetSelectedCols(PyObject *self, PyObject *args, PyObject *kwargs) {
12045 PyObject *resultobj;
12046 wxGrid *arg1 = (wxGrid *) 0 ;
12047 wxArrayInt result;
12048 PyObject * obj0 = 0 ;
12049 char *kwnames[] = {
12050 (char *) "self", NULL
12051 };
12052
12053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectedCols",kwnames,&obj0)) goto fail;
12054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12055 {
12056 PyThreadState* __tstate = wxPyBeginAllowThreads();
12057 result = ((wxGrid const *)arg1)->GetSelectedCols();
12058
12059 wxPyEndAllowThreads(__tstate);
12060 if (PyErr_Occurred()) SWIG_fail;
12061 }
12062 {
12063 resultobj = PyList_New(0);
12064 size_t idx;
12065 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12066 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12067 PyList_Append(resultobj, val);
12068 Py_DECREF(val);
12069 }
12070 }
12071 return resultobj;
12072 fail:
12073 return NULL;
12074 }
12075
12076
12077 static PyObject *_wrap_Grid_DeselectRow(PyObject *self, PyObject *args, PyObject *kwargs) {
12078 PyObject *resultobj;
12079 wxGrid *arg1 = (wxGrid *) 0 ;
12080 int arg2 ;
12081 PyObject * obj0 = 0 ;
12082 char *kwnames[] = {
12083 (char *) "self",(char *) "row", NULL
12084 };
12085
12086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_DeselectRow",kwnames,&obj0,&arg2)) goto fail;
12087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12088 {
12089 PyThreadState* __tstate = wxPyBeginAllowThreads();
12090 (arg1)->DeselectRow(arg2);
12091
12092 wxPyEndAllowThreads(__tstate);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 Py_INCREF(Py_None); resultobj = Py_None;
12096 return resultobj;
12097 fail:
12098 return NULL;
12099 }
12100
12101
12102 static PyObject *_wrap_Grid_DeselectCol(PyObject *self, PyObject *args, PyObject *kwargs) {
12103 PyObject *resultobj;
12104 wxGrid *arg1 = (wxGrid *) 0 ;
12105 int arg2 ;
12106 PyObject * obj0 = 0 ;
12107 char *kwnames[] = {
12108 (char *) "self",(char *) "col", NULL
12109 };
12110
12111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Grid_DeselectCol",kwnames,&obj0,&arg2)) goto fail;
12112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 (arg1)->DeselectCol(arg2);
12116
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 Py_INCREF(Py_None); resultobj = Py_None;
12121 return resultobj;
12122 fail:
12123 return NULL;
12124 }
12125
12126
12127 static PyObject *_wrap_Grid_DeselectCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12128 PyObject *resultobj;
12129 wxGrid *arg1 = (wxGrid *) 0 ;
12130 int arg2 ;
12131 int arg3 ;
12132 PyObject * obj0 = 0 ;
12133 char *kwnames[] = {
12134 (char *) "self",(char *) "row",(char *) "col", NULL
12135 };
12136
12137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_DeselectCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 (arg1)->DeselectCell(arg2,arg3);
12142
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 Py_INCREF(Py_None); resultobj = Py_None;
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 static PyObject *_wrap_Grid_BlockToDeviceRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj;
12155 wxGrid *arg1 = (wxGrid *) 0 ;
12156 wxGridCellCoords *arg2 = 0 ;
12157 wxGridCellCoords *arg3 = 0 ;
12158 wxRect result;
12159 wxGridCellCoords temp2 ;
12160 wxGridCellCoords temp3 ;
12161 PyObject * obj0 = 0 ;
12162 PyObject * obj1 = 0 ;
12163 PyObject * obj2 = 0 ;
12164 char *kwnames[] = {
12165 (char *) "self",(char *) "topLeft",(char *) "bottomRight", NULL
12166 };
12167
12168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Grid_BlockToDeviceRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
12169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12170 {
12171 arg2 = &temp2;
12172 if (! wxGridCellCoords_helper(obj1, &arg2)) SWIG_fail;
12173 }
12174 {
12175 arg3 = &temp3;
12176 if (! wxGridCellCoords_helper(obj2, &arg3)) SWIG_fail;
12177 }
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 result = (arg1)->BlockToDeviceRect((wxGridCellCoords const &)*arg2,(wxGridCellCoords const &)*arg3);
12181
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 {
12186 wxRect * resultptr;
12187 resultptr = new wxRect((wxRect &) result);
12188 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12189 }
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 static PyObject *_wrap_Grid_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12197 PyObject *resultobj;
12198 wxGrid *arg1 = (wxGrid *) 0 ;
12199 wxColour result;
12200 PyObject * obj0 = 0 ;
12201 char *kwnames[] = {
12202 (char *) "self", NULL
12203 };
12204
12205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionBackground",kwnames,&obj0)) goto fail;
12206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 result = ((wxGrid const *)arg1)->GetSelectionBackground();
12210
12211 wxPyEndAllowThreads(__tstate);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 {
12215 wxColour * resultptr;
12216 resultptr = new wxColour((wxColour &) result);
12217 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
12218 }
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 static PyObject *_wrap_Grid_GetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12226 PyObject *resultobj;
12227 wxGrid *arg1 = (wxGrid *) 0 ;
12228 wxColour result;
12229 PyObject * obj0 = 0 ;
12230 char *kwnames[] = {
12231 (char *) "self", NULL
12232 };
12233
12234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetSelectionForeground",kwnames,&obj0)) goto fail;
12235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 result = ((wxGrid const *)arg1)->GetSelectionForeground();
12239
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 {
12244 wxColour * resultptr;
12245 resultptr = new wxColour((wxColour &) result);
12246 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
12247 }
12248 return resultobj;
12249 fail:
12250 return NULL;
12251 }
12252
12253
12254 static PyObject *_wrap_Grid_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12255 PyObject *resultobj;
12256 wxGrid *arg1 = (wxGrid *) 0 ;
12257 wxColour *arg2 = 0 ;
12258 wxColour temp2 ;
12259 PyObject * obj0 = 0 ;
12260 PyObject * obj1 = 0 ;
12261 char *kwnames[] = {
12262 (char *) "self",(char *) "c", NULL
12263 };
12264
12265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail;
12266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12267 {
12268 arg2 = &temp2;
12269 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12270 }
12271 {
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
12273 (arg1)->SetSelectionBackground((wxColour const &)*arg2);
12274
12275 wxPyEndAllowThreads(__tstate);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 Py_INCREF(Py_None); resultobj = Py_None;
12279 return resultobj;
12280 fail:
12281 return NULL;
12282 }
12283
12284
12285 static PyObject *_wrap_Grid_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
12286 PyObject *resultobj;
12287 wxGrid *arg1 = (wxGrid *) 0 ;
12288 wxColour *arg2 = 0 ;
12289 wxColour temp2 ;
12290 PyObject * obj0 = 0 ;
12291 PyObject * obj1 = 0 ;
12292 char *kwnames[] = {
12293 (char *) "self",(char *) "c", NULL
12294 };
12295
12296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_SetSelectionForeground",kwnames,&obj0,&obj1)) goto fail;
12297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12298 {
12299 arg2 = &temp2;
12300 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
12301 }
12302 {
12303 PyThreadState* __tstate = wxPyBeginAllowThreads();
12304 (arg1)->SetSelectionForeground((wxColour const &)*arg2);
12305
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 Py_INCREF(Py_None); resultobj = Py_None;
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 static PyObject *_wrap_Grid_RegisterDataType(PyObject *self, PyObject *args, PyObject *kwargs) {
12317 PyObject *resultobj;
12318 wxGrid *arg1 = (wxGrid *) 0 ;
12319 wxString *arg2 = 0 ;
12320 wxGridCellRenderer *arg3 = (wxGridCellRenderer *) 0 ;
12321 wxGridCellEditor *arg4 = (wxGridCellEditor *) 0 ;
12322 bool temp2 = False ;
12323 PyObject * obj0 = 0 ;
12324 PyObject * obj1 = 0 ;
12325 PyObject * obj2 = 0 ;
12326 PyObject * obj3 = 0 ;
12327 char *kwnames[] = {
12328 (char *) "self",(char *) "typeName",(char *) "renderer",(char *) "editor", NULL
12329 };
12330
12331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Grid_RegisterDataType",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12333 {
12334 arg2 = wxString_in_helper(obj1);
12335 if (arg2 == NULL) SWIG_fail;
12336 temp2 = True;
12337 }
12338 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGridCellRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12339 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGridCellEditor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12340 {
12341 PyThreadState* __tstate = wxPyBeginAllowThreads();
12342 (arg1)->RegisterDataType((wxString const &)*arg2,arg3,arg4);
12343
12344 wxPyEndAllowThreads(__tstate);
12345 if (PyErr_Occurred()) SWIG_fail;
12346 }
12347 Py_INCREF(Py_None); resultobj = Py_None;
12348 {
12349 if (temp2)
12350 delete arg2;
12351 }
12352 return resultobj;
12353 fail:
12354 {
12355 if (temp2)
12356 delete arg2;
12357 }
12358 return NULL;
12359 }
12360
12361
12362 static PyObject *_wrap_Grid_GetDefaultEditorForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12363 PyObject *resultobj;
12364 wxGrid *arg1 = (wxGrid *) 0 ;
12365 int arg2 ;
12366 int arg3 ;
12367 wxGridCellEditor *result;
12368 PyObject * obj0 = 0 ;
12369 char *kwnames[] = {
12370 (char *) "self",(char *) "row",(char *) "col", NULL
12371 };
12372
12373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetDefaultEditorForCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForCell(arg2,arg3);
12378
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 {
12383 resultobj = wxPyMake_wxGridCellEditor(result);
12384 }
12385 return resultobj;
12386 fail:
12387 return NULL;
12388 }
12389
12390
12391 static PyObject *_wrap_Grid_GetDefaultRendererForCell(PyObject *self, PyObject *args, PyObject *kwargs) {
12392 PyObject *resultobj;
12393 wxGrid *arg1 = (wxGrid *) 0 ;
12394 int arg2 ;
12395 int arg3 ;
12396 wxGridCellRenderer *result;
12397 PyObject * obj0 = 0 ;
12398 char *kwnames[] = {
12399 (char *) "self",(char *) "row",(char *) "col", NULL
12400 };
12401
12402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_GetDefaultRendererForCell",kwnames,&obj0,&arg2,&arg3)) goto fail;
12403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForCell(arg2,arg3);
12407
12408 wxPyEndAllowThreads(__tstate);
12409 if (PyErr_Occurred()) SWIG_fail;
12410 }
12411 {
12412 resultobj = wxPyMake_wxGridCellRenderer(result);
12413 }
12414 return resultobj;
12415 fail:
12416 return NULL;
12417 }
12418
12419
12420 static PyObject *_wrap_Grid_GetDefaultEditorForType(PyObject *self, PyObject *args, PyObject *kwargs) {
12421 PyObject *resultobj;
12422 wxGrid *arg1 = (wxGrid *) 0 ;
12423 wxString *arg2 = 0 ;
12424 wxGridCellEditor *result;
12425 bool temp2 = False ;
12426 PyObject * obj0 = 0 ;
12427 PyObject * obj1 = 0 ;
12428 char *kwnames[] = {
12429 (char *) "self",(char *) "typeName", NULL
12430 };
12431
12432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultEditorForType",kwnames,&obj0,&obj1)) goto fail;
12433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12434 {
12435 arg2 = wxString_in_helper(obj1);
12436 if (arg2 == NULL) SWIG_fail;
12437 temp2 = True;
12438 }
12439 {
12440 PyThreadState* __tstate = wxPyBeginAllowThreads();
12441 result = (wxGridCellEditor *)((wxGrid const *)arg1)->GetDefaultEditorForType((wxString const &)*arg2);
12442
12443 wxPyEndAllowThreads(__tstate);
12444 if (PyErr_Occurred()) SWIG_fail;
12445 }
12446 {
12447 resultobj = wxPyMake_wxGridCellEditor(result);
12448 }
12449 {
12450 if (temp2)
12451 delete arg2;
12452 }
12453 return resultobj;
12454 fail:
12455 {
12456 if (temp2)
12457 delete arg2;
12458 }
12459 return NULL;
12460 }
12461
12462
12463 static PyObject *_wrap_Grid_GetDefaultRendererForType(PyObject *self, PyObject *args, PyObject *kwargs) {
12464 PyObject *resultobj;
12465 wxGrid *arg1 = (wxGrid *) 0 ;
12466 wxString *arg2 = 0 ;
12467 wxGridCellRenderer *result;
12468 bool temp2 = False ;
12469 PyObject * obj0 = 0 ;
12470 PyObject * obj1 = 0 ;
12471 char *kwnames[] = {
12472 (char *) "self",(char *) "typeName", NULL
12473 };
12474
12475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Grid_GetDefaultRendererForType",kwnames,&obj0,&obj1)) goto fail;
12476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12477 {
12478 arg2 = wxString_in_helper(obj1);
12479 if (arg2 == NULL) SWIG_fail;
12480 temp2 = True;
12481 }
12482 {
12483 PyThreadState* __tstate = wxPyBeginAllowThreads();
12484 result = (wxGridCellRenderer *)((wxGrid const *)arg1)->GetDefaultRendererForType((wxString const &)*arg2);
12485
12486 wxPyEndAllowThreads(__tstate);
12487 if (PyErr_Occurred()) SWIG_fail;
12488 }
12489 {
12490 resultobj = wxPyMake_wxGridCellRenderer(result);
12491 }
12492 {
12493 if (temp2)
12494 delete arg2;
12495 }
12496 return resultobj;
12497 fail:
12498 {
12499 if (temp2)
12500 delete arg2;
12501 }
12502 return NULL;
12503 }
12504
12505
12506 static PyObject *_wrap_Grid_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
12507 PyObject *resultobj;
12508 wxGrid *arg1 = (wxGrid *) 0 ;
12509 int arg2 ;
12510 int arg3 ;
12511 PyObject * obj0 = 0 ;
12512 char *kwnames[] = {
12513 (char *) "self",(char *) "extraWidth",(char *) "extraHeight", NULL
12514 };
12515
12516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Grid_SetMargins",kwnames,&obj0,&arg2,&arg3)) goto fail;
12517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 (arg1)->SetMargins(arg2,arg3);
12521
12522 wxPyEndAllowThreads(__tstate);
12523 if (PyErr_Occurred()) SWIG_fail;
12524 }
12525 Py_INCREF(Py_None); resultobj = Py_None;
12526 return resultobj;
12527 fail:
12528 return NULL;
12529 }
12530
12531
12532 static PyObject *_wrap_Grid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12533 PyObject *resultobj;
12534 wxGrid *arg1 = (wxGrid *) 0 ;
12535 wxWindow *result;
12536 PyObject * obj0 = 0 ;
12537 char *kwnames[] = {
12538 (char *) "self", NULL
12539 };
12540
12541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridWindow",kwnames,&obj0)) goto fail;
12542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 result = (wxWindow *)(arg1)->GetGridWindow();
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 {
12551 resultobj = wxPyMake_wxObject(result);
12552 }
12553 return resultobj;
12554 fail:
12555 return NULL;
12556 }
12557
12558
12559 static PyObject *_wrap_Grid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12560 PyObject *resultobj;
12561 wxGrid *arg1 = (wxGrid *) 0 ;
12562 wxWindow *result;
12563 PyObject * obj0 = 0 ;
12564 char *kwnames[] = {
12565 (char *) "self", NULL
12566 };
12567
12568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridRowLabelWindow",kwnames,&obj0)) goto fail;
12569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12570 {
12571 PyThreadState* __tstate = wxPyBeginAllowThreads();
12572 result = (wxWindow *)(arg1)->GetGridRowLabelWindow();
12573
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 {
12578 resultobj = wxPyMake_wxObject(result);
12579 }
12580 return resultobj;
12581 fail:
12582 return NULL;
12583 }
12584
12585
12586 static PyObject *_wrap_Grid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12587 PyObject *resultobj;
12588 wxGrid *arg1 = (wxGrid *) 0 ;
12589 wxWindow *result;
12590 PyObject * obj0 = 0 ;
12591 char *kwnames[] = {
12592 (char *) "self", NULL
12593 };
12594
12595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridColLabelWindow",kwnames,&obj0)) goto fail;
12596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12597 {
12598 PyThreadState* __tstate = wxPyBeginAllowThreads();
12599 result = (wxWindow *)(arg1)->GetGridColLabelWindow();
12600
12601 wxPyEndAllowThreads(__tstate);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 {
12605 resultobj = wxPyMake_wxObject(result);
12606 }
12607 return resultobj;
12608 fail:
12609 return NULL;
12610 }
12611
12612
12613 static PyObject *_wrap_Grid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
12614 PyObject *resultobj;
12615 wxGrid *arg1 = (wxGrid *) 0 ;
12616 wxWindow *result;
12617 PyObject * obj0 = 0 ;
12618 char *kwnames[] = {
12619 (char *) "self", NULL
12620 };
12621
12622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Grid_GetGridCornerLabelWindow",kwnames,&obj0)) goto fail;
12623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12624 {
12625 PyThreadState* __tstate = wxPyBeginAllowThreads();
12626 result = (wxWindow *)(arg1)->GetGridCornerLabelWindow();
12627
12628 wxPyEndAllowThreads(__tstate);
12629 if (PyErr_Occurred()) SWIG_fail;
12630 }
12631 {
12632 resultobj = wxPyMake_wxObject(result);
12633 }
12634 return resultobj;
12635 fail:
12636 return NULL;
12637 }
12638
12639
12640 static PyObject * Grid_swigregister(PyObject *self, PyObject *args) {
12641 PyObject *obj;
12642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12643 SWIG_TypeClientData(SWIGTYPE_p_wxGrid, obj);
12644 Py_INCREF(obj);
12645 return Py_BuildValue((char *)"");
12646 }
12647 static PyObject *_wrap_new_GridEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 int arg1 ;
12650 wxEventType arg2 ;
12651 wxGrid *arg3 = (wxGrid *) 0 ;
12652 int arg4 = (int) -1 ;
12653 int arg5 = (int) -1 ;
12654 int arg6 = (int) -1 ;
12655 int arg7 = (int) -1 ;
12656 bool arg8 = (bool) True ;
12657 bool arg9 = (bool) False ;
12658 bool arg10 = (bool) False ;
12659 bool arg11 = (bool) False ;
12660 bool arg12 = (bool) False ;
12661 wxGridEvent *result;
12662 PyObject * obj2 = 0 ;
12663 PyObject * obj7 = 0 ;
12664 PyObject * obj8 = 0 ;
12665 PyObject * obj9 = 0 ;
12666 PyObject * obj10 = 0 ;
12667 PyObject * obj11 = 0 ;
12668 char *kwnames[] = {
12669 (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
12670 };
12671
12672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO|iiiiOOOOO:new_GridEvent",kwnames,&arg1,&arg2,&obj2,&arg4,&arg5,&arg6,&arg7,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
12673 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12674 if (obj7) {
12675 arg8 = PyInt_AsLong(obj7) ? true : false;
12676 if (PyErr_Occurred()) SWIG_fail;
12677 }
12678 if (obj8) {
12679 arg9 = PyInt_AsLong(obj8) ? true : false;
12680 if (PyErr_Occurred()) SWIG_fail;
12681 }
12682 if (obj9) {
12683 arg10 = PyInt_AsLong(obj9) ? true : false;
12684 if (PyErr_Occurred()) SWIG_fail;
12685 }
12686 if (obj10) {
12687 arg11 = PyInt_AsLong(obj10) ? true : false;
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 if (obj11) {
12691 arg12 = PyInt_AsLong(obj11) ? true : false;
12692 if (PyErr_Occurred()) SWIG_fail;
12693 }
12694 {
12695 PyThreadState* __tstate = wxPyBeginAllowThreads();
12696 result = (wxGridEvent *)new wxGridEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12697
12698 wxPyEndAllowThreads(__tstate);
12699 if (PyErr_Occurred()) SWIG_fail;
12700 }
12701 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEvent, 1);
12702 return resultobj;
12703 fail:
12704 return NULL;
12705 }
12706
12707
12708 static PyObject *_wrap_GridEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
12709 PyObject *resultobj;
12710 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12711 int result;
12712 PyObject * obj0 = 0 ;
12713 char *kwnames[] = {
12714 (char *) "self", NULL
12715 };
12716
12717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetRow",kwnames,&obj0)) goto fail;
12718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 result = (int)(arg1)->GetRow();
12722
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 resultobj = PyInt_FromLong((long)result);
12727 return resultobj;
12728 fail:
12729 return NULL;
12730 }
12731
12732
12733 static PyObject *_wrap_GridEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
12734 PyObject *resultobj;
12735 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12736 int result;
12737 PyObject * obj0 = 0 ;
12738 char *kwnames[] = {
12739 (char *) "self", NULL
12740 };
12741
12742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetCol",kwnames,&obj0)) goto fail;
12743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12744 {
12745 PyThreadState* __tstate = wxPyBeginAllowThreads();
12746 result = (int)(arg1)->GetCol();
12747
12748 wxPyEndAllowThreads(__tstate);
12749 if (PyErr_Occurred()) SWIG_fail;
12750 }
12751 resultobj = PyInt_FromLong((long)result);
12752 return resultobj;
12753 fail:
12754 return NULL;
12755 }
12756
12757
12758 static PyObject *_wrap_GridEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12759 PyObject *resultobj;
12760 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12761 wxPoint result;
12762 PyObject * obj0 = 0 ;
12763 char *kwnames[] = {
12764 (char *) "self", NULL
12765 };
12766
12767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_GetPosition",kwnames,&obj0)) goto fail;
12768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = (arg1)->GetPosition();
12772
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 {
12777 wxPoint * resultptr;
12778 resultptr = new wxPoint((wxPoint &) result);
12779 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
12780 }
12781 return resultobj;
12782 fail:
12783 return NULL;
12784 }
12785
12786
12787 static PyObject *_wrap_GridEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
12788 PyObject *resultobj;
12789 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12790 bool result;
12791 PyObject * obj0 = 0 ;
12792 char *kwnames[] = {
12793 (char *) "self", NULL
12794 };
12795
12796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_Selecting",kwnames,&obj0)) goto fail;
12797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 result = (bool)(arg1)->Selecting();
12801
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 resultobj = PyInt_FromLong((long)result);
12806 return resultobj;
12807 fail:
12808 return NULL;
12809 }
12810
12811
12812 static PyObject *_wrap_GridEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj;
12814 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12815 bool result;
12816 PyObject * obj0 = 0 ;
12817 char *kwnames[] = {
12818 (char *) "self", NULL
12819 };
12820
12821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ControlDown",kwnames,&obj0)) goto fail;
12822 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12823 {
12824 PyThreadState* __tstate = wxPyBeginAllowThreads();
12825 result = (bool)(arg1)->ControlDown();
12826
12827 wxPyEndAllowThreads(__tstate);
12828 if (PyErr_Occurred()) SWIG_fail;
12829 }
12830 resultobj = PyInt_FromLong((long)result);
12831 return resultobj;
12832 fail:
12833 return NULL;
12834 }
12835
12836
12837 static PyObject *_wrap_GridEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
12838 PyObject *resultobj;
12839 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12840 bool result;
12841 PyObject * obj0 = 0 ;
12842 char *kwnames[] = {
12843 (char *) "self", NULL
12844 };
12845
12846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_MetaDown",kwnames,&obj0)) goto fail;
12847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 result = (bool)(arg1)->MetaDown();
12851
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 resultobj = PyInt_FromLong((long)result);
12856 return resultobj;
12857 fail:
12858 return NULL;
12859 }
12860
12861
12862 static PyObject *_wrap_GridEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
12863 PyObject *resultobj;
12864 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12865 bool result;
12866 PyObject * obj0 = 0 ;
12867 char *kwnames[] = {
12868 (char *) "self", NULL
12869 };
12870
12871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_ShiftDown",kwnames,&obj0)) goto fail;
12872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = (bool)(arg1)->ShiftDown();
12876
12877 wxPyEndAllowThreads(__tstate);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 resultobj = PyInt_FromLong((long)result);
12881 return resultobj;
12882 fail:
12883 return NULL;
12884 }
12885
12886
12887 static PyObject *_wrap_GridEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
12888 PyObject *resultobj;
12889 wxGridEvent *arg1 = (wxGridEvent *) 0 ;
12890 bool result;
12891 PyObject * obj0 = 0 ;
12892 char *kwnames[] = {
12893 (char *) "self", NULL
12894 };
12895
12896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEvent_AltDown",kwnames,&obj0)) goto fail;
12897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12898 {
12899 PyThreadState* __tstate = wxPyBeginAllowThreads();
12900 result = (bool)(arg1)->AltDown();
12901
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 resultobj = PyInt_FromLong((long)result);
12906 return resultobj;
12907 fail:
12908 return NULL;
12909 }
12910
12911
12912 static PyObject * GridEvent_swigregister(PyObject *self, PyObject *args) {
12913 PyObject *obj;
12914 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12915 SWIG_TypeClientData(SWIGTYPE_p_wxGridEvent, obj);
12916 Py_INCREF(obj);
12917 return Py_BuildValue((char *)"");
12918 }
12919 static PyObject *_wrap_new_GridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12920 PyObject *resultobj;
12921 int arg1 ;
12922 wxEventType arg2 ;
12923 wxGrid *arg3 = (wxGrid *) 0 ;
12924 int arg4 = (int) -1 ;
12925 int arg5 = (int) -1 ;
12926 int arg6 = (int) -1 ;
12927 bool arg7 = (bool) False ;
12928 bool arg8 = (bool) False ;
12929 bool arg9 = (bool) False ;
12930 bool arg10 = (bool) False ;
12931 wxGridSizeEvent *result;
12932 PyObject * obj2 = 0 ;
12933 PyObject * obj6 = 0 ;
12934 PyObject * obj7 = 0 ;
12935 PyObject * obj8 = 0 ;
12936 PyObject * obj9 = 0 ;
12937 char *kwnames[] = {
12938 (char *) "id",(char *) "type",(char *) "obj",(char *) "rowOrCol",(char *) "x",(char *) "y",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
12939 };
12940
12941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiO|iiiOOOO:new_GridSizeEvent",kwnames,&arg1,&arg2,&obj2,&arg4,&arg5,&arg6,&obj6,&obj7,&obj8,&obj9)) goto fail;
12942 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12943 if (obj6) {
12944 arg7 = PyInt_AsLong(obj6) ? true : false;
12945 if (PyErr_Occurred()) SWIG_fail;
12946 }
12947 if (obj7) {
12948 arg8 = PyInt_AsLong(obj7) ? true : false;
12949 if (PyErr_Occurred()) SWIG_fail;
12950 }
12951 if (obj8) {
12952 arg9 = PyInt_AsLong(obj8) ? true : false;
12953 if (PyErr_Occurred()) SWIG_fail;
12954 }
12955 if (obj9) {
12956 arg10 = PyInt_AsLong(obj9) ? true : false;
12957 if (PyErr_Occurred()) SWIG_fail;
12958 }
12959 {
12960 PyThreadState* __tstate = wxPyBeginAllowThreads();
12961 result = (wxGridSizeEvent *)new wxGridSizeEvent(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
12962
12963 wxPyEndAllowThreads(__tstate);
12964 if (PyErr_Occurred()) SWIG_fail;
12965 }
12966 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizeEvent, 1);
12967 return resultobj;
12968 fail:
12969 return NULL;
12970 }
12971
12972
12973 static PyObject *_wrap_GridSizeEvent_GetRowOrCol(PyObject *self, PyObject *args, PyObject *kwargs) {
12974 PyObject *resultobj;
12975 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
12976 int result;
12977 PyObject * obj0 = 0 ;
12978 char *kwnames[] = {
12979 (char *) "self", NULL
12980 };
12981
12982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetRowOrCol",kwnames,&obj0)) goto fail;
12983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12984 {
12985 PyThreadState* __tstate = wxPyBeginAllowThreads();
12986 result = (int)(arg1)->GetRowOrCol();
12987
12988 wxPyEndAllowThreads(__tstate);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 resultobj = PyInt_FromLong((long)result);
12992 return resultobj;
12993 fail:
12994 return NULL;
12995 }
12996
12997
12998 static PyObject *_wrap_GridSizeEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12999 PyObject *resultobj;
13000 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13001 wxPoint result;
13002 PyObject * obj0 = 0 ;
13003 char *kwnames[] = {
13004 (char *) "self", NULL
13005 };
13006
13007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_GetPosition",kwnames,&obj0)) goto fail;
13008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13009 {
13010 PyThreadState* __tstate = wxPyBeginAllowThreads();
13011 result = (arg1)->GetPosition();
13012
13013 wxPyEndAllowThreads(__tstate);
13014 if (PyErr_Occurred()) SWIG_fail;
13015 }
13016 {
13017 wxPoint * resultptr;
13018 resultptr = new wxPoint((wxPoint &) result);
13019 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13020 }
13021 return resultobj;
13022 fail:
13023 return NULL;
13024 }
13025
13026
13027 static PyObject *_wrap_GridSizeEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13028 PyObject *resultobj;
13029 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13030 bool result;
13031 PyObject * obj0 = 0 ;
13032 char *kwnames[] = {
13033 (char *) "self", NULL
13034 };
13035
13036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ControlDown",kwnames,&obj0)) goto fail;
13037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 result = (bool)(arg1)->ControlDown();
13041
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 resultobj = PyInt_FromLong((long)result);
13046 return resultobj;
13047 fail:
13048 return NULL;
13049 }
13050
13051
13052 static PyObject *_wrap_GridSizeEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13053 PyObject *resultobj;
13054 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13055 bool result;
13056 PyObject * obj0 = 0 ;
13057 char *kwnames[] = {
13058 (char *) "self", NULL
13059 };
13060
13061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_MetaDown",kwnames,&obj0)) goto fail;
13062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 result = (bool)(arg1)->MetaDown();
13066
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 resultobj = PyInt_FromLong((long)result);
13071 return resultobj;
13072 fail:
13073 return NULL;
13074 }
13075
13076
13077 static PyObject *_wrap_GridSizeEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj;
13079 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13080 bool result;
13081 PyObject * obj0 = 0 ;
13082 char *kwnames[] = {
13083 (char *) "self", NULL
13084 };
13085
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_ShiftDown",kwnames,&obj0)) goto fail;
13087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13088 {
13089 PyThreadState* __tstate = wxPyBeginAllowThreads();
13090 result = (bool)(arg1)->ShiftDown();
13091
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 resultobj = PyInt_FromLong((long)result);
13096 return resultobj;
13097 fail:
13098 return NULL;
13099 }
13100
13101
13102 static PyObject *_wrap_GridSizeEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13103 PyObject *resultobj;
13104 wxGridSizeEvent *arg1 = (wxGridSizeEvent *) 0 ;
13105 bool result;
13106 PyObject * obj0 = 0 ;
13107 char *kwnames[] = {
13108 (char *) "self", NULL
13109 };
13110
13111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizeEvent_AltDown",kwnames,&obj0)) goto fail;
13112 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13113 {
13114 PyThreadState* __tstate = wxPyBeginAllowThreads();
13115 result = (bool)(arg1)->AltDown();
13116
13117 wxPyEndAllowThreads(__tstate);
13118 if (PyErr_Occurred()) SWIG_fail;
13119 }
13120 resultobj = PyInt_FromLong((long)result);
13121 return resultobj;
13122 fail:
13123 return NULL;
13124 }
13125
13126
13127 static PyObject * GridSizeEvent_swigregister(PyObject *self, PyObject *args) {
13128 PyObject *obj;
13129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13130 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizeEvent, obj);
13131 Py_INCREF(obj);
13132 return Py_BuildValue((char *)"");
13133 }
13134 static PyObject *_wrap_new_GridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13135 PyObject *resultobj;
13136 int arg1 ;
13137 wxEventType arg2 ;
13138 wxGrid *arg3 = (wxGrid *) 0 ;
13139 wxGridCellCoords *arg4 = 0 ;
13140 wxGridCellCoords *arg5 = 0 ;
13141 bool arg6 = (bool) True ;
13142 bool arg7 = (bool) False ;
13143 bool arg8 = (bool) False ;
13144 bool arg9 = (bool) False ;
13145 bool arg10 = (bool) False ;
13146 wxGridRangeSelectEvent *result;
13147 wxGridCellCoords temp4 ;
13148 wxGridCellCoords temp5 ;
13149 PyObject * obj2 = 0 ;
13150 PyObject * obj3 = 0 ;
13151 PyObject * obj4 = 0 ;
13152 PyObject * obj5 = 0 ;
13153 PyObject * obj6 = 0 ;
13154 PyObject * obj7 = 0 ;
13155 PyObject * obj8 = 0 ;
13156 PyObject * obj9 = 0 ;
13157 char *kwnames[] = {
13158 (char *) "id",(char *) "type",(char *) "obj",(char *) "topLeft",(char *) "bottomRight",(char *) "sel",(char *) "control",(char *) "shift",(char *) "alt",(char *) "meta", NULL
13159 };
13160
13161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOOO|OOOOO:new_GridRangeSelectEvent",kwnames,&arg1,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13162 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGrid,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13163 {
13164 arg4 = &temp4;
13165 if (! wxGridCellCoords_helper(obj3, &arg4)) SWIG_fail;
13166 }
13167 {
13168 arg5 = &temp5;
13169 if (! wxGridCellCoords_helper(obj4, &arg5)) SWIG_fail;
13170 }
13171 if (obj5) {
13172 arg6 = PyInt_AsLong(obj5) ? true : false;
13173 if (PyErr_Occurred()) SWIG_fail;
13174 }
13175 if (obj6) {
13176 arg7 = PyInt_AsLong(obj6) ? true : false;
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 if (obj7) {
13180 arg8 = PyInt_AsLong(obj7) ? true : false;
13181 if (PyErr_Occurred()) SWIG_fail;
13182 }
13183 if (obj8) {
13184 arg9 = PyInt_AsLong(obj8) ? true : false;
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 if (obj9) {
13188 arg10 = PyInt_AsLong(obj9) ? true : false;
13189 if (PyErr_Occurred()) SWIG_fail;
13190 }
13191 {
13192 PyThreadState* __tstate = wxPyBeginAllowThreads();
13193 result = (wxGridRangeSelectEvent *)new wxGridRangeSelectEvent(arg1,arg2,arg3,(wxGridCellCoords const &)*arg4,(wxGridCellCoords const &)*arg5,arg6,arg7,arg8,arg9,arg10);
13194
13195 wxPyEndAllowThreads(__tstate);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridRangeSelectEvent, 1);
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 static PyObject *_wrap_GridRangeSelectEvent_GetTopLeftCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
13206 PyObject *resultobj;
13207 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13208 wxGridCellCoords result;
13209 PyObject * obj0 = 0 ;
13210 char *kwnames[] = {
13211 (char *) "self", NULL
13212 };
13213
13214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopLeftCoords",kwnames,&obj0)) goto fail;
13215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13216 {
13217 PyThreadState* __tstate = wxPyBeginAllowThreads();
13218 result = (arg1)->GetTopLeftCoords();
13219
13220 wxPyEndAllowThreads(__tstate);
13221 if (PyErr_Occurred()) SWIG_fail;
13222 }
13223 {
13224 wxGridCellCoords * resultptr;
13225 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
13226 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
13227 }
13228 return resultobj;
13229 fail:
13230 return NULL;
13231 }
13232
13233
13234 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRightCoords(PyObject *self, PyObject *args, PyObject *kwargs) {
13235 PyObject *resultobj;
13236 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13237 wxGridCellCoords result;
13238 PyObject * obj0 = 0 ;
13239 char *kwnames[] = {
13240 (char *) "self", NULL
13241 };
13242
13243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRightCoords",kwnames,&obj0)) goto fail;
13244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13245 {
13246 PyThreadState* __tstate = wxPyBeginAllowThreads();
13247 result = (arg1)->GetBottomRightCoords();
13248
13249 wxPyEndAllowThreads(__tstate);
13250 if (PyErr_Occurred()) SWIG_fail;
13251 }
13252 {
13253 wxGridCellCoords * resultptr;
13254 resultptr = new wxGridCellCoords((wxGridCellCoords &) result);
13255 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGridCellCoords, 1);
13256 }
13257 return resultobj;
13258 fail:
13259 return NULL;
13260 }
13261
13262
13263 static PyObject *_wrap_GridRangeSelectEvent_GetTopRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj;
13265 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13266 int result;
13267 PyObject * obj0 = 0 ;
13268 char *kwnames[] = {
13269 (char *) "self", NULL
13270 };
13271
13272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetTopRow",kwnames,&obj0)) goto fail;
13273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13274 {
13275 PyThreadState* __tstate = wxPyBeginAllowThreads();
13276 result = (int)(arg1)->GetTopRow();
13277
13278 wxPyEndAllowThreads(__tstate);
13279 if (PyErr_Occurred()) SWIG_fail;
13280 }
13281 resultobj = PyInt_FromLong((long)result);
13282 return resultobj;
13283 fail:
13284 return NULL;
13285 }
13286
13287
13288 static PyObject *_wrap_GridRangeSelectEvent_GetBottomRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13289 PyObject *resultobj;
13290 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13291 int result;
13292 PyObject * obj0 = 0 ;
13293 char *kwnames[] = {
13294 (char *) "self", NULL
13295 };
13296
13297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetBottomRow",kwnames,&obj0)) goto fail;
13298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13299 {
13300 PyThreadState* __tstate = wxPyBeginAllowThreads();
13301 result = (int)(arg1)->GetBottomRow();
13302
13303 wxPyEndAllowThreads(__tstate);
13304 if (PyErr_Occurred()) SWIG_fail;
13305 }
13306 resultobj = PyInt_FromLong((long)result);
13307 return resultobj;
13308 fail:
13309 return NULL;
13310 }
13311
13312
13313 static PyObject *_wrap_GridRangeSelectEvent_GetLeftCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13314 PyObject *resultobj;
13315 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13316 int result;
13317 PyObject * obj0 = 0 ;
13318 char *kwnames[] = {
13319 (char *) "self", NULL
13320 };
13321
13322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetLeftCol",kwnames,&obj0)) goto fail;
13323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 result = (int)(arg1)->GetLeftCol();
13327
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 resultobj = PyInt_FromLong((long)result);
13332 return resultobj;
13333 fail:
13334 return NULL;
13335 }
13336
13337
13338 static PyObject *_wrap_GridRangeSelectEvent_GetRightCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13339 PyObject *resultobj;
13340 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13341 int result;
13342 PyObject * obj0 = 0 ;
13343 char *kwnames[] = {
13344 (char *) "self", NULL
13345 };
13346
13347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_GetRightCol",kwnames,&obj0)) goto fail;
13348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 result = (int)(arg1)->GetRightCol();
13352
13353 wxPyEndAllowThreads(__tstate);
13354 if (PyErr_Occurred()) SWIG_fail;
13355 }
13356 resultobj = PyInt_FromLong((long)result);
13357 return resultobj;
13358 fail:
13359 return NULL;
13360 }
13361
13362
13363 static PyObject *_wrap_GridRangeSelectEvent_Selecting(PyObject *self, PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj;
13365 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13366 bool result;
13367 PyObject * obj0 = 0 ;
13368 char *kwnames[] = {
13369 (char *) "self", NULL
13370 };
13371
13372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_Selecting",kwnames,&obj0)) goto fail;
13373 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13374 {
13375 PyThreadState* __tstate = wxPyBeginAllowThreads();
13376 result = (bool)(arg1)->Selecting();
13377
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 resultobj = PyInt_FromLong((long)result);
13382 return resultobj;
13383 fail:
13384 return NULL;
13385 }
13386
13387
13388 static PyObject *_wrap_GridRangeSelectEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13389 PyObject *resultobj;
13390 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13391 bool result;
13392 PyObject * obj0 = 0 ;
13393 char *kwnames[] = {
13394 (char *) "self", NULL
13395 };
13396
13397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ControlDown",kwnames,&obj0)) goto fail;
13398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13399 {
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 result = (bool)(arg1)->ControlDown();
13402
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 resultobj = PyInt_FromLong((long)result);
13407 return resultobj;
13408 fail:
13409 return NULL;
13410 }
13411
13412
13413 static PyObject *_wrap_GridRangeSelectEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13414 PyObject *resultobj;
13415 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13416 bool result;
13417 PyObject * obj0 = 0 ;
13418 char *kwnames[] = {
13419 (char *) "self", NULL
13420 };
13421
13422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_MetaDown",kwnames,&obj0)) goto fail;
13423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (bool)(arg1)->MetaDown();
13427
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 resultobj = PyInt_FromLong((long)result);
13432 return resultobj;
13433 fail:
13434 return NULL;
13435 }
13436
13437
13438 static PyObject *_wrap_GridRangeSelectEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13439 PyObject *resultobj;
13440 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13441 bool result;
13442 PyObject * obj0 = 0 ;
13443 char *kwnames[] = {
13444 (char *) "self", NULL
13445 };
13446
13447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_ShiftDown",kwnames,&obj0)) goto fail;
13448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13449 {
13450 PyThreadState* __tstate = wxPyBeginAllowThreads();
13451 result = (bool)(arg1)->ShiftDown();
13452
13453 wxPyEndAllowThreads(__tstate);
13454 if (PyErr_Occurred()) SWIG_fail;
13455 }
13456 resultobj = PyInt_FromLong((long)result);
13457 return resultobj;
13458 fail:
13459 return NULL;
13460 }
13461
13462
13463 static PyObject *_wrap_GridRangeSelectEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13464 PyObject *resultobj;
13465 wxGridRangeSelectEvent *arg1 = (wxGridRangeSelectEvent *) 0 ;
13466 bool result;
13467 PyObject * obj0 = 0 ;
13468 char *kwnames[] = {
13469 (char *) "self", NULL
13470 };
13471
13472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridRangeSelectEvent_AltDown",kwnames,&obj0)) goto fail;
13473 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridRangeSelectEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13474 {
13475 PyThreadState* __tstate = wxPyBeginAllowThreads();
13476 result = (bool)(arg1)->AltDown();
13477
13478 wxPyEndAllowThreads(__tstate);
13479 if (PyErr_Occurred()) SWIG_fail;
13480 }
13481 resultobj = PyInt_FromLong((long)result);
13482 return resultobj;
13483 fail:
13484 return NULL;
13485 }
13486
13487
13488 static PyObject * GridRangeSelectEvent_swigregister(PyObject *self, PyObject *args) {
13489 PyObject *obj;
13490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13491 SWIG_TypeClientData(SWIGTYPE_p_wxGridRangeSelectEvent, obj);
13492 Py_INCREF(obj);
13493 return Py_BuildValue((char *)"");
13494 }
13495 static PyObject *_wrap_new_GridEditorCreatedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13496 PyObject *resultobj;
13497 int arg1 ;
13498 wxEventType arg2 ;
13499 wxObject *arg3 = (wxObject *) 0 ;
13500 int arg4 ;
13501 int arg5 ;
13502 wxControl *arg6 = (wxControl *) 0 ;
13503 wxGridEditorCreatedEvent *result;
13504 PyObject * obj2 = 0 ;
13505 PyObject * obj5 = 0 ;
13506 char *kwnames[] = {
13507 (char *) "id",(char *) "type",(char *) "obj",(char *) "row",(char *) "col",(char *) "ctrl", NULL
13508 };
13509
13510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iiOiiO:new_GridEditorCreatedEvent",kwnames,&arg1,&arg2,&obj2,&arg4,&arg5,&obj5)) goto fail;
13511 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13512 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13513 {
13514 PyThreadState* __tstate = wxPyBeginAllowThreads();
13515 result = (wxGridEditorCreatedEvent *)new wxGridEditorCreatedEvent(arg1,arg2,arg3,arg4,arg5,arg6);
13516
13517 wxPyEndAllowThreads(__tstate);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 }
13520 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridEditorCreatedEvent, 1);
13521 return resultobj;
13522 fail:
13523 return NULL;
13524 }
13525
13526
13527 static PyObject *_wrap_GridEditorCreatedEvent_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13528 PyObject *resultobj;
13529 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13530 int result;
13531 PyObject * obj0 = 0 ;
13532 char *kwnames[] = {
13533 (char *) "self", NULL
13534 };
13535
13536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetRow",kwnames,&obj0)) goto fail;
13537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13538 {
13539 PyThreadState* __tstate = wxPyBeginAllowThreads();
13540 result = (int)(arg1)->GetRow();
13541
13542 wxPyEndAllowThreads(__tstate);
13543 if (PyErr_Occurred()) SWIG_fail;
13544 }
13545 resultobj = PyInt_FromLong((long)result);
13546 return resultobj;
13547 fail:
13548 return NULL;
13549 }
13550
13551
13552 static PyObject *_wrap_GridEditorCreatedEvent_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13553 PyObject *resultobj;
13554 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13555 int result;
13556 PyObject * obj0 = 0 ;
13557 char *kwnames[] = {
13558 (char *) "self", NULL
13559 };
13560
13561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetCol",kwnames,&obj0)) goto fail;
13562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (int)(arg1)->GetCol();
13566
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 resultobj = PyInt_FromLong((long)result);
13571 return resultobj;
13572 fail:
13573 return NULL;
13574 }
13575
13576
13577 static PyObject *_wrap_GridEditorCreatedEvent_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
13578 PyObject *resultobj;
13579 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13580 wxControl *result;
13581 PyObject * obj0 = 0 ;
13582 char *kwnames[] = {
13583 (char *) "self", NULL
13584 };
13585
13586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridEditorCreatedEvent_GetControl",kwnames,&obj0)) goto fail;
13587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13588 {
13589 PyThreadState* __tstate = wxPyBeginAllowThreads();
13590 result = (wxControl *)(arg1)->GetControl();
13591
13592 wxPyEndAllowThreads(__tstate);
13593 if (PyErr_Occurred()) SWIG_fail;
13594 }
13595 {
13596 resultobj = wxPyMake_wxObject(result);
13597 }
13598 return resultobj;
13599 fail:
13600 return NULL;
13601 }
13602
13603
13604 static PyObject *_wrap_GridEditorCreatedEvent_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
13605 PyObject *resultobj;
13606 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13607 int arg2 ;
13608 PyObject * obj0 = 0 ;
13609 char *kwnames[] = {
13610 (char *) "self",(char *) "row", NULL
13611 };
13612
13613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridEditorCreatedEvent_SetRow",kwnames,&obj0,&arg2)) goto fail;
13614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13615 {
13616 PyThreadState* __tstate = wxPyBeginAllowThreads();
13617 (arg1)->SetRow(arg2);
13618
13619 wxPyEndAllowThreads(__tstate);
13620 if (PyErr_Occurred()) SWIG_fail;
13621 }
13622 Py_INCREF(Py_None); resultobj = Py_None;
13623 return resultobj;
13624 fail:
13625 return NULL;
13626 }
13627
13628
13629 static PyObject *_wrap_GridEditorCreatedEvent_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
13630 PyObject *resultobj;
13631 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13632 int arg2 ;
13633 PyObject * obj0 = 0 ;
13634 char *kwnames[] = {
13635 (char *) "self",(char *) "col", NULL
13636 };
13637
13638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GridEditorCreatedEvent_SetCol",kwnames,&obj0,&arg2)) goto fail;
13639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13640 {
13641 PyThreadState* __tstate = wxPyBeginAllowThreads();
13642 (arg1)->SetCol(arg2);
13643
13644 wxPyEndAllowThreads(__tstate);
13645 if (PyErr_Occurred()) SWIG_fail;
13646 }
13647 Py_INCREF(Py_None); resultobj = Py_None;
13648 return resultobj;
13649 fail:
13650 return NULL;
13651 }
13652
13653
13654 static PyObject *_wrap_GridEditorCreatedEvent_SetControl(PyObject *self, PyObject *args, PyObject *kwargs) {
13655 PyObject *resultobj;
13656 wxGridEditorCreatedEvent *arg1 = (wxGridEditorCreatedEvent *) 0 ;
13657 wxControl *arg2 = (wxControl *) 0 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 char *kwnames[] = {
13661 (char *) "self",(char *) "ctrl", NULL
13662 };
13663
13664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridEditorCreatedEvent_SetControl",kwnames,&obj0,&obj1)) goto fail;
13665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridEditorCreatedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13666 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13667 {
13668 PyThreadState* __tstate = wxPyBeginAllowThreads();
13669 (arg1)->SetControl(arg2);
13670
13671 wxPyEndAllowThreads(__tstate);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 Py_INCREF(Py_None); resultobj = Py_None;
13675 return resultobj;
13676 fail:
13677 return NULL;
13678 }
13679
13680
13681 static PyObject * GridEditorCreatedEvent_swigregister(PyObject *self, PyObject *args) {
13682 PyObject *obj;
13683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13684 SWIG_TypeClientData(SWIGTYPE_p_wxGridEditorCreatedEvent, obj);
13685 Py_INCREF(obj);
13686 return Py_BuildValue((char *)"");
13687 }
13688 static PyMethodDef SwigMethods[] = {
13689 { (char *)"GridCellRenderer__setOORInfo", (PyCFunction) _wrap_GridCellRenderer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13690 { (char *)"GridCellRenderer_SetParameters", (PyCFunction) _wrap_GridCellRenderer_SetParameters, METH_VARARGS | METH_KEYWORDS },
13691 { (char *)"GridCellRenderer_IncRef", (PyCFunction) _wrap_GridCellRenderer_IncRef, METH_VARARGS | METH_KEYWORDS },
13692 { (char *)"GridCellRenderer_DecRef", (PyCFunction) _wrap_GridCellRenderer_DecRef, METH_VARARGS | METH_KEYWORDS },
13693 { (char *)"GridCellRenderer_Draw", (PyCFunction) _wrap_GridCellRenderer_Draw, METH_VARARGS | METH_KEYWORDS },
13694 { (char *)"GridCellRenderer_GetBestSize", (PyCFunction) _wrap_GridCellRenderer_GetBestSize, METH_VARARGS | METH_KEYWORDS },
13695 { (char *)"GridCellRenderer_Clone", (PyCFunction) _wrap_GridCellRenderer_Clone, METH_VARARGS | METH_KEYWORDS },
13696 { (char *)"GridCellRenderer_swigregister", GridCellRenderer_swigregister, METH_VARARGS },
13697 { (char *)"new_PyGridCellRenderer", (PyCFunction) _wrap_new_PyGridCellRenderer, METH_VARARGS | METH_KEYWORDS },
13698 { (char *)"PyGridCellRenderer__setCallbackInfo", (PyCFunction) _wrap_PyGridCellRenderer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
13699 { (char *)"PyGridCellRenderer_base_SetParameters", (PyCFunction) _wrap_PyGridCellRenderer_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
13700 { (char *)"PyGridCellRenderer_swigregister", PyGridCellRenderer_swigregister, METH_VARARGS },
13701 { (char *)"new_GridCellStringRenderer", (PyCFunction) _wrap_new_GridCellStringRenderer, METH_VARARGS | METH_KEYWORDS },
13702 { (char *)"GridCellStringRenderer_swigregister", GridCellStringRenderer_swigregister, METH_VARARGS },
13703 { (char *)"new_GridCellNumberRenderer", (PyCFunction) _wrap_new_GridCellNumberRenderer, METH_VARARGS | METH_KEYWORDS },
13704 { (char *)"GridCellNumberRenderer_swigregister", GridCellNumberRenderer_swigregister, METH_VARARGS },
13705 { (char *)"new_GridCellFloatRenderer", (PyCFunction) _wrap_new_GridCellFloatRenderer, METH_VARARGS | METH_KEYWORDS },
13706 { (char *)"GridCellFloatRenderer_GetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_GetWidth, METH_VARARGS | METH_KEYWORDS },
13707 { (char *)"GridCellFloatRenderer_SetWidth", (PyCFunction) _wrap_GridCellFloatRenderer_SetWidth, METH_VARARGS | METH_KEYWORDS },
13708 { (char *)"GridCellFloatRenderer_GetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_GetPrecision, METH_VARARGS | METH_KEYWORDS },
13709 { (char *)"GridCellFloatRenderer_SetPrecision", (PyCFunction) _wrap_GridCellFloatRenderer_SetPrecision, METH_VARARGS | METH_KEYWORDS },
13710 { (char *)"GridCellFloatRenderer_swigregister", GridCellFloatRenderer_swigregister, METH_VARARGS },
13711 { (char *)"new_GridCellBoolRenderer", (PyCFunction) _wrap_new_GridCellBoolRenderer, METH_VARARGS | METH_KEYWORDS },
13712 { (char *)"GridCellBoolRenderer_swigregister", GridCellBoolRenderer_swigregister, METH_VARARGS },
13713 { (char *)"new_GridCellDateTimeRenderer", (PyCFunction) _wrap_new_GridCellDateTimeRenderer, METH_VARARGS | METH_KEYWORDS },
13714 { (char *)"GridCellDateTimeRenderer_swigregister", GridCellDateTimeRenderer_swigregister, METH_VARARGS },
13715 { (char *)"new_GridCellEnumRenderer", (PyCFunction) _wrap_new_GridCellEnumRenderer, METH_VARARGS | METH_KEYWORDS },
13716 { (char *)"GridCellEnumRenderer_swigregister", GridCellEnumRenderer_swigregister, METH_VARARGS },
13717 { (char *)"new_GridCellAutoWrapStringRenderer", (PyCFunction) _wrap_new_GridCellAutoWrapStringRenderer, METH_VARARGS | METH_KEYWORDS },
13718 { (char *)"GridCellAutoWrapStringRenderer_swigregister", GridCellAutoWrapStringRenderer_swigregister, METH_VARARGS },
13719 { (char *)"GridCellEditor__setOORInfo", (PyCFunction) _wrap_GridCellEditor__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13720 { (char *)"GridCellEditor_IsCreated", (PyCFunction) _wrap_GridCellEditor_IsCreated, METH_VARARGS | METH_KEYWORDS },
13721 { (char *)"GridCellEditor_GetControl", (PyCFunction) _wrap_GridCellEditor_GetControl, METH_VARARGS | METH_KEYWORDS },
13722 { (char *)"GridCellEditor_SetControl", (PyCFunction) _wrap_GridCellEditor_SetControl, METH_VARARGS | METH_KEYWORDS },
13723 { (char *)"GridCellEditor_GetCellAttr", (PyCFunction) _wrap_GridCellEditor_GetCellAttr, METH_VARARGS | METH_KEYWORDS },
13724 { (char *)"GridCellEditor_SetCellAttr", (PyCFunction) _wrap_GridCellEditor_SetCellAttr, METH_VARARGS | METH_KEYWORDS },
13725 { (char *)"GridCellEditor_SetParameters", (PyCFunction) _wrap_GridCellEditor_SetParameters, METH_VARARGS | METH_KEYWORDS },
13726 { (char *)"GridCellEditor_IncRef", (PyCFunction) _wrap_GridCellEditor_IncRef, METH_VARARGS | METH_KEYWORDS },
13727 { (char *)"GridCellEditor_DecRef", (PyCFunction) _wrap_GridCellEditor_DecRef, METH_VARARGS | METH_KEYWORDS },
13728 { (char *)"GridCellEditor_Create", (PyCFunction) _wrap_GridCellEditor_Create, METH_VARARGS | METH_KEYWORDS },
13729 { (char *)"GridCellEditor_BeginEdit", (PyCFunction) _wrap_GridCellEditor_BeginEdit, METH_VARARGS | METH_KEYWORDS },
13730 { (char *)"GridCellEditor_EndEdit", (PyCFunction) _wrap_GridCellEditor_EndEdit, METH_VARARGS | METH_KEYWORDS },
13731 { (char *)"GridCellEditor_Reset", (PyCFunction) _wrap_GridCellEditor_Reset, METH_VARARGS | METH_KEYWORDS },
13732 { (char *)"GridCellEditor_Clone", (PyCFunction) _wrap_GridCellEditor_Clone, METH_VARARGS | METH_KEYWORDS },
13733 { (char *)"GridCellEditor_SetSize", (PyCFunction) _wrap_GridCellEditor_SetSize, METH_VARARGS | METH_KEYWORDS },
13734 { (char *)"GridCellEditor_Show", (PyCFunction) _wrap_GridCellEditor_Show, METH_VARARGS | METH_KEYWORDS },
13735 { (char *)"GridCellEditor_PaintBackground", (PyCFunction) _wrap_GridCellEditor_PaintBackground, METH_VARARGS | METH_KEYWORDS },
13736 { (char *)"GridCellEditor_IsAcceptedKey", (PyCFunction) _wrap_GridCellEditor_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
13737 { (char *)"GridCellEditor_StartingKey", (PyCFunction) _wrap_GridCellEditor_StartingKey, METH_VARARGS | METH_KEYWORDS },
13738 { (char *)"GridCellEditor_StartingClick", (PyCFunction) _wrap_GridCellEditor_StartingClick, METH_VARARGS | METH_KEYWORDS },
13739 { (char *)"GridCellEditor_HandleReturn", (PyCFunction) _wrap_GridCellEditor_HandleReturn, METH_VARARGS | METH_KEYWORDS },
13740 { (char *)"GridCellEditor_Destroy", (PyCFunction) _wrap_GridCellEditor_Destroy, METH_VARARGS | METH_KEYWORDS },
13741 { (char *)"GridCellEditor_swigregister", GridCellEditor_swigregister, METH_VARARGS },
13742 { (char *)"new_PyGridCellEditor", (PyCFunction) _wrap_new_PyGridCellEditor, METH_VARARGS | METH_KEYWORDS },
13743 { (char *)"PyGridCellEditor__setCallbackInfo", (PyCFunction) _wrap_PyGridCellEditor__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
13744 { (char *)"PyGridCellEditor_base_SetSize", (PyCFunction) _wrap_PyGridCellEditor_base_SetSize, METH_VARARGS | METH_KEYWORDS },
13745 { (char *)"PyGridCellEditor_base_Show", (PyCFunction) _wrap_PyGridCellEditor_base_Show, METH_VARARGS | METH_KEYWORDS },
13746 { (char *)"PyGridCellEditor_base_PaintBackground", (PyCFunction) _wrap_PyGridCellEditor_base_PaintBackground, METH_VARARGS | METH_KEYWORDS },
13747 { (char *)"PyGridCellEditor_base_IsAcceptedKey", (PyCFunction) _wrap_PyGridCellEditor_base_IsAcceptedKey, METH_VARARGS | METH_KEYWORDS },
13748 { (char *)"PyGridCellEditor_base_StartingKey", (PyCFunction) _wrap_PyGridCellEditor_base_StartingKey, METH_VARARGS | METH_KEYWORDS },
13749 { (char *)"PyGridCellEditor_base_StartingClick", (PyCFunction) _wrap_PyGridCellEditor_base_StartingClick, METH_VARARGS | METH_KEYWORDS },
13750 { (char *)"PyGridCellEditor_base_HandleReturn", (PyCFunction) _wrap_PyGridCellEditor_base_HandleReturn, METH_VARARGS | METH_KEYWORDS },
13751 { (char *)"PyGridCellEditor_base_Destroy", (PyCFunction) _wrap_PyGridCellEditor_base_Destroy, METH_VARARGS | METH_KEYWORDS },
13752 { (char *)"PyGridCellEditor_base_SetParameters", (PyCFunction) _wrap_PyGridCellEditor_base_SetParameters, METH_VARARGS | METH_KEYWORDS },
13753 { (char *)"PyGridCellEditor_swigregister", PyGridCellEditor_swigregister, METH_VARARGS },
13754 { (char *)"new_GridCellTextEditor", (PyCFunction) _wrap_new_GridCellTextEditor, METH_VARARGS | METH_KEYWORDS },
13755 { (char *)"GridCellTextEditor_GetValue", (PyCFunction) _wrap_GridCellTextEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13756 { (char *)"GridCellTextEditor_swigregister", GridCellTextEditor_swigregister, METH_VARARGS },
13757 { (char *)"new_GridCellNumberEditor", (PyCFunction) _wrap_new_GridCellNumberEditor, METH_VARARGS | METH_KEYWORDS },
13758 { (char *)"GridCellNumberEditor_GetValue", (PyCFunction) _wrap_GridCellNumberEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13759 { (char *)"GridCellNumberEditor_swigregister", GridCellNumberEditor_swigregister, METH_VARARGS },
13760 { (char *)"new_GridCellFloatEditor", (PyCFunction) _wrap_new_GridCellFloatEditor, METH_VARARGS | METH_KEYWORDS },
13761 { (char *)"GridCellFloatEditor_GetValue", (PyCFunction) _wrap_GridCellFloatEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13762 { (char *)"GridCellFloatEditor_swigregister", GridCellFloatEditor_swigregister, METH_VARARGS },
13763 { (char *)"new_GridCellBoolEditor", (PyCFunction) _wrap_new_GridCellBoolEditor, METH_VARARGS | METH_KEYWORDS },
13764 { (char *)"GridCellBoolEditor_GetValue", (PyCFunction) _wrap_GridCellBoolEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13765 { (char *)"GridCellBoolEditor_swigregister", GridCellBoolEditor_swigregister, METH_VARARGS },
13766 { (char *)"new_GridCellChoiceEditor", (PyCFunction) _wrap_new_GridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS },
13767 { (char *)"GridCellChoiceEditor_GetValue", (PyCFunction) _wrap_GridCellChoiceEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13768 { (char *)"GridCellChoiceEditor_swigregister", GridCellChoiceEditor_swigregister, METH_VARARGS },
13769 { (char *)"new_GridCellEnumEditor", (PyCFunction) _wrap_new_GridCellEnumEditor, METH_VARARGS | METH_KEYWORDS },
13770 { (char *)"GridCellEnumEditor_GetValue", (PyCFunction) _wrap_GridCellEnumEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13771 { (char *)"GridCellEnumEditor_swigregister", GridCellEnumEditor_swigregister, METH_VARARGS },
13772 { (char *)"new_GridCellAutoWrapStringEditor", (PyCFunction) _wrap_new_GridCellAutoWrapStringEditor, METH_VARARGS | METH_KEYWORDS },
13773 { (char *)"GridCellAutoWrapStringEditor_GetValue", (PyCFunction) _wrap_GridCellAutoWrapStringEditor_GetValue, METH_VARARGS | METH_KEYWORDS },
13774 { (char *)"GridCellAutoWrapStringEditor_swigregister", GridCellAutoWrapStringEditor_swigregister, METH_VARARGS },
13775 { (char *)"GridCellAttr__setOORInfo", (PyCFunction) _wrap_GridCellAttr__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13776 { (char *)"new_GridCellAttr", (PyCFunction) _wrap_new_GridCellAttr, METH_VARARGS | METH_KEYWORDS },
13777 { (char *)"GridCellAttr_Clone", (PyCFunction) _wrap_GridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS },
13778 { (char *)"GridCellAttr_MergeWith", (PyCFunction) _wrap_GridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS },
13779 { (char *)"GridCellAttr_IncRef", (PyCFunction) _wrap_GridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS },
13780 { (char *)"GridCellAttr_DecRef", (PyCFunction) _wrap_GridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS },
13781 { (char *)"GridCellAttr_SetTextColour", (PyCFunction) _wrap_GridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
13782 { (char *)"GridCellAttr_SetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13783 { (char *)"GridCellAttr_SetFont", (PyCFunction) _wrap_GridCellAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
13784 { (char *)"GridCellAttr_SetAlignment", (PyCFunction) _wrap_GridCellAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS },
13785 { (char *)"GridCellAttr_SetSize", (PyCFunction) _wrap_GridCellAttr_SetSize, METH_VARARGS | METH_KEYWORDS },
13786 { (char *)"GridCellAttr_SetOverflow", (PyCFunction) _wrap_GridCellAttr_SetOverflow, METH_VARARGS | METH_KEYWORDS },
13787 { (char *)"GridCellAttr_SetReadOnly", (PyCFunction) _wrap_GridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
13788 { (char *)"GridCellAttr_SetRenderer", (PyCFunction) _wrap_GridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS },
13789 { (char *)"GridCellAttr_SetEditor", (PyCFunction) _wrap_GridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS },
13790 { (char *)"GridCellAttr_SetKind", (PyCFunction) _wrap_GridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS },
13791 { (char *)"GridCellAttr_HasTextColour", (PyCFunction) _wrap_GridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
13792 { (char *)"GridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_GridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13793 { (char *)"GridCellAttr_HasFont", (PyCFunction) _wrap_GridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
13794 { (char *)"GridCellAttr_HasAlignment", (PyCFunction) _wrap_GridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
13795 { (char *)"GridCellAttr_HasRenderer", (PyCFunction) _wrap_GridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS },
13796 { (char *)"GridCellAttr_HasEditor", (PyCFunction) _wrap_GridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS },
13797 { (char *)"GridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_GridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS },
13798 { (char *)"GridCellAttr_HasOverflowMode", (PyCFunction) _wrap_GridCellAttr_HasOverflowMode, METH_VARARGS | METH_KEYWORDS },
13799 { (char *)"GridCellAttr_GetTextColour", (PyCFunction) _wrap_GridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
13800 { (char *)"GridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_GridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13801 { (char *)"GridCellAttr_GetFont", (PyCFunction) _wrap_GridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
13802 { (char *)"GridCellAttr_GetAlignment", (PyCFunction) _wrap_GridCellAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS },
13803 { (char *)"GridCellAttr_GetSize", (PyCFunction) _wrap_GridCellAttr_GetSize, METH_VARARGS | METH_KEYWORDS },
13804 { (char *)"GridCellAttr_GetOverflow", (PyCFunction) _wrap_GridCellAttr_GetOverflow, METH_VARARGS | METH_KEYWORDS },
13805 { (char *)"GridCellAttr_GetRenderer", (PyCFunction) _wrap_GridCellAttr_GetRenderer, METH_VARARGS | METH_KEYWORDS },
13806 { (char *)"GridCellAttr_GetEditor", (PyCFunction) _wrap_GridCellAttr_GetEditor, METH_VARARGS | METH_KEYWORDS },
13807 { (char *)"GridCellAttr_IsReadOnly", (PyCFunction) _wrap_GridCellAttr_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
13808 { (char *)"GridCellAttr_SetDefAttr", (PyCFunction) _wrap_GridCellAttr_SetDefAttr, METH_VARARGS | METH_KEYWORDS },
13809 { (char *)"GridCellAttr_swigregister", GridCellAttr_swigregister, METH_VARARGS },
13810 { (char *)"new_GridCellAttrProvider", (PyCFunction) _wrap_new_GridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
13811 { (char *)"GridCellAttrProvider__setOORInfo", (PyCFunction) _wrap_GridCellAttrProvider__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13812 { (char *)"GridCellAttrProvider_GetAttr", (PyCFunction) _wrap_GridCellAttrProvider_GetAttr, METH_VARARGS | METH_KEYWORDS },
13813 { (char *)"GridCellAttrProvider_SetAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetAttr, METH_VARARGS | METH_KEYWORDS },
13814 { (char *)"GridCellAttrProvider_SetRowAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
13815 { (char *)"GridCellAttrProvider_SetColAttr", (PyCFunction) _wrap_GridCellAttrProvider_SetColAttr, METH_VARARGS | METH_KEYWORDS },
13816 { (char *)"GridCellAttrProvider_UpdateAttrRows", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrRows, METH_VARARGS | METH_KEYWORDS },
13817 { (char *)"GridCellAttrProvider_UpdateAttrCols", (PyCFunction) _wrap_GridCellAttrProvider_UpdateAttrCols, METH_VARARGS | METH_KEYWORDS },
13818 { (char *)"GridCellAttrProvider_swigregister", GridCellAttrProvider_swigregister, METH_VARARGS },
13819 { (char *)"new_PyGridCellAttrProvider", (PyCFunction) _wrap_new_PyGridCellAttrProvider, METH_VARARGS | METH_KEYWORDS },
13820 { (char *)"PyGridCellAttrProvider__setCallbackInfo", (PyCFunction) _wrap_PyGridCellAttrProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
13821 { (char *)"PyGridCellAttrProvider_base_GetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
13822 { (char *)"PyGridCellAttrProvider_base_SetAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
13823 { (char *)"PyGridCellAttrProvider_base_SetRowAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
13824 { (char *)"PyGridCellAttrProvider_base_SetColAttr", (PyCFunction) _wrap_PyGridCellAttrProvider_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
13825 { (char *)"PyGridCellAttrProvider_swigregister", PyGridCellAttrProvider_swigregister, METH_VARARGS },
13826 { (char *)"GridTableBase__setOORInfo", (PyCFunction) _wrap_GridTableBase__setOORInfo, METH_VARARGS | METH_KEYWORDS },
13827 { (char *)"GridTableBase_SetAttrProvider", (PyCFunction) _wrap_GridTableBase_SetAttrProvider, METH_VARARGS | METH_KEYWORDS },
13828 { (char *)"GridTableBase_GetAttrProvider", (PyCFunction) _wrap_GridTableBase_GetAttrProvider, METH_VARARGS | METH_KEYWORDS },
13829 { (char *)"GridTableBase_SetView", (PyCFunction) _wrap_GridTableBase_SetView, METH_VARARGS | METH_KEYWORDS },
13830 { (char *)"GridTableBase_GetView", (PyCFunction) _wrap_GridTableBase_GetView, METH_VARARGS | METH_KEYWORDS },
13831 { (char *)"GridTableBase_GetNumberRows", (PyCFunction) _wrap_GridTableBase_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
13832 { (char *)"GridTableBase_GetNumberCols", (PyCFunction) _wrap_GridTableBase_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
13833 { (char *)"GridTableBase_IsEmptyCell", (PyCFunction) _wrap_GridTableBase_IsEmptyCell, METH_VARARGS | METH_KEYWORDS },
13834 { (char *)"GridTableBase_GetValue", (PyCFunction) _wrap_GridTableBase_GetValue, METH_VARARGS | METH_KEYWORDS },
13835 { (char *)"GridTableBase_SetValue", (PyCFunction) _wrap_GridTableBase_SetValue, METH_VARARGS | METH_KEYWORDS },
13836 { (char *)"GridTableBase_GetTypeName", (PyCFunction) _wrap_GridTableBase_GetTypeName, METH_VARARGS | METH_KEYWORDS },
13837 { (char *)"GridTableBase_CanGetValueAs", (PyCFunction) _wrap_GridTableBase_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
13838 { (char *)"GridTableBase_CanSetValueAs", (PyCFunction) _wrap_GridTableBase_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
13839 { (char *)"GridTableBase_GetValueAsLong", (PyCFunction) _wrap_GridTableBase_GetValueAsLong, METH_VARARGS | METH_KEYWORDS },
13840 { (char *)"GridTableBase_GetValueAsDouble", (PyCFunction) _wrap_GridTableBase_GetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
13841 { (char *)"GridTableBase_GetValueAsBool", (PyCFunction) _wrap_GridTableBase_GetValueAsBool, METH_VARARGS | METH_KEYWORDS },
13842 { (char *)"GridTableBase_SetValueAsLong", (PyCFunction) _wrap_GridTableBase_SetValueAsLong, METH_VARARGS | METH_KEYWORDS },
13843 { (char *)"GridTableBase_SetValueAsDouble", (PyCFunction) _wrap_GridTableBase_SetValueAsDouble, METH_VARARGS | METH_KEYWORDS },
13844 { (char *)"GridTableBase_SetValueAsBool", (PyCFunction) _wrap_GridTableBase_SetValueAsBool, METH_VARARGS | METH_KEYWORDS },
13845 { (char *)"GridTableBase_Clear", (PyCFunction) _wrap_GridTableBase_Clear, METH_VARARGS | METH_KEYWORDS },
13846 { (char *)"GridTableBase_InsertRows", (PyCFunction) _wrap_GridTableBase_InsertRows, METH_VARARGS | METH_KEYWORDS },
13847 { (char *)"GridTableBase_AppendRows", (PyCFunction) _wrap_GridTableBase_AppendRows, METH_VARARGS | METH_KEYWORDS },
13848 { (char *)"GridTableBase_DeleteRows", (PyCFunction) _wrap_GridTableBase_DeleteRows, METH_VARARGS | METH_KEYWORDS },
13849 { (char *)"GridTableBase_InsertCols", (PyCFunction) _wrap_GridTableBase_InsertCols, METH_VARARGS | METH_KEYWORDS },
13850 { (char *)"GridTableBase_AppendCols", (PyCFunction) _wrap_GridTableBase_AppendCols, METH_VARARGS | METH_KEYWORDS },
13851 { (char *)"GridTableBase_DeleteCols", (PyCFunction) _wrap_GridTableBase_DeleteCols, METH_VARARGS | METH_KEYWORDS },
13852 { (char *)"GridTableBase_GetRowLabelValue", (PyCFunction) _wrap_GridTableBase_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13853 { (char *)"GridTableBase_GetColLabelValue", (PyCFunction) _wrap_GridTableBase_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13854 { (char *)"GridTableBase_SetRowLabelValue", (PyCFunction) _wrap_GridTableBase_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13855 { (char *)"GridTableBase_SetColLabelValue", (PyCFunction) _wrap_GridTableBase_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13856 { (char *)"GridTableBase_CanHaveAttributes", (PyCFunction) _wrap_GridTableBase_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
13857 { (char *)"GridTableBase_GetAttr", (PyCFunction) _wrap_GridTableBase_GetAttr, METH_VARARGS | METH_KEYWORDS },
13858 { (char *)"GridTableBase_SetAttr", (PyCFunction) _wrap_GridTableBase_SetAttr, METH_VARARGS | METH_KEYWORDS },
13859 { (char *)"GridTableBase_SetRowAttr", (PyCFunction) _wrap_GridTableBase_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
13860 { (char *)"GridTableBase_SetColAttr", (PyCFunction) _wrap_GridTableBase_SetColAttr, METH_VARARGS | METH_KEYWORDS },
13861 { (char *)"GridTableBase_swigregister", GridTableBase_swigregister, METH_VARARGS },
13862 { (char *)"new_PyGridTableBase", (PyCFunction) _wrap_new_PyGridTableBase, METH_VARARGS | METH_KEYWORDS },
13863 { (char *)"PyGridTableBase__setCallbackInfo", (PyCFunction) _wrap_PyGridTableBase__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
13864 { (char *)"PyGridTableBase_Destroy", (PyCFunction) _wrap_PyGridTableBase_Destroy, METH_VARARGS | METH_KEYWORDS },
13865 { (char *)"PyGridTableBase_base_GetTypeName", (PyCFunction) _wrap_PyGridTableBase_base_GetTypeName, METH_VARARGS | METH_KEYWORDS },
13866 { (char *)"PyGridTableBase_base_CanGetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanGetValueAs, METH_VARARGS | METH_KEYWORDS },
13867 { (char *)"PyGridTableBase_base_CanSetValueAs", (PyCFunction) _wrap_PyGridTableBase_base_CanSetValueAs, METH_VARARGS | METH_KEYWORDS },
13868 { (char *)"PyGridTableBase_base_Clear", (PyCFunction) _wrap_PyGridTableBase_base_Clear, METH_VARARGS | METH_KEYWORDS },
13869 { (char *)"PyGridTableBase_base_InsertRows", (PyCFunction) _wrap_PyGridTableBase_base_InsertRows, METH_VARARGS | METH_KEYWORDS },
13870 { (char *)"PyGridTableBase_base_AppendRows", (PyCFunction) _wrap_PyGridTableBase_base_AppendRows, METH_VARARGS | METH_KEYWORDS },
13871 { (char *)"PyGridTableBase_base_DeleteRows", (PyCFunction) _wrap_PyGridTableBase_base_DeleteRows, METH_VARARGS | METH_KEYWORDS },
13872 { (char *)"PyGridTableBase_base_InsertCols", (PyCFunction) _wrap_PyGridTableBase_base_InsertCols, METH_VARARGS | METH_KEYWORDS },
13873 { (char *)"PyGridTableBase_base_AppendCols", (PyCFunction) _wrap_PyGridTableBase_base_AppendCols, METH_VARARGS | METH_KEYWORDS },
13874 { (char *)"PyGridTableBase_base_DeleteCols", (PyCFunction) _wrap_PyGridTableBase_base_DeleteCols, METH_VARARGS | METH_KEYWORDS },
13875 { (char *)"PyGridTableBase_base_GetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13876 { (char *)"PyGridTableBase_base_GetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13877 { (char *)"PyGridTableBase_base_SetRowLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13878 { (char *)"PyGridTableBase_base_SetColLabelValue", (PyCFunction) _wrap_PyGridTableBase_base_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13879 { (char *)"PyGridTableBase_base_CanHaveAttributes", (PyCFunction) _wrap_PyGridTableBase_base_CanHaveAttributes, METH_VARARGS | METH_KEYWORDS },
13880 { (char *)"PyGridTableBase_base_GetAttr", (PyCFunction) _wrap_PyGridTableBase_base_GetAttr, METH_VARARGS | METH_KEYWORDS },
13881 { (char *)"PyGridTableBase_base_SetAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetAttr, METH_VARARGS | METH_KEYWORDS },
13882 { (char *)"PyGridTableBase_base_SetRowAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
13883 { (char *)"PyGridTableBase_base_SetColAttr", (PyCFunction) _wrap_PyGridTableBase_base_SetColAttr, METH_VARARGS | METH_KEYWORDS },
13884 { (char *)"PyGridTableBase_swigregister", PyGridTableBase_swigregister, METH_VARARGS },
13885 { (char *)"new_GridStringTable", (PyCFunction) _wrap_new_GridStringTable, METH_VARARGS | METH_KEYWORDS },
13886 { (char *)"GridStringTable_swigregister", GridStringTable_swigregister, METH_VARARGS },
13887 { (char *)"new_GridTableMessage", (PyCFunction) _wrap_new_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
13888 { (char *)"delete_GridTableMessage", (PyCFunction) _wrap_delete_GridTableMessage, METH_VARARGS | METH_KEYWORDS },
13889 { (char *)"GridTableMessage_SetTableObject", (PyCFunction) _wrap_GridTableMessage_SetTableObject, METH_VARARGS | METH_KEYWORDS },
13890 { (char *)"GridTableMessage_GetTableObject", (PyCFunction) _wrap_GridTableMessage_GetTableObject, METH_VARARGS | METH_KEYWORDS },
13891 { (char *)"GridTableMessage_SetId", (PyCFunction) _wrap_GridTableMessage_SetId, METH_VARARGS | METH_KEYWORDS },
13892 { (char *)"GridTableMessage_GetId", (PyCFunction) _wrap_GridTableMessage_GetId, METH_VARARGS | METH_KEYWORDS },
13893 { (char *)"GridTableMessage_SetCommandInt", (PyCFunction) _wrap_GridTableMessage_SetCommandInt, METH_VARARGS | METH_KEYWORDS },
13894 { (char *)"GridTableMessage_GetCommandInt", (PyCFunction) _wrap_GridTableMessage_GetCommandInt, METH_VARARGS | METH_KEYWORDS },
13895 { (char *)"GridTableMessage_SetCommandInt2", (PyCFunction) _wrap_GridTableMessage_SetCommandInt2, METH_VARARGS | METH_KEYWORDS },
13896 { (char *)"GridTableMessage_GetCommandInt2", (PyCFunction) _wrap_GridTableMessage_GetCommandInt2, METH_VARARGS | METH_KEYWORDS },
13897 { (char *)"GridTableMessage_swigregister", GridTableMessage_swigregister, METH_VARARGS },
13898 { (char *)"new_GridCellCoords", (PyCFunction) _wrap_new_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
13899 { (char *)"delete_GridCellCoords", (PyCFunction) _wrap_delete_GridCellCoords, METH_VARARGS | METH_KEYWORDS },
13900 { (char *)"GridCellCoords_GetRow", (PyCFunction) _wrap_GridCellCoords_GetRow, METH_VARARGS | METH_KEYWORDS },
13901 { (char *)"GridCellCoords_SetRow", (PyCFunction) _wrap_GridCellCoords_SetRow, METH_VARARGS | METH_KEYWORDS },
13902 { (char *)"GridCellCoords_GetCol", (PyCFunction) _wrap_GridCellCoords_GetCol, METH_VARARGS | METH_KEYWORDS },
13903 { (char *)"GridCellCoords_SetCol", (PyCFunction) _wrap_GridCellCoords_SetCol, METH_VARARGS | METH_KEYWORDS },
13904 { (char *)"GridCellCoords_Set", (PyCFunction) _wrap_GridCellCoords_Set, METH_VARARGS | METH_KEYWORDS },
13905 { (char *)"GridCellCoords___eq__", (PyCFunction) _wrap_GridCellCoords___eq__, METH_VARARGS | METH_KEYWORDS },
13906 { (char *)"GridCellCoords___ne__", (PyCFunction) _wrap_GridCellCoords___ne__, METH_VARARGS | METH_KEYWORDS },
13907 { (char *)"GridCellCoords_asTuple", (PyCFunction) _wrap_GridCellCoords_asTuple, METH_VARARGS | METH_KEYWORDS },
13908 { (char *)"GridCellCoords_swigregister", GridCellCoords_swigregister, METH_VARARGS },
13909 { (char *)"new_Grid", (PyCFunction) _wrap_new_Grid, METH_VARARGS | METH_KEYWORDS },
13910 { (char *)"Grid_CreateGrid", (PyCFunction) _wrap_Grid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
13911 { (char *)"Grid_SetSelectionMode", (PyCFunction) _wrap_Grid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS },
13912 { (char *)"Grid_GetSelectionMode", (PyCFunction) _wrap_Grid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS },
13913 { (char *)"Grid_GetNumberRows", (PyCFunction) _wrap_Grid_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
13914 { (char *)"Grid_GetNumberCols", (PyCFunction) _wrap_Grid_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
13915 { (char *)"Grid_ProcessTableMessage", (PyCFunction) _wrap_Grid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS },
13916 { (char *)"Grid_GetTable", (PyCFunction) _wrap_Grid_GetTable, METH_VARARGS | METH_KEYWORDS },
13917 { (char *)"Grid_SetTable", (PyCFunction) _wrap_Grid_SetTable, METH_VARARGS | METH_KEYWORDS },
13918 { (char *)"Grid_ClearGrid", (PyCFunction) _wrap_Grid_ClearGrid, METH_VARARGS | METH_KEYWORDS },
13919 { (char *)"Grid_InsertRows", (PyCFunction) _wrap_Grid_InsertRows, METH_VARARGS | METH_KEYWORDS },
13920 { (char *)"Grid_AppendRows", (PyCFunction) _wrap_Grid_AppendRows, METH_VARARGS | METH_KEYWORDS },
13921 { (char *)"Grid_DeleteRows", (PyCFunction) _wrap_Grid_DeleteRows, METH_VARARGS | METH_KEYWORDS },
13922 { (char *)"Grid_InsertCols", (PyCFunction) _wrap_Grid_InsertCols, METH_VARARGS | METH_KEYWORDS },
13923 { (char *)"Grid_AppendCols", (PyCFunction) _wrap_Grid_AppendCols, METH_VARARGS | METH_KEYWORDS },
13924 { (char *)"Grid_DeleteCols", (PyCFunction) _wrap_Grid_DeleteCols, METH_VARARGS | METH_KEYWORDS },
13925 { (char *)"Grid_DrawCellHighlight", (PyCFunction) _wrap_Grid_DrawCellHighlight, METH_VARARGS | METH_KEYWORDS },
13926 { (char *)"Grid_DrawTextRectangle", (PyCFunction) _wrap_Grid_DrawTextRectangle, METH_VARARGS | METH_KEYWORDS },
13927 { (char *)"Grid_GetTextBoxSize", (PyCFunction) _wrap_Grid_GetTextBoxSize, METH_VARARGS | METH_KEYWORDS },
13928 { (char *)"Grid_BeginBatch", (PyCFunction) _wrap_Grid_BeginBatch, METH_VARARGS | METH_KEYWORDS },
13929 { (char *)"Grid_EndBatch", (PyCFunction) _wrap_Grid_EndBatch, METH_VARARGS | METH_KEYWORDS },
13930 { (char *)"Grid_GetBatchCount", (PyCFunction) _wrap_Grid_GetBatchCount, METH_VARARGS | METH_KEYWORDS },
13931 { (char *)"Grid_ForceRefresh", (PyCFunction) _wrap_Grid_ForceRefresh, METH_VARARGS | METH_KEYWORDS },
13932 { (char *)"Grid_Refresh", (PyCFunction) _wrap_Grid_Refresh, METH_VARARGS | METH_KEYWORDS },
13933 { (char *)"Grid_IsEditable", (PyCFunction) _wrap_Grid_IsEditable, METH_VARARGS | METH_KEYWORDS },
13934 { (char *)"Grid_EnableEditing", (PyCFunction) _wrap_Grid_EnableEditing, METH_VARARGS | METH_KEYWORDS },
13935 { (char *)"Grid_EnableCellEditControl", (PyCFunction) _wrap_Grid_EnableCellEditControl, METH_VARARGS | METH_KEYWORDS },
13936 { (char *)"Grid_DisableCellEditControl", (PyCFunction) _wrap_Grid_DisableCellEditControl, METH_VARARGS | METH_KEYWORDS },
13937 { (char *)"Grid_CanEnableCellControl", (PyCFunction) _wrap_Grid_CanEnableCellControl, METH_VARARGS | METH_KEYWORDS },
13938 { (char *)"Grid_IsCellEditControlEnabled", (PyCFunction) _wrap_Grid_IsCellEditControlEnabled, METH_VARARGS | METH_KEYWORDS },
13939 { (char *)"Grid_IsCellEditControlShown", (PyCFunction) _wrap_Grid_IsCellEditControlShown, METH_VARARGS | METH_KEYWORDS },
13940 { (char *)"Grid_IsCurrentCellReadOnly", (PyCFunction) _wrap_Grid_IsCurrentCellReadOnly, METH_VARARGS | METH_KEYWORDS },
13941 { (char *)"Grid_ShowCellEditControl", (PyCFunction) _wrap_Grid_ShowCellEditControl, METH_VARARGS | METH_KEYWORDS },
13942 { (char *)"Grid_HideCellEditControl", (PyCFunction) _wrap_Grid_HideCellEditControl, METH_VARARGS | METH_KEYWORDS },
13943 { (char *)"Grid_SaveEditControlValue", (PyCFunction) _wrap_Grid_SaveEditControlValue, METH_VARARGS | METH_KEYWORDS },
13944 { (char *)"Grid_XYToCell", (PyCFunction) _wrap_Grid_XYToCell, METH_VARARGS | METH_KEYWORDS },
13945 { (char *)"Grid_YToRow", (PyCFunction) _wrap_Grid_YToRow, METH_VARARGS | METH_KEYWORDS },
13946 { (char *)"Grid_XToCol", (PyCFunction) _wrap_Grid_XToCol, METH_VARARGS | METH_KEYWORDS },
13947 { (char *)"Grid_YToEdgeOfRow", (PyCFunction) _wrap_Grid_YToEdgeOfRow, METH_VARARGS | METH_KEYWORDS },
13948 { (char *)"Grid_XToEdgeOfCol", (PyCFunction) _wrap_Grid_XToEdgeOfCol, METH_VARARGS | METH_KEYWORDS },
13949 { (char *)"Grid_CellToRect", (PyCFunction) _wrap_Grid_CellToRect, METH_VARARGS | METH_KEYWORDS },
13950 { (char *)"Grid_GetGridCursorRow", (PyCFunction) _wrap_Grid_GetGridCursorRow, METH_VARARGS | METH_KEYWORDS },
13951 { (char *)"Grid_GetGridCursorCol", (PyCFunction) _wrap_Grid_GetGridCursorCol, METH_VARARGS | METH_KEYWORDS },
13952 { (char *)"Grid_IsVisible", (PyCFunction) _wrap_Grid_IsVisible, METH_VARARGS | METH_KEYWORDS },
13953 { (char *)"Grid_MakeCellVisible", (PyCFunction) _wrap_Grid_MakeCellVisible, METH_VARARGS | METH_KEYWORDS },
13954 { (char *)"Grid_SetGridCursor", (PyCFunction) _wrap_Grid_SetGridCursor, METH_VARARGS | METH_KEYWORDS },
13955 { (char *)"Grid_MoveCursorUp", (PyCFunction) _wrap_Grid_MoveCursorUp, METH_VARARGS | METH_KEYWORDS },
13956 { (char *)"Grid_MoveCursorDown", (PyCFunction) _wrap_Grid_MoveCursorDown, METH_VARARGS | METH_KEYWORDS },
13957 { (char *)"Grid_MoveCursorLeft", (PyCFunction) _wrap_Grid_MoveCursorLeft, METH_VARARGS | METH_KEYWORDS },
13958 { (char *)"Grid_MoveCursorRight", (PyCFunction) _wrap_Grid_MoveCursorRight, METH_VARARGS | METH_KEYWORDS },
13959 { (char *)"Grid_MovePageDown", (PyCFunction) _wrap_Grid_MovePageDown, METH_VARARGS | METH_KEYWORDS },
13960 { (char *)"Grid_MovePageUp", (PyCFunction) _wrap_Grid_MovePageUp, METH_VARARGS | METH_KEYWORDS },
13961 { (char *)"Grid_MoveCursorUpBlock", (PyCFunction) _wrap_Grid_MoveCursorUpBlock, METH_VARARGS | METH_KEYWORDS },
13962 { (char *)"Grid_MoveCursorDownBlock", (PyCFunction) _wrap_Grid_MoveCursorDownBlock, METH_VARARGS | METH_KEYWORDS },
13963 { (char *)"Grid_MoveCursorLeftBlock", (PyCFunction) _wrap_Grid_MoveCursorLeftBlock, METH_VARARGS | METH_KEYWORDS },
13964 { (char *)"Grid_MoveCursorRightBlock", (PyCFunction) _wrap_Grid_MoveCursorRightBlock, METH_VARARGS | METH_KEYWORDS },
13965 { (char *)"Grid_GetDefaultRowLabelSize", (PyCFunction) _wrap_Grid_GetDefaultRowLabelSize, METH_VARARGS | METH_KEYWORDS },
13966 { (char *)"Grid_GetRowLabelSize", (PyCFunction) _wrap_Grid_GetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
13967 { (char *)"Grid_GetDefaultColLabelSize", (PyCFunction) _wrap_Grid_GetDefaultColLabelSize, METH_VARARGS | METH_KEYWORDS },
13968 { (char *)"Grid_GetColLabelSize", (PyCFunction) _wrap_Grid_GetColLabelSize, METH_VARARGS | METH_KEYWORDS },
13969 { (char *)"Grid_GetLabelBackgroundColour", (PyCFunction) _wrap_Grid_GetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13970 { (char *)"Grid_GetLabelTextColour", (PyCFunction) _wrap_Grid_GetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
13971 { (char *)"Grid_GetLabelFont", (PyCFunction) _wrap_Grid_GetLabelFont, METH_VARARGS | METH_KEYWORDS },
13972 { (char *)"Grid_GetRowLabelAlignment", (PyCFunction) _wrap_Grid_GetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
13973 { (char *)"Grid_GetColLabelAlignment", (PyCFunction) _wrap_Grid_GetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
13974 { (char *)"Grid_GetColLabelTextOrientation", (PyCFunction) _wrap_Grid_GetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
13975 { (char *)"Grid_GetRowLabelValue", (PyCFunction) _wrap_Grid_GetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13976 { (char *)"Grid_GetColLabelValue", (PyCFunction) _wrap_Grid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13977 { (char *)"Grid_GetGridLineColour", (PyCFunction) _wrap_Grid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS },
13978 { (char *)"Grid_GetCellHighlightColour", (PyCFunction) _wrap_Grid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
13979 { (char *)"Grid_GetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
13980 { (char *)"Grid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
13981 { (char *)"Grid_SetRowLabelSize", (PyCFunction) _wrap_Grid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
13982 { (char *)"Grid_SetColLabelSize", (PyCFunction) _wrap_Grid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS },
13983 { (char *)"Grid_SetLabelBackgroundColour", (PyCFunction) _wrap_Grid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
13984 { (char *)"Grid_SetLabelTextColour", (PyCFunction) _wrap_Grid_SetLabelTextColour, METH_VARARGS | METH_KEYWORDS },
13985 { (char *)"Grid_SetLabelFont", (PyCFunction) _wrap_Grid_SetLabelFont, METH_VARARGS | METH_KEYWORDS },
13986 { (char *)"Grid_SetRowLabelAlignment", (PyCFunction) _wrap_Grid_SetRowLabelAlignment, METH_VARARGS | METH_KEYWORDS },
13987 { (char *)"Grid_SetColLabelAlignment", (PyCFunction) _wrap_Grid_SetColLabelAlignment, METH_VARARGS | METH_KEYWORDS },
13988 { (char *)"Grid_SetColLabelTextOrientation", (PyCFunction) _wrap_Grid_SetColLabelTextOrientation, METH_VARARGS | METH_KEYWORDS },
13989 { (char *)"Grid_SetRowLabelValue", (PyCFunction) _wrap_Grid_SetRowLabelValue, METH_VARARGS | METH_KEYWORDS },
13990 { (char *)"Grid_SetColLabelValue", (PyCFunction) _wrap_Grid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
13991 { (char *)"Grid_SetGridLineColour", (PyCFunction) _wrap_Grid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS },
13992 { (char *)"Grid_SetCellHighlightColour", (PyCFunction) _wrap_Grid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
13993 { (char *)"Grid_SetCellHighlightPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
13994 { (char *)"Grid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_Grid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
13995 { (char *)"Grid_EnableDragRowSize", (PyCFunction) _wrap_Grid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS },
13996 { (char *)"Grid_DisableDragRowSize", (PyCFunction) _wrap_Grid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS },
13997 { (char *)"Grid_CanDragRowSize", (PyCFunction) _wrap_Grid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS },
13998 { (char *)"Grid_EnableDragColSize", (PyCFunction) _wrap_Grid_EnableDragColSize, METH_VARARGS | METH_KEYWORDS },
13999 { (char *)"Grid_DisableDragColSize", (PyCFunction) _wrap_Grid_DisableDragColSize, METH_VARARGS | METH_KEYWORDS },
14000 { (char *)"Grid_CanDragColSize", (PyCFunction) _wrap_Grid_CanDragColSize, METH_VARARGS | METH_KEYWORDS },
14001 { (char *)"Grid_EnableDragGridSize", (PyCFunction) _wrap_Grid_EnableDragGridSize, METH_VARARGS | METH_KEYWORDS },
14002 { (char *)"Grid_DisableDragGridSize", (PyCFunction) _wrap_Grid_DisableDragGridSize, METH_VARARGS | METH_KEYWORDS },
14003 { (char *)"Grid_CanDragGridSize", (PyCFunction) _wrap_Grid_CanDragGridSize, METH_VARARGS | METH_KEYWORDS },
14004 { (char *)"Grid_SetAttr", (PyCFunction) _wrap_Grid_SetAttr, METH_VARARGS | METH_KEYWORDS },
14005 { (char *)"Grid_SetRowAttr", (PyCFunction) _wrap_Grid_SetRowAttr, METH_VARARGS | METH_KEYWORDS },
14006 { (char *)"Grid_SetColAttr", (PyCFunction) _wrap_Grid_SetColAttr, METH_VARARGS | METH_KEYWORDS },
14007 { (char *)"Grid_SetColFormatBool", (PyCFunction) _wrap_Grid_SetColFormatBool, METH_VARARGS | METH_KEYWORDS },
14008 { (char *)"Grid_SetColFormatNumber", (PyCFunction) _wrap_Grid_SetColFormatNumber, METH_VARARGS | METH_KEYWORDS },
14009 { (char *)"Grid_SetColFormatFloat", (PyCFunction) _wrap_Grid_SetColFormatFloat, METH_VARARGS | METH_KEYWORDS },
14010 { (char *)"Grid_SetColFormatCustom", (PyCFunction) _wrap_Grid_SetColFormatCustom, METH_VARARGS | METH_KEYWORDS },
14011 { (char *)"Grid_EnableGridLines", (PyCFunction) _wrap_Grid_EnableGridLines, METH_VARARGS | METH_KEYWORDS },
14012 { (char *)"Grid_GridLinesEnabled", (PyCFunction) _wrap_Grid_GridLinesEnabled, METH_VARARGS | METH_KEYWORDS },
14013 { (char *)"Grid_GetDefaultRowSize", (PyCFunction) _wrap_Grid_GetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
14014 { (char *)"Grid_GetRowSize", (PyCFunction) _wrap_Grid_GetRowSize, METH_VARARGS | METH_KEYWORDS },
14015 { (char *)"Grid_GetDefaultColSize", (PyCFunction) _wrap_Grid_GetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
14016 { (char *)"Grid_GetColSize", (PyCFunction) _wrap_Grid_GetColSize, METH_VARARGS | METH_KEYWORDS },
14017 { (char *)"Grid_GetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_GetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14018 { (char *)"Grid_GetCellBackgroundColour", (PyCFunction) _wrap_Grid_GetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14019 { (char *)"Grid_GetDefaultCellTextColour", (PyCFunction) _wrap_Grid_GetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
14020 { (char *)"Grid_GetCellTextColour", (PyCFunction) _wrap_Grid_GetCellTextColour, METH_VARARGS | METH_KEYWORDS },
14021 { (char *)"Grid_GetDefaultCellFont", (PyCFunction) _wrap_Grid_GetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
14022 { (char *)"Grid_GetCellFont", (PyCFunction) _wrap_Grid_GetCellFont, METH_VARARGS | METH_KEYWORDS },
14023 { (char *)"Grid_GetDefaultCellAlignment", (PyCFunction) _wrap_Grid_GetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
14024 { (char *)"Grid_GetCellAlignment", (PyCFunction) _wrap_Grid_GetCellAlignment, METH_VARARGS | METH_KEYWORDS },
14025 { (char *)"Grid_GetDefaultCellOverflow", (PyCFunction) _wrap_Grid_GetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
14026 { (char *)"Grid_GetCellOverflow", (PyCFunction) _wrap_Grid_GetCellOverflow, METH_VARARGS | METH_KEYWORDS },
14027 { (char *)"Grid_GetCellSize", (PyCFunction) _wrap_Grid_GetCellSize, METH_VARARGS | METH_KEYWORDS },
14028 { (char *)"Grid_SetDefaultRowSize", (PyCFunction) _wrap_Grid_SetDefaultRowSize, METH_VARARGS | METH_KEYWORDS },
14029 { (char *)"Grid_SetRowSize", (PyCFunction) _wrap_Grid_SetRowSize, METH_VARARGS | METH_KEYWORDS },
14030 { (char *)"Grid_SetDefaultColSize", (PyCFunction) _wrap_Grid_SetDefaultColSize, METH_VARARGS | METH_KEYWORDS },
14031 { (char *)"Grid_SetColSize", (PyCFunction) _wrap_Grid_SetColSize, METH_VARARGS | METH_KEYWORDS },
14032 { (char *)"Grid_AutoSizeColumn", (PyCFunction) _wrap_Grid_AutoSizeColumn, METH_VARARGS | METH_KEYWORDS },
14033 { (char *)"Grid_AutoSizeRow", (PyCFunction) _wrap_Grid_AutoSizeRow, METH_VARARGS | METH_KEYWORDS },
14034 { (char *)"Grid_AutoSizeColumns", (PyCFunction) _wrap_Grid_AutoSizeColumns, METH_VARARGS | METH_KEYWORDS },
14035 { (char *)"Grid_AutoSizeRows", (PyCFunction) _wrap_Grid_AutoSizeRows, METH_VARARGS | METH_KEYWORDS },
14036 { (char *)"Grid_AutoSize", (PyCFunction) _wrap_Grid_AutoSize, METH_VARARGS | METH_KEYWORDS },
14037 { (char *)"Grid_AutoSizeRowLabelSize", (PyCFunction) _wrap_Grid_AutoSizeRowLabelSize, METH_VARARGS | METH_KEYWORDS },
14038 { (char *)"Grid_AutoSizeColLabelSize", (PyCFunction) _wrap_Grid_AutoSizeColLabelSize, METH_VARARGS | METH_KEYWORDS },
14039 { (char *)"Grid_SetColMinimalWidth", (PyCFunction) _wrap_Grid_SetColMinimalWidth, METH_VARARGS | METH_KEYWORDS },
14040 { (char *)"Grid_SetRowMinimalHeight", (PyCFunction) _wrap_Grid_SetRowMinimalHeight, METH_VARARGS | METH_KEYWORDS },
14041 { (char *)"Grid_SetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_SetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
14042 { (char *)"Grid_SetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_SetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
14043 { (char *)"Grid_GetColMinimalAcceptableWidth", (PyCFunction) _wrap_Grid_GetColMinimalAcceptableWidth, METH_VARARGS | METH_KEYWORDS },
14044 { (char *)"Grid_GetRowMinimalAcceptableHeight", (PyCFunction) _wrap_Grid_GetRowMinimalAcceptableHeight, METH_VARARGS | METH_KEYWORDS },
14045 { (char *)"Grid_SetDefaultCellBackgroundColour", (PyCFunction) _wrap_Grid_SetDefaultCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14046 { (char *)"Grid_SetCellBackgroundColour", (PyCFunction) _wrap_Grid_SetCellBackgroundColour, METH_VARARGS | METH_KEYWORDS },
14047 { (char *)"Grid_SetDefaultCellTextColour", (PyCFunction) _wrap_Grid_SetDefaultCellTextColour, METH_VARARGS | METH_KEYWORDS },
14048 { (char *)"Grid_SetCellTextColour", (PyCFunction) _wrap_Grid_SetCellTextColour, METH_VARARGS | METH_KEYWORDS },
14049 { (char *)"Grid_SetDefaultCellFont", (PyCFunction) _wrap_Grid_SetDefaultCellFont, METH_VARARGS | METH_KEYWORDS },
14050 { (char *)"Grid_SetCellFont", (PyCFunction) _wrap_Grid_SetCellFont, METH_VARARGS | METH_KEYWORDS },
14051 { (char *)"Grid_SetDefaultCellAlignment", (PyCFunction) _wrap_Grid_SetDefaultCellAlignment, METH_VARARGS | METH_KEYWORDS },
14052 { (char *)"Grid_SetCellAlignment", (PyCFunction) _wrap_Grid_SetCellAlignment, METH_VARARGS | METH_KEYWORDS },
14053 { (char *)"Grid_SetDefaultCellOverflow", (PyCFunction) _wrap_Grid_SetDefaultCellOverflow, METH_VARARGS | METH_KEYWORDS },
14054 { (char *)"Grid_SetCellOverflow", (PyCFunction) _wrap_Grid_SetCellOverflow, METH_VARARGS | METH_KEYWORDS },
14055 { (char *)"Grid_SetCellSize", (PyCFunction) _wrap_Grid_SetCellSize, METH_VARARGS | METH_KEYWORDS },
14056 { (char *)"Grid_SetDefaultRenderer", (PyCFunction) _wrap_Grid_SetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
14057 { (char *)"Grid_SetCellRenderer", (PyCFunction) _wrap_Grid_SetCellRenderer, METH_VARARGS | METH_KEYWORDS },
14058 { (char *)"Grid_GetDefaultRenderer", (PyCFunction) _wrap_Grid_GetDefaultRenderer, METH_VARARGS | METH_KEYWORDS },
14059 { (char *)"Grid_GetCellRenderer", (PyCFunction) _wrap_Grid_GetCellRenderer, METH_VARARGS | METH_KEYWORDS },
14060 { (char *)"Grid_SetDefaultEditor", (PyCFunction) _wrap_Grid_SetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
14061 { (char *)"Grid_SetCellEditor", (PyCFunction) _wrap_Grid_SetCellEditor, METH_VARARGS | METH_KEYWORDS },
14062 { (char *)"Grid_GetDefaultEditor", (PyCFunction) _wrap_Grid_GetDefaultEditor, METH_VARARGS | METH_KEYWORDS },
14063 { (char *)"Grid_GetCellEditor", (PyCFunction) _wrap_Grid_GetCellEditor, METH_VARARGS | METH_KEYWORDS },
14064 { (char *)"Grid_GetCellValue", (PyCFunction) _wrap_Grid_GetCellValue, METH_VARARGS | METH_KEYWORDS },
14065 { (char *)"Grid_SetCellValue", (PyCFunction) _wrap_Grid_SetCellValue, METH_VARARGS | METH_KEYWORDS },
14066 { (char *)"Grid_IsReadOnly", (PyCFunction) _wrap_Grid_IsReadOnly, METH_VARARGS | METH_KEYWORDS },
14067 { (char *)"Grid_SetReadOnly", (PyCFunction) _wrap_Grid_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
14068 { (char *)"Grid_SelectRow", (PyCFunction) _wrap_Grid_SelectRow, METH_VARARGS | METH_KEYWORDS },
14069 { (char *)"Grid_SelectCol", (PyCFunction) _wrap_Grid_SelectCol, METH_VARARGS | METH_KEYWORDS },
14070 { (char *)"Grid_SelectBlock", (PyCFunction) _wrap_Grid_SelectBlock, METH_VARARGS | METH_KEYWORDS },
14071 { (char *)"Grid_SelectAll", (PyCFunction) _wrap_Grid_SelectAll, METH_VARARGS | METH_KEYWORDS },
14072 { (char *)"Grid_IsSelection", (PyCFunction) _wrap_Grid_IsSelection, METH_VARARGS | METH_KEYWORDS },
14073 { (char *)"Grid_ClearSelection", (PyCFunction) _wrap_Grid_ClearSelection, METH_VARARGS | METH_KEYWORDS },
14074 { (char *)"Grid_IsInSelection", (PyCFunction) _wrap_Grid_IsInSelection, METH_VARARGS | METH_KEYWORDS },
14075 { (char *)"Grid_GetSelectedCells", (PyCFunction) _wrap_Grid_GetSelectedCells, METH_VARARGS | METH_KEYWORDS },
14076 { (char *)"Grid_GetSelectionBlockTopLeft", (PyCFunction) _wrap_Grid_GetSelectionBlockTopLeft, METH_VARARGS | METH_KEYWORDS },
14077 { (char *)"Grid_GetSelectionBlockBottomRight", (PyCFunction) _wrap_Grid_GetSelectionBlockBottomRight, METH_VARARGS | METH_KEYWORDS },
14078 { (char *)"Grid_GetSelectedRows", (PyCFunction) _wrap_Grid_GetSelectedRows, METH_VARARGS | METH_KEYWORDS },
14079 { (char *)"Grid_GetSelectedCols", (PyCFunction) _wrap_Grid_GetSelectedCols, METH_VARARGS | METH_KEYWORDS },
14080 { (char *)"Grid_DeselectRow", (PyCFunction) _wrap_Grid_DeselectRow, METH_VARARGS | METH_KEYWORDS },
14081 { (char *)"Grid_DeselectCol", (PyCFunction) _wrap_Grid_DeselectCol, METH_VARARGS | METH_KEYWORDS },
14082 { (char *)"Grid_DeselectCell", (PyCFunction) _wrap_Grid_DeselectCell, METH_VARARGS | METH_KEYWORDS },
14083 { (char *)"Grid_BlockToDeviceRect", (PyCFunction) _wrap_Grid_BlockToDeviceRect, METH_VARARGS | METH_KEYWORDS },
14084 { (char *)"Grid_GetSelectionBackground", (PyCFunction) _wrap_Grid_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
14085 { (char *)"Grid_GetSelectionForeground", (PyCFunction) _wrap_Grid_GetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
14086 { (char *)"Grid_SetSelectionBackground", (PyCFunction) _wrap_Grid_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS },
14087 { (char *)"Grid_SetSelectionForeground", (PyCFunction) _wrap_Grid_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS },
14088 { (char *)"Grid_RegisterDataType", (PyCFunction) _wrap_Grid_RegisterDataType, METH_VARARGS | METH_KEYWORDS },
14089 { (char *)"Grid_GetDefaultEditorForCell", (PyCFunction) _wrap_Grid_GetDefaultEditorForCell, METH_VARARGS | METH_KEYWORDS },
14090 { (char *)"Grid_GetDefaultRendererForCell", (PyCFunction) _wrap_Grid_GetDefaultRendererForCell, METH_VARARGS | METH_KEYWORDS },
14091 { (char *)"Grid_GetDefaultEditorForType", (PyCFunction) _wrap_Grid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS },
14092 { (char *)"Grid_GetDefaultRendererForType", (PyCFunction) _wrap_Grid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS },
14093 { (char *)"Grid_SetMargins", (PyCFunction) _wrap_Grid_SetMargins, METH_VARARGS | METH_KEYWORDS },
14094 { (char *)"Grid_GetGridWindow", (PyCFunction) _wrap_Grid_GetGridWindow, METH_VARARGS | METH_KEYWORDS },
14095 { (char *)"Grid_GetGridRowLabelWindow", (PyCFunction) _wrap_Grid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS },
14096 { (char *)"Grid_GetGridColLabelWindow", (PyCFunction) _wrap_Grid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS },
14097 { (char *)"Grid_GetGridCornerLabelWindow", (PyCFunction) _wrap_Grid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS },
14098 { (char *)"Grid_swigregister", Grid_swigregister, METH_VARARGS },
14099 { (char *)"new_GridEvent", (PyCFunction) _wrap_new_GridEvent, METH_VARARGS | METH_KEYWORDS },
14100 { (char *)"GridEvent_GetRow", (PyCFunction) _wrap_GridEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
14101 { (char *)"GridEvent_GetCol", (PyCFunction) _wrap_GridEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
14102 { (char *)"GridEvent_GetPosition", (PyCFunction) _wrap_GridEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
14103 { (char *)"GridEvent_Selecting", (PyCFunction) _wrap_GridEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
14104 { (char *)"GridEvent_ControlDown", (PyCFunction) _wrap_GridEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14105 { (char *)"GridEvent_MetaDown", (PyCFunction) _wrap_GridEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14106 { (char *)"GridEvent_ShiftDown", (PyCFunction) _wrap_GridEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14107 { (char *)"GridEvent_AltDown", (PyCFunction) _wrap_GridEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14108 { (char *)"GridEvent_swigregister", GridEvent_swigregister, METH_VARARGS },
14109 { (char *)"new_GridSizeEvent", (PyCFunction) _wrap_new_GridSizeEvent, METH_VARARGS | METH_KEYWORDS },
14110 { (char *)"GridSizeEvent_GetRowOrCol", (PyCFunction) _wrap_GridSizeEvent_GetRowOrCol, METH_VARARGS | METH_KEYWORDS },
14111 { (char *)"GridSizeEvent_GetPosition", (PyCFunction) _wrap_GridSizeEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
14112 { (char *)"GridSizeEvent_ControlDown", (PyCFunction) _wrap_GridSizeEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14113 { (char *)"GridSizeEvent_MetaDown", (PyCFunction) _wrap_GridSizeEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14114 { (char *)"GridSizeEvent_ShiftDown", (PyCFunction) _wrap_GridSizeEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14115 { (char *)"GridSizeEvent_AltDown", (PyCFunction) _wrap_GridSizeEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14116 { (char *)"GridSizeEvent_swigregister", GridSizeEvent_swigregister, METH_VARARGS },
14117 { (char *)"new_GridRangeSelectEvent", (PyCFunction) _wrap_new_GridRangeSelectEvent, METH_VARARGS | METH_KEYWORDS },
14118 { (char *)"GridRangeSelectEvent_GetTopLeftCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopLeftCoords, METH_VARARGS | METH_KEYWORDS },
14119 { (char *)"GridRangeSelectEvent_GetBottomRightCoords", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRightCoords, METH_VARARGS | METH_KEYWORDS },
14120 { (char *)"GridRangeSelectEvent_GetTopRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetTopRow, METH_VARARGS | METH_KEYWORDS },
14121 { (char *)"GridRangeSelectEvent_GetBottomRow", (PyCFunction) _wrap_GridRangeSelectEvent_GetBottomRow, METH_VARARGS | METH_KEYWORDS },
14122 { (char *)"GridRangeSelectEvent_GetLeftCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetLeftCol, METH_VARARGS | METH_KEYWORDS },
14123 { (char *)"GridRangeSelectEvent_GetRightCol", (PyCFunction) _wrap_GridRangeSelectEvent_GetRightCol, METH_VARARGS | METH_KEYWORDS },
14124 { (char *)"GridRangeSelectEvent_Selecting", (PyCFunction) _wrap_GridRangeSelectEvent_Selecting, METH_VARARGS | METH_KEYWORDS },
14125 { (char *)"GridRangeSelectEvent_ControlDown", (PyCFunction) _wrap_GridRangeSelectEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
14126 { (char *)"GridRangeSelectEvent_MetaDown", (PyCFunction) _wrap_GridRangeSelectEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
14127 { (char *)"GridRangeSelectEvent_ShiftDown", (PyCFunction) _wrap_GridRangeSelectEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
14128 { (char *)"GridRangeSelectEvent_AltDown", (PyCFunction) _wrap_GridRangeSelectEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
14129 { (char *)"GridRangeSelectEvent_swigregister", GridRangeSelectEvent_swigregister, METH_VARARGS },
14130 { (char *)"new_GridEditorCreatedEvent", (PyCFunction) _wrap_new_GridEditorCreatedEvent, METH_VARARGS | METH_KEYWORDS },
14131 { (char *)"GridEditorCreatedEvent_GetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
14132 { (char *)"GridEditorCreatedEvent_GetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
14133 { (char *)"GridEditorCreatedEvent_GetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_GetControl, METH_VARARGS | METH_KEYWORDS },
14134 { (char *)"GridEditorCreatedEvent_SetRow", (PyCFunction) _wrap_GridEditorCreatedEvent_SetRow, METH_VARARGS | METH_KEYWORDS },
14135 { (char *)"GridEditorCreatedEvent_SetCol", (PyCFunction) _wrap_GridEditorCreatedEvent_SetCol, METH_VARARGS | METH_KEYWORDS },
14136 { (char *)"GridEditorCreatedEvent_SetControl", (PyCFunction) _wrap_GridEditorCreatedEvent_SetControl, METH_VARARGS | METH_KEYWORDS },
14137 { (char *)"GridEditorCreatedEvent_swigregister", GridEditorCreatedEvent_swigregister, METH_VARARGS },
14138 { NULL, NULL }
14139 };
14140
14141
14142 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
14143
14144 static void *_p_wxPyGridCellRendererTo_p_wxGridCellRenderer(void *x) {
14145 return (void *)((wxGridCellRenderer *) ((wxPyGridCellRenderer *) x));
14146 }
14147 static void *_p_wxGridCellStringRendererTo_p_wxGridCellRenderer(void *x) {
14148 return (void *)((wxGridCellRenderer *) ((wxGridCellStringRenderer *) x));
14149 }
14150 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellRenderer(void *x) {
14151 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
14152 }
14153 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellRenderer(void *x) {
14154 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
14155 }
14156 static void *_p_wxGridCellBoolRendererTo_p_wxGridCellRenderer(void *x) {
14157 return (void *)((wxGridCellRenderer *) ((wxGridCellBoolRenderer *) x));
14158 }
14159 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellRenderer(void *x) {
14160 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
14161 }
14162 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellRenderer(void *x) {
14163 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
14164 }
14165 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellRenderer(void *x) {
14166 return (void *)((wxGridCellRenderer *) (wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
14167 }
14168 static void *_p_wxGridCellNumberRendererTo_p_wxGridCellStringRenderer(void *x) {
14169 return (void *)((wxGridCellStringRenderer *) ((wxGridCellNumberRenderer *) x));
14170 }
14171 static void *_p_wxGridCellFloatRendererTo_p_wxGridCellStringRenderer(void *x) {
14172 return (void *)((wxGridCellStringRenderer *) ((wxGridCellFloatRenderer *) x));
14173 }
14174 static void *_p_wxGridCellDateTimeRendererTo_p_wxGridCellStringRenderer(void *x) {
14175 return (void *)((wxGridCellStringRenderer *) ((wxGridCellDateTimeRenderer *) x));
14176 }
14177 static void *_p_wxGridCellEnumRendererTo_p_wxGridCellStringRenderer(void *x) {
14178 return (void *)((wxGridCellStringRenderer *) ((wxGridCellEnumRenderer *) x));
14179 }
14180 static void *_p_wxGridCellAutoWrapStringRendererTo_p_wxGridCellStringRenderer(void *x) {
14181 return (void *)((wxGridCellStringRenderer *) ((wxGridCellAutoWrapStringRenderer *) x));
14182 }
14183 static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) {
14184 return (void *)((wxPanel *) ((wxScrolledWindow *) x));
14185 }
14186 static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) {
14187 return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x));
14188 }
14189 static void *_p_wxGridTo_p_wxPanel(void *x) {
14190 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxGrid *) x));
14191 }
14192 static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) {
14193 return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x));
14194 }
14195 static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) {
14196 return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
14197 }
14198 static void *_p_wxPyPanelTo_p_wxPanel(void *x) {
14199 return (void *)((wxPanel *) ((wxPyPanel *) x));
14200 }
14201 static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) {
14202 return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x));
14203 }
14204 static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) {
14205 return (void *)((wxPanel *) ((wxPreviewControlBar *) x));
14206 }
14207 static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) {
14208 return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
14209 }
14210 static void *_p_wxGridSizeEventTo_p_wxNotifyEvent(void *x) {
14211 return (void *)((wxNotifyEvent *) ((wxGridSizeEvent *) x));
14212 }
14213 static void *_p_wxGridRangeSelectEventTo_p_wxNotifyEvent(void *x) {
14214 return (void *)((wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
14215 }
14216 static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) {
14217 return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x));
14218 }
14219 static void *_p_wxGridEventTo_p_wxNotifyEvent(void *x) {
14220 return (void *)((wxNotifyEvent *) ((wxGridEvent *) x));
14221 }
14222 static void *_p_wxGridTo_p_wxScrolledWindow(void *x) {
14223 return (void *)((wxScrolledWindow *) ((wxGrid *) x));
14224 }
14225 static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) {
14226 return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x));
14227 }
14228 static void *_p_wxSplashScreenTo_p_wxWindow(void *x) {
14229 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
14230 }
14231 static void *_p_wxMiniFrameTo_p_wxWindow(void *x) {
14232 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
14233 }
14234 static void *_p_wxPyPanelTo_p_wxWindow(void *x) {
14235 return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x));
14236 }
14237 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
14238 return (void *)((wxWindow *) ((wxMenuBar *) x));
14239 }
14240 static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) {
14241 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
14242 }
14243 static void *_p_wxProgressDialogTo_p_wxWindow(void *x) {
14244 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
14245 }
14246 static void *_p_wxMessageDialogTo_p_wxWindow(void *x) {
14247 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
14248 }
14249 static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) {
14250 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
14251 }
14252 static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) {
14253 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
14254 }
14255 static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) {
14256 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
14257 }
14258 static void *_p_wxFileDialogTo_p_wxWindow(void *x) {
14259 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
14260 }
14261 static void *_p_wxPanelTo_p_wxWindow(void *x) {
14262 return (void *)((wxWindow *) ((wxPanel *) x));
14263 }
14264 static void *_p_wxStatusBarTo_p_wxWindow(void *x) {
14265 return (void *)((wxWindow *) ((wxStatusBar *) x));
14266 }
14267 static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) {
14268 return (void *)((wxWindow *) ((wxMDIClientWindow *) x));
14269 }
14270 static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) {
14271 return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x));
14272 }
14273 static void *_p_wxTipWindowTo_p_wxWindow(void *x) {
14274 return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
14275 }
14276 static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) {
14277 return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
14278 }
14279 static void *_p_wxPopupWindowTo_p_wxWindow(void *x) {
14280 return (void *)((wxWindow *) ((wxPopupWindow *) x));
14281 }
14282 static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) {
14283 return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x));
14284 }
14285 static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) {
14286 return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x));
14287 }
14288 static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) {
14289 return (void *)((wxWindow *) ((wxTopLevelWindow *) x));
14290 }
14291 static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) {
14292 return (void *)((wxWindow *) ((wxSplashScreenWindow *) x));
14293 }
14294 static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) {
14295 return (void *)((wxWindow *) ((wxSplitterWindow *) x));
14296 }
14297 static void *_p_wxSashWindowTo_p_wxWindow(void *x) {
14298 return (void *)((wxWindow *) ((wxSashWindow *) x));
14299 }
14300 static void *_p_wxControlTo_p_wxWindow(void *x) {
14301 return (void *)((wxWindow *) ((wxControl *) x));
14302 }
14303 static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) {
14304 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
14305 }
14306 static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) {
14307 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
14308 }
14309 static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) {
14310 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
14311 }
14312 static void *_p_wxGridTo_p_wxWindow(void *x) {
14313 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
14314 }
14315 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
14316 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
14317 }
14318 static void *_p_wxPyWindowTo_p_wxWindow(void *x) {
14319 return (void *)((wxWindow *) ((wxPyWindow *) x));
14320 }
14321 static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) {
14322 return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
14323 }
14324 static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) {
14325 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
14326 }
14327 static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) {
14328 return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
14329 }
14330 static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) {
14331 return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x));
14332 }
14333 static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) {
14334 return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
14335 }
14336 static void *_p_wxFrameTo_p_wxWindow(void *x) {
14337 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x));
14338 }
14339 static void *_p_wxFontDialogTo_p_wxWindow(void *x) {
14340 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
14341 }
14342 static void *_p_wxDirDialogTo_p_wxWindow(void *x) {
14343 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
14344 }
14345 static void *_p_wxColourDialogTo_p_wxWindow(void *x) {
14346 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
14347 }
14348 static void *_p_wxDialogTo_p_wxWindow(void *x) {
14349 return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x));
14350 }
14351 static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) {
14352 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
14353 }
14354 static void *_p_wxPrintDialogTo_p_wxWindow(void *x) {
14355 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
14356 }
14357 static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) {
14358 return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
14359 }
14360 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
14361 return (void *)((wxControl *) ((wxControlWithItems *) x));
14362 }
14363 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
14364 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
14365 }
14366 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
14367 return (void *)((wxEvent *) ((wxMenuEvent *) x));
14368 }
14369 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
14370 return (void *)((wxEvent *) ((wxCloseEvent *) x));
14371 }
14372 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
14373 return (void *)((wxEvent *) ((wxMouseEvent *) x));
14374 }
14375 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
14376 return (void *)((wxEvent *) ((wxEraseEvent *) x));
14377 }
14378 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
14379 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
14380 }
14381 static void *_p_wxSplitterEventTo_p_wxEvent(void *x) {
14382 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
14383 }
14384 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
14385 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
14386 }
14387 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
14388 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
14389 }
14390 static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) {
14391 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x));
14392 }
14393 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
14394 return (void *)((wxEvent *) ((wxPyEvent *) x));
14395 }
14396 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
14397 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
14398 }
14399 static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) {
14400 return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x));
14401 }
14402 static void *_p_wxGridRangeSelectEventTo_p_wxEvent(void *x) {
14403 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
14404 }
14405 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
14406 return (void *)((wxEvent *) ((wxIdleEvent *) x));
14407 }
14408 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
14409 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
14410 }
14411 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
14412 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
14413 }
14414 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
14415 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
14416 }
14417 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
14418 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
14419 }
14420 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
14421 return (void *)((wxEvent *) ((wxActivateEvent *) x));
14422 }
14423 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
14424 return (void *)((wxEvent *) ((wxSizeEvent *) x));
14425 }
14426 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
14427 return (void *)((wxEvent *) ((wxMoveEvent *) x));
14428 }
14429 static void *_p_wxGridSizeEventTo_p_wxEvent(void *x) {
14430 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
14431 }
14432 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
14433 return (void *)((wxEvent *) ((wxPaintEvent *) x));
14434 }
14435 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
14436 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
14437 }
14438 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
14439 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
14440 }
14441 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
14442 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
14443 }
14444 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
14445 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
14446 }
14447 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
14448 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
14449 }
14450 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
14451 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
14452 }
14453 static void *_p_wxGridEventTo_p_wxEvent(void *x) {
14454 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
14455 }
14456 static void *_p_wxGridEditorCreatedEventTo_p_wxEvent(void *x) {
14457 return (void *)((wxEvent *) (wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
14458 }
14459 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
14460 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
14461 }
14462 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
14463 return (void *)((wxEvent *) ((wxFocusEvent *) x));
14464 }
14465 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
14466 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
14467 }
14468 static void *_p_wxSashEventTo_p_wxEvent(void *x) {
14469 return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x));
14470 }
14471 static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) {
14472 return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x));
14473 }
14474 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
14475 return (void *)((wxEvent *) ((wxShowEvent *) x));
14476 }
14477 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
14478 return (void *)((wxEvent *) ((wxCommandEvent *) x));
14479 }
14480 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
14481 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
14482 }
14483 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
14484 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
14485 }
14486 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
14487 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
14488 }
14489 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
14490 return (void *)((wxEvent *) ((wxKeyEvent *) x));
14491 }
14492 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
14493 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
14494 }
14495 static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) {
14496 return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x));
14497 }
14498 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
14499 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
14500 }
14501 static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) {
14502 return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x));
14503 }
14504 static void *_p_wxPreviewFrameTo_p_wxObject(void *x) {
14505 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
14506 }
14507 static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) {
14508 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
14509 }
14510 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
14511 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
14512 }
14513 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
14514 return (void *)((wxObject *) ((wxSizerItem *) x));
14515 }
14516 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
14517 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
14518 }
14519 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
14520 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
14521 }
14522 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
14523 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
14524 }
14525 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
14526 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
14527 }
14528 static void *_p_wxSizerTo_p_wxObject(void *x) {
14529 return (void *)((wxObject *) ((wxSizer *) x));
14530 }
14531 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
14532 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
14533 }
14534 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
14535 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
14536 }
14537 static void *_p_wxPyPanelTo_p_wxObject(void *x) {
14538 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x));
14539 }
14540 static void *_p_wxEventTo_p_wxObject(void *x) {
14541 return (void *)((wxObject *) ((wxEvent *) x));
14542 }
14543 static void *_p_wxFontDataTo_p_wxObject(void *x) {
14544 return (void *)((wxObject *) ((wxFontData *) x));
14545 }
14546 static void *_p_wxPrintDataTo_p_wxObject(void *x) {
14547 return (void *)((wxObject *) ((wxPrintData *) x));
14548 }
14549 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
14550 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
14551 }
14552 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
14553 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
14554 }
14555 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
14556 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
14557 }
14558 static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) {
14559 return (void *)((wxObject *) ((wxLayoutAlgorithm *) x));
14560 }
14561 static void *_p_wxTaskBarIconTo_p_wxObject(void *x) {
14562 return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x));
14563 }
14564 static void *_p_wxFindDialogEventTo_p_wxObject(void *x) {
14565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x));
14566 }
14567 static void *_p_wxGridStringTableTo_p_wxObject(void *x) {
14568 return (void *)((wxObject *) (wxGridTableBase *) ((wxGridStringTable *) x));
14569 }
14570 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
14571 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
14572 }
14573 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
14574 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
14575 }
14576 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
14577 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
14578 }
14579 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
14580 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
14581 }
14582 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
14583 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
14584 }
14585 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
14586 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
14587 }
14588 static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) {
14589 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
14590 }
14591 static void *_p_wxGridEventTo_p_wxObject(void *x) {
14592 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridEvent *) x));
14593 }
14594 static void *_p_wxGridEditorCreatedEventTo_p_wxObject(void *x) {
14595 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
14596 }
14597 static void *_p_wxControlTo_p_wxObject(void *x) {
14598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
14599 }
14600 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
14601 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
14602 }
14603 static void *_p_wxSplitterEventTo_p_wxObject(void *x) {
14604 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x));
14605 }
14606 static void *_p_wxFSFileTo_p_wxObject(void *x) {
14607 return (void *)((wxObject *) ((wxFSFile *) x));
14608 }
14609 static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) {
14610 return (void *)((wxObject *) ((wxFindReplaceData *) x));
14611 }
14612 static void *_p_wxGridTo_p_wxObject(void *x) {
14613 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
14614 }
14615 static void *_p_wxPySizerTo_p_wxObject(void *x) {
14616 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
14617 }
14618 static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) {
14619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
14620 }
14621 static void *_p_wxColourDataTo_p_wxObject(void *x) {
14622 return (void *)((wxObject *) ((wxColourData *) x));
14623 }
14624 static void *_p_wxPyEventTo_p_wxObject(void *x) {
14625 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
14626 }
14627 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
14628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
14629 }
14630 static void *_p_wxPyWindowTo_p_wxObject(void *x) {
14631 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x));
14632 }
14633 static void *_p_wxSplashScreenTo_p_wxObject(void *x) {
14634 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
14635 }
14636 static void *_p_wxFileDialogTo_p_wxObject(void *x) {
14637 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
14638 }
14639 static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) {
14640 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
14641 }
14642 static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) {
14643 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
14644 }
14645 static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) {
14646 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
14647 }
14648 static void *_p_wxMessageDialogTo_p_wxObject(void *x) {
14649 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
14650 }
14651 static void *_p_wxProgressDialogTo_p_wxObject(void *x) {
14652 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
14653 }
14654 static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) {
14655 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
14656 }
14657 static void *_p_wxShowEventTo_p_wxObject(void *x) {
14658 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
14659 }
14660 static void *_p_wxPrinterTo_p_wxObject(void *x) {
14661 return (void *)((wxObject *) ((wxPrinter *) x));
14662 }
14663 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
14664 return (void *)((wxObject *) ((wxMenuItem *) x));
14665 }
14666 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
14667 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
14668 }
14669 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
14670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
14671 }
14672 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
14673 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
14674 }
14675 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
14676 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
14677 }
14678 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
14679 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
14680 }
14681 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
14682 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
14683 }
14684 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
14685 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
14686 }
14687 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
14688 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
14689 }
14690 static void *_p_wxGridSizeEventTo_p_wxObject(void *x) {
14691 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridSizeEvent *) x));
14692 }
14693 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
14694 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
14695 }
14696 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
14697 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
14698 }
14699 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
14700 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
14701 }
14702 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
14703 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
14704 }
14705 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
14706 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
14707 }
14708 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
14709 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
14710 }
14711 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
14712 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
14713 }
14714 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
14715 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
14716 }
14717 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
14718 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
14719 }
14720 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
14721 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
14722 }
14723 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
14724 return (void *)((wxObject *) ((wxImageHandler *) x));
14725 }
14726 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
14727 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
14728 }
14729 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
14730 return (void *)((wxObject *) ((wxEvtHandler *) x));
14731 }
14732 static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) {
14733 return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x));
14734 }
14735 static void *_p_wxGridRangeSelectEventTo_p_wxObject(void *x) {
14736 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
14737 }
14738 static void *_p_wxPyVListBoxTo_p_wxObject(void *x) {
14739 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
14740 }
14741 static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) {
14742 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
14743 }
14744 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
14745 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
14746 }
14747 static void *_p_wxMiniFrameTo_p_wxObject(void *x) {
14748 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
14749 }
14750 static void *_p_wxImageTo_p_wxObject(void *x) {
14751 return (void *)((wxObject *) ((wxImage *) x));
14752 }
14753 static void *_p_wxFrameTo_p_wxObject(void *x) {
14754 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
14755 }
14756 static void *_p_wxPyPrintoutTo_p_wxObject(void *x) {
14757 return (void *)((wxObject *) ((wxPyPrintout *) x));
14758 }
14759 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
14760 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
14761 }
14762 static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) {
14763 return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x));
14764 }
14765 static void *_p_wxStatusBarTo_p_wxObject(void *x) {
14766 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x));
14767 }
14768 static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) {
14769 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
14770 }
14771 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
14772 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
14773 }
14774 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
14775 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
14776 }
14777 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
14778 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
14779 }
14780 static void *_p_wxWindowTo_p_wxObject(void *x) {
14781 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
14782 }
14783 static void *_p_wxMenuTo_p_wxObject(void *x) {
14784 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
14785 }
14786 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
14787 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
14788 }
14789 static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
14790 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
14791 }
14792 static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
14793 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
14794 }
14795 static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) {
14796 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x));
14797 }
14798 static void *_p_wxSplitterWindowTo_p_wxObject(void *x) {
14799 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x));
14800 }
14801 static void *_p_wxSashWindowTo_p_wxObject(void *x) {
14802 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x));
14803 }
14804 static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) {
14805 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
14806 }
14807 static void *_p_wxPopupWindowTo_p_wxObject(void *x) {
14808 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x));
14809 }
14810 static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) {
14811 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
14812 }
14813 static void *_p_wxTipWindowTo_p_wxObject(void *x) {
14814 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
14815 }
14816 static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) {
14817 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
14818 }
14819 static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) {
14820 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x));
14821 }
14822 static void *_p_wxSashEventTo_p_wxObject(void *x) {
14823 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x));
14824 }
14825 static void *_p_wxPrintPreviewTo_p_wxObject(void *x) {
14826 return (void *)((wxObject *) ((wxPrintPreview *) x));
14827 }
14828 static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) {
14829 return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x));
14830 }
14831 static void *_p_wxPanelTo_p_wxObject(void *x) {
14832 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x));
14833 }
14834 static void *_p_wxDialogTo_p_wxObject(void *x) {
14835 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
14836 }
14837 static void *_p_wxColourDialogTo_p_wxObject(void *x) {
14838 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
14839 }
14840 static void *_p_wxDirDialogTo_p_wxObject(void *x) {
14841 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
14842 }
14843 static void *_p_wxFontDialogTo_p_wxObject(void *x) {
14844 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
14845 }
14846 static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) {
14847 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
14848 }
14849 static void *_p_wxPrintDialogTo_p_wxObject(void *x) {
14850 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
14851 }
14852 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
14853 return (void *)((wxObject *) ((wxFileSystem *) x));
14854 }
14855 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
14856 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
14857 }
14858 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
14859 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
14860 }
14861 static void *_p_wxPyAppTo_p_wxObject(void *x) {
14862 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
14863 }
14864 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
14865 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
14866 }
14867 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
14868 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
14869 }
14870 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
14871 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
14872 }
14873 static void *_p_wxGridTableBaseTo_p_wxObject(void *x) {
14874 return (void *)((wxObject *) ((wxGridTableBase *) x));
14875 }
14876 static void *_p_wxPyGridTableBaseTo_p_wxObject(void *x) {
14877 return (void *)((wxObject *) (wxGridTableBase *) ((wxPyGridTableBase *) x));
14878 }
14879 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
14880 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
14881 }
14882 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
14883 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
14884 }
14885 static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) {
14886 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
14887 }
14888 static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) {
14889 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
14890 }
14891 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
14892 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
14893 }
14894 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
14895 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
14896 }
14897 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
14898 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
14899 }
14900 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
14901 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
14902 }
14903 static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) {
14904 return (void *)((wxObject *) ((wxPageSetupDialogData *) x));
14905 }
14906 static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) {
14907 return (void *)((wxObject *) ((wxPrintDialogData *) x));
14908 }
14909 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
14910 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
14911 }
14912 static void *_p_wxValidatorTo_p_wxObject(void *x) {
14913 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
14914 }
14915 static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) {
14916 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x));
14917 }
14918 static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) {
14919 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x));
14920 }
14921 static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) {
14922 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x));
14923 }
14924 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
14925 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
14926 }
14927 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
14928 return (void *)((wxEvtHandler *) ((wxValidator *) x));
14929 }
14930 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
14931 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
14932 }
14933 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
14934 return (void *)((wxEvtHandler *) ((wxMenu *) x));
14935 }
14936 static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) {
14937 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x));
14938 }
14939 static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) {
14940 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x));
14941 }
14942 static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) {
14943 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x));
14944 }
14945 static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) {
14946 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x));
14947 }
14948 static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) {
14949 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x));
14950 }
14951 static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) {
14952 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x));
14953 }
14954 static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) {
14955 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x));
14956 }
14957 static void *_p_wxPanelTo_p_wxEvtHandler(void *x) {
14958 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x));
14959 }
14960 static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) {
14961 return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x));
14962 }
14963 static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) {
14964 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x));
14965 }
14966 static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) {
14967 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x));
14968 }
14969 static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) {
14970 return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x));
14971 }
14972 static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) {
14973 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x));
14974 }
14975 static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) {
14976 return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x));
14977 }
14978 static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) {
14979 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x));
14980 }
14981 static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) {
14982 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x));
14983 }
14984 static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) {
14985 return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x));
14986 }
14987 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
14988 return (void *)((wxEvtHandler *) ((wxWindow *) x));
14989 }
14990 static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) {
14991 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
14992 }
14993 static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) {
14994 return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x));
14995 }
14996 static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) {
14997 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x));
14998 }
14999 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
15000 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
15001 }
15002 static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) {
15003 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x));
15004 }
15005 static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) {
15006 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x));
15007 }
15008 static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) {
15009 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x));
15010 }
15011 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
15012 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
15013 }
15014 static void *_p_wxGridTo_p_wxEvtHandler(void *x) {
15015 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxGrid *) x));
15016 }
15017 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
15018 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
15019 }
15020 static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) {
15021 return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x));
15022 }
15023 static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) {
15024 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x));
15025 }
15026 static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) {
15027 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x));
15028 }
15029 static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) {
15030 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x));
15031 }
15032 static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) {
15033 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x));
15034 }
15035 static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) {
15036 return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x));
15037 }
15038 static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) {
15039 return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x));
15040 }
15041 static void *_p_wxFrameTo_p_wxEvtHandler(void *x) {
15042 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x));
15043 }
15044 static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) {
15045 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x));
15046 }
15047 static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) {
15048 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x));
15049 }
15050 static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) {
15051 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x));
15052 }
15053 static void *_p_wxDialogTo_p_wxEvtHandler(void *x) {
15054 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x));
15055 }
15056 static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) {
15057 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x));
15058 }
15059 static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) {
15060 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x));
15061 }
15062 static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) {
15063 return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x));
15064 }
15065 static void *_p_wxGridStringTableTo_p_wxGridTableBase(void *x) {
15066 return (void *)((wxGridTableBase *) ((wxGridStringTable *) x));
15067 }
15068 static void *_p_wxPyGridTableBaseTo_p_wxGridTableBase(void *x) {
15069 return (void *)((wxGridTableBase *) ((wxPyGridTableBase *) x));
15070 }
15071 static void *_p_wxPyGridCellEditorTo_p_wxGridCellEditor(void *x) {
15072 return (void *)((wxGridCellEditor *) ((wxPyGridCellEditor *) x));
15073 }
15074 static void *_p_wxGridCellTextEditorTo_p_wxGridCellEditor(void *x) {
15075 return (void *)((wxGridCellEditor *) ((wxGridCellTextEditor *) x));
15076 }
15077 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellEditor(void *x) {
15078 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
15079 }
15080 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellEditor(void *x) {
15081 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
15082 }
15083 static void *_p_wxGridCellBoolEditorTo_p_wxGridCellEditor(void *x) {
15084 return (void *)((wxGridCellEditor *) ((wxGridCellBoolEditor *) x));
15085 }
15086 static void *_p_wxGridCellChoiceEditorTo_p_wxGridCellEditor(void *x) {
15087 return (void *)((wxGridCellEditor *) ((wxGridCellChoiceEditor *) x));
15088 }
15089 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellEditor(void *x) {
15090 return (void *)((wxGridCellEditor *) (wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
15091 }
15092 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellEditor(void *x) {
15093 return (void *)((wxGridCellEditor *) (wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
15094 }
15095 static void *_p_wxGridCellNumberEditorTo_p_wxGridCellTextEditor(void *x) {
15096 return (void *)((wxGridCellTextEditor *) ((wxGridCellNumberEditor *) x));
15097 }
15098 static void *_p_wxGridCellFloatEditorTo_p_wxGridCellTextEditor(void *x) {
15099 return (void *)((wxGridCellTextEditor *) ((wxGridCellFloatEditor *) x));
15100 }
15101 static void *_p_wxGridCellAutoWrapStringEditorTo_p_wxGridCellTextEditor(void *x) {
15102 return (void *)((wxGridCellTextEditor *) ((wxGridCellAutoWrapStringEditor *) x));
15103 }
15104 static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) {
15105 return (void *)((wxCommandEvent *) ((wxSashEvent *) x));
15106 }
15107 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
15108 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
15109 }
15110 static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) {
15111 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x));
15112 }
15113 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
15114 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
15115 }
15116 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
15117 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
15118 }
15119 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
15120 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
15121 }
15122 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
15123 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
15124 }
15125 static void *_p_wxGridRangeSelectEventTo_p_wxCommandEvent(void *x) {
15126 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridRangeSelectEvent *) x));
15127 }
15128 static void *_p_wxGridSizeEventTo_p_wxCommandEvent(void *x) {
15129 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridSizeEvent *) x));
15130 }
15131 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
15132 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
15133 }
15134 static void *_p_wxGridEventTo_p_wxCommandEvent(void *x) {
15135 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxGridEvent *) x));
15136 }
15137 static void *_p_wxGridEditorCreatedEventTo_p_wxCommandEvent(void *x) {
15138 return (void *)((wxCommandEvent *) ((wxGridEditorCreatedEvent *) x));
15139 }
15140 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
15141 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
15142 }
15143 static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) {
15144 return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x));
15145 }
15146 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
15147 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
15148 }
15149 static void *_p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider(void *x) {
15150 return (void *)((wxGridCellAttrProvider *) ((wxPyGridCellAttrProvider *) x));
15151 }
15152 static void *_p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor(void *x) {
15153 return (void *)((wxGridCellChoiceEditor *) ((wxGridCellEnumEditor *) x));
15154 }
15155 static swig_type_info _swigt__p_wxGridCellAutoWrapStringRenderer[] = {{"_p_wxGridCellAutoWrapStringRenderer", 0, "wxGridCellAutoWrapStringRenderer *", 0},{"_p_wxGridCellAutoWrapStringRenderer"},{0}};
15156 static swig_type_info _swigt__p_wxGridCellEnumRenderer[] = {{"_p_wxGridCellEnumRenderer", 0, "wxGridCellEnumRenderer *", 0},{"_p_wxGridCellEnumRenderer"},{0}};
15157 static swig_type_info _swigt__p_wxGridCellDateTimeRenderer[] = {{"_p_wxGridCellDateTimeRenderer", 0, "wxGridCellDateTimeRenderer *", 0},{"_p_wxGridCellDateTimeRenderer"},{0}};
15158 static swig_type_info _swigt__p_wxGridCellBoolRenderer[] = {{"_p_wxGridCellBoolRenderer", 0, "wxGridCellBoolRenderer *", 0},{"_p_wxGridCellBoolRenderer"},{0}};
15159 static swig_type_info _swigt__p_wxGridCellFloatRenderer[] = {{"_p_wxGridCellFloatRenderer", 0, "wxGridCellFloatRenderer *", 0},{"_p_wxGridCellFloatRenderer"},{0}};
15160 static swig_type_info _swigt__p_wxGridCellNumberRenderer[] = {{"_p_wxGridCellNumberRenderer", 0, "wxGridCellNumberRenderer *", 0},{"_p_wxGridCellNumberRenderer"},{0}};
15161 static swig_type_info _swigt__p_wxPyGridCellRenderer[] = {{"_p_wxPyGridCellRenderer", 0, "wxPyGridCellRenderer *", 0},{"_p_wxPyGridCellRenderer"},{0}};
15162 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}};
15163 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}};
15164 static swig_type_info _swigt__p_wxGridCellAttr[] = {{"_p_wxGridCellAttr", 0, "wxGridCellAttr *", 0},{"_p_wxGridCellAttr"},{0}};
15165 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
15166 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
15167 static swig_type_info _swigt__p_wxGridTableMessage[] = {{"_p_wxGridTableMessage", 0, "wxGridTableMessage *", 0},{"_p_wxGridTableMessage"},{0}};
15168 static swig_type_info _swigt__p_wxGrid[] = {{"_p_wxGrid", 0, "wxGrid *", 0},{"_p_wxGrid"},{0}};
15169 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}};
15170 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}};
15171 static swig_type_info _swigt__p_wxGridRangeSelectEvent[] = {{"_p_wxGridRangeSelectEvent", 0, "wxGridRangeSelectEvent *", 0},{"_p_wxGridRangeSelectEvent"},{0}};
15172 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
15173 static swig_type_info _swigt__p_wxGridCellCoords[] = {{"_p_wxGridCellCoords", 0, "wxGridCellCoords *", 0},{"_p_wxGridCellCoords"},{0}};
15174 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}};
15175 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}};
15176 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
15177 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}};
15178 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}};
15179 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}};
15180 static swig_type_info _swigt__p_wxGridSizeEvent[] = {{"_p_wxGridSizeEvent", 0, "wxGridSizeEvent *", 0},{"_p_wxGridSizeEvent"},{0}};
15181 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
15182 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
15183 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
15184 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}};
15185 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
15186 static swig_type_info _swigt__p_wxGridEvent[] = {{"_p_wxGridEvent", 0, "wxGridEvent *", 0},{"_p_wxGridEvent"},{0}};
15187 static swig_type_info _swigt__p_wxGridEditorCreatedEvent[] = {{"_p_wxGridEditorCreatedEvent", 0, "wxGridEditorCreatedEvent *", 0},{"_p_wxGridEditorCreatedEvent"},{0}};
15188 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}};
15189 static swig_type_info _swigt__p_wxGridCellFloatEditor[] = {{"_p_wxGridCellFloatEditor", 0, "wxGridCellFloatEditor *", 0},{"_p_wxGridCellFloatEditor"},{0}};
15190 static swig_type_info _swigt__p_wxGridCellNumberEditor[] = {{"_p_wxGridCellNumberEditor", 0, "wxGridCellNumberEditor *", 0},{"_p_wxGridCellNumberEditor"},{0}};
15191 static swig_type_info _swigt__p_wxPyGridCellEditor[] = {{"_p_wxPyGridCellEditor", 0, "wxPyGridCellEditor *", 0},{"_p_wxPyGridCellEditor"},{0}};
15192 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}};
15193 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}};
15194 static swig_type_info _swigt__p_wxGridCellBoolEditor[] = {{"_p_wxGridCellBoolEditor", 0, "wxGridCellBoolEditor *", 0},{"_p_wxGridCellBoolEditor"},{0}};
15195 static swig_type_info _swigt__p_wxPyGridTableBase[] = {{"_p_wxPyGridTableBase", 0, "wxPyGridTableBase *", 0},{"_p_wxPyGridTableBase"},{0}};
15196 static swig_type_info _swigt__p_wxGridStringTable[] = {{"_p_wxGridStringTable", 0, "wxGridStringTable *", 0},{"_p_wxGridStringTable"},{0}};
15197 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
15198 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}};
15199 static swig_type_info _swigt__p_wxGridCellAttrProvider[] = {{"_p_wxGridCellAttrProvider", 0, "wxGridCellAttrProvider *", 0},{"_p_wxGridCellAttrProvider"},{"_p_wxPyGridCellAttrProvider", _p_wxPyGridCellAttrProviderTo_p_wxGridCellAttrProvider},{0}};
15200 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}};
15201 static swig_type_info _swigt__p_wxGridCellChoiceEditor[] = {{"_p_wxGridCellChoiceEditor", 0, "wxGridCellChoiceEditor *", 0},{"_p_wxGridCellChoiceEditor"},{"_p_wxGridCellEnumEditor", _p_wxGridCellEnumEditorTo_p_wxGridCellChoiceEditor},{0}};
15202 static swig_type_info _swigt__p_wxGridCellEnumEditor[] = {{"_p_wxGridCellEnumEditor", 0, "wxGridCellEnumEditor *", 0},{"_p_wxGridCellEnumEditor"},{0}};
15203 static swig_type_info _swigt__p_wxGridCellAutoWrapStringEditor[] = {{"_p_wxGridCellAutoWrapStringEditor", 0, "wxGridCellAutoWrapStringEditor *", 0},{"_p_wxGridCellAutoWrapStringEditor"},{0}};
15204 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
15205 static swig_type_info _swigt__p_wxPyGridCellAttrProvider[] = {{"_p_wxPyGridCellAttrProvider", 0, "wxPyGridCellAttrProvider *", 0},{"_p_wxPyGridCellAttrProvider"},{0}};
15206
15207 static swig_type_info *swig_types_initial[] = {
15208 _swigt__p_wxGridCellAutoWrapStringRenderer,
15209 _swigt__p_wxGridCellEnumRenderer,
15210 _swigt__p_wxGridCellDateTimeRenderer,
15211 _swigt__p_wxGridCellBoolRenderer,
15212 _swigt__p_wxGridCellFloatRenderer,
15213 _swigt__p_wxGridCellNumberRenderer,
15214 _swigt__p_wxPyGridCellRenderer,
15215 _swigt__p_wxGridCellRenderer,
15216 _swigt__p_wxGridCellStringRenderer,
15217 _swigt__p_wxGridCellAttr,
15218 _swigt__p_wxColour,
15219 _swigt__p_wxDC,
15220 _swigt__p_wxGridTableMessage,
15221 _swigt__p_wxGrid,
15222 _swigt__p_wxPanel,
15223 _swigt__p_wxNotifyEvent,
15224 _swigt__p_wxGridRangeSelectEvent,
15225 _swigt__p_wxSize,
15226 _swigt__p_wxGridCellCoords,
15227 _swigt__p_wxScrolledWindow,
15228 _swigt__p_wxWindow,
15229 _swigt__p_wxFont,
15230 _swigt__p_wxControl,
15231 _swigt__p_wxEvent,
15232 _swigt__p_wxObject,
15233 _swigt__p_wxGridSizeEvent,
15234 _swigt__p_wxRect,
15235 _swigt__p_long,
15236 _swigt__p_wxString,
15237 _swigt__p_wxEvtHandler,
15238 _swigt__p_wxPoint,
15239 _swigt__p_wxGridEvent,
15240 _swigt__p_wxGridEditorCreatedEvent,
15241 _swigt__p_wxGridTableBase,
15242 _swigt__p_wxGridCellFloatEditor,
15243 _swigt__p_wxGridCellNumberEditor,
15244 _swigt__p_wxPyGridCellEditor,
15245 _swigt__p_wxGridCellEditor,
15246 _swigt__p_wxGridCellTextEditor,
15247 _swigt__p_wxGridCellBoolEditor,
15248 _swigt__p_wxPyGridTableBase,
15249 _swigt__p_wxGridStringTable,
15250 _swigt__p_wxArrayString,
15251 _swigt__p_wxCommandEvent,
15252 _swigt__p_wxGridCellAttrProvider,
15253 _swigt__p_wxKeyEvent,
15254 _swigt__p_wxGridCellChoiceEditor,
15255 _swigt__p_wxGridCellEnumEditor,
15256 _swigt__p_wxGridCellAutoWrapStringEditor,
15257 _swigt__p_int,
15258 _swigt__p_wxPyGridCellAttrProvider,
15259 0
15260 };
15261
15262
15263 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
15264
15265 static swig_const_info swig_const_table[] = {
15266 { SWIG_PY_STRING, (char*)"GRID_VALUE_STRING", 0, 0, (void *)"string", 0},
15267 { SWIG_PY_STRING, (char*)"GRID_VALUE_BOOL", 0, 0, (void *)"bool", 0},
15268 { SWIG_PY_STRING, (char*)"GRID_VALUE_NUMBER", 0, 0, (void *)"long", 0},
15269 { SWIG_PY_STRING, (char*)"GRID_VALUE_FLOAT", 0, 0, (void *)"double", 0},
15270 { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICE", 0, 0, (void *)"choice", 0},
15271 { SWIG_PY_STRING, (char*)"GRID_VALUE_TEXT", 0, 0, (void *)"string", 0},
15272 { SWIG_PY_STRING, (char*)"GRID_VALUE_LONG", 0, 0, (void *)"long", 0},
15273 { SWIG_PY_STRING, (char*)"GRID_VALUE_CHOICEINT", 0, 0, (void *)"choiceint", 0},
15274 { SWIG_PY_STRING, (char*)"GRID_VALUE_DATETIME", 0, 0, (void *)"datetime", 0},
15275 { SWIG_PY_INT, (char *)"GridCellAttr_Any", (long) wxGridCellAttr::Any, 0, 0, 0},
15276 { SWIG_PY_INT, (char *)"GridCellAttr_Default", (long) wxGridCellAttr::Default, 0, 0, 0},
15277 { SWIG_PY_INT, (char *)"GridCellAttr_Cell", (long) wxGridCellAttr::Cell, 0, 0, 0},
15278 { SWIG_PY_INT, (char *)"GridCellAttr_Row", (long) wxGridCellAttr::Row, 0, 0, 0},
15279 { SWIG_PY_INT, (char *)"GridCellAttr_Col", (long) wxGridCellAttr::Col, 0, 0, 0},
15280 { SWIG_PY_INT, (char *)"GridCellAttr_Merged", (long) wxGridCellAttr::Merged, 0, 0, 0},
15281 { SWIG_PY_INT, (char *)"GRIDTABLE_REQUEST_VIEW_GET_VALUES", (long) wxGRIDTABLE_REQUEST_VIEW_GET_VALUES, 0, 0, 0},
15282 { SWIG_PY_INT, (char *)"GRIDTABLE_REQUEST_VIEW_SEND_VALUES", (long) wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES, 0, 0, 0},
15283 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_INSERTED", (long) wxGRIDTABLE_NOTIFY_ROWS_INSERTED, 0, 0, 0},
15284 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_APPENDED", (long) wxGRIDTABLE_NOTIFY_ROWS_APPENDED, 0, 0, 0},
15285 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_ROWS_DELETED", (long) wxGRIDTABLE_NOTIFY_ROWS_DELETED, 0, 0, 0},
15286 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_INSERTED", (long) wxGRIDTABLE_NOTIFY_COLS_INSERTED, 0, 0, 0},
15287 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_APPENDED", (long) wxGRIDTABLE_NOTIFY_COLS_APPENDED, 0, 0, 0},
15288 { SWIG_PY_INT, (char *)"GRIDTABLE_NOTIFY_COLS_DELETED", (long) wxGRIDTABLE_NOTIFY_COLS_DELETED, 0, 0, 0},
15289 { SWIG_PY_INT, (char *)"Grid_wxGridSelectCells", (long) wxGrid::wxGridSelectCells, 0, 0, 0},
15290 { SWIG_PY_INT, (char *)"Grid_wxGridSelectRows", (long) wxGrid::wxGridSelectRows, 0, 0, 0},
15291 { SWIG_PY_INT, (char *)"Grid_wxGridSelectColumns", (long) wxGrid::wxGridSelectColumns, 0, 0, 0},
15292 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_LEFT_CLICK", (long) wxEVT_GRID_CELL_LEFT_CLICK, 0, 0, 0},
15293 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_RIGHT_CLICK", (long) wxEVT_GRID_CELL_RIGHT_CLICK, 0, 0, 0},
15294 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_LEFT_DCLICK", (long) wxEVT_GRID_CELL_LEFT_DCLICK, 0, 0, 0},
15295 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_RIGHT_DCLICK", (long) wxEVT_GRID_CELL_RIGHT_DCLICK, 0, 0, 0},
15296 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_LEFT_CLICK", (long) wxEVT_GRID_LABEL_LEFT_CLICK, 0, 0, 0},
15297 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_RIGHT_CLICK", (long) wxEVT_GRID_LABEL_RIGHT_CLICK, 0, 0, 0},
15298 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_LEFT_DCLICK", (long) wxEVT_GRID_LABEL_LEFT_DCLICK, 0, 0, 0},
15299 { SWIG_PY_INT, (char *)"wxEVT_GRID_LABEL_RIGHT_DCLICK", (long) wxEVT_GRID_LABEL_RIGHT_DCLICK, 0, 0, 0},
15300 { SWIG_PY_INT, (char *)"wxEVT_GRID_ROW_SIZE", (long) wxEVT_GRID_ROW_SIZE, 0, 0, 0},
15301 { SWIG_PY_INT, (char *)"wxEVT_GRID_COL_SIZE", (long) wxEVT_GRID_COL_SIZE, 0, 0, 0},
15302 { SWIG_PY_INT, (char *)"wxEVT_GRID_RANGE_SELECT", (long) wxEVT_GRID_RANGE_SELECT, 0, 0, 0},
15303 { SWIG_PY_INT, (char *)"wxEVT_GRID_CELL_CHANGE", (long) wxEVT_GRID_CELL_CHANGE, 0, 0, 0},
15304 { SWIG_PY_INT, (char *)"wxEVT_GRID_SELECT_CELL", (long) wxEVT_GRID_SELECT_CELL, 0, 0, 0},
15305 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_SHOWN", (long) wxEVT_GRID_EDITOR_SHOWN, 0, 0, 0},
15306 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_HIDDEN", (long) wxEVT_GRID_EDITOR_HIDDEN, 0, 0, 0},
15307 { SWIG_PY_INT, (char *)"wxEVT_GRID_EDITOR_CREATED", (long) wxEVT_GRID_EDITOR_CREATED, 0, 0, 0},
15308 {0}};
15309
15310 #ifdef __cplusplus
15311 }
15312 #endif
15313
15314 #ifdef __cplusplus
15315 extern "C"
15316 #endif
15317 SWIGEXPORT(void) SWIG_init(void) {
15318 static PyObject *SWIG_globals = 0;
15319 static int typeinit = 0;
15320 PyObject *m, *d;
15321 int i;
15322 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
15323 m = Py_InitModule((char *) SWIG_name, SwigMethods);
15324 d = PyModule_GetDict(m);
15325
15326 if (!typeinit) {
15327 for (i = 0; swig_types_initial[i]; i++) {
15328 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
15329 }
15330 typeinit = 1;
15331 }
15332 SWIG_InstallConstants(d,swig_const_table);
15333
15334 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
15335 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellCoords",_wrap_GridNoCellCoords_get, _wrap_GridNoCellCoords_set);
15336 SWIG_addvarlink(SWIG_globals,(char*)"GridNoCellRect",_wrap_GridNoCellRect_get, _wrap_GridNoCellRect_set);
15337 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_CLICK));
15338 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_CLICK));
15339 PyDict_SetItemString(d, "wxEVT_GRID_CELL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_LEFT_DCLICK));
15340 PyDict_SetItemString(d, "wxEVT_GRID_CELL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_CELL_RIGHT_DCLICK));
15341 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_CLICK));
15342 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_CLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_CLICK));
15343 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_LEFT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_LEFT_DCLICK));
15344 PyDict_SetItemString(d, "wxEVT_GRID_LABEL_RIGHT_DCLICK", PyInt_FromLong(wxEVT_GRID_LABEL_RIGHT_DCLICK));
15345 PyDict_SetItemString(d, "wxEVT_GRID_ROW_SIZE", PyInt_FromLong(wxEVT_GRID_ROW_SIZE));
15346 PyDict_SetItemString(d, "wxEVT_GRID_COL_SIZE", PyInt_FromLong(wxEVT_GRID_COL_SIZE));
15347 PyDict_SetItemString(d, "wxEVT_GRID_RANGE_SELECT", PyInt_FromLong(wxEVT_GRID_RANGE_SELECT));
15348 PyDict_SetItemString(d, "wxEVT_GRID_CELL_CHANGE", PyInt_FromLong(wxEVT_GRID_CELL_CHANGE));
15349 PyDict_SetItemString(d, "wxEVT_GRID_SELECT_CELL", PyInt_FromLong(wxEVT_GRID_SELECT_CELL));
15350 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_SHOWN", PyInt_FromLong(wxEVT_GRID_EDITOR_SHOWN));
15351 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_HIDDEN", PyInt_FromLong(wxEVT_GRID_EDITOR_HIDDEN));
15352 PyDict_SetItemString(d, "wxEVT_GRID_EDITOR_CREATED", PyInt_FromLong(wxEVT_GRID_EDITOR_CREATED));
15353
15354
15355 }
15356